Source File
tl_account_get_reactions_notify_settings_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{})// AccountGetReactionsNotifySettingsRequest represents TL type `account.getReactionsNotifySettings#6dd654c`.// Get the current reaction notification settings »¹.//// Links:// 1. https://core.telegram.org/api/reactions#notifications-about-reactions//// See https://core.telegram.org/method/account.getReactionsNotifySettings for reference.type AccountGetReactionsNotifySettingsRequest struct {}// AccountGetReactionsNotifySettingsRequestTypeID is TL type id of AccountGetReactionsNotifySettingsRequest.const AccountGetReactionsNotifySettingsRequestTypeID = 0x6dd654c// Ensuring interfaces in compile-time for AccountGetReactionsNotifySettingsRequest.var (_ bin.Encoder = &AccountGetReactionsNotifySettingsRequest{}_ bin.Decoder = &AccountGetReactionsNotifySettingsRequest{}_ bin.BareEncoder = &AccountGetReactionsNotifySettingsRequest{}_ bin.BareDecoder = &AccountGetReactionsNotifySettingsRequest{})func ( *AccountGetReactionsNotifySettingsRequest) () bool {if == nil {return true}return true}// String implements fmt.Stringer.func ( *AccountGetReactionsNotifySettingsRequest) () string {if == nil {return "AccountGetReactionsNotifySettingsRequest(nil)"}type AccountGetReactionsNotifySettingsRequestreturn fmt.Sprintf("AccountGetReactionsNotifySettingsRequest%+v", (*))}// TypeID returns type id in TL schema.//// See https://core.telegram.org/mtproto/TL-tl#remarks.func (*AccountGetReactionsNotifySettingsRequest) () uint32 {return AccountGetReactionsNotifySettingsRequestTypeID}// TypeName returns name of type in TL schema.func (*AccountGetReactionsNotifySettingsRequest) () string {return "account.getReactionsNotifySettings"}// TypeInfo returns info about TL type.func ( *AccountGetReactionsNotifySettingsRequest) () tdp.Type {:= tdp.Type{Name: "account.getReactionsNotifySettings",ID: AccountGetReactionsNotifySettingsRequestTypeID,}if == nil {.Null = truereturn}.Fields = []tdp.Field{}return}// Encode implements bin.Encoder.func ( *AccountGetReactionsNotifySettingsRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't encode account.getReactionsNotifySettings#6dd654c as nil")}.PutID(AccountGetReactionsNotifySettingsRequestTypeID)return .EncodeBare()}// EncodeBare implements bin.BareEncoder.func ( *AccountGetReactionsNotifySettingsRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't encode account.getReactionsNotifySettings#6dd654c as nil")}return nil}// Decode implements bin.Decoder.func ( *AccountGetReactionsNotifySettingsRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't decode account.getReactionsNotifySettings#6dd654c to nil")}if := .ConsumeID(AccountGetReactionsNotifySettingsRequestTypeID); != nil {return fmt.Errorf("unable to decode account.getReactionsNotifySettings#6dd654c: %w", )}return .DecodeBare()}// DecodeBare implements bin.BareDecoder.func ( *AccountGetReactionsNotifySettingsRequest) ( *bin.Buffer) error {if == nil {return fmt.Errorf("can't decode account.getReactionsNotifySettings#6dd654c to nil")}return nil}// AccountGetReactionsNotifySettings invokes method account.getReactionsNotifySettings#6dd654c returning error if any.// Get the current reaction notification settings »¹.//// Links:// 1. https://core.telegram.org/api/reactions#notifications-about-reactions//// See https://core.telegram.org/method/account.getReactionsNotifySettings for reference.func ( *Client) ( context.Context) (*ReactionsNotifySettings, error) {var ReactionsNotifySettings:= &AccountGetReactionsNotifySettingsRequest{}if := .rpc.Invoke(, , &); != nil {return nil,}return &, nil}
![]() |
The pages are generated with Golds v0.8.4. (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 @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |