Source File
tl_help_get_support_name_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{})// HelpGetSupportNameRequest represents TL type `help.getSupportName#d360e72c`.// Get localized name of the telegram support user//// See https://core.telegram.org/method/help.getSupportName for reference.type HelpGetSupportNameRequest struct {}// HelpGetSupportNameRequestTypeID is TL type id of HelpGetSupportNameRequest.const HelpGetSupportNameRequestTypeID = 0xd360e72c// Ensuring interfaces in compile-time for HelpGetSupportNameRequest.var (_ bin.Encoder = &HelpGetSupportNameRequest{}_ bin.Decoder = &HelpGetSupportNameRequest{}_ bin.BareEncoder = &HelpGetSupportNameRequest{}_ bin.BareDecoder = &HelpGetSupportNameRequest{})func ( *HelpGetSupportNameRequest) () bool {if == nil {return true}return true}// String implements fmt.Stringer.func ( *HelpGetSupportNameRequest) () string {if == nil {return "HelpGetSupportNameRequest(nil)"}type HelpGetSupportNameRequestreturn fmt.Sprintf("HelpGetSupportNameRequest%+v", (*))}// TypeID returns type id in TL schema.//// See https://core.telegram.org/mtproto/TL-tl#remarks.func (*HelpGetSupportNameRequest) () uint32 {return HelpGetSupportNameRequestTypeID}// TypeName returns name of type in TL schema.func (*HelpGetSupportNameRequest) () string {return "help.getSupportName"}// TypeInfo returns info about TL type.func ( *HelpGetSupportNameRequest) () tdp.Type {:= tdp.Type{Name: "help.getSupportName",ID: HelpGetSupportNameRequestTypeID,}if == nil {.Null = truereturn}.Fields = []tdp.Field{}return}// Encode implements bin.Encoder.func ( *HelpGetSupportNameRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't encode help.getSupportName#d360e72c as nil")}.PutID(HelpGetSupportNameRequestTypeID)return .EncodeBare()}// EncodeBare implements bin.BareEncoder.func ( *HelpGetSupportNameRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't encode help.getSupportName#d360e72c as nil")}return nil}// Decode implements bin.Decoder.func ( *HelpGetSupportNameRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't decode help.getSupportName#d360e72c to nil")}if := .ConsumeID(HelpGetSupportNameRequestTypeID); != nil {return fmt.Errorf("unable to decode help.getSupportName#d360e72c: %w", )}return .DecodeBare()}// DecodeBare implements bin.BareDecoder.func ( *HelpGetSupportNameRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't decode help.getSupportName#d360e72c to nil")}return nil}// HelpGetSupportName invokes method help.getSupportName#d360e72c returning error if any.// Get localized name of the telegram support user//// Possible errors://// 403 USER_INVALID: Invalid user provided.//// See https://core.telegram.org/method/help.getSupportName for reference.func ( *Client) ( context.Context) (*HelpSupportName, error) {var HelpSupportName:= &HelpGetSupportNameRequest{}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. |