Source File
tl_help_get_support_gen.go
Belonging Package
github.com/gotd/td/tg
// Code generated by gotdgen, DO NOT EDIT.package tgimport ()// No-op definition for keeping imports.var (_ = bin.Buffer{}_ = context.Background()_ = fmt.Stringer(nil)_ = strings.Builder{}_ = errors.Is_ = multierr.AppendInto_ = sort.Ints_ = tdp.Format_ = tgerr.Error{}_ = tdjson.Encoder{})// HelpGetSupportRequest represents TL type `help.getSupport#9cdf08cd`.// Returns the support user for the "ask a question" feature.//// See https://core.telegram.org/method/help.getSupport for reference.type HelpGetSupportRequest struct {}// HelpGetSupportRequestTypeID is TL type id of HelpGetSupportRequest.const HelpGetSupportRequestTypeID = 0x9cdf08cd// Ensuring interfaces in compile-time for HelpGetSupportRequest.var (_ bin.Encoder = &HelpGetSupportRequest{}_ bin.Decoder = &HelpGetSupportRequest{}_ bin.BareEncoder = &HelpGetSupportRequest{}_ bin.BareDecoder = &HelpGetSupportRequest{})func ( *HelpGetSupportRequest) () bool {if == nil {return true}return true}// String implements fmt.Stringer.func ( *HelpGetSupportRequest) () string {if == nil {return "HelpGetSupportRequest(nil)"}type HelpGetSupportRequestreturn fmt.Sprintf("HelpGetSupportRequest%+v", (*))}// TypeID returns type id in TL schema.//// See https://core.telegram.org/mtproto/TL-tl#remarks.func (*HelpGetSupportRequest) () uint32 {return HelpGetSupportRequestTypeID}// TypeName returns name of type in TL schema.func (*HelpGetSupportRequest) () string {return "help.getSupport"}// TypeInfo returns info about TL type.func ( *HelpGetSupportRequest) () tdp.Type {:= tdp.Type{Name: "help.getSupport",ID: HelpGetSupportRequestTypeID,}if == nil {.Null = truereturn}.Fields = []tdp.Field{}return}// Encode implements bin.Encoder.func ( *HelpGetSupportRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't encode help.getSupport#9cdf08cd as nil")}.PutID(HelpGetSupportRequestTypeID)return .EncodeBare()}// EncodeBare implements bin.BareEncoder.func ( *HelpGetSupportRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't encode help.getSupport#9cdf08cd as nil")}return nil}// Decode implements bin.Decoder.func ( *HelpGetSupportRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't decode help.getSupport#9cdf08cd to nil")}if := .ConsumeID(HelpGetSupportRequestTypeID); != nil {return fmt.Errorf("unable to decode help.getSupport#9cdf08cd: %w", )}return .DecodeBare()}// DecodeBare implements bin.BareDecoder.func ( *HelpGetSupportRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't decode help.getSupport#9cdf08cd to nil")}return nil}// HelpGetSupport invokes method help.getSupport#9cdf08cd returning error if any.// Returns the support user for the "ask a question" feature.//// See https://core.telegram.org/method/help.getSupport for reference.func ( *Client) ( context.Context) (*HelpSupport, error) {var HelpSupport:= &HelpGetSupportRequest{}if := .rpc.Invoke(, , &); != nil {return nil,}return &, nil}
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |