From c3e5cb3d6aaffe5d54944f93630664fe04e0bacc Mon Sep 17 00:00:00 2001 From: GitHub Date: Sat, 25 Mar 2023 07:44:27 +0000 Subject: [PATCH] feat(schema): update TDLib to the latest layer --- _schema/tdapi.tl | 38 +- tdapi/tl_authentication_code_type_gen.go | 2 +- tdapi/tl_authorization_state_gen.go | 89 +- tdapi/tl_email_address_reset_state_gen.go | 503 ++++ tdapi/tl_get_support_name_gen.go | 169 ++ tdapi/tl_open_web_app_gen.go | 3 +- tdapi/tl_registry_gen.go | 2072 +++++++++-------- ..._reset_authentication_email_address_gen.go | 169 ++ tdapi/tl_update_gen.go | 2 +- tdapi/tl_view_messages_gen.go | 5 +- 10 files changed, 1967 insertions(+), 1085 deletions(-) create mode 100644 tdapi/tl_email_address_reset_state_gen.go create mode 100644 tdapi/tl_get_support_name_gen.go create mode 100644 tdapi/tl_reset_authentication_email_address_gen.go diff --git a/_schema/tdapi.tl b/_schema/tdapi.tl index 9e6b86a8ec..2f47ca5cb6 100644 --- a/_schema/tdapi.tl +++ b/_schema/tdapi.tl @@ -1,7 +1,7 @@ // Code generated by ./cmd/dltl, DO NOT EDIT. // // Source: https://raw.githubusercontent.com/tdlib/td/master/td/generate/scheme/td_api.tl -// SHA256: 9c223315a57e86d8912b370b83113c3e71501d87aed4705a488e0c2b2db0d97a +// SHA256: 79cb352e5e77de9fb2bf60797d98488e4f236abb766e39303ce0c1661df0ce3b double#2210c154 ? = Double; @@ -33,7 +33,7 @@ ok#d4edbe69 = Ok; //@length Length of the code authenticationCodeTypeTelegramMessage#7bf49b2a length:int32 = AuthenticationCodeType; -//@description An authentication code is delivered via an SMS message to the specified phone number +//@description An authentication code is delivered via an SMS message to the specified phone number; applications may not receive this type of code //@length Length of the code authenticationCodeTypeSms#3960e288 length:int32 = AuthenticationCodeType; @@ -61,7 +61,7 @@ authenticationCodeTypeFragment#810f74cd url:string length:int32 = Authentication authenticationCodeTypeFirebaseAndroid#8a118819 nonce:bytes length:int32 = AuthenticationCodeType; //@description An authentication code is delivered via Firebase Authentication to the official iOS application -//@receipt Receipt of successful applikation token validation to compare with receipt from push notification +//@receipt Receipt of successful application token validation to compare with receipt from push notification //@push_timeout Time after the next authentication method is supposed to be used if verification push notification isn't received, in seconds //@length Length of the code authenticationCodeTypeFirebaseIos#ff55aa93 receipt:string push_timeout:int32 length:int32 = AuthenticationCodeType; @@ -92,6 +92,16 @@ emailAddressAuthenticationAppleId#25c94869 token:string = EmailAddressAuthentica //@token The token emailAddressAuthenticationGoogleId#fedbe742 token:string = EmailAddressAuthentication; +//@class EmailAddressResetState @description Describes reset state of a email address + +//@description Email address can be reset after the given period. Call resetAuthenticationEmailAddress to reset it and allow the user to authorize with a code sent to the user's phone number +//@wait_period Time required to wait before the email address can be reset; 0 if the user is subscribed to Telegram Premium +emailAddressResetStateAvailable#8dba3100 wait_period:int32 = EmailAddressResetState; + +//@description Email address reset has already been requested. Call resetAuthenticationEmailAddress to check whether immediate reset is possible +//@reset_in Left time before the email address will be reset, in seconds. updateAuthorizationState is not sent when this field changes +emailAddressResetStatePending#8f966e2b reset_in:int32 = EmailAddressResetState; + //@description Represents a part of the text that needs to be formatted in some unusual way //@offset Offset of the entity, in UTF-16 code units //@length Length of the entity, in UTF-16 code units @@ -130,8 +140,8 @@ authorizationStateWaitEmailAddress#3e0471c7 allow_apple_id:Bool allow_google_id: //@allow_apple_id True, if authorization through Apple ID is allowed //@allow_google_id True, if authorization through Google ID is allowed //@code_info Information about the sent authentication code -//@next_phone_number_authorization_date Point in time (Unix timestamp) when the user will be able to authorize with a code sent to the user's phone number; 0 if unknown -authorizationStateWaitEmailCode#a6308e9 allow_apple_id:Bool allow_google_id:Bool code_info:emailAddressAuthenticationCodeInfo next_phone_number_authorization_date:int32 = AuthorizationState; +//@email_address_reset_state Reset state of the email address; may be null if the email address can't be reset +authorizationStateWaitEmailCode#909f025b allow_apple_id:Bool allow_google_id:Bool code_info:emailAddressAuthenticationCodeInfo email_address_reset_state:EmailAddressResetState = AuthorizationState; //@description TDLib needs the user's authentication code to authorize. Call checkAuthenticationCode to check the code //@code_info Information about the authorization code that was sent @@ -6039,7 +6049,7 @@ updateChatThemes#98dc58d5 chat_themes:vector = Update; //@description Some language pack strings have been updated //@localization_target Localization target to which the language pack belongs //@language_pack_id Identifier of the updated language pack -//@strings List of changed language pack strings +//@strings List of changed language pack strings; empty if all strings have changed updateLanguagePackStrings#af87919f localization_target:string language_pack_id:string strings:vector = Update; //@description The connection state has changed. This update must be used only to show a human-readable description of the connection state @@ -6302,6 +6312,9 @@ requestQrCodeAuthentication#56fe3c4e other_user_ids:vector = Ok; //@last_name The last name of the user; 0-64 characters registerUser#f9719e1d first_name:string last_name:string = Ok; +//@description Resets the login email address. May return an error with a message "TASK_ALREADY_EXISTS" if reset is still pending. +resetAuthenticationEmailAddress#e742722c = Ok; + //@description Checks the 2-step verification password for correctness. Works only when the current authorization state is authorizationStateWaitPassword //@password The 2-step verification password to check checkAuthenticationPassword#87424ba0 password:string = Ok; @@ -6358,7 +6371,7 @@ getPasswordState#f5957b78 = PasswordState; //@new_recovery_email_address New recovery email address; may be empty setPassword#b8db46dd old_password:string new_password:string new_hint:string set_recovery_email_address:Bool new_recovery_email_address:string = PasswordState; -//@description Changes the login email address of the user. The change will not be applied until the new login email address is confirmed with checkLoginEmailAddressCode. +//@description Changes the login email address of the user. The email address can be changed only if the current user already has login email and passwordState.login_email_address_pattern is non-empty. //@new_login_email_address New login email address setLoginEmailAddress#37bb43d4 new_login_email_address:string = EmailAddressAuthenticationCodeInfo; @@ -7172,7 +7185,7 @@ getWebAppUrl#64c42cbe bot_user_id:int53 url:string theme:themeParameters applica sendWebAppData#ab1fce0c bot_user_id:int53 button_text:string data:string = Ok; //@description Informs TDLib that a Web App is being opened from attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button. -//@chat_id Identifier of the chat in which the Web App is opened +//@chat_id Identifier of the chat in which the Web App is opened. The Web App can't be opened in secret chats //@bot_user_id Identifier of the bot, providing the Web App //@url The URL from an inlineKeyboardButtonTypeWebApp button, a botMenuButton button, or an internalLinkTypeAttachmentMenuBot link, or an empty string otherwise //@theme Preferred Web App theme; pass null to use the default theme @@ -7265,8 +7278,8 @@ closeChat#25e86e9 chat_id:int53 = Ok; //@description Informs TDLib that messages are being viewed by the user. Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen (excluding the button). //@chat_id Chat identifier //@message_ids The identifiers of the messages being viewed -//@source Source of the message view -//@force_read Pass true to mark as read the specified messages even the chat is closed; pass null to guess the source based on chat open state +//@source Source of the message view; pass null to guess the source based on chat open state +//@force_read Pass true to mark as read the specified messages even the chat is closed viewMessages#aa2f0438 chat_id:int53 message_ids:vector source:MessageSource force_read:Bool = Ok; //@description Informs TDLib that the message content has been opened (e.g., the user has opened a photo, video, document, location or venue, or has listened to an audio file or voice note message). @@ -9004,7 +9017,7 @@ getDeepLinkInfo#28923f7e link:string = DeepLinkInfo; //@description Returns application config, provided by the server. Can be called before authorization getApplicationConfig#93550682 = JsonValue; -//@description Adds server-provided application changelog as messages to the chat 777000 (Telegram); for official applications only +//@description Adds server-provided application changelog as messages to the chat 777000 (Telegram); for official applications only. Returns a 404 error if nothing changed //@previous_application_version The previous application version addApplicationChangelog#8bf37fc9 previous_application_version:string = Ok; @@ -9094,6 +9107,9 @@ getUserSupportInfo#74a59305 user_id:int53 = UserSupportInfo; //@message New information message setUserSupportInfo#837c9803 user_id:int53 message:formattedText = UserSupportInfo; +//@description Returns localized name of the Telegram support user; for Telegram support only +getSupportName#4d9e1562 = Text; + //@description Does nothing; for testing only. This is an offline method. Can be called before authorization testCallEmpty#da9c4a16 = Ok; diff --git a/tdapi/tl_authentication_code_type_gen.go b/tdapi/tl_authentication_code_type_gen.go index b88b152378..d5bd8f9cb2 100644 --- a/tdapi/tl_authentication_code_type_gen.go +++ b/tdapi/tl_authentication_code_type_gen.go @@ -1297,7 +1297,7 @@ func (a *AuthenticationCodeTypeFirebaseAndroid) GetLength() (value int32) { // AuthenticationCodeTypeFirebaseIos represents TL type `authenticationCodeTypeFirebaseIos#ff55aa93`. type AuthenticationCodeTypeFirebaseIos struct { - // Receipt of successful applikation token validation to compare with receipt from push + // Receipt of successful application token validation to compare with receipt from push // notification Receipt string // Time after the next authentication method is supposed to be used if verification push diff --git a/tdapi/tl_authorization_state_gen.go b/tdapi/tl_authorization_state_gen.go index 5cdde0815e..6201fb1981 100644 --- a/tdapi/tl_authorization_state_gen.go +++ b/tdapi/tl_authorization_state_gen.go @@ -493,7 +493,7 @@ func (a *AuthorizationStateWaitEmailAddress) GetAllowGoogleID() (value bool) { return a.AllowGoogleID } -// AuthorizationStateWaitEmailCode represents TL type `authorizationStateWaitEmailCode#a6308e9`. +// AuthorizationStateWaitEmailCode represents TL type `authorizationStateWaitEmailCode#909f025b`. type AuthorizationStateWaitEmailCode struct { // True, if authorization through Apple ID is allowed AllowAppleID bool @@ -501,13 +501,12 @@ type AuthorizationStateWaitEmailCode struct { AllowGoogleID bool // Information about the sent authentication code CodeInfo EmailAddressAuthenticationCodeInfo - // Point in time (Unix timestamp) when the user will be able to authorize with a code - // sent to the user's phone number; 0 if unknown - NextPhoneNumberAuthorizationDate int32 + // Reset state of the email address; may be null if the email address can't be reset + EmailAddressResetState EmailAddressResetStateClass } // AuthorizationStateWaitEmailCodeTypeID is TL type id of AuthorizationStateWaitEmailCode. -const AuthorizationStateWaitEmailCodeTypeID = 0xa6308e9 +const AuthorizationStateWaitEmailCodeTypeID = 0x909f025b // construct implements constructor of AuthorizationStateClass. func (a AuthorizationStateWaitEmailCode) construct() AuthorizationStateClass { return &a } @@ -535,7 +534,7 @@ func (a *AuthorizationStateWaitEmailCode) Zero() bool { if !(a.CodeInfo.Zero()) { return false } - if !(a.NextPhoneNumberAuthorizationDate == 0) { + if !(a.EmailAddressResetState == nil) { return false } @@ -587,8 +586,8 @@ func (a *AuthorizationStateWaitEmailCode) TypeInfo() tdp.Type { SchemaName: "code_info", }, { - Name: "NextPhoneNumberAuthorizationDate", - SchemaName: "next_phone_number_authorization_date", + Name: "EmailAddressResetState", + SchemaName: "email_address_reset_state", }, } return typ @@ -597,7 +596,7 @@ func (a *AuthorizationStateWaitEmailCode) TypeInfo() tdp.Type { // Encode implements bin.Encoder. func (a *AuthorizationStateWaitEmailCode) Encode(b *bin.Buffer) error { if a == nil { - return fmt.Errorf("can't encode authorizationStateWaitEmailCode#a6308e9 as nil") + return fmt.Errorf("can't encode authorizationStateWaitEmailCode#909f025b as nil") } b.PutID(AuthorizationStateWaitEmailCodeTypeID) return a.EncodeBare(b) @@ -606,24 +605,29 @@ func (a *AuthorizationStateWaitEmailCode) Encode(b *bin.Buffer) error { // EncodeBare implements bin.BareEncoder. func (a *AuthorizationStateWaitEmailCode) EncodeBare(b *bin.Buffer) error { if a == nil { - return fmt.Errorf("can't encode authorizationStateWaitEmailCode#a6308e9 as nil") + return fmt.Errorf("can't encode authorizationStateWaitEmailCode#909f025b as nil") } b.PutBool(a.AllowAppleID) b.PutBool(a.AllowGoogleID) if err := a.CodeInfo.Encode(b); err != nil { - return fmt.Errorf("unable to encode authorizationStateWaitEmailCode#a6308e9: field code_info: %w", err) + return fmt.Errorf("unable to encode authorizationStateWaitEmailCode#909f025b: field code_info: %w", err) + } + if a.EmailAddressResetState == nil { + return fmt.Errorf("unable to encode authorizationStateWaitEmailCode#909f025b: field email_address_reset_state is nil") + } + if err := a.EmailAddressResetState.Encode(b); err != nil { + return fmt.Errorf("unable to encode authorizationStateWaitEmailCode#909f025b: field email_address_reset_state: %w", err) } - b.PutInt32(a.NextPhoneNumberAuthorizationDate) return nil } // Decode implements bin.Decoder. func (a *AuthorizationStateWaitEmailCode) Decode(b *bin.Buffer) error { if a == nil { - return fmt.Errorf("can't decode authorizationStateWaitEmailCode#a6308e9 to nil") + return fmt.Errorf("can't decode authorizationStateWaitEmailCode#909f025b to nil") } if err := b.ConsumeID(AuthorizationStateWaitEmailCodeTypeID); err != nil { - return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#a6308e9: %w", err) + return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#909f025b: %w", err) } return a.DecodeBare(b) } @@ -631,33 +635,33 @@ func (a *AuthorizationStateWaitEmailCode) Decode(b *bin.Buffer) error { // DecodeBare implements bin.BareDecoder. func (a *AuthorizationStateWaitEmailCode) DecodeBare(b *bin.Buffer) error { if a == nil { - return fmt.Errorf("can't decode authorizationStateWaitEmailCode#a6308e9 to nil") + return fmt.Errorf("can't decode authorizationStateWaitEmailCode#909f025b to nil") } { value, err := b.Bool() if err != nil { - return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#a6308e9: field allow_apple_id: %w", err) + return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#909f025b: field allow_apple_id: %w", err) } a.AllowAppleID = value } { value, err := b.Bool() if err != nil { - return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#a6308e9: field allow_google_id: %w", err) + return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#909f025b: field allow_google_id: %w", err) } a.AllowGoogleID = value } { if err := a.CodeInfo.Decode(b); err != nil { - return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#a6308e9: field code_info: %w", err) + return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#909f025b: field code_info: %w", err) } } { - value, err := b.Int32() + value, err := DecodeEmailAddressResetState(b) if err != nil { - return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#a6308e9: field next_phone_number_authorization_date: %w", err) + return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#909f025b: field email_address_reset_state: %w", err) } - a.NextPhoneNumberAuthorizationDate = value + a.EmailAddressResetState = value } return nil } @@ -665,7 +669,7 @@ func (a *AuthorizationStateWaitEmailCode) DecodeBare(b *bin.Buffer) error { // EncodeTDLibJSON implements tdjson.TDLibEncoder. func (a *AuthorizationStateWaitEmailCode) EncodeTDLibJSON(b tdjson.Encoder) error { if a == nil { - return fmt.Errorf("can't encode authorizationStateWaitEmailCode#a6308e9 as nil") + return fmt.Errorf("can't encode authorizationStateWaitEmailCode#909f025b as nil") } b.ObjStart() b.PutID("authorizationStateWaitEmailCode") @@ -678,11 +682,16 @@ func (a *AuthorizationStateWaitEmailCode) EncodeTDLibJSON(b tdjson.Encoder) erro b.Comma() b.FieldStart("code_info") if err := a.CodeInfo.EncodeTDLibJSON(b); err != nil { - return fmt.Errorf("unable to encode authorizationStateWaitEmailCode#a6308e9: field code_info: %w", err) + return fmt.Errorf("unable to encode authorizationStateWaitEmailCode#909f025b: field code_info: %w", err) } b.Comma() - b.FieldStart("next_phone_number_authorization_date") - b.PutInt32(a.NextPhoneNumberAuthorizationDate) + b.FieldStart("email_address_reset_state") + if a.EmailAddressResetState == nil { + return fmt.Errorf("unable to encode authorizationStateWaitEmailCode#909f025b: field email_address_reset_state is nil") + } + if err := a.EmailAddressResetState.EncodeTDLibJSON(b); err != nil { + return fmt.Errorf("unable to encode authorizationStateWaitEmailCode#909f025b: field email_address_reset_state: %w", err) + } b.Comma() b.StripComma() b.ObjEnd() @@ -692,37 +701,37 @@ func (a *AuthorizationStateWaitEmailCode) EncodeTDLibJSON(b tdjson.Encoder) erro // DecodeTDLibJSON implements tdjson.TDLibDecoder. func (a *AuthorizationStateWaitEmailCode) DecodeTDLibJSON(b tdjson.Decoder) error { if a == nil { - return fmt.Errorf("can't decode authorizationStateWaitEmailCode#a6308e9 to nil") + return fmt.Errorf("can't decode authorizationStateWaitEmailCode#909f025b to nil") } return b.Obj(func(b tdjson.Decoder, key []byte) error { switch string(key) { case tdjson.TypeField: if err := b.ConsumeID("authorizationStateWaitEmailCode"); err != nil { - return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#a6308e9: %w", err) + return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#909f025b: %w", err) } case "allow_apple_id": value, err := b.Bool() if err != nil { - return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#a6308e9: field allow_apple_id: %w", err) + return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#909f025b: field allow_apple_id: %w", err) } a.AllowAppleID = value case "allow_google_id": value, err := b.Bool() if err != nil { - return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#a6308e9: field allow_google_id: %w", err) + return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#909f025b: field allow_google_id: %w", err) } a.AllowGoogleID = value case "code_info": if err := a.CodeInfo.DecodeTDLibJSON(b); err != nil { - return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#a6308e9: field code_info: %w", err) + return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#909f025b: field code_info: %w", err) } - case "next_phone_number_authorization_date": - value, err := b.Int32() + case "email_address_reset_state": + value, err := DecodeTDLibJSONEmailAddressResetState(b) if err != nil { - return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#a6308e9: field next_phone_number_authorization_date: %w", err) + return fmt.Errorf("unable to decode authorizationStateWaitEmailCode#909f025b: field email_address_reset_state: %w", err) } - a.NextPhoneNumberAuthorizationDate = value + a.EmailAddressResetState = value default: return b.Skip() } @@ -754,12 +763,12 @@ func (a *AuthorizationStateWaitEmailCode) GetCodeInfo() (value EmailAddressAuthe return a.CodeInfo } -// GetNextPhoneNumberAuthorizationDate returns value of NextPhoneNumberAuthorizationDate field. -func (a *AuthorizationStateWaitEmailCode) GetNextPhoneNumberAuthorizationDate() (value int32) { +// GetEmailAddressResetState returns value of EmailAddressResetState field. +func (a *AuthorizationStateWaitEmailCode) GetEmailAddressResetState() (value EmailAddressResetStateClass) { if a == nil { return } - return a.NextPhoneNumberAuthorizationDate + return a.EmailAddressResetState } // AuthorizationStateWaitCode represents TL type `authorizationStateWaitCode#3234501`. @@ -2068,7 +2077,7 @@ const AuthorizationStateClassName = "AuthorizationState" // case *tdapi.AuthorizationStateWaitTdlibParameters: // authorizationStateWaitTdlibParameters#35ecf25c // case *tdapi.AuthorizationStateWaitPhoneNumber: // authorizationStateWaitPhoneNumber#124354e3 // case *tdapi.AuthorizationStateWaitEmailAddress: // authorizationStateWaitEmailAddress#3e0471c7 -// case *tdapi.AuthorizationStateWaitEmailCode: // authorizationStateWaitEmailCode#a6308e9 +// case *tdapi.AuthorizationStateWaitEmailCode: // authorizationStateWaitEmailCode#909f025b // case *tdapi.AuthorizationStateWaitCode: // authorizationStateWaitCode#3234501 // case *tdapi.AuthorizationStateWaitOtherDeviceConfirmation: // authorizationStateWaitOtherDeviceConfirmation#334518ea // case *tdapi.AuthorizationStateWaitRegistration: // authorizationStateWaitRegistration#20cdaeaf @@ -2130,7 +2139,7 @@ func DecodeAuthorizationState(buf *bin.Buffer) (AuthorizationStateClass, error) } return &v, nil case AuthorizationStateWaitEmailCodeTypeID: - // Decoding authorizationStateWaitEmailCode#a6308e9. + // Decoding authorizationStateWaitEmailCode#909f025b. v := AuthorizationStateWaitEmailCode{} if err := v.Decode(buf); err != nil { return nil, fmt.Errorf("unable to decode AuthorizationStateClass: %w", err) @@ -2226,7 +2235,7 @@ func DecodeTDLibJSONAuthorizationState(buf tdjson.Decoder) (AuthorizationStateCl } return &v, nil case "authorizationStateWaitEmailCode": - // Decoding authorizationStateWaitEmailCode#a6308e9. + // Decoding authorizationStateWaitEmailCode#909f025b. v := AuthorizationStateWaitEmailCode{} if err := v.DecodeTDLibJSON(buf); err != nil { return nil, fmt.Errorf("unable to decode AuthorizationStateClass: %w", err) diff --git a/tdapi/tl_email_address_reset_state_gen.go b/tdapi/tl_email_address_reset_state_gen.go new file mode 100644 index 0000000000..530875b09c --- /dev/null +++ b/tdapi/tl_email_address_reset_state_gen.go @@ -0,0 +1,503 @@ +// Code generated by gotdgen, DO NOT EDIT. + +package tdapi + +import ( + "context" + "errors" + "fmt" + "sort" + "strings" + + "go.uber.org/multierr" + + "github.com/gotd/td/bin" + "github.com/gotd/td/tdjson" + "github.com/gotd/td/tdp" + "github.com/gotd/td/tgerr" +) + +// 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{} +) + +// EmailAddressResetStateAvailable represents TL type `emailAddressResetStateAvailable#8dba3100`. +type EmailAddressResetStateAvailable struct { + // Time required to wait before the email address can be reset; 0 if the user is + // subscribed to Telegram Premium + WaitPeriod int32 +} + +// EmailAddressResetStateAvailableTypeID is TL type id of EmailAddressResetStateAvailable. +const EmailAddressResetStateAvailableTypeID = 0x8dba3100 + +// construct implements constructor of EmailAddressResetStateClass. +func (e EmailAddressResetStateAvailable) construct() EmailAddressResetStateClass { return &e } + +// Ensuring interfaces in compile-time for EmailAddressResetStateAvailable. +var ( + _ bin.Encoder = &EmailAddressResetStateAvailable{} + _ bin.Decoder = &EmailAddressResetStateAvailable{} + _ bin.BareEncoder = &EmailAddressResetStateAvailable{} + _ bin.BareDecoder = &EmailAddressResetStateAvailable{} + + _ EmailAddressResetStateClass = &EmailAddressResetStateAvailable{} +) + +func (e *EmailAddressResetStateAvailable) Zero() bool { + if e == nil { + return true + } + if !(e.WaitPeriod == 0) { + return false + } + + return true +} + +// String implements fmt.Stringer. +func (e *EmailAddressResetStateAvailable) String() string { + if e == nil { + return "EmailAddressResetStateAvailable(nil)" + } + type Alias EmailAddressResetStateAvailable + return fmt.Sprintf("EmailAddressResetStateAvailable%+v", Alias(*e)) +} + +// TypeID returns type id in TL schema. +// +// See https://core.telegram.org/mtproto/TL-tl#remarks. +func (*EmailAddressResetStateAvailable) TypeID() uint32 { + return EmailAddressResetStateAvailableTypeID +} + +// TypeName returns name of type in TL schema. +func (*EmailAddressResetStateAvailable) TypeName() string { + return "emailAddressResetStateAvailable" +} + +// TypeInfo returns info about TL type. +func (e *EmailAddressResetStateAvailable) TypeInfo() tdp.Type { + typ := tdp.Type{ + Name: "emailAddressResetStateAvailable", + ID: EmailAddressResetStateAvailableTypeID, + } + if e == nil { + typ.Null = true + return typ + } + typ.Fields = []tdp.Field{ + { + Name: "WaitPeriod", + SchemaName: "wait_period", + }, + } + return typ +} + +// Encode implements bin.Encoder. +func (e *EmailAddressResetStateAvailable) Encode(b *bin.Buffer) error { + if e == nil { + return fmt.Errorf("can't encode emailAddressResetStateAvailable#8dba3100 as nil") + } + b.PutID(EmailAddressResetStateAvailableTypeID) + return e.EncodeBare(b) +} + +// EncodeBare implements bin.BareEncoder. +func (e *EmailAddressResetStateAvailable) EncodeBare(b *bin.Buffer) error { + if e == nil { + return fmt.Errorf("can't encode emailAddressResetStateAvailable#8dba3100 as nil") + } + b.PutInt32(e.WaitPeriod) + return nil +} + +// Decode implements bin.Decoder. +func (e *EmailAddressResetStateAvailable) Decode(b *bin.Buffer) error { + if e == nil { + return fmt.Errorf("can't decode emailAddressResetStateAvailable#8dba3100 to nil") + } + if err := b.ConsumeID(EmailAddressResetStateAvailableTypeID); err != nil { + return fmt.Errorf("unable to decode emailAddressResetStateAvailable#8dba3100: %w", err) + } + return e.DecodeBare(b) +} + +// DecodeBare implements bin.BareDecoder. +func (e *EmailAddressResetStateAvailable) DecodeBare(b *bin.Buffer) error { + if e == nil { + return fmt.Errorf("can't decode emailAddressResetStateAvailable#8dba3100 to nil") + } + { + value, err := b.Int32() + if err != nil { + return fmt.Errorf("unable to decode emailAddressResetStateAvailable#8dba3100: field wait_period: %w", err) + } + e.WaitPeriod = value + } + return nil +} + +// EncodeTDLibJSON implements tdjson.TDLibEncoder. +func (e *EmailAddressResetStateAvailable) EncodeTDLibJSON(b tdjson.Encoder) error { + if e == nil { + return fmt.Errorf("can't encode emailAddressResetStateAvailable#8dba3100 as nil") + } + b.ObjStart() + b.PutID("emailAddressResetStateAvailable") + b.Comma() + b.FieldStart("wait_period") + b.PutInt32(e.WaitPeriod) + b.Comma() + b.StripComma() + b.ObjEnd() + return nil +} + +// DecodeTDLibJSON implements tdjson.TDLibDecoder. +func (e *EmailAddressResetStateAvailable) DecodeTDLibJSON(b tdjson.Decoder) error { + if e == nil { + return fmt.Errorf("can't decode emailAddressResetStateAvailable#8dba3100 to nil") + } + + return b.Obj(func(b tdjson.Decoder, key []byte) error { + switch string(key) { + case tdjson.TypeField: + if err := b.ConsumeID("emailAddressResetStateAvailable"); err != nil { + return fmt.Errorf("unable to decode emailAddressResetStateAvailable#8dba3100: %w", err) + } + case "wait_period": + value, err := b.Int32() + if err != nil { + return fmt.Errorf("unable to decode emailAddressResetStateAvailable#8dba3100: field wait_period: %w", err) + } + e.WaitPeriod = value + default: + return b.Skip() + } + return nil + }) +} + +// GetWaitPeriod returns value of WaitPeriod field. +func (e *EmailAddressResetStateAvailable) GetWaitPeriod() (value int32) { + if e == nil { + return + } + return e.WaitPeriod +} + +// EmailAddressResetStatePending represents TL type `emailAddressResetStatePending#8f966e2b`. +type EmailAddressResetStatePending struct { + // Left time before the email address will be reset, in seconds. updateAuthorizationState + // is not sent when this field changes + ResetIn int32 +} + +// EmailAddressResetStatePendingTypeID is TL type id of EmailAddressResetStatePending. +const EmailAddressResetStatePendingTypeID = 0x8f966e2b + +// construct implements constructor of EmailAddressResetStateClass. +func (e EmailAddressResetStatePending) construct() EmailAddressResetStateClass { return &e } + +// Ensuring interfaces in compile-time for EmailAddressResetStatePending. +var ( + _ bin.Encoder = &EmailAddressResetStatePending{} + _ bin.Decoder = &EmailAddressResetStatePending{} + _ bin.BareEncoder = &EmailAddressResetStatePending{} + _ bin.BareDecoder = &EmailAddressResetStatePending{} + + _ EmailAddressResetStateClass = &EmailAddressResetStatePending{} +) + +func (e *EmailAddressResetStatePending) Zero() bool { + if e == nil { + return true + } + if !(e.ResetIn == 0) { + return false + } + + return true +} + +// String implements fmt.Stringer. +func (e *EmailAddressResetStatePending) String() string { + if e == nil { + return "EmailAddressResetStatePending(nil)" + } + type Alias EmailAddressResetStatePending + return fmt.Sprintf("EmailAddressResetStatePending%+v", Alias(*e)) +} + +// TypeID returns type id in TL schema. +// +// See https://core.telegram.org/mtproto/TL-tl#remarks. +func (*EmailAddressResetStatePending) TypeID() uint32 { + return EmailAddressResetStatePendingTypeID +} + +// TypeName returns name of type in TL schema. +func (*EmailAddressResetStatePending) TypeName() string { + return "emailAddressResetStatePending" +} + +// TypeInfo returns info about TL type. +func (e *EmailAddressResetStatePending) TypeInfo() tdp.Type { + typ := tdp.Type{ + Name: "emailAddressResetStatePending", + ID: EmailAddressResetStatePendingTypeID, + } + if e == nil { + typ.Null = true + return typ + } + typ.Fields = []tdp.Field{ + { + Name: "ResetIn", + SchemaName: "reset_in", + }, + } + return typ +} + +// Encode implements bin.Encoder. +func (e *EmailAddressResetStatePending) Encode(b *bin.Buffer) error { + if e == nil { + return fmt.Errorf("can't encode emailAddressResetStatePending#8f966e2b as nil") + } + b.PutID(EmailAddressResetStatePendingTypeID) + return e.EncodeBare(b) +} + +// EncodeBare implements bin.BareEncoder. +func (e *EmailAddressResetStatePending) EncodeBare(b *bin.Buffer) error { + if e == nil { + return fmt.Errorf("can't encode emailAddressResetStatePending#8f966e2b as nil") + } + b.PutInt32(e.ResetIn) + return nil +} + +// Decode implements bin.Decoder. +func (e *EmailAddressResetStatePending) Decode(b *bin.Buffer) error { + if e == nil { + return fmt.Errorf("can't decode emailAddressResetStatePending#8f966e2b to nil") + } + if err := b.ConsumeID(EmailAddressResetStatePendingTypeID); err != nil { + return fmt.Errorf("unable to decode emailAddressResetStatePending#8f966e2b: %w", err) + } + return e.DecodeBare(b) +} + +// DecodeBare implements bin.BareDecoder. +func (e *EmailAddressResetStatePending) DecodeBare(b *bin.Buffer) error { + if e == nil { + return fmt.Errorf("can't decode emailAddressResetStatePending#8f966e2b to nil") + } + { + value, err := b.Int32() + if err != nil { + return fmt.Errorf("unable to decode emailAddressResetStatePending#8f966e2b: field reset_in: %w", err) + } + e.ResetIn = value + } + return nil +} + +// EncodeTDLibJSON implements tdjson.TDLibEncoder. +func (e *EmailAddressResetStatePending) EncodeTDLibJSON(b tdjson.Encoder) error { + if e == nil { + return fmt.Errorf("can't encode emailAddressResetStatePending#8f966e2b as nil") + } + b.ObjStart() + b.PutID("emailAddressResetStatePending") + b.Comma() + b.FieldStart("reset_in") + b.PutInt32(e.ResetIn) + b.Comma() + b.StripComma() + b.ObjEnd() + return nil +} + +// DecodeTDLibJSON implements tdjson.TDLibDecoder. +func (e *EmailAddressResetStatePending) DecodeTDLibJSON(b tdjson.Decoder) error { + if e == nil { + return fmt.Errorf("can't decode emailAddressResetStatePending#8f966e2b to nil") + } + + return b.Obj(func(b tdjson.Decoder, key []byte) error { + switch string(key) { + case tdjson.TypeField: + if err := b.ConsumeID("emailAddressResetStatePending"); err != nil { + return fmt.Errorf("unable to decode emailAddressResetStatePending#8f966e2b: %w", err) + } + case "reset_in": + value, err := b.Int32() + if err != nil { + return fmt.Errorf("unable to decode emailAddressResetStatePending#8f966e2b: field reset_in: %w", err) + } + e.ResetIn = value + default: + return b.Skip() + } + return nil + }) +} + +// GetResetIn returns value of ResetIn field. +func (e *EmailAddressResetStatePending) GetResetIn() (value int32) { + if e == nil { + return + } + return e.ResetIn +} + +// EmailAddressResetStateClassName is schema name of EmailAddressResetStateClass. +const EmailAddressResetStateClassName = "EmailAddressResetState" + +// EmailAddressResetStateClass represents EmailAddressResetState generic type. +// +// Example: +// +// g, err := tdapi.DecodeEmailAddressResetState(buf) +// if err != nil { +// panic(err) +// } +// switch v := g.(type) { +// case *tdapi.EmailAddressResetStateAvailable: // emailAddressResetStateAvailable#8dba3100 +// case *tdapi.EmailAddressResetStatePending: // emailAddressResetStatePending#8f966e2b +// default: panic(v) +// } +type EmailAddressResetStateClass interface { + bin.Encoder + bin.Decoder + bin.BareEncoder + bin.BareDecoder + construct() EmailAddressResetStateClass + + // TypeID returns type id in TL schema. + // + // See https://core.telegram.org/mtproto/TL-tl#remarks. + TypeID() uint32 + // TypeName returns name of type in TL schema. + TypeName() string + // String implements fmt.Stringer. + String() string + // Zero returns true if current object has a zero value. + Zero() bool + + EncodeTDLibJSON(b tdjson.Encoder) error + DecodeTDLibJSON(b tdjson.Decoder) error +} + +// DecodeEmailAddressResetState implements binary de-serialization for EmailAddressResetStateClass. +func DecodeEmailAddressResetState(buf *bin.Buffer) (EmailAddressResetStateClass, error) { + id, err := buf.PeekID() + if err != nil { + return nil, err + } + switch id { + case EmailAddressResetStateAvailableTypeID: + // Decoding emailAddressResetStateAvailable#8dba3100. + v := EmailAddressResetStateAvailable{} + if err := v.Decode(buf); err != nil { + return nil, fmt.Errorf("unable to decode EmailAddressResetStateClass: %w", err) + } + return &v, nil + case EmailAddressResetStatePendingTypeID: + // Decoding emailAddressResetStatePending#8f966e2b. + v := EmailAddressResetStatePending{} + if err := v.Decode(buf); err != nil { + return nil, fmt.Errorf("unable to decode EmailAddressResetStateClass: %w", err) + } + return &v, nil + default: + return nil, fmt.Errorf("unable to decode EmailAddressResetStateClass: %w", bin.NewUnexpectedID(id)) + } +} + +// DecodeTDLibJSONEmailAddressResetState implements binary de-serialization for EmailAddressResetStateClass. +func DecodeTDLibJSONEmailAddressResetState(buf tdjson.Decoder) (EmailAddressResetStateClass, error) { + id, err := buf.FindTypeID() + if err != nil { + return nil, err + } + switch id { + case "emailAddressResetStateAvailable": + // Decoding emailAddressResetStateAvailable#8dba3100. + v := EmailAddressResetStateAvailable{} + if err := v.DecodeTDLibJSON(buf); err != nil { + return nil, fmt.Errorf("unable to decode EmailAddressResetStateClass: %w", err) + } + return &v, nil + case "emailAddressResetStatePending": + // Decoding emailAddressResetStatePending#8f966e2b. + v := EmailAddressResetStatePending{} + if err := v.DecodeTDLibJSON(buf); err != nil { + return nil, fmt.Errorf("unable to decode EmailAddressResetStateClass: %w", err) + } + return &v, nil + default: + return nil, fmt.Errorf("unable to decode EmailAddressResetStateClass: %w", tdjson.NewUnexpectedID(id)) + } +} + +// EmailAddressResetState boxes the EmailAddressResetStateClass providing a helper. +type EmailAddressResetStateBox struct { + EmailAddressResetState EmailAddressResetStateClass +} + +// Decode implements bin.Decoder for EmailAddressResetStateBox. +func (b *EmailAddressResetStateBox) Decode(buf *bin.Buffer) error { + if b == nil { + return fmt.Errorf("unable to decode EmailAddressResetStateBox to nil") + } + v, err := DecodeEmailAddressResetState(buf) + if err != nil { + return fmt.Errorf("unable to decode boxed value: %w", err) + } + b.EmailAddressResetState = v + return nil +} + +// Encode implements bin.Encode for EmailAddressResetStateBox. +func (b *EmailAddressResetStateBox) Encode(buf *bin.Buffer) error { + if b == nil || b.EmailAddressResetState == nil { + return fmt.Errorf("unable to encode EmailAddressResetStateClass as nil") + } + return b.EmailAddressResetState.Encode(buf) +} + +// DecodeTDLibJSON implements bin.Decoder for EmailAddressResetStateBox. +func (b *EmailAddressResetStateBox) DecodeTDLibJSON(buf tdjson.Decoder) error { + if b == nil { + return fmt.Errorf("unable to decode EmailAddressResetStateBox to nil") + } + v, err := DecodeTDLibJSONEmailAddressResetState(buf) + if err != nil { + return fmt.Errorf("unable to decode boxed value: %w", err) + } + b.EmailAddressResetState = v + return nil +} + +// EncodeTDLibJSON implements bin.Encode for EmailAddressResetStateBox. +func (b *EmailAddressResetStateBox) EncodeTDLibJSON(buf tdjson.Encoder) error { + if b == nil || b.EmailAddressResetState == nil { + return fmt.Errorf("unable to encode EmailAddressResetStateClass as nil") + } + return b.EmailAddressResetState.EncodeTDLibJSON(buf) +} diff --git a/tdapi/tl_get_support_name_gen.go b/tdapi/tl_get_support_name_gen.go new file mode 100644 index 0000000000..5899d99004 --- /dev/null +++ b/tdapi/tl_get_support_name_gen.go @@ -0,0 +1,169 @@ +// Code generated by gotdgen, DO NOT EDIT. + +package tdapi + +import ( + "context" + "errors" + "fmt" + "sort" + "strings" + + "go.uber.org/multierr" + + "github.com/gotd/td/bin" + "github.com/gotd/td/tdjson" + "github.com/gotd/td/tdp" + "github.com/gotd/td/tgerr" +) + +// 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{} +) + +// GetSupportNameRequest represents TL type `getSupportName#4d9e1562`. +type GetSupportNameRequest struct { +} + +// GetSupportNameRequestTypeID is TL type id of GetSupportNameRequest. +const GetSupportNameRequestTypeID = 0x4d9e1562 + +// Ensuring interfaces in compile-time for GetSupportNameRequest. +var ( + _ bin.Encoder = &GetSupportNameRequest{} + _ bin.Decoder = &GetSupportNameRequest{} + _ bin.BareEncoder = &GetSupportNameRequest{} + _ bin.BareDecoder = &GetSupportNameRequest{} +) + +func (g *GetSupportNameRequest) Zero() bool { + if g == nil { + return true + } + + return true +} + +// String implements fmt.Stringer. +func (g *GetSupportNameRequest) String() string { + if g == nil { + return "GetSupportNameRequest(nil)" + } + type Alias GetSupportNameRequest + return fmt.Sprintf("GetSupportNameRequest%+v", Alias(*g)) +} + +// TypeID returns type id in TL schema. +// +// See https://core.telegram.org/mtproto/TL-tl#remarks. +func (*GetSupportNameRequest) TypeID() uint32 { + return GetSupportNameRequestTypeID +} + +// TypeName returns name of type in TL schema. +func (*GetSupportNameRequest) TypeName() string { + return "getSupportName" +} + +// TypeInfo returns info about TL type. +func (g *GetSupportNameRequest) TypeInfo() tdp.Type { + typ := tdp.Type{ + Name: "getSupportName", + ID: GetSupportNameRequestTypeID, + } + if g == nil { + typ.Null = true + return typ + } + typ.Fields = []tdp.Field{} + return typ +} + +// Encode implements bin.Encoder. +func (g *GetSupportNameRequest) Encode(b *bin.Buffer) error { + if g == nil { + return fmt.Errorf("can't encode getSupportName#4d9e1562 as nil") + } + b.PutID(GetSupportNameRequestTypeID) + return g.EncodeBare(b) +} + +// EncodeBare implements bin.BareEncoder. +func (g *GetSupportNameRequest) EncodeBare(b *bin.Buffer) error { + if g == nil { + return fmt.Errorf("can't encode getSupportName#4d9e1562 as nil") + } + return nil +} + +// Decode implements bin.Decoder. +func (g *GetSupportNameRequest) Decode(b *bin.Buffer) error { + if g == nil { + return fmt.Errorf("can't decode getSupportName#4d9e1562 to nil") + } + if err := b.ConsumeID(GetSupportNameRequestTypeID); err != nil { + return fmt.Errorf("unable to decode getSupportName#4d9e1562: %w", err) + } + return g.DecodeBare(b) +} + +// DecodeBare implements bin.BareDecoder. +func (g *GetSupportNameRequest) DecodeBare(b *bin.Buffer) error { + if g == nil { + return fmt.Errorf("can't decode getSupportName#4d9e1562 to nil") + } + return nil +} + +// EncodeTDLibJSON implements tdjson.TDLibEncoder. +func (g *GetSupportNameRequest) EncodeTDLibJSON(b tdjson.Encoder) error { + if g == nil { + return fmt.Errorf("can't encode getSupportName#4d9e1562 as nil") + } + b.ObjStart() + b.PutID("getSupportName") + b.Comma() + b.StripComma() + b.ObjEnd() + return nil +} + +// DecodeTDLibJSON implements tdjson.TDLibDecoder. +func (g *GetSupportNameRequest) DecodeTDLibJSON(b tdjson.Decoder) error { + if g == nil { + return fmt.Errorf("can't decode getSupportName#4d9e1562 to nil") + } + + return b.Obj(func(b tdjson.Decoder, key []byte) error { + switch string(key) { + case tdjson.TypeField: + if err := b.ConsumeID("getSupportName"); err != nil { + return fmt.Errorf("unable to decode getSupportName#4d9e1562: %w", err) + } + default: + return b.Skip() + } + return nil + }) +} + +// GetSupportName invokes method getSupportName#4d9e1562 returning error if any. +func (c *Client) GetSupportName(ctx context.Context) (*Text, error) { + var result Text + + request := &GetSupportNameRequest{} + if err := c.rpc.Invoke(ctx, request, &result); err != nil { + return nil, err + } + return &result, nil +} diff --git a/tdapi/tl_open_web_app_gen.go b/tdapi/tl_open_web_app_gen.go index e16685c4bd..cea49a171e 100644 --- a/tdapi/tl_open_web_app_gen.go +++ b/tdapi/tl_open_web_app_gen.go @@ -33,7 +33,8 @@ var ( // OpenWebAppRequest represents TL type `openWebApp#d27a3533`. type OpenWebAppRequest struct { - // Identifier of the chat in which the Web App is opened + // Identifier of the chat in which the Web App is opened. The Web App can't be opened in + // secret chats ChatID int64 // Identifier of the bot, providing the Web App BotUserID int64 diff --git a/tdapi/tl_registry_gen.go b/tdapi/tl_registry_gen.go index f99a6a18bd..5f46fdf54e 100644 --- a/tdapi/tl_registry_gen.go +++ b/tdapi/tl_registry_gen.go @@ -57,6 +57,8 @@ func TypesMap() map[uint32]string { EmailAddressAuthenticationCodeTypeID: "emailAddressAuthenticationCode#c4cc19c2", EmailAddressAuthenticationAppleIDTypeID: "emailAddressAuthenticationAppleId#25c94869", EmailAddressAuthenticationGoogleIDTypeID: "emailAddressAuthenticationGoogleId#fedbe742", + EmailAddressResetStateAvailableTypeID: "emailAddressResetStateAvailable#8dba3100", + EmailAddressResetStatePendingTypeID: "emailAddressResetStatePending#8f966e2b", TextEntityTypeID: "textEntity#8bab99a8", TextEntitiesTypeID: "textEntities#cf89c258", FormattedTextTypeID: "formattedText#a38d39ee", @@ -64,7 +66,7 @@ func TypesMap() map[uint32]string { AuthorizationStateWaitTdlibParametersTypeID: "authorizationStateWaitTdlibParameters#35ecf25c", AuthorizationStateWaitPhoneNumberTypeID: "authorizationStateWaitPhoneNumber#124354e3", AuthorizationStateWaitEmailAddressTypeID: "authorizationStateWaitEmailAddress#3e0471c7", - AuthorizationStateWaitEmailCodeTypeID: "authorizationStateWaitEmailCode#a6308e9", + AuthorizationStateWaitEmailCodeTypeID: "authorizationStateWaitEmailCode#909f025b", AuthorizationStateWaitCodeTypeID: "authorizationStateWaitCode#3234501", AuthorizationStateWaitOtherDeviceConfirmationTypeID: "authorizationStateWaitOtherDeviceConfirmation#334518ea", AuthorizationStateWaitRegistrationTypeID: "authorizationStateWaitRegistration#20cdaeaf", @@ -1228,6 +1230,7 @@ func TypesMap() map[uint32]string { CheckAuthenticationCodeRequestTypeID: "checkAuthenticationCode#edfe44aa", RequestQrCodeAuthenticationRequestTypeID: "requestQrCodeAuthentication#56fe3c4e", RegisterUserRequestTypeID: "registerUser#f9719e1d", + ResetAuthenticationEmailAddressRequestTypeID: "resetAuthenticationEmailAddress#e742722c", CheckAuthenticationPasswordRequestTypeID: "checkAuthenticationPassword#87424ba0", RequestAuthenticationPasswordRecoveryRequestTypeID: "requestAuthenticationPasswordRecovery#53152ab6", CheckAuthenticationPasswordRecoveryCodeRequestTypeID: "checkAuthenticationPasswordRecoveryCode#dc0a3be5", @@ -1793,6 +1796,7 @@ func TypesMap() map[uint32]string { AddLogMessageRequestTypeID: "addLogMessage#5f36cfec", GetUserSupportInfoRequestTypeID: "getUserSupportInfo#74a59305", SetUserSupportInfoRequestTypeID: "setUserSupportInfo#837c9803", + GetSupportNameRequestTypeID: "getSupportName#4d9e1562", TestCallEmptyRequestTypeID: "testCallEmpty#da9c4a16", TestCallStringRequestTypeID: "testCallString#98b74a2f", TestCallBytesRequestTypeID: "testCallBytes#d4215aa9", @@ -1812,1034 +1816,1036 @@ func TypesMap() map[uint32]string { // NamesMap returns mapping from type names to TL type ids. func NamesMap() map[string]uint32 { return map[string]uint32{ - "double": DoubleTypeID, - "string": StringTypeID, - "int32": Int32TypeID, - "int53": Int53TypeID, - "int64": Int64TypeID, - "bytes": BytesTypeID, - "boolFalse": BoolFalseTypeID, - "boolTrue": BoolTrueTypeID, - "error": ErrorTypeID, - "ok": OkTypeID, - "authenticationCodeTypeTelegramMessage": AuthenticationCodeTypeTelegramMessageTypeID, - "authenticationCodeTypeSms": AuthenticationCodeTypeSMSTypeID, - "authenticationCodeTypeCall": AuthenticationCodeTypeCallTypeID, - "authenticationCodeTypeFlashCall": AuthenticationCodeTypeFlashCallTypeID, - "authenticationCodeTypeMissedCall": AuthenticationCodeTypeMissedCallTypeID, - "authenticationCodeTypeFragment": AuthenticationCodeTypeFragmentTypeID, - "authenticationCodeTypeFirebaseAndroid": AuthenticationCodeTypeFirebaseAndroidTypeID, - "authenticationCodeTypeFirebaseIos": AuthenticationCodeTypeFirebaseIosTypeID, - "authenticationCodeInfo": AuthenticationCodeInfoTypeID, - "emailAddressAuthenticationCodeInfo": EmailAddressAuthenticationCodeInfoTypeID, - "emailAddressAuthenticationCode": EmailAddressAuthenticationCodeTypeID, - "emailAddressAuthenticationAppleId": EmailAddressAuthenticationAppleIDTypeID, - "emailAddressAuthenticationGoogleId": EmailAddressAuthenticationGoogleIDTypeID, - "textEntity": TextEntityTypeID, - "textEntities": TextEntitiesTypeID, - "formattedText": FormattedTextTypeID, - "termsOfService": TermsOfServiceTypeID, - "authorizationStateWaitTdlibParameters": AuthorizationStateWaitTdlibParametersTypeID, - "authorizationStateWaitPhoneNumber": AuthorizationStateWaitPhoneNumberTypeID, - "authorizationStateWaitEmailAddress": AuthorizationStateWaitEmailAddressTypeID, - "authorizationStateWaitEmailCode": AuthorizationStateWaitEmailCodeTypeID, - "authorizationStateWaitCode": AuthorizationStateWaitCodeTypeID, - "authorizationStateWaitOtherDeviceConfirmation": AuthorizationStateWaitOtherDeviceConfirmationTypeID, - "authorizationStateWaitRegistration": AuthorizationStateWaitRegistrationTypeID, - "authorizationStateWaitPassword": AuthorizationStateWaitPasswordTypeID, - "authorizationStateReady": AuthorizationStateReadyTypeID, - "authorizationStateLoggingOut": AuthorizationStateLoggingOutTypeID, - "authorizationStateClosing": AuthorizationStateClosingTypeID, - "authorizationStateClosed": AuthorizationStateClosedTypeID, - "passwordState": PasswordStateTypeID, - "recoveryEmailAddress": RecoveryEmailAddressTypeID, - "temporaryPasswordState": TemporaryPasswordStateTypeID, - "localFile": LocalFileTypeID, - "remoteFile": RemoteFileTypeID, - "file": FileTypeID, - "inputFileId": InputFileIDTypeID, - "inputFileRemote": InputFileRemoteTypeID, - "inputFileLocal": InputFileLocalTypeID, - "inputFileGenerated": InputFileGeneratedTypeID, - "photoSize": PhotoSizeTypeID, - "minithumbnail": MinithumbnailTypeID, - "thumbnailFormatJpeg": ThumbnailFormatJpegTypeID, - "thumbnailFormatGif": ThumbnailFormatGifTypeID, - "thumbnailFormatMpeg4": ThumbnailFormatMpeg4TypeID, - "thumbnailFormatPng": ThumbnailFormatPngTypeID, - "thumbnailFormatTgs": ThumbnailFormatTgsTypeID, - "thumbnailFormatWebm": ThumbnailFormatWebmTypeID, - "thumbnailFormatWebp": ThumbnailFormatWebpTypeID, - "thumbnail": ThumbnailTypeID, - "maskPointForehead": MaskPointForeheadTypeID, - "maskPointEyes": MaskPointEyesTypeID, - "maskPointMouth": MaskPointMouthTypeID, - "maskPointChin": MaskPointChinTypeID, - "maskPosition": MaskPositionTypeID, - "stickerFormatWebp": StickerFormatWebpTypeID, - "stickerFormatTgs": StickerFormatTgsTypeID, - "stickerFormatWebm": StickerFormatWebmTypeID, - "stickerTypeRegular": StickerTypeRegularTypeID, - "stickerTypeMask": StickerTypeMaskTypeID, - "stickerTypeCustomEmoji": StickerTypeCustomEmojiTypeID, - "stickerFullTypeRegular": StickerFullTypeRegularTypeID, - "stickerFullTypeMask": StickerFullTypeMaskTypeID, - "stickerFullTypeCustomEmoji": StickerFullTypeCustomEmojiTypeID, - "closedVectorPath": ClosedVectorPathTypeID, - "pollOption": PollOptionTypeID, - "pollTypeRegular": PollTypeRegularTypeID, - "pollTypeQuiz": PollTypeQuizTypeID, - "animation": AnimationTypeID, - "audio": AudioTypeID, - "document": DocumentTypeID, - "photo": PhotoTypeID, - "sticker": StickerTypeID, - "video": VideoTypeID, - "videoNote": VideoNoteTypeID, - "voiceNote": VoiceNoteTypeID, - "animatedEmoji": AnimatedEmojiTypeID, - "contact": ContactTypeID, - "location": LocationTypeID, - "venue": VenueTypeID, - "game": GameTypeID, - "webApp": WebAppTypeID, - "poll": PollTypeID, - "profilePhoto": ProfilePhotoTypeID, - "chatPhotoInfo": ChatPhotoInfoTypeID, - "userTypeRegular": UserTypeRegularTypeID, - "userTypeDeleted": UserTypeDeletedTypeID, - "userTypeBot": UserTypeBotTypeID, - "userTypeUnknown": UserTypeUnknownTypeID, - "botCommand": BotCommandTypeID, - "botCommands": BotCommandsTypeID, - "botMenuButton": BotMenuButtonTypeID, - "chatLocation": ChatLocationTypeID, - "chatPhotoStickerTypeRegularOrMask": ChatPhotoStickerTypeRegularOrMaskTypeID, - "chatPhotoStickerTypeCustomEmoji": ChatPhotoStickerTypeCustomEmojiTypeID, - "chatPhotoSticker": ChatPhotoStickerTypeID, - "animatedChatPhoto": AnimatedChatPhotoTypeID, - "chatPhoto": ChatPhotoTypeID, - "chatPhotos": ChatPhotosTypeID, - "inputChatPhotoPrevious": InputChatPhotoPreviousTypeID, - "inputChatPhotoStatic": InputChatPhotoStaticTypeID, - "inputChatPhotoAnimation": InputChatPhotoAnimationTypeID, - "inputChatPhotoSticker": InputChatPhotoStickerTypeID, - "chatPermissions": ChatPermissionsTypeID, - "chatAdministratorRights": ChatAdministratorRightsTypeID, - "premiumPaymentOption": PremiumPaymentOptionTypeID, - "premiumStatePaymentOption": PremiumStatePaymentOptionTypeID, - "emojiStatus": EmojiStatusTypeID, - "emojiStatuses": EmojiStatusesTypeID, - "usernames": UsernamesTypeID, - "user": UserTypeID, - "botInfo": BotInfoTypeID, - "userFullInfo": UserFullInfoTypeID, - "users": UsersTypeID, - "chatAdministrator": ChatAdministratorTypeID, - "chatAdministrators": ChatAdministratorsTypeID, - "chatMemberStatusCreator": ChatMemberStatusCreatorTypeID, - "chatMemberStatusAdministrator": ChatMemberStatusAdministratorTypeID, - "chatMemberStatusMember": ChatMemberStatusMemberTypeID, - "chatMemberStatusRestricted": ChatMemberStatusRestrictedTypeID, - "chatMemberStatusLeft": ChatMemberStatusLeftTypeID, - "chatMemberStatusBanned": ChatMemberStatusBannedTypeID, - "chatMember": ChatMemberTypeID, - "chatMembers": ChatMembersTypeID, - "chatMembersFilterContacts": ChatMembersFilterContactsTypeID, - "chatMembersFilterAdministrators": ChatMembersFilterAdministratorsTypeID, - "chatMembersFilterMembers": ChatMembersFilterMembersTypeID, - "chatMembersFilterMention": ChatMembersFilterMentionTypeID, - "chatMembersFilterRestricted": ChatMembersFilterRestrictedTypeID, - "chatMembersFilterBanned": ChatMembersFilterBannedTypeID, - "chatMembersFilterBots": ChatMembersFilterBotsTypeID, - "supergroupMembersFilterRecent": SupergroupMembersFilterRecentTypeID, - "supergroupMembersFilterContacts": SupergroupMembersFilterContactsTypeID, - "supergroupMembersFilterAdministrators": SupergroupMembersFilterAdministratorsTypeID, - "supergroupMembersFilterSearch": SupergroupMembersFilterSearchTypeID, - "supergroupMembersFilterRestricted": SupergroupMembersFilterRestrictedTypeID, - "supergroupMembersFilterBanned": SupergroupMembersFilterBannedTypeID, - "supergroupMembersFilterMention": SupergroupMembersFilterMentionTypeID, - "supergroupMembersFilterBots": SupergroupMembersFilterBotsTypeID, - "chatInviteLink": ChatInviteLinkTypeID, - "chatInviteLinks": ChatInviteLinksTypeID, - "chatInviteLinkCount": ChatInviteLinkCountTypeID, - "chatInviteLinkCounts": ChatInviteLinkCountsTypeID, - "chatInviteLinkMember": ChatInviteLinkMemberTypeID, - "chatInviteLinkMembers": ChatInviteLinkMembersTypeID, - "chatInviteLinkInfo": ChatInviteLinkInfoTypeID, - "chatJoinRequest": ChatJoinRequestTypeID, - "chatJoinRequests": ChatJoinRequestsTypeID, - "chatJoinRequestsInfo": ChatJoinRequestsInfoTypeID, - "basicGroup": BasicGroupTypeID, - "basicGroupFullInfo": BasicGroupFullInfoTypeID, - "supergroup": SupergroupTypeID, - "supergroupFullInfo": SupergroupFullInfoTypeID, - "secretChatStatePending": SecretChatStatePendingTypeID, - "secretChatStateReady": SecretChatStateReadyTypeID, - "secretChatStateClosed": SecretChatStateClosedTypeID, - "secretChat": SecretChatTypeID, - "messageSenderUser": MessageSenderUserTypeID, - "messageSenderChat": MessageSenderChatTypeID, - "messageSenders": MessageSendersTypeID, - "chatMessageSender": ChatMessageSenderTypeID, - "chatMessageSenders": ChatMessageSendersTypeID, - "messageViewer": MessageViewerTypeID, - "messageViewers": MessageViewersTypeID, - "messageForwardOriginUser": MessageForwardOriginUserTypeID, - "messageForwardOriginChat": MessageForwardOriginChatTypeID, - "messageForwardOriginHiddenUser": MessageForwardOriginHiddenUserTypeID, - "messageForwardOriginChannel": MessageForwardOriginChannelTypeID, - "messageForwardOriginMessageImport": MessageForwardOriginMessageImportTypeID, - "reactionTypeEmoji": ReactionTypeEmojiTypeID, - "reactionTypeCustomEmoji": ReactionTypeCustomEmojiTypeID, - "messageForwardInfo": MessageForwardInfoTypeID, - "messageReplyInfo": MessageReplyInfoTypeID, - "messageReaction": MessageReactionTypeID, - "messageInteractionInfo": MessageInteractionInfoTypeID, - "unreadReaction": UnreadReactionTypeID, - "messageSendingStatePending": MessageSendingStatePendingTypeID, - "messageSendingStateFailed": MessageSendingStateFailedTypeID, - "message": MessageTypeID, - "messages": MessagesTypeID, - "foundMessages": FoundMessagesTypeID, - "foundChatMessages": FoundChatMessagesTypeID, - "messagePosition": MessagePositionTypeID, - "messagePositions": MessagePositionsTypeID, - "messageCalendarDay": MessageCalendarDayTypeID, - "messageCalendar": MessageCalendarTypeID, - "messageSourceChatHistory": MessageSourceChatHistoryTypeID, - "messageSourceMessageThreadHistory": MessageSourceMessageThreadHistoryTypeID, - "messageSourceForumTopicHistory": MessageSourceForumTopicHistoryTypeID, - "messageSourceHistoryPreview": MessageSourceHistoryPreviewTypeID, - "messageSourceChatList": MessageSourceChatListTypeID, - "messageSourceSearch": MessageSourceSearchTypeID, - "messageSourceChatEventLog": MessageSourceChatEventLogTypeID, - "messageSourceNotification": MessageSourceNotificationTypeID, - "messageSourceOther": MessageSourceOtherTypeID, - "sponsoredMessage": SponsoredMessageTypeID, - "sponsoredMessages": SponsoredMessagesTypeID, - "fileDownload": FileDownloadTypeID, - "downloadedFileCounts": DownloadedFileCountsTypeID, - "foundFileDownloads": FoundFileDownloadsTypeID, - "notificationSettingsScopePrivateChats": NotificationSettingsScopePrivateChatsTypeID, - "notificationSettingsScopeGroupChats": NotificationSettingsScopeGroupChatsTypeID, - "notificationSettingsScopeChannelChats": NotificationSettingsScopeChannelChatsTypeID, - "chatNotificationSettings": ChatNotificationSettingsTypeID, - "scopeNotificationSettings": ScopeNotificationSettingsTypeID, - "draftMessage": DraftMessageTypeID, - "chatTypePrivate": ChatTypePrivateTypeID, - "chatTypeBasicGroup": ChatTypeBasicGroupTypeID, - "chatTypeSupergroup": ChatTypeSupergroupTypeID, - "chatTypeSecret": ChatTypeSecretTypeID, - "chatFilter": ChatFilterTypeID, - "chatFilterInfo": ChatFilterInfoTypeID, - "recommendedChatFilter": RecommendedChatFilterTypeID, - "recommendedChatFilters": RecommendedChatFiltersTypeID, - "chatListMain": ChatListMainTypeID, - "chatListArchive": ChatListArchiveTypeID, - "chatListFilter": ChatListFilterTypeID, - "chatLists": ChatListsTypeID, - "chatSourceMtprotoProxy": ChatSourceMtprotoProxyTypeID, - "chatSourcePublicServiceAnnouncement": ChatSourcePublicServiceAnnouncementTypeID, - "chatPosition": ChatPositionTypeID, - "chatAvailableReactionsAll": ChatAvailableReactionsAllTypeID, - "chatAvailableReactionsSome": ChatAvailableReactionsSomeTypeID, - "videoChat": VideoChatTypeID, - "chat": ChatTypeID, - "chats": ChatsTypeID, - "chatNearby": ChatNearbyTypeID, - "chatsNearby": ChatsNearbyTypeID, - "publicChatTypeHasUsername": PublicChatTypeHasUsernameTypeID, - "publicChatTypeIsLocationBased": PublicChatTypeIsLocationBasedTypeID, - "chatActionBarReportSpam": ChatActionBarReportSpamTypeID, - "chatActionBarReportUnrelatedLocation": ChatActionBarReportUnrelatedLocationTypeID, - "chatActionBarInviteMembers": ChatActionBarInviteMembersTypeID, - "chatActionBarReportAddBlock": ChatActionBarReportAddBlockTypeID, - "chatActionBarAddContact": ChatActionBarAddContactTypeID, - "chatActionBarSharePhoneNumber": ChatActionBarSharePhoneNumberTypeID, - "chatActionBarJoinRequest": ChatActionBarJoinRequestTypeID, - "keyboardButtonTypeText": KeyboardButtonTypeTextTypeID, - "keyboardButtonTypeRequestPhoneNumber": KeyboardButtonTypeRequestPhoneNumberTypeID, - "keyboardButtonTypeRequestLocation": KeyboardButtonTypeRequestLocationTypeID, - "keyboardButtonTypeRequestPoll": KeyboardButtonTypeRequestPollTypeID, - "keyboardButtonTypeRequestUser": KeyboardButtonTypeRequestUserTypeID, - "keyboardButtonTypeRequestChat": KeyboardButtonTypeRequestChatTypeID, - "keyboardButtonTypeWebApp": KeyboardButtonTypeWebAppTypeID, - "keyboardButton": KeyboardButtonTypeID, - "inlineKeyboardButtonTypeUrl": InlineKeyboardButtonTypeURLTypeID, - "inlineKeyboardButtonTypeLoginUrl": InlineKeyboardButtonTypeLoginURLTypeID, - "inlineKeyboardButtonTypeWebApp": InlineKeyboardButtonTypeWebAppTypeID, - "inlineKeyboardButtonTypeCallback": InlineKeyboardButtonTypeCallbackTypeID, - "inlineKeyboardButtonTypeCallbackWithPassword": InlineKeyboardButtonTypeCallbackWithPasswordTypeID, - "inlineKeyboardButtonTypeCallbackGame": InlineKeyboardButtonTypeCallbackGameTypeID, - "inlineKeyboardButtonTypeSwitchInline": InlineKeyboardButtonTypeSwitchInlineTypeID, - "inlineKeyboardButtonTypeBuy": InlineKeyboardButtonTypeBuyTypeID, - "inlineKeyboardButtonTypeUser": InlineKeyboardButtonTypeUserTypeID, - "inlineKeyboardButton": InlineKeyboardButtonTypeID, - "replyMarkupRemoveKeyboard": ReplyMarkupRemoveKeyboardTypeID, - "replyMarkupForceReply": ReplyMarkupForceReplyTypeID, - "replyMarkupShowKeyboard": ReplyMarkupShowKeyboardTypeID, - "replyMarkupInlineKeyboard": ReplyMarkupInlineKeyboardTypeID, - "loginUrlInfoOpen": LoginURLInfoOpenTypeID, - "loginUrlInfoRequestConfirmation": LoginURLInfoRequestConfirmationTypeID, - "foundWebApp": FoundWebAppTypeID, - "webAppInfo": WebAppInfoTypeID, - "messageThreadInfo": MessageThreadInfoTypeID, - "forumTopicIcon": ForumTopicIconTypeID, - "forumTopicInfo": ForumTopicInfoTypeID, - "forumTopic": ForumTopicTypeID, - "forumTopics": ForumTopicsTypeID, - "richTextPlain": RichTextPlainTypeID, - "richTextBold": RichTextBoldTypeID, - "richTextItalic": RichTextItalicTypeID, - "richTextUnderline": RichTextUnderlineTypeID, - "richTextStrikethrough": RichTextStrikethroughTypeID, - "richTextFixed": RichTextFixedTypeID, - "richTextUrl": RichTextURLTypeID, - "richTextEmailAddress": RichTextEmailAddressTypeID, - "richTextSubscript": RichTextSubscriptTypeID, - "richTextSuperscript": RichTextSuperscriptTypeID, - "richTextMarked": RichTextMarkedTypeID, - "richTextPhoneNumber": RichTextPhoneNumberTypeID, - "richTextIcon": RichTextIconTypeID, - "richTextReference": RichTextReferenceTypeID, - "richTextAnchor": RichTextAnchorTypeID, - "richTextAnchorLink": RichTextAnchorLinkTypeID, - "richTexts": RichTextsTypeID, - "pageBlockCaption": PageBlockCaptionTypeID, - "pageBlockListItem": PageBlockListItemTypeID, - "pageBlockHorizontalAlignmentLeft": PageBlockHorizontalAlignmentLeftTypeID, - "pageBlockHorizontalAlignmentCenter": PageBlockHorizontalAlignmentCenterTypeID, - "pageBlockHorizontalAlignmentRight": PageBlockHorizontalAlignmentRightTypeID, - "pageBlockVerticalAlignmentTop": PageBlockVerticalAlignmentTopTypeID, - "pageBlockVerticalAlignmentMiddle": PageBlockVerticalAlignmentMiddleTypeID, - "pageBlockVerticalAlignmentBottom": PageBlockVerticalAlignmentBottomTypeID, - "pageBlockTableCell": PageBlockTableCellTypeID, - "pageBlockRelatedArticle": PageBlockRelatedArticleTypeID, - "pageBlockTitle": PageBlockTitleTypeID, - "pageBlockSubtitle": PageBlockSubtitleTypeID, - "pageBlockAuthorDate": PageBlockAuthorDateTypeID, - "pageBlockHeader": PageBlockHeaderTypeID, - "pageBlockSubheader": PageBlockSubheaderTypeID, - "pageBlockKicker": PageBlockKickerTypeID, - "pageBlockParagraph": PageBlockParagraphTypeID, - "pageBlockPreformatted": PageBlockPreformattedTypeID, - "pageBlockFooter": PageBlockFooterTypeID, - "pageBlockDivider": PageBlockDividerTypeID, - "pageBlockAnchor": PageBlockAnchorTypeID, - "pageBlockList": PageBlockListTypeID, - "pageBlockBlockQuote": PageBlockBlockQuoteTypeID, - "pageBlockPullQuote": PageBlockPullQuoteTypeID, - "pageBlockAnimation": PageBlockAnimationTypeID, - "pageBlockAudio": PageBlockAudioTypeID, - "pageBlockPhoto": PageBlockPhotoTypeID, - "pageBlockVideo": PageBlockVideoTypeID, - "pageBlockVoiceNote": PageBlockVoiceNoteTypeID, - "pageBlockCover": PageBlockCoverTypeID, - "pageBlockEmbedded": PageBlockEmbeddedTypeID, - "pageBlockEmbeddedPost": PageBlockEmbeddedPostTypeID, - "pageBlockCollage": PageBlockCollageTypeID, - "pageBlockSlideshow": PageBlockSlideshowTypeID, - "pageBlockChatLink": PageBlockChatLinkTypeID, - "pageBlockTable": PageBlockTableTypeID, - "pageBlockDetails": PageBlockDetailsTypeID, - "pageBlockRelatedArticles": PageBlockRelatedArticlesTypeID, - "pageBlockMap": PageBlockMapTypeID, - "webPageInstantView": WebPageInstantViewTypeID, - "webPage": WebPageTypeID, - "countryInfo": CountryInfoTypeID, - "countries": CountriesTypeID, - "phoneNumberInfo": PhoneNumberInfoTypeID, - "bankCardActionOpenUrl": BankCardActionOpenURLTypeID, - "bankCardInfo": BankCardInfoTypeID, - "address": AddressTypeID, - "themeParameters": ThemeParametersTypeID, - "labeledPricePart": LabeledPricePartTypeID, - "invoice": InvoiceTypeID, - "orderInfo": OrderInfoTypeID, - "shippingOption": ShippingOptionTypeID, - "savedCredentials": SavedCredentialsTypeID, - "inputCredentialsSaved": InputCredentialsSavedTypeID, - "inputCredentialsNew": InputCredentialsNewTypeID, - "inputCredentialsApplePay": InputCredentialsApplePayTypeID, - "inputCredentialsGooglePay": InputCredentialsGooglePayTypeID, - "paymentProviderSmartGlocal": PaymentProviderSmartGlocalTypeID, - "paymentProviderStripe": PaymentProviderStripeTypeID, - "paymentProviderOther": PaymentProviderOtherTypeID, - "paymentOption": PaymentOptionTypeID, - "paymentForm": PaymentFormTypeID, - "validatedOrderInfo": ValidatedOrderInfoTypeID, - "paymentResult": PaymentResultTypeID, - "paymentReceipt": PaymentReceiptTypeID, - "inputInvoiceMessage": InputInvoiceMessageTypeID, - "inputInvoiceName": InputInvoiceNameTypeID, - "messageExtendedMediaPreview": MessageExtendedMediaPreviewTypeID, - "messageExtendedMediaPhoto": MessageExtendedMediaPhotoTypeID, - "messageExtendedMediaVideo": MessageExtendedMediaVideoTypeID, - "messageExtendedMediaUnsupported": MessageExtendedMediaUnsupportedTypeID, - "datedFile": DatedFileTypeID, - "passportElementTypePersonalDetails": PassportElementTypePersonalDetailsTypeID, - "passportElementTypePassport": PassportElementTypePassportTypeID, - "passportElementTypeDriverLicense": PassportElementTypeDriverLicenseTypeID, - "passportElementTypeIdentityCard": PassportElementTypeIdentityCardTypeID, - "passportElementTypeInternalPassport": PassportElementTypeInternalPassportTypeID, - "passportElementTypeAddress": PassportElementTypeAddressTypeID, - "passportElementTypeUtilityBill": PassportElementTypeUtilityBillTypeID, - "passportElementTypeBankStatement": PassportElementTypeBankStatementTypeID, - "passportElementTypeRentalAgreement": PassportElementTypeRentalAgreementTypeID, - "passportElementTypePassportRegistration": PassportElementTypePassportRegistrationTypeID, - "passportElementTypeTemporaryRegistration": PassportElementTypeTemporaryRegistrationTypeID, - "passportElementTypePhoneNumber": PassportElementTypePhoneNumberTypeID, - "passportElementTypeEmailAddress": PassportElementTypeEmailAddressTypeID, - "date": DateTypeID, - "personalDetails": PersonalDetailsTypeID, - "identityDocument": IdentityDocumentTypeID, - "inputIdentityDocument": InputIdentityDocumentTypeID, - "personalDocument": PersonalDocumentTypeID, - "inputPersonalDocument": InputPersonalDocumentTypeID, - "passportElementPersonalDetails": PassportElementPersonalDetailsTypeID, - "passportElementPassport": PassportElementPassportTypeID, - "passportElementDriverLicense": PassportElementDriverLicenseTypeID, - "passportElementIdentityCard": PassportElementIdentityCardTypeID, - "passportElementInternalPassport": PassportElementInternalPassportTypeID, - "passportElementAddress": PassportElementAddressTypeID, - "passportElementUtilityBill": PassportElementUtilityBillTypeID, - "passportElementBankStatement": PassportElementBankStatementTypeID, - "passportElementRentalAgreement": PassportElementRentalAgreementTypeID, - "passportElementPassportRegistration": PassportElementPassportRegistrationTypeID, - "passportElementTemporaryRegistration": PassportElementTemporaryRegistrationTypeID, - "passportElementPhoneNumber": PassportElementPhoneNumberTypeID, - "passportElementEmailAddress": PassportElementEmailAddressTypeID, - "inputPassportElementPersonalDetails": InputPassportElementPersonalDetailsTypeID, - "inputPassportElementPassport": InputPassportElementPassportTypeID, - "inputPassportElementDriverLicense": InputPassportElementDriverLicenseTypeID, - "inputPassportElementIdentityCard": InputPassportElementIdentityCardTypeID, - "inputPassportElementInternalPassport": InputPassportElementInternalPassportTypeID, - "inputPassportElementAddress": InputPassportElementAddressTypeID, - "inputPassportElementUtilityBill": InputPassportElementUtilityBillTypeID, - "inputPassportElementBankStatement": InputPassportElementBankStatementTypeID, - "inputPassportElementRentalAgreement": InputPassportElementRentalAgreementTypeID, - "inputPassportElementPassportRegistration": InputPassportElementPassportRegistrationTypeID, - "inputPassportElementTemporaryRegistration": InputPassportElementTemporaryRegistrationTypeID, - "inputPassportElementPhoneNumber": InputPassportElementPhoneNumberTypeID, - "inputPassportElementEmailAddress": InputPassportElementEmailAddressTypeID, - "passportElements": PassportElementsTypeID, - "passportElementErrorSourceUnspecified": PassportElementErrorSourceUnspecifiedTypeID, - "passportElementErrorSourceDataField": PassportElementErrorSourceDataFieldTypeID, - "passportElementErrorSourceFrontSide": PassportElementErrorSourceFrontSideTypeID, - "passportElementErrorSourceReverseSide": PassportElementErrorSourceReverseSideTypeID, - "passportElementErrorSourceSelfie": PassportElementErrorSourceSelfieTypeID, - "passportElementErrorSourceTranslationFile": PassportElementErrorSourceTranslationFileTypeID, - "passportElementErrorSourceTranslationFiles": PassportElementErrorSourceTranslationFilesTypeID, - "passportElementErrorSourceFile": PassportElementErrorSourceFileTypeID, - "passportElementErrorSourceFiles": PassportElementErrorSourceFilesTypeID, - "passportElementError": PassportElementErrorTypeID, - "passportSuitableElement": PassportSuitableElementTypeID, - "passportRequiredElement": PassportRequiredElementTypeID, - "passportAuthorizationForm": PassportAuthorizationFormTypeID, - "passportElementsWithErrors": PassportElementsWithErrorsTypeID, - "encryptedCredentials": EncryptedCredentialsTypeID, - "encryptedPassportElement": EncryptedPassportElementTypeID, - "inputPassportElementErrorSourceUnspecified": InputPassportElementErrorSourceUnspecifiedTypeID, - "inputPassportElementErrorSourceDataField": InputPassportElementErrorSourceDataFieldTypeID, - "inputPassportElementErrorSourceFrontSide": InputPassportElementErrorSourceFrontSideTypeID, - "inputPassportElementErrorSourceReverseSide": InputPassportElementErrorSourceReverseSideTypeID, - "inputPassportElementErrorSourceSelfie": InputPassportElementErrorSourceSelfieTypeID, - "inputPassportElementErrorSourceTranslationFile": InputPassportElementErrorSourceTranslationFileTypeID, - "inputPassportElementErrorSourceTranslationFiles": InputPassportElementErrorSourceTranslationFilesTypeID, - "inputPassportElementErrorSourceFile": InputPassportElementErrorSourceFileTypeID, - "inputPassportElementErrorSourceFiles": InputPassportElementErrorSourceFilesTypeID, - "inputPassportElementError": InputPassportElementErrorTypeID, - "messageText": MessageTextTypeID, - "messageAnimation": MessageAnimationTypeID, - "messageAudio": MessageAudioTypeID, - "messageDocument": MessageDocumentTypeID, - "messagePhoto": MessagePhotoTypeID, - "messageExpiredPhoto": MessageExpiredPhotoTypeID, - "messageSticker": MessageStickerTypeID, - "messageVideo": MessageVideoTypeID, - "messageExpiredVideo": MessageExpiredVideoTypeID, - "messageVideoNote": MessageVideoNoteTypeID, - "messageVoiceNote": MessageVoiceNoteTypeID, - "messageLocation": MessageLocationTypeID, - "messageVenue": MessageVenueTypeID, - "messageContact": MessageContactTypeID, - "messageAnimatedEmoji": MessageAnimatedEmojiTypeID, - "messageDice": MessageDiceTypeID, - "messageGame": MessageGameTypeID, - "messagePoll": MessagePollTypeID, - "messageInvoice": MessageInvoiceTypeID, - "messageCall": MessageCallTypeID, - "messageVideoChatScheduled": MessageVideoChatScheduledTypeID, - "messageVideoChatStarted": MessageVideoChatStartedTypeID, - "messageVideoChatEnded": MessageVideoChatEndedTypeID, - "messageInviteVideoChatParticipants": MessageInviteVideoChatParticipantsTypeID, - "messageBasicGroupChatCreate": MessageBasicGroupChatCreateTypeID, - "messageSupergroupChatCreate": MessageSupergroupChatCreateTypeID, - "messageChatChangeTitle": MessageChatChangeTitleTypeID, - "messageChatChangePhoto": MessageChatChangePhotoTypeID, - "messageChatDeletePhoto": MessageChatDeletePhotoTypeID, - "messageChatAddMembers": MessageChatAddMembersTypeID, - "messageChatJoinByLink": MessageChatJoinByLinkTypeID, - "messageChatJoinByRequest": MessageChatJoinByRequestTypeID, - "messageChatDeleteMember": MessageChatDeleteMemberTypeID, - "messageChatUpgradeTo": MessageChatUpgradeToTypeID, - "messageChatUpgradeFrom": MessageChatUpgradeFromTypeID, - "messagePinMessage": MessagePinMessageTypeID, - "messageScreenshotTaken": MessageScreenshotTakenTypeID, - "messageChatSetTheme": MessageChatSetThemeTypeID, - "messageChatSetMessageAutoDeleteTime": MessageChatSetMessageAutoDeleteTimeTypeID, - "messageForumTopicCreated": MessageForumTopicCreatedTypeID, - "messageForumTopicEdited": MessageForumTopicEditedTypeID, - "messageForumTopicIsClosedToggled": MessageForumTopicIsClosedToggledTypeID, - "messageForumTopicIsHiddenToggled": MessageForumTopicIsHiddenToggledTypeID, - "messageSuggestProfilePhoto": MessageSuggestProfilePhotoTypeID, - "messageCustomServiceAction": MessageCustomServiceActionTypeID, - "messageGameScore": MessageGameScoreTypeID, - "messagePaymentSuccessful": MessagePaymentSuccessfulTypeID, - "messagePaymentSuccessfulBot": MessagePaymentSuccessfulBotTypeID, - "messageGiftedPremium": MessageGiftedPremiumTypeID, - "messageContactRegistered": MessageContactRegisteredTypeID, - "messageUserShared": MessageUserSharedTypeID, - "messageChatShared": MessageChatSharedTypeID, - "messageWebsiteConnected": MessageWebsiteConnectedTypeID, - "messageBotWriteAccessAllowed": MessageBotWriteAccessAllowedTypeID, - "messageWebAppDataSent": MessageWebAppDataSentTypeID, - "messageWebAppDataReceived": MessageWebAppDataReceivedTypeID, - "messagePassportDataSent": MessagePassportDataSentTypeID, - "messagePassportDataReceived": MessagePassportDataReceivedTypeID, - "messageProximityAlertTriggered": MessageProximityAlertTriggeredTypeID, - "messageUnsupported": MessageUnsupportedTypeID, - "textEntityTypeMention": TextEntityTypeMentionTypeID, - "textEntityTypeHashtag": TextEntityTypeHashtagTypeID, - "textEntityTypeCashtag": TextEntityTypeCashtagTypeID, - "textEntityTypeBotCommand": TextEntityTypeBotCommandTypeID, - "textEntityTypeUrl": TextEntityTypeURLTypeID, - "textEntityTypeEmailAddress": TextEntityTypeEmailAddressTypeID, - "textEntityTypePhoneNumber": TextEntityTypePhoneNumberTypeID, - "textEntityTypeBankCardNumber": TextEntityTypeBankCardNumberTypeID, - "textEntityTypeBold": TextEntityTypeBoldTypeID, - "textEntityTypeItalic": TextEntityTypeItalicTypeID, - "textEntityTypeUnderline": TextEntityTypeUnderlineTypeID, - "textEntityTypeStrikethrough": TextEntityTypeStrikethroughTypeID, - "textEntityTypeSpoiler": TextEntityTypeSpoilerTypeID, - "textEntityTypeCode": TextEntityTypeCodeTypeID, - "textEntityTypePre": TextEntityTypePreTypeID, - "textEntityTypePreCode": TextEntityTypePreCodeTypeID, - "textEntityTypeTextUrl": TextEntityTypeTextURLTypeID, - "textEntityTypeMentionName": TextEntityTypeMentionNameTypeID, - "textEntityTypeCustomEmoji": TextEntityTypeCustomEmojiTypeID, - "textEntityTypeMediaTimestamp": TextEntityTypeMediaTimestampTypeID, - "inputThumbnail": InputThumbnailTypeID, - "messageSchedulingStateSendAtDate": MessageSchedulingStateSendAtDateTypeID, - "messageSchedulingStateSendWhenOnline": MessageSchedulingStateSendWhenOnlineTypeID, - "messageSendOptions": MessageSendOptionsTypeID, - "messageCopyOptions": MessageCopyOptionsTypeID, - "inputMessageText": InputMessageTextTypeID, - "inputMessageAnimation": InputMessageAnimationTypeID, - "inputMessageAudio": InputMessageAudioTypeID, - "inputMessageDocument": InputMessageDocumentTypeID, - "inputMessagePhoto": InputMessagePhotoTypeID, - "inputMessageSticker": InputMessageStickerTypeID, - "inputMessageVideo": InputMessageVideoTypeID, - "inputMessageVideoNote": InputMessageVideoNoteTypeID, - "inputMessageVoiceNote": InputMessageVoiceNoteTypeID, - "inputMessageLocation": InputMessageLocationTypeID, - "inputMessageVenue": InputMessageVenueTypeID, - "inputMessageContact": InputMessageContactTypeID, - "inputMessageDice": InputMessageDiceTypeID, - "inputMessageGame": InputMessageGameTypeID, - "inputMessageInvoice": InputMessageInvoiceTypeID, - "inputMessagePoll": InputMessagePollTypeID, - "inputMessageForwarded": InputMessageForwardedTypeID, - "searchMessagesFilterEmpty": SearchMessagesFilterEmptyTypeID, - "searchMessagesFilterAnimation": SearchMessagesFilterAnimationTypeID, - "searchMessagesFilterAudio": SearchMessagesFilterAudioTypeID, - "searchMessagesFilterDocument": SearchMessagesFilterDocumentTypeID, - "searchMessagesFilterPhoto": SearchMessagesFilterPhotoTypeID, - "searchMessagesFilterVideo": SearchMessagesFilterVideoTypeID, - "searchMessagesFilterVoiceNote": SearchMessagesFilterVoiceNoteTypeID, - "searchMessagesFilterPhotoAndVideo": SearchMessagesFilterPhotoAndVideoTypeID, - "searchMessagesFilterUrl": SearchMessagesFilterURLTypeID, - "searchMessagesFilterChatPhoto": SearchMessagesFilterChatPhotoTypeID, - "searchMessagesFilterVideoNote": SearchMessagesFilterVideoNoteTypeID, - "searchMessagesFilterVoiceAndVideoNote": SearchMessagesFilterVoiceAndVideoNoteTypeID, - "searchMessagesFilterMention": SearchMessagesFilterMentionTypeID, - "searchMessagesFilterUnreadMention": SearchMessagesFilterUnreadMentionTypeID, - "searchMessagesFilterUnreadReaction": SearchMessagesFilterUnreadReactionTypeID, - "searchMessagesFilterFailedToSend": SearchMessagesFilterFailedToSendTypeID, - "searchMessagesFilterPinned": SearchMessagesFilterPinnedTypeID, - "chatActionTyping": ChatActionTypingTypeID, - "chatActionRecordingVideo": ChatActionRecordingVideoTypeID, - "chatActionUploadingVideo": ChatActionUploadingVideoTypeID, - "chatActionRecordingVoiceNote": ChatActionRecordingVoiceNoteTypeID, - "chatActionUploadingVoiceNote": ChatActionUploadingVoiceNoteTypeID, - "chatActionUploadingPhoto": ChatActionUploadingPhotoTypeID, - "chatActionUploadingDocument": ChatActionUploadingDocumentTypeID, - "chatActionChoosingSticker": ChatActionChoosingStickerTypeID, - "chatActionChoosingLocation": ChatActionChoosingLocationTypeID, - "chatActionChoosingContact": ChatActionChoosingContactTypeID, - "chatActionStartPlayingGame": ChatActionStartPlayingGameTypeID, - "chatActionRecordingVideoNote": ChatActionRecordingVideoNoteTypeID, - "chatActionUploadingVideoNote": ChatActionUploadingVideoNoteTypeID, - "chatActionWatchingAnimations": ChatActionWatchingAnimationsTypeID, - "chatActionCancel": ChatActionCancelTypeID, - "userStatusEmpty": UserStatusEmptyTypeID, - "userStatusOnline": UserStatusOnlineTypeID, - "userStatusOffline": UserStatusOfflineTypeID, - "userStatusRecently": UserStatusRecentlyTypeID, - "userStatusLastWeek": UserStatusLastWeekTypeID, - "userStatusLastMonth": UserStatusLastMonthTypeID, - "stickers": StickersTypeID, - "emojis": EmojisTypeID, - "stickerSet": StickerSetTypeID, - "stickerSetInfo": StickerSetInfoTypeID, - "stickerSets": StickerSetsTypeID, - "trendingStickerSets": TrendingStickerSetsTypeID, - "emojiCategory": EmojiCategoryTypeID, - "emojiCategories": EmojiCategoriesTypeID, - "emojiCategoryTypeDefault": EmojiCategoryTypeDefaultTypeID, - "emojiCategoryTypeEmojiStatus": EmojiCategoryTypeEmojiStatusTypeID, - "emojiCategoryTypeChatPhoto": EmojiCategoryTypeChatPhotoTypeID, - "callDiscardReasonEmpty": CallDiscardReasonEmptyTypeID, - "callDiscardReasonMissed": CallDiscardReasonMissedTypeID, - "callDiscardReasonDeclined": CallDiscardReasonDeclinedTypeID, - "callDiscardReasonDisconnected": CallDiscardReasonDisconnectedTypeID, - "callDiscardReasonHungUp": CallDiscardReasonHungUpTypeID, - "callProtocol": CallProtocolTypeID, - "callServerTypeTelegramReflector": CallServerTypeTelegramReflectorTypeID, - "callServerTypeWebrtc": CallServerTypeWebrtcTypeID, - "callServer": CallServerTypeID, - "callId": CallIDTypeID, - "groupCallId": GroupCallIDTypeID, - "callStatePending": CallStatePendingTypeID, - "callStateExchangingKeys": CallStateExchangingKeysTypeID, - "callStateReady": CallStateReadyTypeID, - "callStateHangingUp": CallStateHangingUpTypeID, - "callStateDiscarded": CallStateDiscardedTypeID, - "callStateError": CallStateErrorTypeID, - "groupCallVideoQualityThumbnail": GroupCallVideoQualityThumbnailTypeID, - "groupCallVideoQualityMedium": GroupCallVideoQualityMediumTypeID, - "groupCallVideoQualityFull": GroupCallVideoQualityFullTypeID, - "groupCallStream": GroupCallStreamTypeID, - "groupCallStreams": GroupCallStreamsTypeID, - "rtmpUrl": RtmpURLTypeID, - "groupCallRecentSpeaker": GroupCallRecentSpeakerTypeID, - "groupCall": GroupCallTypeID, - "groupCallVideoSourceGroup": GroupCallVideoSourceGroupTypeID, - "groupCallParticipantVideoInfo": GroupCallParticipantVideoInfoTypeID, - "groupCallParticipant": GroupCallParticipantTypeID, - "callProblemEcho": CallProblemEchoTypeID, - "callProblemNoise": CallProblemNoiseTypeID, - "callProblemInterruptions": CallProblemInterruptionsTypeID, - "callProblemDistortedSpeech": CallProblemDistortedSpeechTypeID, - "callProblemSilentLocal": CallProblemSilentLocalTypeID, - "callProblemSilentRemote": CallProblemSilentRemoteTypeID, - "callProblemDropped": CallProblemDroppedTypeID, - "callProblemDistortedVideo": CallProblemDistortedVideoTypeID, - "callProblemPixelatedVideo": CallProblemPixelatedVideoTypeID, - "call": CallTypeID, - "firebaseAuthenticationSettingsAndroid": FirebaseAuthenticationSettingsAndroidTypeID, - "firebaseAuthenticationSettingsIos": FirebaseAuthenticationSettingsIosTypeID, - "phoneNumberAuthenticationSettings": PhoneNumberAuthenticationSettingsTypeID, - "addedReaction": AddedReactionTypeID, - "addedReactions": AddedReactionsTypeID, - "availableReaction": AvailableReactionTypeID, - "availableReactions": AvailableReactionsTypeID, - "emojiReaction": EmojiReactionTypeID, - "animations": AnimationsTypeID, - "diceStickersRegular": DiceStickersRegularTypeID, - "diceStickersSlotMachine": DiceStickersSlotMachineTypeID, - "importedContacts": ImportedContactsTypeID, - "speechRecognitionResultPending": SpeechRecognitionResultPendingTypeID, - "speechRecognitionResultText": SpeechRecognitionResultTextTypeID, - "speechRecognitionResultError": SpeechRecognitionResultErrorTypeID, - "attachmentMenuBotColor": AttachmentMenuBotColorTypeID, - "attachmentMenuBot": AttachmentMenuBotTypeID, - "sentWebAppMessage": SentWebAppMessageTypeID, - "httpUrl": HTTPURLTypeID, - "userLink": UserLinkTypeID, - "inputInlineQueryResultAnimation": InputInlineQueryResultAnimationTypeID, - "inputInlineQueryResultArticle": InputInlineQueryResultArticleTypeID, - "inputInlineQueryResultAudio": InputInlineQueryResultAudioTypeID, - "inputInlineQueryResultContact": InputInlineQueryResultContactTypeID, - "inputInlineQueryResultDocument": InputInlineQueryResultDocumentTypeID, - "inputInlineQueryResultGame": InputInlineQueryResultGameTypeID, - "inputInlineQueryResultLocation": InputInlineQueryResultLocationTypeID, - "inputInlineQueryResultPhoto": InputInlineQueryResultPhotoTypeID, - "inputInlineQueryResultSticker": InputInlineQueryResultStickerTypeID, - "inputInlineQueryResultVenue": InputInlineQueryResultVenueTypeID, - "inputInlineQueryResultVideo": InputInlineQueryResultVideoTypeID, - "inputInlineQueryResultVoiceNote": InputInlineQueryResultVoiceNoteTypeID, - "inlineQueryResultArticle": InlineQueryResultArticleTypeID, - "inlineQueryResultContact": InlineQueryResultContactTypeID, - "inlineQueryResultLocation": InlineQueryResultLocationTypeID, - "inlineQueryResultVenue": InlineQueryResultVenueTypeID, - "inlineQueryResultGame": InlineQueryResultGameTypeID, - "inlineQueryResultAnimation": InlineQueryResultAnimationTypeID, - "inlineQueryResultAudio": InlineQueryResultAudioTypeID, - "inlineQueryResultDocument": InlineQueryResultDocumentTypeID, - "inlineQueryResultPhoto": InlineQueryResultPhotoTypeID, - "inlineQueryResultSticker": InlineQueryResultStickerTypeID, - "inlineQueryResultVideo": InlineQueryResultVideoTypeID, - "inlineQueryResultVoiceNote": InlineQueryResultVoiceNoteTypeID, - "inlineQueryResultsButtonTypeStartBot": InlineQueryResultsButtonTypeStartBotTypeID, - "inlineQueryResultsButtonTypeWebApp": InlineQueryResultsButtonTypeWebAppTypeID, - "inlineQueryResultsButton": InlineQueryResultsButtonTypeID, - "inlineQueryResults": InlineQueryResultsTypeID, - "callbackQueryPayloadData": CallbackQueryPayloadDataTypeID, - "callbackQueryPayloadDataWithPassword": CallbackQueryPayloadDataWithPasswordTypeID, - "callbackQueryPayloadGame": CallbackQueryPayloadGameTypeID, - "callbackQueryAnswer": CallbackQueryAnswerTypeID, - "customRequestResult": CustomRequestResultTypeID, - "gameHighScore": GameHighScoreTypeID, - "gameHighScores": GameHighScoresTypeID, - "chatEventMessageEdited": ChatEventMessageEditedTypeID, - "chatEventMessageDeleted": ChatEventMessageDeletedTypeID, - "chatEventMessagePinned": ChatEventMessagePinnedTypeID, - "chatEventMessageUnpinned": ChatEventMessageUnpinnedTypeID, - "chatEventPollStopped": ChatEventPollStoppedTypeID, - "chatEventMemberJoined": ChatEventMemberJoinedTypeID, - "chatEventMemberJoinedByInviteLink": ChatEventMemberJoinedByInviteLinkTypeID, - "chatEventMemberJoinedByRequest": ChatEventMemberJoinedByRequestTypeID, - "chatEventMemberInvited": ChatEventMemberInvitedTypeID, - "chatEventMemberLeft": ChatEventMemberLeftTypeID, - "chatEventMemberPromoted": ChatEventMemberPromotedTypeID, - "chatEventMemberRestricted": ChatEventMemberRestrictedTypeID, - "chatEventAvailableReactionsChanged": ChatEventAvailableReactionsChangedTypeID, - "chatEventDescriptionChanged": ChatEventDescriptionChangedTypeID, - "chatEventLinkedChatChanged": ChatEventLinkedChatChangedTypeID, - "chatEventLocationChanged": ChatEventLocationChangedTypeID, - "chatEventMessageAutoDeleteTimeChanged": ChatEventMessageAutoDeleteTimeChangedTypeID, - "chatEventPermissionsChanged": ChatEventPermissionsChangedTypeID, - "chatEventPhotoChanged": ChatEventPhotoChangedTypeID, - "chatEventSlowModeDelayChanged": ChatEventSlowModeDelayChangedTypeID, - "chatEventStickerSetChanged": ChatEventStickerSetChangedTypeID, - "chatEventTitleChanged": ChatEventTitleChangedTypeID, - "chatEventUsernameChanged": ChatEventUsernameChangedTypeID, - "chatEventActiveUsernamesChanged": ChatEventActiveUsernamesChangedTypeID, - "chatEventHasProtectedContentToggled": ChatEventHasProtectedContentToggledTypeID, - "chatEventInvitesToggled": ChatEventInvitesToggledTypeID, - "chatEventIsAllHistoryAvailableToggled": ChatEventIsAllHistoryAvailableToggledTypeID, - "chatEventHasAggressiveAntiSpamEnabledToggled": ChatEventHasAggressiveAntiSpamEnabledToggledTypeID, - "chatEventSignMessagesToggled": ChatEventSignMessagesToggledTypeID, - "chatEventInviteLinkEdited": ChatEventInviteLinkEditedTypeID, - "chatEventInviteLinkRevoked": ChatEventInviteLinkRevokedTypeID, - "chatEventInviteLinkDeleted": ChatEventInviteLinkDeletedTypeID, - "chatEventVideoChatCreated": ChatEventVideoChatCreatedTypeID, - "chatEventVideoChatEnded": ChatEventVideoChatEndedTypeID, - "chatEventVideoChatMuteNewParticipantsToggled": ChatEventVideoChatMuteNewParticipantsToggledTypeID, - "chatEventVideoChatParticipantIsMutedToggled": ChatEventVideoChatParticipantIsMutedToggledTypeID, - "chatEventVideoChatParticipantVolumeLevelChanged": ChatEventVideoChatParticipantVolumeLevelChangedTypeID, - "chatEventIsForumToggled": ChatEventIsForumToggledTypeID, - "chatEventForumTopicCreated": ChatEventForumTopicCreatedTypeID, - "chatEventForumTopicEdited": ChatEventForumTopicEditedTypeID, - "chatEventForumTopicToggleIsClosed": ChatEventForumTopicToggleIsClosedTypeID, - "chatEventForumTopicToggleIsHidden": ChatEventForumTopicToggleIsHiddenTypeID, - "chatEventForumTopicDeleted": ChatEventForumTopicDeletedTypeID, - "chatEventForumTopicPinned": ChatEventForumTopicPinnedTypeID, - "chatEvent": ChatEventTypeID, - "chatEvents": ChatEventsTypeID, - "chatEventLogFilters": ChatEventLogFiltersTypeID, - "languagePackStringValueOrdinary": LanguagePackStringValueOrdinaryTypeID, - "languagePackStringValuePluralized": LanguagePackStringValuePluralizedTypeID, - "languagePackStringValueDeleted": LanguagePackStringValueDeletedTypeID, - "languagePackString": LanguagePackStringTypeID, - "languagePackStrings": LanguagePackStringsTypeID, - "languagePackInfo": LanguagePackInfoTypeID, - "localizationTargetInfo": LocalizationTargetInfoTypeID, - "premiumLimitTypeSupergroupCount": PremiumLimitTypeSupergroupCountTypeID, - "premiumLimitTypePinnedChatCount": PremiumLimitTypePinnedChatCountTypeID, - "premiumLimitTypeCreatedPublicChatCount": PremiumLimitTypeCreatedPublicChatCountTypeID, - "premiumLimitTypeSavedAnimationCount": PremiumLimitTypeSavedAnimationCountTypeID, - "premiumLimitTypeFavoriteStickerCount": PremiumLimitTypeFavoriteStickerCountTypeID, - "premiumLimitTypeChatFilterCount": PremiumLimitTypeChatFilterCountTypeID, - "premiumLimitTypeChatFilterChosenChatCount": PremiumLimitTypeChatFilterChosenChatCountTypeID, - "premiumLimitTypePinnedArchivedChatCount": PremiumLimitTypePinnedArchivedChatCountTypeID, - "premiumLimitTypeCaptionLength": PremiumLimitTypeCaptionLengthTypeID, - "premiumLimitTypeBioLength": PremiumLimitTypeBioLengthTypeID, - "premiumFeatureIncreasedLimits": PremiumFeatureIncreasedLimitsTypeID, - "premiumFeatureIncreasedUploadFileSize": PremiumFeatureIncreasedUploadFileSizeTypeID, - "premiumFeatureImprovedDownloadSpeed": PremiumFeatureImprovedDownloadSpeedTypeID, - "premiumFeatureVoiceRecognition": PremiumFeatureVoiceRecognitionTypeID, - "premiumFeatureDisabledAds": PremiumFeatureDisabledAdsTypeID, - "premiumFeatureUniqueReactions": PremiumFeatureUniqueReactionsTypeID, - "premiumFeatureUniqueStickers": PremiumFeatureUniqueStickersTypeID, - "premiumFeatureCustomEmoji": PremiumFeatureCustomEmojiTypeID, - "premiumFeatureAdvancedChatManagement": PremiumFeatureAdvancedChatManagementTypeID, - "premiumFeatureProfileBadge": PremiumFeatureProfileBadgeTypeID, - "premiumFeatureEmojiStatus": PremiumFeatureEmojiStatusTypeID, - "premiumFeatureAnimatedProfilePhoto": PremiumFeatureAnimatedProfilePhotoTypeID, - "premiumFeatureForumTopicIcon": PremiumFeatureForumTopicIconTypeID, - "premiumFeatureAppIcons": PremiumFeatureAppIconsTypeID, - "premiumFeatureRealTimeChatTranslation": PremiumFeatureRealTimeChatTranslationTypeID, - "premiumLimit": PremiumLimitTypeID, - "premiumFeatures": PremiumFeaturesTypeID, - "premiumSourceLimitExceeded": PremiumSourceLimitExceededTypeID, - "premiumSourceFeature": PremiumSourceFeatureTypeID, - "premiumSourceLink": PremiumSourceLinkTypeID, - "premiumSourceSettings": PremiumSourceSettingsTypeID, - "premiumFeaturePromotionAnimation": PremiumFeaturePromotionAnimationTypeID, - "premiumState": PremiumStateTypeID, - "storePaymentPurposePremiumSubscription": StorePaymentPurposePremiumSubscriptionTypeID, - "storePaymentPurposeGiftedPremium": StorePaymentPurposeGiftedPremiumTypeID, - "deviceTokenFirebaseCloudMessaging": DeviceTokenFirebaseCloudMessagingTypeID, - "deviceTokenApplePush": DeviceTokenApplePushTypeID, - "deviceTokenApplePushVoIP": DeviceTokenApplePushVoIPTypeID, - "deviceTokenWindowsPush": DeviceTokenWindowsPushTypeID, - "deviceTokenMicrosoftPush": DeviceTokenMicrosoftPushTypeID, - "deviceTokenMicrosoftPushVoIP": DeviceTokenMicrosoftPushVoIPTypeID, - "deviceTokenWebPush": DeviceTokenWebPushTypeID, - "deviceTokenSimplePush": DeviceTokenSimplePushTypeID, - "deviceTokenUbuntuPush": DeviceTokenUbuntuPushTypeID, - "deviceTokenBlackBerryPush": DeviceTokenBlackBerryPushTypeID, - "deviceTokenTizenPush": DeviceTokenTizenPushTypeID, - "deviceTokenHuaweiPush": DeviceTokenHuaweiPushTypeID, - "pushReceiverId": PushReceiverIDTypeID, - "backgroundFillSolid": BackgroundFillSolidTypeID, - "backgroundFillGradient": BackgroundFillGradientTypeID, - "backgroundFillFreeformGradient": BackgroundFillFreeformGradientTypeID, - "backgroundTypeWallpaper": BackgroundTypeWallpaperTypeID, - "backgroundTypePattern": BackgroundTypePatternTypeID, - "backgroundTypeFill": BackgroundTypeFillTypeID, - "background": BackgroundTypeID, - "backgrounds": BackgroundsTypeID, - "inputBackgroundLocal": InputBackgroundLocalTypeID, - "inputBackgroundRemote": InputBackgroundRemoteTypeID, - "themeSettings": ThemeSettingsTypeID, - "chatTheme": ChatThemeTypeID, - "hashtags": HashtagsTypeID, - "canTransferOwnershipResultOk": CanTransferOwnershipResultOkTypeID, - "canTransferOwnershipResultPasswordNeeded": CanTransferOwnershipResultPasswordNeededTypeID, - "canTransferOwnershipResultPasswordTooFresh": CanTransferOwnershipResultPasswordTooFreshTypeID, - "canTransferOwnershipResultSessionTooFresh": CanTransferOwnershipResultSessionTooFreshTypeID, - "checkChatUsernameResultOk": CheckChatUsernameResultOkTypeID, - "checkChatUsernameResultUsernameInvalid": CheckChatUsernameResultUsernameInvalidTypeID, - "checkChatUsernameResultUsernameOccupied": CheckChatUsernameResultUsernameOccupiedTypeID, - "checkChatUsernameResultUsernamePurchasable": CheckChatUsernameResultUsernamePurchasableTypeID, - "checkChatUsernameResultPublicChatsTooMany": CheckChatUsernameResultPublicChatsTooManyTypeID, - "checkChatUsernameResultPublicGroupsUnavailable": CheckChatUsernameResultPublicGroupsUnavailableTypeID, - "checkStickerSetNameResultOk": CheckStickerSetNameResultOkTypeID, - "checkStickerSetNameResultNameInvalid": CheckStickerSetNameResultNameInvalidTypeID, - "checkStickerSetNameResultNameOccupied": CheckStickerSetNameResultNameOccupiedTypeID, - "resetPasswordResultOk": ResetPasswordResultOkTypeID, - "resetPasswordResultPending": ResetPasswordResultPendingTypeID, - "resetPasswordResultDeclined": ResetPasswordResultDeclinedTypeID, - "messageFileTypePrivate": MessageFileTypePrivateTypeID, - "messageFileTypeGroup": MessageFileTypeGroupTypeID, - "messageFileTypeUnknown": MessageFileTypeUnknownTypeID, - "pushMessageContentHidden": PushMessageContentHiddenTypeID, - "pushMessageContentAnimation": PushMessageContentAnimationTypeID, - "pushMessageContentAudio": PushMessageContentAudioTypeID, - "pushMessageContentContact": PushMessageContentContactTypeID, - "pushMessageContentContactRegistered": PushMessageContentContactRegisteredTypeID, - "pushMessageContentDocument": PushMessageContentDocumentTypeID, - "pushMessageContentGame": PushMessageContentGameTypeID, - "pushMessageContentGameScore": PushMessageContentGameScoreTypeID, - "pushMessageContentInvoice": PushMessageContentInvoiceTypeID, - "pushMessageContentLocation": PushMessageContentLocationTypeID, - "pushMessageContentPhoto": PushMessageContentPhotoTypeID, - "pushMessageContentPoll": PushMessageContentPollTypeID, - "pushMessageContentScreenshotTaken": PushMessageContentScreenshotTakenTypeID, - "pushMessageContentSticker": PushMessageContentStickerTypeID, - "pushMessageContentText": PushMessageContentTextTypeID, - "pushMessageContentVideo": PushMessageContentVideoTypeID, - "pushMessageContentVideoNote": PushMessageContentVideoNoteTypeID, - "pushMessageContentVoiceNote": PushMessageContentVoiceNoteTypeID, - "pushMessageContentBasicGroupChatCreate": PushMessageContentBasicGroupChatCreateTypeID, - "pushMessageContentChatAddMembers": PushMessageContentChatAddMembersTypeID, - "pushMessageContentChatChangePhoto": PushMessageContentChatChangePhotoTypeID, - "pushMessageContentChatChangeTitle": PushMessageContentChatChangeTitleTypeID, - "pushMessageContentChatSetTheme": PushMessageContentChatSetThemeTypeID, - "pushMessageContentChatDeleteMember": PushMessageContentChatDeleteMemberTypeID, - "pushMessageContentChatJoinByLink": PushMessageContentChatJoinByLinkTypeID, - "pushMessageContentChatJoinByRequest": PushMessageContentChatJoinByRequestTypeID, - "pushMessageContentRecurringPayment": PushMessageContentRecurringPaymentTypeID, - "pushMessageContentSuggestProfilePhoto": PushMessageContentSuggestProfilePhotoTypeID, - "pushMessageContentMessageForwards": PushMessageContentMessageForwardsTypeID, - "pushMessageContentMediaAlbum": PushMessageContentMediaAlbumTypeID, - "notificationTypeNewMessage": NotificationTypeNewMessageTypeID, - "notificationTypeNewSecretChat": NotificationTypeNewSecretChatTypeID, - "notificationTypeNewCall": NotificationTypeNewCallTypeID, - "notificationTypeNewPushMessage": NotificationTypeNewPushMessageTypeID, - "notificationGroupTypeMessages": NotificationGroupTypeMessagesTypeID, - "notificationGroupTypeMentions": NotificationGroupTypeMentionsTypeID, - "notificationGroupTypeSecretChat": NotificationGroupTypeSecretChatTypeID, - "notificationGroupTypeCalls": NotificationGroupTypeCallsTypeID, - "notificationSound": NotificationSoundTypeID, - "notificationSounds": NotificationSoundsTypeID, - "notification": NotificationTypeID, - "notificationGroup": NotificationGroupTypeID, - "optionValueBoolean": OptionValueBooleanTypeID, - "optionValueEmpty": OptionValueEmptyTypeID, - "optionValueInteger": OptionValueIntegerTypeID, - "optionValueString": OptionValueStringTypeID, - "jsonObjectMember": JSONObjectMemberTypeID, - "jsonValueNull": JSONValueNullTypeID, - "jsonValueBoolean": JSONValueBooleanTypeID, - "jsonValueNumber": JSONValueNumberTypeID, - "jsonValueString": JSONValueStringTypeID, - "jsonValueArray": JSONValueArrayTypeID, - "jsonValueObject": JSONValueObjectTypeID, - "userPrivacySettingRuleAllowAll": UserPrivacySettingRuleAllowAllTypeID, - "userPrivacySettingRuleAllowContacts": UserPrivacySettingRuleAllowContactsTypeID, - "userPrivacySettingRuleAllowUsers": UserPrivacySettingRuleAllowUsersTypeID, - "userPrivacySettingRuleAllowChatMembers": UserPrivacySettingRuleAllowChatMembersTypeID, - "userPrivacySettingRuleRestrictAll": UserPrivacySettingRuleRestrictAllTypeID, - "userPrivacySettingRuleRestrictContacts": UserPrivacySettingRuleRestrictContactsTypeID, - "userPrivacySettingRuleRestrictUsers": UserPrivacySettingRuleRestrictUsersTypeID, - "userPrivacySettingRuleRestrictChatMembers": UserPrivacySettingRuleRestrictChatMembersTypeID, - "userPrivacySettingRules": UserPrivacySettingRulesTypeID, - "userPrivacySettingShowStatus": UserPrivacySettingShowStatusTypeID, - "userPrivacySettingShowProfilePhoto": UserPrivacySettingShowProfilePhotoTypeID, - "userPrivacySettingShowLinkInForwardedMessages": UserPrivacySettingShowLinkInForwardedMessagesTypeID, - "userPrivacySettingShowPhoneNumber": UserPrivacySettingShowPhoneNumberTypeID, - "userPrivacySettingAllowChatInvites": UserPrivacySettingAllowChatInvitesTypeID, - "userPrivacySettingAllowCalls": UserPrivacySettingAllowCallsTypeID, - "userPrivacySettingAllowPeerToPeerCalls": UserPrivacySettingAllowPeerToPeerCallsTypeID, - "userPrivacySettingAllowFindingByPhoneNumber": UserPrivacySettingAllowFindingByPhoneNumberTypeID, + "double": DoubleTypeID, + "string": StringTypeID, + "int32": Int32TypeID, + "int53": Int53TypeID, + "int64": Int64TypeID, + "bytes": BytesTypeID, + "boolFalse": BoolFalseTypeID, + "boolTrue": BoolTrueTypeID, + "error": ErrorTypeID, + "ok": OkTypeID, + "authenticationCodeTypeTelegramMessage": AuthenticationCodeTypeTelegramMessageTypeID, + "authenticationCodeTypeSms": AuthenticationCodeTypeSMSTypeID, + "authenticationCodeTypeCall": AuthenticationCodeTypeCallTypeID, + "authenticationCodeTypeFlashCall": AuthenticationCodeTypeFlashCallTypeID, + "authenticationCodeTypeMissedCall": AuthenticationCodeTypeMissedCallTypeID, + "authenticationCodeTypeFragment": AuthenticationCodeTypeFragmentTypeID, + "authenticationCodeTypeFirebaseAndroid": AuthenticationCodeTypeFirebaseAndroidTypeID, + "authenticationCodeTypeFirebaseIos": AuthenticationCodeTypeFirebaseIosTypeID, + "authenticationCodeInfo": AuthenticationCodeInfoTypeID, + "emailAddressAuthenticationCodeInfo": EmailAddressAuthenticationCodeInfoTypeID, + "emailAddressAuthenticationCode": EmailAddressAuthenticationCodeTypeID, + "emailAddressAuthenticationAppleId": EmailAddressAuthenticationAppleIDTypeID, + "emailAddressAuthenticationGoogleId": EmailAddressAuthenticationGoogleIDTypeID, + "emailAddressResetStateAvailable": EmailAddressResetStateAvailableTypeID, + "emailAddressResetStatePending": EmailAddressResetStatePendingTypeID, + "textEntity": TextEntityTypeID, + "textEntities": TextEntitiesTypeID, + "formattedText": FormattedTextTypeID, + "termsOfService": TermsOfServiceTypeID, + "authorizationStateWaitTdlibParameters": AuthorizationStateWaitTdlibParametersTypeID, + "authorizationStateWaitPhoneNumber": AuthorizationStateWaitPhoneNumberTypeID, + "authorizationStateWaitEmailAddress": AuthorizationStateWaitEmailAddressTypeID, + "authorizationStateWaitEmailCode": AuthorizationStateWaitEmailCodeTypeID, + "authorizationStateWaitCode": AuthorizationStateWaitCodeTypeID, + "authorizationStateWaitOtherDeviceConfirmation": AuthorizationStateWaitOtherDeviceConfirmationTypeID, + "authorizationStateWaitRegistration": AuthorizationStateWaitRegistrationTypeID, + "authorizationStateWaitPassword": AuthorizationStateWaitPasswordTypeID, + "authorizationStateReady": AuthorizationStateReadyTypeID, + "authorizationStateLoggingOut": AuthorizationStateLoggingOutTypeID, + "authorizationStateClosing": AuthorizationStateClosingTypeID, + "authorizationStateClosed": AuthorizationStateClosedTypeID, + "passwordState": PasswordStateTypeID, + "recoveryEmailAddress": RecoveryEmailAddressTypeID, + "temporaryPasswordState": TemporaryPasswordStateTypeID, + "localFile": LocalFileTypeID, + "remoteFile": RemoteFileTypeID, + "file": FileTypeID, + "inputFileId": InputFileIDTypeID, + "inputFileRemote": InputFileRemoteTypeID, + "inputFileLocal": InputFileLocalTypeID, + "inputFileGenerated": InputFileGeneratedTypeID, + "photoSize": PhotoSizeTypeID, + "minithumbnail": MinithumbnailTypeID, + "thumbnailFormatJpeg": ThumbnailFormatJpegTypeID, + "thumbnailFormatGif": ThumbnailFormatGifTypeID, + "thumbnailFormatMpeg4": ThumbnailFormatMpeg4TypeID, + "thumbnailFormatPng": ThumbnailFormatPngTypeID, + "thumbnailFormatTgs": ThumbnailFormatTgsTypeID, + "thumbnailFormatWebm": ThumbnailFormatWebmTypeID, + "thumbnailFormatWebp": ThumbnailFormatWebpTypeID, + "thumbnail": ThumbnailTypeID, + "maskPointForehead": MaskPointForeheadTypeID, + "maskPointEyes": MaskPointEyesTypeID, + "maskPointMouth": MaskPointMouthTypeID, + "maskPointChin": MaskPointChinTypeID, + "maskPosition": MaskPositionTypeID, + "stickerFormatWebp": StickerFormatWebpTypeID, + "stickerFormatTgs": StickerFormatTgsTypeID, + "stickerFormatWebm": StickerFormatWebmTypeID, + "stickerTypeRegular": StickerTypeRegularTypeID, + "stickerTypeMask": StickerTypeMaskTypeID, + "stickerTypeCustomEmoji": StickerTypeCustomEmojiTypeID, + "stickerFullTypeRegular": StickerFullTypeRegularTypeID, + "stickerFullTypeMask": StickerFullTypeMaskTypeID, + "stickerFullTypeCustomEmoji": StickerFullTypeCustomEmojiTypeID, + "closedVectorPath": ClosedVectorPathTypeID, + "pollOption": PollOptionTypeID, + "pollTypeRegular": PollTypeRegularTypeID, + "pollTypeQuiz": PollTypeQuizTypeID, + "animation": AnimationTypeID, + "audio": AudioTypeID, + "document": DocumentTypeID, + "photo": PhotoTypeID, + "sticker": StickerTypeID, + "video": VideoTypeID, + "videoNote": VideoNoteTypeID, + "voiceNote": VoiceNoteTypeID, + "animatedEmoji": AnimatedEmojiTypeID, + "contact": ContactTypeID, + "location": LocationTypeID, + "venue": VenueTypeID, + "game": GameTypeID, + "webApp": WebAppTypeID, + "poll": PollTypeID, + "profilePhoto": ProfilePhotoTypeID, + "chatPhotoInfo": ChatPhotoInfoTypeID, + "userTypeRegular": UserTypeRegularTypeID, + "userTypeDeleted": UserTypeDeletedTypeID, + "userTypeBot": UserTypeBotTypeID, + "userTypeUnknown": UserTypeUnknownTypeID, + "botCommand": BotCommandTypeID, + "botCommands": BotCommandsTypeID, + "botMenuButton": BotMenuButtonTypeID, + "chatLocation": ChatLocationTypeID, + "chatPhotoStickerTypeRegularOrMask": ChatPhotoStickerTypeRegularOrMaskTypeID, + "chatPhotoStickerTypeCustomEmoji": ChatPhotoStickerTypeCustomEmojiTypeID, + "chatPhotoSticker": ChatPhotoStickerTypeID, + "animatedChatPhoto": AnimatedChatPhotoTypeID, + "chatPhoto": ChatPhotoTypeID, + "chatPhotos": ChatPhotosTypeID, + "inputChatPhotoPrevious": InputChatPhotoPreviousTypeID, + "inputChatPhotoStatic": InputChatPhotoStaticTypeID, + "inputChatPhotoAnimation": InputChatPhotoAnimationTypeID, + "inputChatPhotoSticker": InputChatPhotoStickerTypeID, + "chatPermissions": ChatPermissionsTypeID, + "chatAdministratorRights": ChatAdministratorRightsTypeID, + "premiumPaymentOption": PremiumPaymentOptionTypeID, + "premiumStatePaymentOption": PremiumStatePaymentOptionTypeID, + "emojiStatus": EmojiStatusTypeID, + "emojiStatuses": EmojiStatusesTypeID, + "usernames": UsernamesTypeID, + "user": UserTypeID, + "botInfo": BotInfoTypeID, + "userFullInfo": UserFullInfoTypeID, + "users": UsersTypeID, + "chatAdministrator": ChatAdministratorTypeID, + "chatAdministrators": ChatAdministratorsTypeID, + "chatMemberStatusCreator": ChatMemberStatusCreatorTypeID, + "chatMemberStatusAdministrator": ChatMemberStatusAdministratorTypeID, + "chatMemberStatusMember": ChatMemberStatusMemberTypeID, + "chatMemberStatusRestricted": ChatMemberStatusRestrictedTypeID, + "chatMemberStatusLeft": ChatMemberStatusLeftTypeID, + "chatMemberStatusBanned": ChatMemberStatusBannedTypeID, + "chatMember": ChatMemberTypeID, + "chatMembers": ChatMembersTypeID, + "chatMembersFilterContacts": ChatMembersFilterContactsTypeID, + "chatMembersFilterAdministrators": ChatMembersFilterAdministratorsTypeID, + "chatMembersFilterMembers": ChatMembersFilterMembersTypeID, + "chatMembersFilterMention": ChatMembersFilterMentionTypeID, + "chatMembersFilterRestricted": ChatMembersFilterRestrictedTypeID, + "chatMembersFilterBanned": ChatMembersFilterBannedTypeID, + "chatMembersFilterBots": ChatMembersFilterBotsTypeID, + "supergroupMembersFilterRecent": SupergroupMembersFilterRecentTypeID, + "supergroupMembersFilterContacts": SupergroupMembersFilterContactsTypeID, + "supergroupMembersFilterAdministrators": SupergroupMembersFilterAdministratorsTypeID, + "supergroupMembersFilterSearch": SupergroupMembersFilterSearchTypeID, + "supergroupMembersFilterRestricted": SupergroupMembersFilterRestrictedTypeID, + "supergroupMembersFilterBanned": SupergroupMembersFilterBannedTypeID, + "supergroupMembersFilterMention": SupergroupMembersFilterMentionTypeID, + "supergroupMembersFilterBots": SupergroupMembersFilterBotsTypeID, + "chatInviteLink": ChatInviteLinkTypeID, + "chatInviteLinks": ChatInviteLinksTypeID, + "chatInviteLinkCount": ChatInviteLinkCountTypeID, + "chatInviteLinkCounts": ChatInviteLinkCountsTypeID, + "chatInviteLinkMember": ChatInviteLinkMemberTypeID, + "chatInviteLinkMembers": ChatInviteLinkMembersTypeID, + "chatInviteLinkInfo": ChatInviteLinkInfoTypeID, + "chatJoinRequest": ChatJoinRequestTypeID, + "chatJoinRequests": ChatJoinRequestsTypeID, + "chatJoinRequestsInfo": ChatJoinRequestsInfoTypeID, + "basicGroup": BasicGroupTypeID, + "basicGroupFullInfo": BasicGroupFullInfoTypeID, + "supergroup": SupergroupTypeID, + "supergroupFullInfo": SupergroupFullInfoTypeID, + "secretChatStatePending": SecretChatStatePendingTypeID, + "secretChatStateReady": SecretChatStateReadyTypeID, + "secretChatStateClosed": SecretChatStateClosedTypeID, + "secretChat": SecretChatTypeID, + "messageSenderUser": MessageSenderUserTypeID, + "messageSenderChat": MessageSenderChatTypeID, + "messageSenders": MessageSendersTypeID, + "chatMessageSender": ChatMessageSenderTypeID, + "chatMessageSenders": ChatMessageSendersTypeID, + "messageViewer": MessageViewerTypeID, + "messageViewers": MessageViewersTypeID, + "messageForwardOriginUser": MessageForwardOriginUserTypeID, + "messageForwardOriginChat": MessageForwardOriginChatTypeID, + "messageForwardOriginHiddenUser": MessageForwardOriginHiddenUserTypeID, + "messageForwardOriginChannel": MessageForwardOriginChannelTypeID, + "messageForwardOriginMessageImport": MessageForwardOriginMessageImportTypeID, + "reactionTypeEmoji": ReactionTypeEmojiTypeID, + "reactionTypeCustomEmoji": ReactionTypeCustomEmojiTypeID, + "messageForwardInfo": MessageForwardInfoTypeID, + "messageReplyInfo": MessageReplyInfoTypeID, + "messageReaction": MessageReactionTypeID, + "messageInteractionInfo": MessageInteractionInfoTypeID, + "unreadReaction": UnreadReactionTypeID, + "messageSendingStatePending": MessageSendingStatePendingTypeID, + "messageSendingStateFailed": MessageSendingStateFailedTypeID, + "message": MessageTypeID, + "messages": MessagesTypeID, + "foundMessages": FoundMessagesTypeID, + "foundChatMessages": FoundChatMessagesTypeID, + "messagePosition": MessagePositionTypeID, + "messagePositions": MessagePositionsTypeID, + "messageCalendarDay": MessageCalendarDayTypeID, + "messageCalendar": MessageCalendarTypeID, + "messageSourceChatHistory": MessageSourceChatHistoryTypeID, + "messageSourceMessageThreadHistory": MessageSourceMessageThreadHistoryTypeID, + "messageSourceForumTopicHistory": MessageSourceForumTopicHistoryTypeID, + "messageSourceHistoryPreview": MessageSourceHistoryPreviewTypeID, + "messageSourceChatList": MessageSourceChatListTypeID, + "messageSourceSearch": MessageSourceSearchTypeID, + "messageSourceChatEventLog": MessageSourceChatEventLogTypeID, + "messageSourceNotification": MessageSourceNotificationTypeID, + "messageSourceOther": MessageSourceOtherTypeID, + "sponsoredMessage": SponsoredMessageTypeID, + "sponsoredMessages": SponsoredMessagesTypeID, + "fileDownload": FileDownloadTypeID, + "downloadedFileCounts": DownloadedFileCountsTypeID, + "foundFileDownloads": FoundFileDownloadsTypeID, + "notificationSettingsScopePrivateChats": NotificationSettingsScopePrivateChatsTypeID, + "notificationSettingsScopeGroupChats": NotificationSettingsScopeGroupChatsTypeID, + "notificationSettingsScopeChannelChats": NotificationSettingsScopeChannelChatsTypeID, + "chatNotificationSettings": ChatNotificationSettingsTypeID, + "scopeNotificationSettings": ScopeNotificationSettingsTypeID, + "draftMessage": DraftMessageTypeID, + "chatTypePrivate": ChatTypePrivateTypeID, + "chatTypeBasicGroup": ChatTypeBasicGroupTypeID, + "chatTypeSupergroup": ChatTypeSupergroupTypeID, + "chatTypeSecret": ChatTypeSecretTypeID, + "chatFilter": ChatFilterTypeID, + "chatFilterInfo": ChatFilterInfoTypeID, + "recommendedChatFilter": RecommendedChatFilterTypeID, + "recommendedChatFilters": RecommendedChatFiltersTypeID, + "chatListMain": ChatListMainTypeID, + "chatListArchive": ChatListArchiveTypeID, + "chatListFilter": ChatListFilterTypeID, + "chatLists": ChatListsTypeID, + "chatSourceMtprotoProxy": ChatSourceMtprotoProxyTypeID, + "chatSourcePublicServiceAnnouncement": ChatSourcePublicServiceAnnouncementTypeID, + "chatPosition": ChatPositionTypeID, + "chatAvailableReactionsAll": ChatAvailableReactionsAllTypeID, + "chatAvailableReactionsSome": ChatAvailableReactionsSomeTypeID, + "videoChat": VideoChatTypeID, + "chat": ChatTypeID, + "chats": ChatsTypeID, + "chatNearby": ChatNearbyTypeID, + "chatsNearby": ChatsNearbyTypeID, + "publicChatTypeHasUsername": PublicChatTypeHasUsernameTypeID, + "publicChatTypeIsLocationBased": PublicChatTypeIsLocationBasedTypeID, + "chatActionBarReportSpam": ChatActionBarReportSpamTypeID, + "chatActionBarReportUnrelatedLocation": ChatActionBarReportUnrelatedLocationTypeID, + "chatActionBarInviteMembers": ChatActionBarInviteMembersTypeID, + "chatActionBarReportAddBlock": ChatActionBarReportAddBlockTypeID, + "chatActionBarAddContact": ChatActionBarAddContactTypeID, + "chatActionBarSharePhoneNumber": ChatActionBarSharePhoneNumberTypeID, + "chatActionBarJoinRequest": ChatActionBarJoinRequestTypeID, + "keyboardButtonTypeText": KeyboardButtonTypeTextTypeID, + "keyboardButtonTypeRequestPhoneNumber": KeyboardButtonTypeRequestPhoneNumberTypeID, + "keyboardButtonTypeRequestLocation": KeyboardButtonTypeRequestLocationTypeID, + "keyboardButtonTypeRequestPoll": KeyboardButtonTypeRequestPollTypeID, + "keyboardButtonTypeRequestUser": KeyboardButtonTypeRequestUserTypeID, + "keyboardButtonTypeRequestChat": KeyboardButtonTypeRequestChatTypeID, + "keyboardButtonTypeWebApp": KeyboardButtonTypeWebAppTypeID, + "keyboardButton": KeyboardButtonTypeID, + "inlineKeyboardButtonTypeUrl": InlineKeyboardButtonTypeURLTypeID, + "inlineKeyboardButtonTypeLoginUrl": InlineKeyboardButtonTypeLoginURLTypeID, + "inlineKeyboardButtonTypeWebApp": InlineKeyboardButtonTypeWebAppTypeID, + "inlineKeyboardButtonTypeCallback": InlineKeyboardButtonTypeCallbackTypeID, + "inlineKeyboardButtonTypeCallbackWithPassword": InlineKeyboardButtonTypeCallbackWithPasswordTypeID, + "inlineKeyboardButtonTypeCallbackGame": InlineKeyboardButtonTypeCallbackGameTypeID, + "inlineKeyboardButtonTypeSwitchInline": InlineKeyboardButtonTypeSwitchInlineTypeID, + "inlineKeyboardButtonTypeBuy": InlineKeyboardButtonTypeBuyTypeID, + "inlineKeyboardButtonTypeUser": InlineKeyboardButtonTypeUserTypeID, + "inlineKeyboardButton": InlineKeyboardButtonTypeID, + "replyMarkupRemoveKeyboard": ReplyMarkupRemoveKeyboardTypeID, + "replyMarkupForceReply": ReplyMarkupForceReplyTypeID, + "replyMarkupShowKeyboard": ReplyMarkupShowKeyboardTypeID, + "replyMarkupInlineKeyboard": ReplyMarkupInlineKeyboardTypeID, + "loginUrlInfoOpen": LoginURLInfoOpenTypeID, + "loginUrlInfoRequestConfirmation": LoginURLInfoRequestConfirmationTypeID, + "foundWebApp": FoundWebAppTypeID, + "webAppInfo": WebAppInfoTypeID, + "messageThreadInfo": MessageThreadInfoTypeID, + "forumTopicIcon": ForumTopicIconTypeID, + "forumTopicInfo": ForumTopicInfoTypeID, + "forumTopic": ForumTopicTypeID, + "forumTopics": ForumTopicsTypeID, + "richTextPlain": RichTextPlainTypeID, + "richTextBold": RichTextBoldTypeID, + "richTextItalic": RichTextItalicTypeID, + "richTextUnderline": RichTextUnderlineTypeID, + "richTextStrikethrough": RichTextStrikethroughTypeID, + "richTextFixed": RichTextFixedTypeID, + "richTextUrl": RichTextURLTypeID, + "richTextEmailAddress": RichTextEmailAddressTypeID, + "richTextSubscript": RichTextSubscriptTypeID, + "richTextSuperscript": RichTextSuperscriptTypeID, + "richTextMarked": RichTextMarkedTypeID, + "richTextPhoneNumber": RichTextPhoneNumberTypeID, + "richTextIcon": RichTextIconTypeID, + "richTextReference": RichTextReferenceTypeID, + "richTextAnchor": RichTextAnchorTypeID, + "richTextAnchorLink": RichTextAnchorLinkTypeID, + "richTexts": RichTextsTypeID, + "pageBlockCaption": PageBlockCaptionTypeID, + "pageBlockListItem": PageBlockListItemTypeID, + "pageBlockHorizontalAlignmentLeft": PageBlockHorizontalAlignmentLeftTypeID, + "pageBlockHorizontalAlignmentCenter": PageBlockHorizontalAlignmentCenterTypeID, + "pageBlockHorizontalAlignmentRight": PageBlockHorizontalAlignmentRightTypeID, + "pageBlockVerticalAlignmentTop": PageBlockVerticalAlignmentTopTypeID, + "pageBlockVerticalAlignmentMiddle": PageBlockVerticalAlignmentMiddleTypeID, + "pageBlockVerticalAlignmentBottom": PageBlockVerticalAlignmentBottomTypeID, + "pageBlockTableCell": PageBlockTableCellTypeID, + "pageBlockRelatedArticle": PageBlockRelatedArticleTypeID, + "pageBlockTitle": PageBlockTitleTypeID, + "pageBlockSubtitle": PageBlockSubtitleTypeID, + "pageBlockAuthorDate": PageBlockAuthorDateTypeID, + "pageBlockHeader": PageBlockHeaderTypeID, + "pageBlockSubheader": PageBlockSubheaderTypeID, + "pageBlockKicker": PageBlockKickerTypeID, + "pageBlockParagraph": PageBlockParagraphTypeID, + "pageBlockPreformatted": PageBlockPreformattedTypeID, + "pageBlockFooter": PageBlockFooterTypeID, + "pageBlockDivider": PageBlockDividerTypeID, + "pageBlockAnchor": PageBlockAnchorTypeID, + "pageBlockList": PageBlockListTypeID, + "pageBlockBlockQuote": PageBlockBlockQuoteTypeID, + "pageBlockPullQuote": PageBlockPullQuoteTypeID, + "pageBlockAnimation": PageBlockAnimationTypeID, + "pageBlockAudio": PageBlockAudioTypeID, + "pageBlockPhoto": PageBlockPhotoTypeID, + "pageBlockVideo": PageBlockVideoTypeID, + "pageBlockVoiceNote": PageBlockVoiceNoteTypeID, + "pageBlockCover": PageBlockCoverTypeID, + "pageBlockEmbedded": PageBlockEmbeddedTypeID, + "pageBlockEmbeddedPost": PageBlockEmbeddedPostTypeID, + "pageBlockCollage": PageBlockCollageTypeID, + "pageBlockSlideshow": PageBlockSlideshowTypeID, + "pageBlockChatLink": PageBlockChatLinkTypeID, + "pageBlockTable": PageBlockTableTypeID, + "pageBlockDetails": PageBlockDetailsTypeID, + "pageBlockRelatedArticles": PageBlockRelatedArticlesTypeID, + "pageBlockMap": PageBlockMapTypeID, + "webPageInstantView": WebPageInstantViewTypeID, + "webPage": WebPageTypeID, + "countryInfo": CountryInfoTypeID, + "countries": CountriesTypeID, + "phoneNumberInfo": PhoneNumberInfoTypeID, + "bankCardActionOpenUrl": BankCardActionOpenURLTypeID, + "bankCardInfo": BankCardInfoTypeID, + "address": AddressTypeID, + "themeParameters": ThemeParametersTypeID, + "labeledPricePart": LabeledPricePartTypeID, + "invoice": InvoiceTypeID, + "orderInfo": OrderInfoTypeID, + "shippingOption": ShippingOptionTypeID, + "savedCredentials": SavedCredentialsTypeID, + "inputCredentialsSaved": InputCredentialsSavedTypeID, + "inputCredentialsNew": InputCredentialsNewTypeID, + "inputCredentialsApplePay": InputCredentialsApplePayTypeID, + "inputCredentialsGooglePay": InputCredentialsGooglePayTypeID, + "paymentProviderSmartGlocal": PaymentProviderSmartGlocalTypeID, + "paymentProviderStripe": PaymentProviderStripeTypeID, + "paymentProviderOther": PaymentProviderOtherTypeID, + "paymentOption": PaymentOptionTypeID, + "paymentForm": PaymentFormTypeID, + "validatedOrderInfo": ValidatedOrderInfoTypeID, + "paymentResult": PaymentResultTypeID, + "paymentReceipt": PaymentReceiptTypeID, + "inputInvoiceMessage": InputInvoiceMessageTypeID, + "inputInvoiceName": InputInvoiceNameTypeID, + "messageExtendedMediaPreview": MessageExtendedMediaPreviewTypeID, + "messageExtendedMediaPhoto": MessageExtendedMediaPhotoTypeID, + "messageExtendedMediaVideo": MessageExtendedMediaVideoTypeID, + "messageExtendedMediaUnsupported": MessageExtendedMediaUnsupportedTypeID, + "datedFile": DatedFileTypeID, + "passportElementTypePersonalDetails": PassportElementTypePersonalDetailsTypeID, + "passportElementTypePassport": PassportElementTypePassportTypeID, + "passportElementTypeDriverLicense": PassportElementTypeDriverLicenseTypeID, + "passportElementTypeIdentityCard": PassportElementTypeIdentityCardTypeID, + "passportElementTypeInternalPassport": PassportElementTypeInternalPassportTypeID, + "passportElementTypeAddress": PassportElementTypeAddressTypeID, + "passportElementTypeUtilityBill": PassportElementTypeUtilityBillTypeID, + "passportElementTypeBankStatement": PassportElementTypeBankStatementTypeID, + "passportElementTypeRentalAgreement": PassportElementTypeRentalAgreementTypeID, + "passportElementTypePassportRegistration": PassportElementTypePassportRegistrationTypeID, + "passportElementTypeTemporaryRegistration": PassportElementTypeTemporaryRegistrationTypeID, + "passportElementTypePhoneNumber": PassportElementTypePhoneNumberTypeID, + "passportElementTypeEmailAddress": PassportElementTypeEmailAddressTypeID, + "date": DateTypeID, + "personalDetails": PersonalDetailsTypeID, + "identityDocument": IdentityDocumentTypeID, + "inputIdentityDocument": InputIdentityDocumentTypeID, + "personalDocument": PersonalDocumentTypeID, + "inputPersonalDocument": InputPersonalDocumentTypeID, + "passportElementPersonalDetails": PassportElementPersonalDetailsTypeID, + "passportElementPassport": PassportElementPassportTypeID, + "passportElementDriverLicense": PassportElementDriverLicenseTypeID, + "passportElementIdentityCard": PassportElementIdentityCardTypeID, + "passportElementInternalPassport": PassportElementInternalPassportTypeID, + "passportElementAddress": PassportElementAddressTypeID, + "passportElementUtilityBill": PassportElementUtilityBillTypeID, + "passportElementBankStatement": PassportElementBankStatementTypeID, + "passportElementRentalAgreement": PassportElementRentalAgreementTypeID, + "passportElementPassportRegistration": PassportElementPassportRegistrationTypeID, + "passportElementTemporaryRegistration": PassportElementTemporaryRegistrationTypeID, + "passportElementPhoneNumber": PassportElementPhoneNumberTypeID, + "passportElementEmailAddress": PassportElementEmailAddressTypeID, + "inputPassportElementPersonalDetails": InputPassportElementPersonalDetailsTypeID, + "inputPassportElementPassport": InputPassportElementPassportTypeID, + "inputPassportElementDriverLicense": InputPassportElementDriverLicenseTypeID, + "inputPassportElementIdentityCard": InputPassportElementIdentityCardTypeID, + "inputPassportElementInternalPassport": InputPassportElementInternalPassportTypeID, + "inputPassportElementAddress": InputPassportElementAddressTypeID, + "inputPassportElementUtilityBill": InputPassportElementUtilityBillTypeID, + "inputPassportElementBankStatement": InputPassportElementBankStatementTypeID, + "inputPassportElementRentalAgreement": InputPassportElementRentalAgreementTypeID, + "inputPassportElementPassportRegistration": InputPassportElementPassportRegistrationTypeID, + "inputPassportElementTemporaryRegistration": InputPassportElementTemporaryRegistrationTypeID, + "inputPassportElementPhoneNumber": InputPassportElementPhoneNumberTypeID, + "inputPassportElementEmailAddress": InputPassportElementEmailAddressTypeID, + "passportElements": PassportElementsTypeID, + "passportElementErrorSourceUnspecified": PassportElementErrorSourceUnspecifiedTypeID, + "passportElementErrorSourceDataField": PassportElementErrorSourceDataFieldTypeID, + "passportElementErrorSourceFrontSide": PassportElementErrorSourceFrontSideTypeID, + "passportElementErrorSourceReverseSide": PassportElementErrorSourceReverseSideTypeID, + "passportElementErrorSourceSelfie": PassportElementErrorSourceSelfieTypeID, + "passportElementErrorSourceTranslationFile": PassportElementErrorSourceTranslationFileTypeID, + "passportElementErrorSourceTranslationFiles": PassportElementErrorSourceTranslationFilesTypeID, + "passportElementErrorSourceFile": PassportElementErrorSourceFileTypeID, + "passportElementErrorSourceFiles": PassportElementErrorSourceFilesTypeID, + "passportElementError": PassportElementErrorTypeID, + "passportSuitableElement": PassportSuitableElementTypeID, + "passportRequiredElement": PassportRequiredElementTypeID, + "passportAuthorizationForm": PassportAuthorizationFormTypeID, + "passportElementsWithErrors": PassportElementsWithErrorsTypeID, + "encryptedCredentials": EncryptedCredentialsTypeID, + "encryptedPassportElement": EncryptedPassportElementTypeID, + "inputPassportElementErrorSourceUnspecified": InputPassportElementErrorSourceUnspecifiedTypeID, + "inputPassportElementErrorSourceDataField": InputPassportElementErrorSourceDataFieldTypeID, + "inputPassportElementErrorSourceFrontSide": InputPassportElementErrorSourceFrontSideTypeID, + "inputPassportElementErrorSourceReverseSide": InputPassportElementErrorSourceReverseSideTypeID, + "inputPassportElementErrorSourceSelfie": InputPassportElementErrorSourceSelfieTypeID, + "inputPassportElementErrorSourceTranslationFile": InputPassportElementErrorSourceTranslationFileTypeID, + "inputPassportElementErrorSourceTranslationFiles": InputPassportElementErrorSourceTranslationFilesTypeID, + "inputPassportElementErrorSourceFile": InputPassportElementErrorSourceFileTypeID, + "inputPassportElementErrorSourceFiles": InputPassportElementErrorSourceFilesTypeID, + "inputPassportElementError": InputPassportElementErrorTypeID, + "messageText": MessageTextTypeID, + "messageAnimation": MessageAnimationTypeID, + "messageAudio": MessageAudioTypeID, + "messageDocument": MessageDocumentTypeID, + "messagePhoto": MessagePhotoTypeID, + "messageExpiredPhoto": MessageExpiredPhotoTypeID, + "messageSticker": MessageStickerTypeID, + "messageVideo": MessageVideoTypeID, + "messageExpiredVideo": MessageExpiredVideoTypeID, + "messageVideoNote": MessageVideoNoteTypeID, + "messageVoiceNote": MessageVoiceNoteTypeID, + "messageLocation": MessageLocationTypeID, + "messageVenue": MessageVenueTypeID, + "messageContact": MessageContactTypeID, + "messageAnimatedEmoji": MessageAnimatedEmojiTypeID, + "messageDice": MessageDiceTypeID, + "messageGame": MessageGameTypeID, + "messagePoll": MessagePollTypeID, + "messageInvoice": MessageInvoiceTypeID, + "messageCall": MessageCallTypeID, + "messageVideoChatScheduled": MessageVideoChatScheduledTypeID, + "messageVideoChatStarted": MessageVideoChatStartedTypeID, + "messageVideoChatEnded": MessageVideoChatEndedTypeID, + "messageInviteVideoChatParticipants": MessageInviteVideoChatParticipantsTypeID, + "messageBasicGroupChatCreate": MessageBasicGroupChatCreateTypeID, + "messageSupergroupChatCreate": MessageSupergroupChatCreateTypeID, + "messageChatChangeTitle": MessageChatChangeTitleTypeID, + "messageChatChangePhoto": MessageChatChangePhotoTypeID, + "messageChatDeletePhoto": MessageChatDeletePhotoTypeID, + "messageChatAddMembers": MessageChatAddMembersTypeID, + "messageChatJoinByLink": MessageChatJoinByLinkTypeID, + "messageChatJoinByRequest": MessageChatJoinByRequestTypeID, + "messageChatDeleteMember": MessageChatDeleteMemberTypeID, + "messageChatUpgradeTo": MessageChatUpgradeToTypeID, + "messageChatUpgradeFrom": MessageChatUpgradeFromTypeID, + "messagePinMessage": MessagePinMessageTypeID, + "messageScreenshotTaken": MessageScreenshotTakenTypeID, + "messageChatSetTheme": MessageChatSetThemeTypeID, + "messageChatSetMessageAutoDeleteTime": MessageChatSetMessageAutoDeleteTimeTypeID, + "messageForumTopicCreated": MessageForumTopicCreatedTypeID, + "messageForumTopicEdited": MessageForumTopicEditedTypeID, + "messageForumTopicIsClosedToggled": MessageForumTopicIsClosedToggledTypeID, + "messageForumTopicIsHiddenToggled": MessageForumTopicIsHiddenToggledTypeID, + "messageSuggestProfilePhoto": MessageSuggestProfilePhotoTypeID, + "messageCustomServiceAction": MessageCustomServiceActionTypeID, + "messageGameScore": MessageGameScoreTypeID, + "messagePaymentSuccessful": MessagePaymentSuccessfulTypeID, + "messagePaymentSuccessfulBot": MessagePaymentSuccessfulBotTypeID, + "messageGiftedPremium": MessageGiftedPremiumTypeID, + "messageContactRegistered": MessageContactRegisteredTypeID, + "messageUserShared": MessageUserSharedTypeID, + "messageChatShared": MessageChatSharedTypeID, + "messageWebsiteConnected": MessageWebsiteConnectedTypeID, + "messageBotWriteAccessAllowed": MessageBotWriteAccessAllowedTypeID, + "messageWebAppDataSent": MessageWebAppDataSentTypeID, + "messageWebAppDataReceived": MessageWebAppDataReceivedTypeID, + "messagePassportDataSent": MessagePassportDataSentTypeID, + "messagePassportDataReceived": MessagePassportDataReceivedTypeID, + "messageProximityAlertTriggered": MessageProximityAlertTriggeredTypeID, + "messageUnsupported": MessageUnsupportedTypeID, + "textEntityTypeMention": TextEntityTypeMentionTypeID, + "textEntityTypeHashtag": TextEntityTypeHashtagTypeID, + "textEntityTypeCashtag": TextEntityTypeCashtagTypeID, + "textEntityTypeBotCommand": TextEntityTypeBotCommandTypeID, + "textEntityTypeUrl": TextEntityTypeURLTypeID, + "textEntityTypeEmailAddress": TextEntityTypeEmailAddressTypeID, + "textEntityTypePhoneNumber": TextEntityTypePhoneNumberTypeID, + "textEntityTypeBankCardNumber": TextEntityTypeBankCardNumberTypeID, + "textEntityTypeBold": TextEntityTypeBoldTypeID, + "textEntityTypeItalic": TextEntityTypeItalicTypeID, + "textEntityTypeUnderline": TextEntityTypeUnderlineTypeID, + "textEntityTypeStrikethrough": TextEntityTypeStrikethroughTypeID, + "textEntityTypeSpoiler": TextEntityTypeSpoilerTypeID, + "textEntityTypeCode": TextEntityTypeCodeTypeID, + "textEntityTypePre": TextEntityTypePreTypeID, + "textEntityTypePreCode": TextEntityTypePreCodeTypeID, + "textEntityTypeTextUrl": TextEntityTypeTextURLTypeID, + "textEntityTypeMentionName": TextEntityTypeMentionNameTypeID, + "textEntityTypeCustomEmoji": TextEntityTypeCustomEmojiTypeID, + "textEntityTypeMediaTimestamp": TextEntityTypeMediaTimestampTypeID, + "inputThumbnail": InputThumbnailTypeID, + "messageSchedulingStateSendAtDate": MessageSchedulingStateSendAtDateTypeID, + "messageSchedulingStateSendWhenOnline": MessageSchedulingStateSendWhenOnlineTypeID, + "messageSendOptions": MessageSendOptionsTypeID, + "messageCopyOptions": MessageCopyOptionsTypeID, + "inputMessageText": InputMessageTextTypeID, + "inputMessageAnimation": InputMessageAnimationTypeID, + "inputMessageAudio": InputMessageAudioTypeID, + "inputMessageDocument": InputMessageDocumentTypeID, + "inputMessagePhoto": InputMessagePhotoTypeID, + "inputMessageSticker": InputMessageStickerTypeID, + "inputMessageVideo": InputMessageVideoTypeID, + "inputMessageVideoNote": InputMessageVideoNoteTypeID, + "inputMessageVoiceNote": InputMessageVoiceNoteTypeID, + "inputMessageLocation": InputMessageLocationTypeID, + "inputMessageVenue": InputMessageVenueTypeID, + "inputMessageContact": InputMessageContactTypeID, + "inputMessageDice": InputMessageDiceTypeID, + "inputMessageGame": InputMessageGameTypeID, + "inputMessageInvoice": InputMessageInvoiceTypeID, + "inputMessagePoll": InputMessagePollTypeID, + "inputMessageForwarded": InputMessageForwardedTypeID, + "searchMessagesFilterEmpty": SearchMessagesFilterEmptyTypeID, + "searchMessagesFilterAnimation": SearchMessagesFilterAnimationTypeID, + "searchMessagesFilterAudio": SearchMessagesFilterAudioTypeID, + "searchMessagesFilterDocument": SearchMessagesFilterDocumentTypeID, + "searchMessagesFilterPhoto": SearchMessagesFilterPhotoTypeID, + "searchMessagesFilterVideo": SearchMessagesFilterVideoTypeID, + "searchMessagesFilterVoiceNote": SearchMessagesFilterVoiceNoteTypeID, + "searchMessagesFilterPhotoAndVideo": SearchMessagesFilterPhotoAndVideoTypeID, + "searchMessagesFilterUrl": SearchMessagesFilterURLTypeID, + "searchMessagesFilterChatPhoto": SearchMessagesFilterChatPhotoTypeID, + "searchMessagesFilterVideoNote": SearchMessagesFilterVideoNoteTypeID, + "searchMessagesFilterVoiceAndVideoNote": SearchMessagesFilterVoiceAndVideoNoteTypeID, + "searchMessagesFilterMention": SearchMessagesFilterMentionTypeID, + "searchMessagesFilterUnreadMention": SearchMessagesFilterUnreadMentionTypeID, + "searchMessagesFilterUnreadReaction": SearchMessagesFilterUnreadReactionTypeID, + "searchMessagesFilterFailedToSend": SearchMessagesFilterFailedToSendTypeID, + "searchMessagesFilterPinned": SearchMessagesFilterPinnedTypeID, + "chatActionTyping": ChatActionTypingTypeID, + "chatActionRecordingVideo": ChatActionRecordingVideoTypeID, + "chatActionUploadingVideo": ChatActionUploadingVideoTypeID, + "chatActionRecordingVoiceNote": ChatActionRecordingVoiceNoteTypeID, + "chatActionUploadingVoiceNote": ChatActionUploadingVoiceNoteTypeID, + "chatActionUploadingPhoto": ChatActionUploadingPhotoTypeID, + "chatActionUploadingDocument": ChatActionUploadingDocumentTypeID, + "chatActionChoosingSticker": ChatActionChoosingStickerTypeID, + "chatActionChoosingLocation": ChatActionChoosingLocationTypeID, + "chatActionChoosingContact": ChatActionChoosingContactTypeID, + "chatActionStartPlayingGame": ChatActionStartPlayingGameTypeID, + "chatActionRecordingVideoNote": ChatActionRecordingVideoNoteTypeID, + "chatActionUploadingVideoNote": ChatActionUploadingVideoNoteTypeID, + "chatActionWatchingAnimations": ChatActionWatchingAnimationsTypeID, + "chatActionCancel": ChatActionCancelTypeID, + "userStatusEmpty": UserStatusEmptyTypeID, + "userStatusOnline": UserStatusOnlineTypeID, + "userStatusOffline": UserStatusOfflineTypeID, + "userStatusRecently": UserStatusRecentlyTypeID, + "userStatusLastWeek": UserStatusLastWeekTypeID, + "userStatusLastMonth": UserStatusLastMonthTypeID, + "stickers": StickersTypeID, + "emojis": EmojisTypeID, + "stickerSet": StickerSetTypeID, + "stickerSetInfo": StickerSetInfoTypeID, + "stickerSets": StickerSetsTypeID, + "trendingStickerSets": TrendingStickerSetsTypeID, + "emojiCategory": EmojiCategoryTypeID, + "emojiCategories": EmojiCategoriesTypeID, + "emojiCategoryTypeDefault": EmojiCategoryTypeDefaultTypeID, + "emojiCategoryTypeEmojiStatus": EmojiCategoryTypeEmojiStatusTypeID, + "emojiCategoryTypeChatPhoto": EmojiCategoryTypeChatPhotoTypeID, + "callDiscardReasonEmpty": CallDiscardReasonEmptyTypeID, + "callDiscardReasonMissed": CallDiscardReasonMissedTypeID, + "callDiscardReasonDeclined": CallDiscardReasonDeclinedTypeID, + "callDiscardReasonDisconnected": CallDiscardReasonDisconnectedTypeID, + "callDiscardReasonHungUp": CallDiscardReasonHungUpTypeID, + "callProtocol": CallProtocolTypeID, + "callServerTypeTelegramReflector": CallServerTypeTelegramReflectorTypeID, + "callServerTypeWebrtc": CallServerTypeWebrtcTypeID, + "callServer": CallServerTypeID, + "callId": CallIDTypeID, + "groupCallId": GroupCallIDTypeID, + "callStatePending": CallStatePendingTypeID, + "callStateExchangingKeys": CallStateExchangingKeysTypeID, + "callStateReady": CallStateReadyTypeID, + "callStateHangingUp": CallStateHangingUpTypeID, + "callStateDiscarded": CallStateDiscardedTypeID, + "callStateError": CallStateErrorTypeID, + "groupCallVideoQualityThumbnail": GroupCallVideoQualityThumbnailTypeID, + "groupCallVideoQualityMedium": GroupCallVideoQualityMediumTypeID, + "groupCallVideoQualityFull": GroupCallVideoQualityFullTypeID, + "groupCallStream": GroupCallStreamTypeID, + "groupCallStreams": GroupCallStreamsTypeID, + "rtmpUrl": RtmpURLTypeID, + "groupCallRecentSpeaker": GroupCallRecentSpeakerTypeID, + "groupCall": GroupCallTypeID, + "groupCallVideoSourceGroup": GroupCallVideoSourceGroupTypeID, + "groupCallParticipantVideoInfo": GroupCallParticipantVideoInfoTypeID, + "groupCallParticipant": GroupCallParticipantTypeID, + "callProblemEcho": CallProblemEchoTypeID, + "callProblemNoise": CallProblemNoiseTypeID, + "callProblemInterruptions": CallProblemInterruptionsTypeID, + "callProblemDistortedSpeech": CallProblemDistortedSpeechTypeID, + "callProblemSilentLocal": CallProblemSilentLocalTypeID, + "callProblemSilentRemote": CallProblemSilentRemoteTypeID, + "callProblemDropped": CallProblemDroppedTypeID, + "callProblemDistortedVideo": CallProblemDistortedVideoTypeID, + "callProblemPixelatedVideo": CallProblemPixelatedVideoTypeID, + "call": CallTypeID, + "firebaseAuthenticationSettingsAndroid": FirebaseAuthenticationSettingsAndroidTypeID, + "firebaseAuthenticationSettingsIos": FirebaseAuthenticationSettingsIosTypeID, + "phoneNumberAuthenticationSettings": PhoneNumberAuthenticationSettingsTypeID, + "addedReaction": AddedReactionTypeID, + "addedReactions": AddedReactionsTypeID, + "availableReaction": AvailableReactionTypeID, + "availableReactions": AvailableReactionsTypeID, + "emojiReaction": EmojiReactionTypeID, + "animations": AnimationsTypeID, + "diceStickersRegular": DiceStickersRegularTypeID, + "diceStickersSlotMachine": DiceStickersSlotMachineTypeID, + "importedContacts": ImportedContactsTypeID, + "speechRecognitionResultPending": SpeechRecognitionResultPendingTypeID, + "speechRecognitionResultText": SpeechRecognitionResultTextTypeID, + "speechRecognitionResultError": SpeechRecognitionResultErrorTypeID, + "attachmentMenuBotColor": AttachmentMenuBotColorTypeID, + "attachmentMenuBot": AttachmentMenuBotTypeID, + "sentWebAppMessage": SentWebAppMessageTypeID, + "httpUrl": HTTPURLTypeID, + "userLink": UserLinkTypeID, + "inputInlineQueryResultAnimation": InputInlineQueryResultAnimationTypeID, + "inputInlineQueryResultArticle": InputInlineQueryResultArticleTypeID, + "inputInlineQueryResultAudio": InputInlineQueryResultAudioTypeID, + "inputInlineQueryResultContact": InputInlineQueryResultContactTypeID, + "inputInlineQueryResultDocument": InputInlineQueryResultDocumentTypeID, + "inputInlineQueryResultGame": InputInlineQueryResultGameTypeID, + "inputInlineQueryResultLocation": InputInlineQueryResultLocationTypeID, + "inputInlineQueryResultPhoto": InputInlineQueryResultPhotoTypeID, + "inputInlineQueryResultSticker": InputInlineQueryResultStickerTypeID, + "inputInlineQueryResultVenue": InputInlineQueryResultVenueTypeID, + "inputInlineQueryResultVideo": InputInlineQueryResultVideoTypeID, + "inputInlineQueryResultVoiceNote": InputInlineQueryResultVoiceNoteTypeID, + "inlineQueryResultArticle": InlineQueryResultArticleTypeID, + "inlineQueryResultContact": InlineQueryResultContactTypeID, + "inlineQueryResultLocation": InlineQueryResultLocationTypeID, + "inlineQueryResultVenue": InlineQueryResultVenueTypeID, + "inlineQueryResultGame": InlineQueryResultGameTypeID, + "inlineQueryResultAnimation": InlineQueryResultAnimationTypeID, + "inlineQueryResultAudio": InlineQueryResultAudioTypeID, + "inlineQueryResultDocument": InlineQueryResultDocumentTypeID, + "inlineQueryResultPhoto": InlineQueryResultPhotoTypeID, + "inlineQueryResultSticker": InlineQueryResultStickerTypeID, + "inlineQueryResultVideo": InlineQueryResultVideoTypeID, + "inlineQueryResultVoiceNote": InlineQueryResultVoiceNoteTypeID, + "inlineQueryResultsButtonTypeStartBot": InlineQueryResultsButtonTypeStartBotTypeID, + "inlineQueryResultsButtonTypeWebApp": InlineQueryResultsButtonTypeWebAppTypeID, + "inlineQueryResultsButton": InlineQueryResultsButtonTypeID, + "inlineQueryResults": InlineQueryResultsTypeID, + "callbackQueryPayloadData": CallbackQueryPayloadDataTypeID, + "callbackQueryPayloadDataWithPassword": CallbackQueryPayloadDataWithPasswordTypeID, + "callbackQueryPayloadGame": CallbackQueryPayloadGameTypeID, + "callbackQueryAnswer": CallbackQueryAnswerTypeID, + "customRequestResult": CustomRequestResultTypeID, + "gameHighScore": GameHighScoreTypeID, + "gameHighScores": GameHighScoresTypeID, + "chatEventMessageEdited": ChatEventMessageEditedTypeID, + "chatEventMessageDeleted": ChatEventMessageDeletedTypeID, + "chatEventMessagePinned": ChatEventMessagePinnedTypeID, + "chatEventMessageUnpinned": ChatEventMessageUnpinnedTypeID, + "chatEventPollStopped": ChatEventPollStoppedTypeID, + "chatEventMemberJoined": ChatEventMemberJoinedTypeID, + "chatEventMemberJoinedByInviteLink": ChatEventMemberJoinedByInviteLinkTypeID, + "chatEventMemberJoinedByRequest": ChatEventMemberJoinedByRequestTypeID, + "chatEventMemberInvited": ChatEventMemberInvitedTypeID, + "chatEventMemberLeft": ChatEventMemberLeftTypeID, + "chatEventMemberPromoted": ChatEventMemberPromotedTypeID, + "chatEventMemberRestricted": ChatEventMemberRestrictedTypeID, + "chatEventAvailableReactionsChanged": ChatEventAvailableReactionsChangedTypeID, + "chatEventDescriptionChanged": ChatEventDescriptionChangedTypeID, + "chatEventLinkedChatChanged": ChatEventLinkedChatChangedTypeID, + "chatEventLocationChanged": ChatEventLocationChangedTypeID, + "chatEventMessageAutoDeleteTimeChanged": ChatEventMessageAutoDeleteTimeChangedTypeID, + "chatEventPermissionsChanged": ChatEventPermissionsChangedTypeID, + "chatEventPhotoChanged": ChatEventPhotoChangedTypeID, + "chatEventSlowModeDelayChanged": ChatEventSlowModeDelayChangedTypeID, + "chatEventStickerSetChanged": ChatEventStickerSetChangedTypeID, + "chatEventTitleChanged": ChatEventTitleChangedTypeID, + "chatEventUsernameChanged": ChatEventUsernameChangedTypeID, + "chatEventActiveUsernamesChanged": ChatEventActiveUsernamesChangedTypeID, + "chatEventHasProtectedContentToggled": ChatEventHasProtectedContentToggledTypeID, + "chatEventInvitesToggled": ChatEventInvitesToggledTypeID, + "chatEventIsAllHistoryAvailableToggled": ChatEventIsAllHistoryAvailableToggledTypeID, + "chatEventHasAggressiveAntiSpamEnabledToggled": ChatEventHasAggressiveAntiSpamEnabledToggledTypeID, + "chatEventSignMessagesToggled": ChatEventSignMessagesToggledTypeID, + "chatEventInviteLinkEdited": ChatEventInviteLinkEditedTypeID, + "chatEventInviteLinkRevoked": ChatEventInviteLinkRevokedTypeID, + "chatEventInviteLinkDeleted": ChatEventInviteLinkDeletedTypeID, + "chatEventVideoChatCreated": ChatEventVideoChatCreatedTypeID, + "chatEventVideoChatEnded": ChatEventVideoChatEndedTypeID, + "chatEventVideoChatMuteNewParticipantsToggled": ChatEventVideoChatMuteNewParticipantsToggledTypeID, + "chatEventVideoChatParticipantIsMutedToggled": ChatEventVideoChatParticipantIsMutedToggledTypeID, + "chatEventVideoChatParticipantVolumeLevelChanged": ChatEventVideoChatParticipantVolumeLevelChangedTypeID, + "chatEventIsForumToggled": ChatEventIsForumToggledTypeID, + "chatEventForumTopicCreated": ChatEventForumTopicCreatedTypeID, + "chatEventForumTopicEdited": ChatEventForumTopicEditedTypeID, + "chatEventForumTopicToggleIsClosed": ChatEventForumTopicToggleIsClosedTypeID, + "chatEventForumTopicToggleIsHidden": ChatEventForumTopicToggleIsHiddenTypeID, + "chatEventForumTopicDeleted": ChatEventForumTopicDeletedTypeID, + "chatEventForumTopicPinned": ChatEventForumTopicPinnedTypeID, + "chatEvent": ChatEventTypeID, + "chatEvents": ChatEventsTypeID, + "chatEventLogFilters": ChatEventLogFiltersTypeID, + "languagePackStringValueOrdinary": LanguagePackStringValueOrdinaryTypeID, + "languagePackStringValuePluralized": LanguagePackStringValuePluralizedTypeID, + "languagePackStringValueDeleted": LanguagePackStringValueDeletedTypeID, + "languagePackString": LanguagePackStringTypeID, + "languagePackStrings": LanguagePackStringsTypeID, + "languagePackInfo": LanguagePackInfoTypeID, + "localizationTargetInfo": LocalizationTargetInfoTypeID, + "premiumLimitTypeSupergroupCount": PremiumLimitTypeSupergroupCountTypeID, + "premiumLimitTypePinnedChatCount": PremiumLimitTypePinnedChatCountTypeID, + "premiumLimitTypeCreatedPublicChatCount": PremiumLimitTypeCreatedPublicChatCountTypeID, + "premiumLimitTypeSavedAnimationCount": PremiumLimitTypeSavedAnimationCountTypeID, + "premiumLimitTypeFavoriteStickerCount": PremiumLimitTypeFavoriteStickerCountTypeID, + "premiumLimitTypeChatFilterCount": PremiumLimitTypeChatFilterCountTypeID, + "premiumLimitTypeChatFilterChosenChatCount": PremiumLimitTypeChatFilterChosenChatCountTypeID, + "premiumLimitTypePinnedArchivedChatCount": PremiumLimitTypePinnedArchivedChatCountTypeID, + "premiumLimitTypeCaptionLength": PremiumLimitTypeCaptionLengthTypeID, + "premiumLimitTypeBioLength": PremiumLimitTypeBioLengthTypeID, + "premiumFeatureIncreasedLimits": PremiumFeatureIncreasedLimitsTypeID, + "premiumFeatureIncreasedUploadFileSize": PremiumFeatureIncreasedUploadFileSizeTypeID, + "premiumFeatureImprovedDownloadSpeed": PremiumFeatureImprovedDownloadSpeedTypeID, + "premiumFeatureVoiceRecognition": PremiumFeatureVoiceRecognitionTypeID, + "premiumFeatureDisabledAds": PremiumFeatureDisabledAdsTypeID, + "premiumFeatureUniqueReactions": PremiumFeatureUniqueReactionsTypeID, + "premiumFeatureUniqueStickers": PremiumFeatureUniqueStickersTypeID, + "premiumFeatureCustomEmoji": PremiumFeatureCustomEmojiTypeID, + "premiumFeatureAdvancedChatManagement": PremiumFeatureAdvancedChatManagementTypeID, + "premiumFeatureProfileBadge": PremiumFeatureProfileBadgeTypeID, + "premiumFeatureEmojiStatus": PremiumFeatureEmojiStatusTypeID, + "premiumFeatureAnimatedProfilePhoto": PremiumFeatureAnimatedProfilePhotoTypeID, + "premiumFeatureForumTopicIcon": PremiumFeatureForumTopicIconTypeID, + "premiumFeatureAppIcons": PremiumFeatureAppIconsTypeID, + "premiumFeatureRealTimeChatTranslation": PremiumFeatureRealTimeChatTranslationTypeID, + "premiumLimit": PremiumLimitTypeID, + "premiumFeatures": PremiumFeaturesTypeID, + "premiumSourceLimitExceeded": PremiumSourceLimitExceededTypeID, + "premiumSourceFeature": PremiumSourceFeatureTypeID, + "premiumSourceLink": PremiumSourceLinkTypeID, + "premiumSourceSettings": PremiumSourceSettingsTypeID, + "premiumFeaturePromotionAnimation": PremiumFeaturePromotionAnimationTypeID, + "premiumState": PremiumStateTypeID, + "storePaymentPurposePremiumSubscription": StorePaymentPurposePremiumSubscriptionTypeID, + "storePaymentPurposeGiftedPremium": StorePaymentPurposeGiftedPremiumTypeID, + "deviceTokenFirebaseCloudMessaging": DeviceTokenFirebaseCloudMessagingTypeID, + "deviceTokenApplePush": DeviceTokenApplePushTypeID, + "deviceTokenApplePushVoIP": DeviceTokenApplePushVoIPTypeID, + "deviceTokenWindowsPush": DeviceTokenWindowsPushTypeID, + "deviceTokenMicrosoftPush": DeviceTokenMicrosoftPushTypeID, + "deviceTokenMicrosoftPushVoIP": DeviceTokenMicrosoftPushVoIPTypeID, + "deviceTokenWebPush": DeviceTokenWebPushTypeID, + "deviceTokenSimplePush": DeviceTokenSimplePushTypeID, + "deviceTokenUbuntuPush": DeviceTokenUbuntuPushTypeID, + "deviceTokenBlackBerryPush": DeviceTokenBlackBerryPushTypeID, + "deviceTokenTizenPush": DeviceTokenTizenPushTypeID, + "deviceTokenHuaweiPush": DeviceTokenHuaweiPushTypeID, + "pushReceiverId": PushReceiverIDTypeID, + "backgroundFillSolid": BackgroundFillSolidTypeID, + "backgroundFillGradient": BackgroundFillGradientTypeID, + "backgroundFillFreeformGradient": BackgroundFillFreeformGradientTypeID, + "backgroundTypeWallpaper": BackgroundTypeWallpaperTypeID, + "backgroundTypePattern": BackgroundTypePatternTypeID, + "backgroundTypeFill": BackgroundTypeFillTypeID, + "background": BackgroundTypeID, + "backgrounds": BackgroundsTypeID, + "inputBackgroundLocal": InputBackgroundLocalTypeID, + "inputBackgroundRemote": InputBackgroundRemoteTypeID, + "themeSettings": ThemeSettingsTypeID, + "chatTheme": ChatThemeTypeID, + "hashtags": HashtagsTypeID, + "canTransferOwnershipResultOk": CanTransferOwnershipResultOkTypeID, + "canTransferOwnershipResultPasswordNeeded": CanTransferOwnershipResultPasswordNeededTypeID, + "canTransferOwnershipResultPasswordTooFresh": CanTransferOwnershipResultPasswordTooFreshTypeID, + "canTransferOwnershipResultSessionTooFresh": CanTransferOwnershipResultSessionTooFreshTypeID, + "checkChatUsernameResultOk": CheckChatUsernameResultOkTypeID, + "checkChatUsernameResultUsernameInvalid": CheckChatUsernameResultUsernameInvalidTypeID, + "checkChatUsernameResultUsernameOccupied": CheckChatUsernameResultUsernameOccupiedTypeID, + "checkChatUsernameResultUsernamePurchasable": CheckChatUsernameResultUsernamePurchasableTypeID, + "checkChatUsernameResultPublicChatsTooMany": CheckChatUsernameResultPublicChatsTooManyTypeID, + "checkChatUsernameResultPublicGroupsUnavailable": CheckChatUsernameResultPublicGroupsUnavailableTypeID, + "checkStickerSetNameResultOk": CheckStickerSetNameResultOkTypeID, + "checkStickerSetNameResultNameInvalid": CheckStickerSetNameResultNameInvalidTypeID, + "checkStickerSetNameResultNameOccupied": CheckStickerSetNameResultNameOccupiedTypeID, + "resetPasswordResultOk": ResetPasswordResultOkTypeID, + "resetPasswordResultPending": ResetPasswordResultPendingTypeID, + "resetPasswordResultDeclined": ResetPasswordResultDeclinedTypeID, + "messageFileTypePrivate": MessageFileTypePrivateTypeID, + "messageFileTypeGroup": MessageFileTypeGroupTypeID, + "messageFileTypeUnknown": MessageFileTypeUnknownTypeID, + "pushMessageContentHidden": PushMessageContentHiddenTypeID, + "pushMessageContentAnimation": PushMessageContentAnimationTypeID, + "pushMessageContentAudio": PushMessageContentAudioTypeID, + "pushMessageContentContact": PushMessageContentContactTypeID, + "pushMessageContentContactRegistered": PushMessageContentContactRegisteredTypeID, + "pushMessageContentDocument": PushMessageContentDocumentTypeID, + "pushMessageContentGame": PushMessageContentGameTypeID, + "pushMessageContentGameScore": PushMessageContentGameScoreTypeID, + "pushMessageContentInvoice": PushMessageContentInvoiceTypeID, + "pushMessageContentLocation": PushMessageContentLocationTypeID, + "pushMessageContentPhoto": PushMessageContentPhotoTypeID, + "pushMessageContentPoll": PushMessageContentPollTypeID, + "pushMessageContentScreenshotTaken": PushMessageContentScreenshotTakenTypeID, + "pushMessageContentSticker": PushMessageContentStickerTypeID, + "pushMessageContentText": PushMessageContentTextTypeID, + "pushMessageContentVideo": PushMessageContentVideoTypeID, + "pushMessageContentVideoNote": PushMessageContentVideoNoteTypeID, + "pushMessageContentVoiceNote": PushMessageContentVoiceNoteTypeID, + "pushMessageContentBasicGroupChatCreate": PushMessageContentBasicGroupChatCreateTypeID, + "pushMessageContentChatAddMembers": PushMessageContentChatAddMembersTypeID, + "pushMessageContentChatChangePhoto": PushMessageContentChatChangePhotoTypeID, + "pushMessageContentChatChangeTitle": PushMessageContentChatChangeTitleTypeID, + "pushMessageContentChatSetTheme": PushMessageContentChatSetThemeTypeID, + "pushMessageContentChatDeleteMember": PushMessageContentChatDeleteMemberTypeID, + "pushMessageContentChatJoinByLink": PushMessageContentChatJoinByLinkTypeID, + "pushMessageContentChatJoinByRequest": PushMessageContentChatJoinByRequestTypeID, + "pushMessageContentRecurringPayment": PushMessageContentRecurringPaymentTypeID, + "pushMessageContentSuggestProfilePhoto": PushMessageContentSuggestProfilePhotoTypeID, + "pushMessageContentMessageForwards": PushMessageContentMessageForwardsTypeID, + "pushMessageContentMediaAlbum": PushMessageContentMediaAlbumTypeID, + "notificationTypeNewMessage": NotificationTypeNewMessageTypeID, + "notificationTypeNewSecretChat": NotificationTypeNewSecretChatTypeID, + "notificationTypeNewCall": NotificationTypeNewCallTypeID, + "notificationTypeNewPushMessage": NotificationTypeNewPushMessageTypeID, + "notificationGroupTypeMessages": NotificationGroupTypeMessagesTypeID, + "notificationGroupTypeMentions": NotificationGroupTypeMentionsTypeID, + "notificationGroupTypeSecretChat": NotificationGroupTypeSecretChatTypeID, + "notificationGroupTypeCalls": NotificationGroupTypeCallsTypeID, + "notificationSound": NotificationSoundTypeID, + "notificationSounds": NotificationSoundsTypeID, + "notification": NotificationTypeID, + "notificationGroup": NotificationGroupTypeID, + "optionValueBoolean": OptionValueBooleanTypeID, + "optionValueEmpty": OptionValueEmptyTypeID, + "optionValueInteger": OptionValueIntegerTypeID, + "optionValueString": OptionValueStringTypeID, + "jsonObjectMember": JSONObjectMemberTypeID, + "jsonValueNull": JSONValueNullTypeID, + "jsonValueBoolean": JSONValueBooleanTypeID, + "jsonValueNumber": JSONValueNumberTypeID, + "jsonValueString": JSONValueStringTypeID, + "jsonValueArray": JSONValueArrayTypeID, + "jsonValueObject": JSONValueObjectTypeID, + "userPrivacySettingRuleAllowAll": UserPrivacySettingRuleAllowAllTypeID, + "userPrivacySettingRuleAllowContacts": UserPrivacySettingRuleAllowContactsTypeID, + "userPrivacySettingRuleAllowUsers": UserPrivacySettingRuleAllowUsersTypeID, + "userPrivacySettingRuleAllowChatMembers": UserPrivacySettingRuleAllowChatMembersTypeID, + "userPrivacySettingRuleRestrictAll": UserPrivacySettingRuleRestrictAllTypeID, + "userPrivacySettingRuleRestrictContacts": UserPrivacySettingRuleRestrictContactsTypeID, + "userPrivacySettingRuleRestrictUsers": UserPrivacySettingRuleRestrictUsersTypeID, + "userPrivacySettingRuleRestrictChatMembers": UserPrivacySettingRuleRestrictChatMembersTypeID, + "userPrivacySettingRules": UserPrivacySettingRulesTypeID, + "userPrivacySettingShowStatus": UserPrivacySettingShowStatusTypeID, + "userPrivacySettingShowProfilePhoto": UserPrivacySettingShowProfilePhotoTypeID, + "userPrivacySettingShowLinkInForwardedMessages": UserPrivacySettingShowLinkInForwardedMessagesTypeID, + "userPrivacySettingShowPhoneNumber": UserPrivacySettingShowPhoneNumberTypeID, + "userPrivacySettingAllowChatInvites": UserPrivacySettingAllowChatInvitesTypeID, + "userPrivacySettingAllowCalls": UserPrivacySettingAllowCallsTypeID, + "userPrivacySettingAllowPeerToPeerCalls": UserPrivacySettingAllowPeerToPeerCallsTypeID, + "userPrivacySettingAllowFindingByPhoneNumber": UserPrivacySettingAllowFindingByPhoneNumberTypeID, "userPrivacySettingAllowPrivateVoiceAndVideoNoteMessages": UserPrivacySettingAllowPrivateVoiceAndVideoNoteMessagesTypeID, - "accountTtl": AccountTTLTypeID, - "messageAutoDeleteTime": MessageAutoDeleteTimeTypeID, - "sessionTypeAndroid": SessionTypeAndroidTypeID, - "sessionTypeApple": SessionTypeAppleTypeID, - "sessionTypeBrave": SessionTypeBraveTypeID, - "sessionTypeChrome": SessionTypeChromeTypeID, - "sessionTypeEdge": SessionTypeEdgeTypeID, - "sessionTypeFirefox": SessionTypeFirefoxTypeID, - "sessionTypeIpad": SessionTypeIpadTypeID, - "sessionTypeIphone": SessionTypeIphoneTypeID, - "sessionTypeLinux": SessionTypeLinuxTypeID, - "sessionTypeMac": SessionTypeMACTypeID, - "sessionTypeOpera": SessionTypeOperaTypeID, - "sessionTypeSafari": SessionTypeSafariTypeID, - "sessionTypeUbuntu": SessionTypeUbuntuTypeID, - "sessionTypeUnknown": SessionTypeUnknownTypeID, - "sessionTypeVivaldi": SessionTypeVivaldiTypeID, - "sessionTypeWindows": SessionTypeWindowsTypeID, - "sessionTypeXbox": SessionTypeXboxTypeID, - "session": SessionTypeID, - "sessions": SessionsTypeID, - "connectedWebsite": ConnectedWebsiteTypeID, - "connectedWebsites": ConnectedWebsitesTypeID, - "chatReportReasonSpam": ChatReportReasonSpamTypeID, - "chatReportReasonViolence": ChatReportReasonViolenceTypeID, - "chatReportReasonPornography": ChatReportReasonPornographyTypeID, - "chatReportReasonChildAbuse": ChatReportReasonChildAbuseTypeID, - "chatReportReasonCopyright": ChatReportReasonCopyrightTypeID, - "chatReportReasonUnrelatedLocation": ChatReportReasonUnrelatedLocationTypeID, - "chatReportReasonFake": ChatReportReasonFakeTypeID, - "chatReportReasonIllegalDrugs": ChatReportReasonIllegalDrugsTypeID, - "chatReportReasonPersonalDetails": ChatReportReasonPersonalDetailsTypeID, - "chatReportReasonCustom": ChatReportReasonCustomTypeID, - "targetChatCurrent": TargetChatCurrentTypeID, - "targetChatChosen": TargetChatChosenTypeID, - "targetChatInternalLink": TargetChatInternalLinkTypeID, - "internalLinkTypeActiveSessions": InternalLinkTypeActiveSessionsTypeID, - "internalLinkTypeAttachmentMenuBot": InternalLinkTypeAttachmentMenuBotTypeID, - "internalLinkTypeAuthenticationCode": InternalLinkTypeAuthenticationCodeTypeID, - "internalLinkTypeBackground": InternalLinkTypeBackgroundTypeID, - "internalLinkTypeBotAddToChannel": InternalLinkTypeBotAddToChannelTypeID, - "internalLinkTypeBotStart": InternalLinkTypeBotStartTypeID, - "internalLinkTypeBotStartInGroup": InternalLinkTypeBotStartInGroupTypeID, - "internalLinkTypeChangePhoneNumber": InternalLinkTypeChangePhoneNumberTypeID, - "internalLinkTypeChatInvite": InternalLinkTypeChatInviteTypeID, - "internalLinkTypeDefaultMessageAutoDeleteTimerSettings": InternalLinkTypeDefaultMessageAutoDeleteTimerSettingsTypeID, - "internalLinkTypeEditProfileSettings": InternalLinkTypeEditProfileSettingsTypeID, - "internalLinkTypeFilterSettings": InternalLinkTypeFilterSettingsTypeID, - "internalLinkTypeGame": InternalLinkTypeGameTypeID, - "internalLinkTypeInstantView": InternalLinkTypeInstantViewTypeID, - "internalLinkTypeInvoice": InternalLinkTypeInvoiceTypeID, - "internalLinkTypeLanguagePack": InternalLinkTypeLanguagePackTypeID, - "internalLinkTypeLanguageSettings": InternalLinkTypeLanguageSettingsTypeID, - "internalLinkTypeMessage": InternalLinkTypeMessageTypeID, - "internalLinkTypeMessageDraft": InternalLinkTypeMessageDraftTypeID, - "internalLinkTypePassportDataRequest": InternalLinkTypePassportDataRequestTypeID, - "internalLinkTypePhoneNumberConfirmation": InternalLinkTypePhoneNumberConfirmationTypeID, - "internalLinkTypePremiumFeatures": InternalLinkTypePremiumFeaturesTypeID, - "internalLinkTypePrivacyAndSecuritySettings": InternalLinkTypePrivacyAndSecuritySettingsTypeID, - "internalLinkTypeProxy": InternalLinkTypeProxyTypeID, - "internalLinkTypePublicChat": InternalLinkTypePublicChatTypeID, - "internalLinkTypeQrCodeAuthentication": InternalLinkTypeQrCodeAuthenticationTypeID, - "internalLinkTypeRestorePurchases": InternalLinkTypeRestorePurchasesTypeID, - "internalLinkTypeSettings": InternalLinkTypeSettingsTypeID, - "internalLinkTypeStickerSet": InternalLinkTypeStickerSetTypeID, - "internalLinkTypeTheme": InternalLinkTypeThemeTypeID, - "internalLinkTypeThemeSettings": InternalLinkTypeThemeSettingsTypeID, - "internalLinkTypeUnknownDeepLink": InternalLinkTypeUnknownDeepLinkTypeID, - "internalLinkTypeUnsupportedProxy": InternalLinkTypeUnsupportedProxyTypeID, - "internalLinkTypeUserPhoneNumber": InternalLinkTypeUserPhoneNumberTypeID, - "internalLinkTypeUserToken": InternalLinkTypeUserTokenTypeID, - "internalLinkTypeVideoChat": InternalLinkTypeVideoChatTypeID, - "internalLinkTypeWebApp": InternalLinkTypeWebAppTypeID, - "messageLink": MessageLinkTypeID, - "messageLinkInfo": MessageLinkInfoTypeID, - "filePart": FilePartTypeID, - "fileTypeNone": FileTypeNoneTypeID, - "fileTypeAnimation": FileTypeAnimationTypeID, - "fileTypeAudio": FileTypeAudioTypeID, - "fileTypeDocument": FileTypeDocumentTypeID, - "fileTypeNotificationSound": FileTypeNotificationSoundTypeID, - "fileTypePhoto": FileTypePhotoTypeID, - "fileTypeProfilePhoto": FileTypeProfilePhotoTypeID, - "fileTypeSecret": FileTypeSecretTypeID, - "fileTypeSecretThumbnail": FileTypeSecretThumbnailTypeID, - "fileTypeSecure": FileTypeSecureTypeID, - "fileTypeSticker": FileTypeStickerTypeID, - "fileTypeThumbnail": FileTypeThumbnailTypeID, - "fileTypeUnknown": FileTypeUnknownTypeID, - "fileTypeVideo": FileTypeVideoTypeID, - "fileTypeVideoNote": FileTypeVideoNoteTypeID, - "fileTypeVoiceNote": FileTypeVoiceNoteTypeID, - "fileTypeWallpaper": FileTypeWallpaperTypeID, - "storageStatisticsByFileType": StorageStatisticsByFileTypeTypeID, - "storageStatisticsByChat": StorageStatisticsByChatTypeID, - "storageStatistics": StorageStatisticsTypeID, - "storageStatisticsFast": StorageStatisticsFastTypeID, - "databaseStatistics": DatabaseStatisticsTypeID, - "networkTypeNone": NetworkTypeNoneTypeID, - "networkTypeMobile": NetworkTypeMobileTypeID, - "networkTypeMobileRoaming": NetworkTypeMobileRoamingTypeID, - "networkTypeWiFi": NetworkTypeWiFiTypeID, - "networkTypeOther": NetworkTypeOtherTypeID, - "networkStatisticsEntryFile": NetworkStatisticsEntryFileTypeID, - "networkStatisticsEntryCall": NetworkStatisticsEntryCallTypeID, - "networkStatistics": NetworkStatisticsTypeID, - "autoDownloadSettings": AutoDownloadSettingsTypeID, - "autoDownloadSettingsPresets": AutoDownloadSettingsPresetsTypeID, - "autosaveSettingsScopePrivateChats": AutosaveSettingsScopePrivateChatsTypeID, - "autosaveSettingsScopeGroupChats": AutosaveSettingsScopeGroupChatsTypeID, - "autosaveSettingsScopeChannelChats": AutosaveSettingsScopeChannelChatsTypeID, - "autosaveSettingsScopeChat": AutosaveSettingsScopeChatTypeID, - "scopeAutosaveSettings": ScopeAutosaveSettingsTypeID, - "autosaveSettingsException": AutosaveSettingsExceptionTypeID, - "autosaveSettings": AutosaveSettingsTypeID, - "connectionStateWaitingForNetwork": ConnectionStateWaitingForNetworkTypeID, - "connectionStateConnectingToProxy": ConnectionStateConnectingToProxyTypeID, - "connectionStateConnecting": ConnectionStateConnectingTypeID, - "connectionStateUpdating": ConnectionStateUpdatingTypeID, - "connectionStateReady": ConnectionStateReadyTypeID, - "topChatCategoryUsers": TopChatCategoryUsersTypeID, - "topChatCategoryBots": TopChatCategoryBotsTypeID, - "topChatCategoryGroups": TopChatCategoryGroupsTypeID, - "topChatCategoryChannels": TopChatCategoryChannelsTypeID, - "topChatCategoryInlineBots": TopChatCategoryInlineBotsTypeID, - "topChatCategoryCalls": TopChatCategoryCallsTypeID, - "topChatCategoryForwardChats": TopChatCategoryForwardChatsTypeID, - "tMeUrlTypeUser": TMeURLTypeUserTypeID, - "tMeUrlTypeSupergroup": TMeURLTypeSupergroupTypeID, - "tMeUrlTypeChatInvite": TMeURLTypeChatInviteTypeID, - "tMeUrlTypeStickerSet": TMeURLTypeStickerSetTypeID, - "tMeUrl": TMeURLTypeID, - "tMeUrls": TMeURLsTypeID, - "suggestedActionEnableArchiveAndMuteNewChats": SuggestedActionEnableArchiveAndMuteNewChatsTypeID, - "suggestedActionCheckPassword": SuggestedActionCheckPasswordTypeID, - "suggestedActionCheckPhoneNumber": SuggestedActionCheckPhoneNumberTypeID, - "suggestedActionViewChecksHint": SuggestedActionViewChecksHintTypeID, - "suggestedActionConvertToBroadcastGroup": SuggestedActionConvertToBroadcastGroupTypeID, - "suggestedActionSetPassword": SuggestedActionSetPasswordTypeID, - "suggestedActionUpgradePremium": SuggestedActionUpgradePremiumTypeID, - "suggestedActionSubscribeToAnnualPremium": SuggestedActionSubscribeToAnnualPremiumTypeID, + "accountTtl": AccountTTLTypeID, + "messageAutoDeleteTime": MessageAutoDeleteTimeTypeID, + "sessionTypeAndroid": SessionTypeAndroidTypeID, + "sessionTypeApple": SessionTypeAppleTypeID, + "sessionTypeBrave": SessionTypeBraveTypeID, + "sessionTypeChrome": SessionTypeChromeTypeID, + "sessionTypeEdge": SessionTypeEdgeTypeID, + "sessionTypeFirefox": SessionTypeFirefoxTypeID, + "sessionTypeIpad": SessionTypeIpadTypeID, + "sessionTypeIphone": SessionTypeIphoneTypeID, + "sessionTypeLinux": SessionTypeLinuxTypeID, + "sessionTypeMac": SessionTypeMACTypeID, + "sessionTypeOpera": SessionTypeOperaTypeID, + "sessionTypeSafari": SessionTypeSafariTypeID, + "sessionTypeUbuntu": SessionTypeUbuntuTypeID, + "sessionTypeUnknown": SessionTypeUnknownTypeID, + "sessionTypeVivaldi": SessionTypeVivaldiTypeID, + "sessionTypeWindows": SessionTypeWindowsTypeID, + "sessionTypeXbox": SessionTypeXboxTypeID, + "session": SessionTypeID, + "sessions": SessionsTypeID, + "connectedWebsite": ConnectedWebsiteTypeID, + "connectedWebsites": ConnectedWebsitesTypeID, + "chatReportReasonSpam": ChatReportReasonSpamTypeID, + "chatReportReasonViolence": ChatReportReasonViolenceTypeID, + "chatReportReasonPornography": ChatReportReasonPornographyTypeID, + "chatReportReasonChildAbuse": ChatReportReasonChildAbuseTypeID, + "chatReportReasonCopyright": ChatReportReasonCopyrightTypeID, + "chatReportReasonUnrelatedLocation": ChatReportReasonUnrelatedLocationTypeID, + "chatReportReasonFake": ChatReportReasonFakeTypeID, + "chatReportReasonIllegalDrugs": ChatReportReasonIllegalDrugsTypeID, + "chatReportReasonPersonalDetails": ChatReportReasonPersonalDetailsTypeID, + "chatReportReasonCustom": ChatReportReasonCustomTypeID, + "targetChatCurrent": TargetChatCurrentTypeID, + "targetChatChosen": TargetChatChosenTypeID, + "targetChatInternalLink": TargetChatInternalLinkTypeID, + "internalLinkTypeActiveSessions": InternalLinkTypeActiveSessionsTypeID, + "internalLinkTypeAttachmentMenuBot": InternalLinkTypeAttachmentMenuBotTypeID, + "internalLinkTypeAuthenticationCode": InternalLinkTypeAuthenticationCodeTypeID, + "internalLinkTypeBackground": InternalLinkTypeBackgroundTypeID, + "internalLinkTypeBotAddToChannel": InternalLinkTypeBotAddToChannelTypeID, + "internalLinkTypeBotStart": InternalLinkTypeBotStartTypeID, + "internalLinkTypeBotStartInGroup": InternalLinkTypeBotStartInGroupTypeID, + "internalLinkTypeChangePhoneNumber": InternalLinkTypeChangePhoneNumberTypeID, + "internalLinkTypeChatInvite": InternalLinkTypeChatInviteTypeID, + "internalLinkTypeDefaultMessageAutoDeleteTimerSettings": InternalLinkTypeDefaultMessageAutoDeleteTimerSettingsTypeID, + "internalLinkTypeEditProfileSettings": InternalLinkTypeEditProfileSettingsTypeID, + "internalLinkTypeFilterSettings": InternalLinkTypeFilterSettingsTypeID, + "internalLinkTypeGame": InternalLinkTypeGameTypeID, + "internalLinkTypeInstantView": InternalLinkTypeInstantViewTypeID, + "internalLinkTypeInvoice": InternalLinkTypeInvoiceTypeID, + "internalLinkTypeLanguagePack": InternalLinkTypeLanguagePackTypeID, + "internalLinkTypeLanguageSettings": InternalLinkTypeLanguageSettingsTypeID, + "internalLinkTypeMessage": InternalLinkTypeMessageTypeID, + "internalLinkTypeMessageDraft": InternalLinkTypeMessageDraftTypeID, + "internalLinkTypePassportDataRequest": InternalLinkTypePassportDataRequestTypeID, + "internalLinkTypePhoneNumberConfirmation": InternalLinkTypePhoneNumberConfirmationTypeID, + "internalLinkTypePremiumFeatures": InternalLinkTypePremiumFeaturesTypeID, + "internalLinkTypePrivacyAndSecuritySettings": InternalLinkTypePrivacyAndSecuritySettingsTypeID, + "internalLinkTypeProxy": InternalLinkTypeProxyTypeID, + "internalLinkTypePublicChat": InternalLinkTypePublicChatTypeID, + "internalLinkTypeQrCodeAuthentication": InternalLinkTypeQrCodeAuthenticationTypeID, + "internalLinkTypeRestorePurchases": InternalLinkTypeRestorePurchasesTypeID, + "internalLinkTypeSettings": InternalLinkTypeSettingsTypeID, + "internalLinkTypeStickerSet": InternalLinkTypeStickerSetTypeID, + "internalLinkTypeTheme": InternalLinkTypeThemeTypeID, + "internalLinkTypeThemeSettings": InternalLinkTypeThemeSettingsTypeID, + "internalLinkTypeUnknownDeepLink": InternalLinkTypeUnknownDeepLinkTypeID, + "internalLinkTypeUnsupportedProxy": InternalLinkTypeUnsupportedProxyTypeID, + "internalLinkTypeUserPhoneNumber": InternalLinkTypeUserPhoneNumberTypeID, + "internalLinkTypeUserToken": InternalLinkTypeUserTokenTypeID, + "internalLinkTypeVideoChat": InternalLinkTypeVideoChatTypeID, + "internalLinkTypeWebApp": InternalLinkTypeWebAppTypeID, + "messageLink": MessageLinkTypeID, + "messageLinkInfo": MessageLinkInfoTypeID, + "filePart": FilePartTypeID, + "fileTypeNone": FileTypeNoneTypeID, + "fileTypeAnimation": FileTypeAnimationTypeID, + "fileTypeAudio": FileTypeAudioTypeID, + "fileTypeDocument": FileTypeDocumentTypeID, + "fileTypeNotificationSound": FileTypeNotificationSoundTypeID, + "fileTypePhoto": FileTypePhotoTypeID, + "fileTypeProfilePhoto": FileTypeProfilePhotoTypeID, + "fileTypeSecret": FileTypeSecretTypeID, + "fileTypeSecretThumbnail": FileTypeSecretThumbnailTypeID, + "fileTypeSecure": FileTypeSecureTypeID, + "fileTypeSticker": FileTypeStickerTypeID, + "fileTypeThumbnail": FileTypeThumbnailTypeID, + "fileTypeUnknown": FileTypeUnknownTypeID, + "fileTypeVideo": FileTypeVideoTypeID, + "fileTypeVideoNote": FileTypeVideoNoteTypeID, + "fileTypeVoiceNote": FileTypeVoiceNoteTypeID, + "fileTypeWallpaper": FileTypeWallpaperTypeID, + "storageStatisticsByFileType": StorageStatisticsByFileTypeTypeID, + "storageStatisticsByChat": StorageStatisticsByChatTypeID, + "storageStatistics": StorageStatisticsTypeID, + "storageStatisticsFast": StorageStatisticsFastTypeID, + "databaseStatistics": DatabaseStatisticsTypeID, + "networkTypeNone": NetworkTypeNoneTypeID, + "networkTypeMobile": NetworkTypeMobileTypeID, + "networkTypeMobileRoaming": NetworkTypeMobileRoamingTypeID, + "networkTypeWiFi": NetworkTypeWiFiTypeID, + "networkTypeOther": NetworkTypeOtherTypeID, + "networkStatisticsEntryFile": NetworkStatisticsEntryFileTypeID, + "networkStatisticsEntryCall": NetworkStatisticsEntryCallTypeID, + "networkStatistics": NetworkStatisticsTypeID, + "autoDownloadSettings": AutoDownloadSettingsTypeID, + "autoDownloadSettingsPresets": AutoDownloadSettingsPresetsTypeID, + "autosaveSettingsScopePrivateChats": AutosaveSettingsScopePrivateChatsTypeID, + "autosaveSettingsScopeGroupChats": AutosaveSettingsScopeGroupChatsTypeID, + "autosaveSettingsScopeChannelChats": AutosaveSettingsScopeChannelChatsTypeID, + "autosaveSettingsScopeChat": AutosaveSettingsScopeChatTypeID, + "scopeAutosaveSettings": ScopeAutosaveSettingsTypeID, + "autosaveSettingsException": AutosaveSettingsExceptionTypeID, + "autosaveSettings": AutosaveSettingsTypeID, + "connectionStateWaitingForNetwork": ConnectionStateWaitingForNetworkTypeID, + "connectionStateConnectingToProxy": ConnectionStateConnectingToProxyTypeID, + "connectionStateConnecting": ConnectionStateConnectingTypeID, + "connectionStateUpdating": ConnectionStateUpdatingTypeID, + "connectionStateReady": ConnectionStateReadyTypeID, + "topChatCategoryUsers": TopChatCategoryUsersTypeID, + "topChatCategoryBots": TopChatCategoryBotsTypeID, + "topChatCategoryGroups": TopChatCategoryGroupsTypeID, + "topChatCategoryChannels": TopChatCategoryChannelsTypeID, + "topChatCategoryInlineBots": TopChatCategoryInlineBotsTypeID, + "topChatCategoryCalls": TopChatCategoryCallsTypeID, + "topChatCategoryForwardChats": TopChatCategoryForwardChatsTypeID, + "tMeUrlTypeUser": TMeURLTypeUserTypeID, + "tMeUrlTypeSupergroup": TMeURLTypeSupergroupTypeID, + "tMeUrlTypeChatInvite": TMeURLTypeChatInviteTypeID, + "tMeUrlTypeStickerSet": TMeURLTypeStickerSetTypeID, + "tMeUrl": TMeURLTypeID, + "tMeUrls": TMeURLsTypeID, + "suggestedActionEnableArchiveAndMuteNewChats": SuggestedActionEnableArchiveAndMuteNewChatsTypeID, + "suggestedActionCheckPassword": SuggestedActionCheckPasswordTypeID, + "suggestedActionCheckPhoneNumber": SuggestedActionCheckPhoneNumberTypeID, + "suggestedActionViewChecksHint": SuggestedActionViewChecksHintTypeID, + "suggestedActionConvertToBroadcastGroup": SuggestedActionConvertToBroadcastGroupTypeID, + "suggestedActionSetPassword": SuggestedActionSetPasswordTypeID, + "suggestedActionUpgradePremium": SuggestedActionUpgradePremiumTypeID, + "suggestedActionSubscribeToAnnualPremium": SuggestedActionSubscribeToAnnualPremiumTypeID, "count": CountTypeID, "text": TextTypeID, "seconds": SecondsTypeID, @@ -3006,6 +3012,7 @@ func NamesMap() map[string]uint32 { "checkAuthenticationCode": CheckAuthenticationCodeRequestTypeID, "requestQrCodeAuthentication": RequestQrCodeAuthenticationRequestTypeID, "registerUser": RegisterUserRequestTypeID, + "resetAuthenticationEmailAddress": ResetAuthenticationEmailAddressRequestTypeID, "checkAuthenticationPassword": CheckAuthenticationPasswordRequestTypeID, "requestAuthenticationPasswordRecovery": RequestAuthenticationPasswordRecoveryRequestTypeID, "checkAuthenticationPasswordRecoveryCode": CheckAuthenticationPasswordRecoveryCodeRequestTypeID, @@ -3571,6 +3578,7 @@ func NamesMap() map[string]uint32 { "addLogMessage": AddLogMessageRequestTypeID, "getUserSupportInfo": GetUserSupportInfoRequestTypeID, "setUserSupportInfo": SetUserSupportInfoRequestTypeID, + "getSupportName": GetSupportNameRequestTypeID, "testCallEmpty": TestCallEmptyRequestTypeID, "testCallString": TestCallStringRequestTypeID, "testCallBytes": TestCallBytesRequestTypeID, @@ -3613,6 +3621,8 @@ func TypesConstructorMap() map[uint32]func() bin.Object { EmailAddressAuthenticationCodeTypeID: func() bin.Object { return &EmailAddressAuthenticationCode{} }, EmailAddressAuthenticationAppleIDTypeID: func() bin.Object { return &EmailAddressAuthenticationAppleID{} }, EmailAddressAuthenticationGoogleIDTypeID: func() bin.Object { return &EmailAddressAuthenticationGoogleID{} }, + EmailAddressResetStateAvailableTypeID: func() bin.Object { return &EmailAddressResetStateAvailable{} }, + EmailAddressResetStatePendingTypeID: func() bin.Object { return &EmailAddressResetStatePending{} }, TextEntityTypeID: func() bin.Object { return &TextEntity{} }, TextEntitiesTypeID: func() bin.Object { return &TextEntities{} }, FormattedTextTypeID: func() bin.Object { return &FormattedText{} }, @@ -4784,6 +4794,7 @@ func TypesConstructorMap() map[uint32]func() bin.Object { CheckAuthenticationCodeRequestTypeID: func() bin.Object { return &CheckAuthenticationCodeRequest{} }, RequestQrCodeAuthenticationRequestTypeID: func() bin.Object { return &RequestQrCodeAuthenticationRequest{} }, RegisterUserRequestTypeID: func() bin.Object { return &RegisterUserRequest{} }, + ResetAuthenticationEmailAddressRequestTypeID: func() bin.Object { return &ResetAuthenticationEmailAddressRequest{} }, CheckAuthenticationPasswordRequestTypeID: func() bin.Object { return &CheckAuthenticationPasswordRequest{} }, RequestAuthenticationPasswordRecoveryRequestTypeID: func() bin.Object { return &RequestAuthenticationPasswordRecoveryRequest{} }, CheckAuthenticationPasswordRecoveryCodeRequestTypeID: func() bin.Object { return &CheckAuthenticationPasswordRecoveryCodeRequest{} }, @@ -5349,6 +5360,7 @@ func TypesConstructorMap() map[uint32]func() bin.Object { AddLogMessageRequestTypeID: func() bin.Object { return &AddLogMessageRequest{} }, GetUserSupportInfoRequestTypeID: func() bin.Object { return &GetUserSupportInfoRequest{} }, SetUserSupportInfoRequestTypeID: func() bin.Object { return &SetUserSupportInfoRequest{} }, + GetSupportNameRequestTypeID: func() bin.Object { return &GetSupportNameRequest{} }, TestCallEmptyRequestTypeID: func() bin.Object { return &TestCallEmptyRequest{} }, TestCallStringRequestTypeID: func() bin.Object { return &TestCallStringRequest{} }, TestCallBytesRequestTypeID: func() bin.Object { return &TestCallBytesRequest{} }, @@ -5633,6 +5645,10 @@ func ClassConstructorsMap() map[string][]uint32 { EmailAddressAuthenticationAppleIDTypeID, EmailAddressAuthenticationGoogleIDTypeID, }, + EmailAddressResetStateClassName: { + EmailAddressResetStateAvailableTypeID, + EmailAddressResetStatePendingTypeID, + }, EmojiCategoryTypeClassName: { EmojiCategoryTypeDefaultTypeID, EmojiCategoryTypeEmojiStatusTypeID, diff --git a/tdapi/tl_reset_authentication_email_address_gen.go b/tdapi/tl_reset_authentication_email_address_gen.go new file mode 100644 index 0000000000..499e176f30 --- /dev/null +++ b/tdapi/tl_reset_authentication_email_address_gen.go @@ -0,0 +1,169 @@ +// Code generated by gotdgen, DO NOT EDIT. + +package tdapi + +import ( + "context" + "errors" + "fmt" + "sort" + "strings" + + "go.uber.org/multierr" + + "github.com/gotd/td/bin" + "github.com/gotd/td/tdjson" + "github.com/gotd/td/tdp" + "github.com/gotd/td/tgerr" +) + +// 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{} +) + +// ResetAuthenticationEmailAddressRequest represents TL type `resetAuthenticationEmailAddress#e742722c`. +type ResetAuthenticationEmailAddressRequest struct { +} + +// ResetAuthenticationEmailAddressRequestTypeID is TL type id of ResetAuthenticationEmailAddressRequest. +const ResetAuthenticationEmailAddressRequestTypeID = 0xe742722c + +// Ensuring interfaces in compile-time for ResetAuthenticationEmailAddressRequest. +var ( + _ bin.Encoder = &ResetAuthenticationEmailAddressRequest{} + _ bin.Decoder = &ResetAuthenticationEmailAddressRequest{} + _ bin.BareEncoder = &ResetAuthenticationEmailAddressRequest{} + _ bin.BareDecoder = &ResetAuthenticationEmailAddressRequest{} +) + +func (r *ResetAuthenticationEmailAddressRequest) Zero() bool { + if r == nil { + return true + } + + return true +} + +// String implements fmt.Stringer. +func (r *ResetAuthenticationEmailAddressRequest) String() string { + if r == nil { + return "ResetAuthenticationEmailAddressRequest(nil)" + } + type Alias ResetAuthenticationEmailAddressRequest + return fmt.Sprintf("ResetAuthenticationEmailAddressRequest%+v", Alias(*r)) +} + +// TypeID returns type id in TL schema. +// +// See https://core.telegram.org/mtproto/TL-tl#remarks. +func (*ResetAuthenticationEmailAddressRequest) TypeID() uint32 { + return ResetAuthenticationEmailAddressRequestTypeID +} + +// TypeName returns name of type in TL schema. +func (*ResetAuthenticationEmailAddressRequest) TypeName() string { + return "resetAuthenticationEmailAddress" +} + +// TypeInfo returns info about TL type. +func (r *ResetAuthenticationEmailAddressRequest) TypeInfo() tdp.Type { + typ := tdp.Type{ + Name: "resetAuthenticationEmailAddress", + ID: ResetAuthenticationEmailAddressRequestTypeID, + } + if r == nil { + typ.Null = true + return typ + } + typ.Fields = []tdp.Field{} + return typ +} + +// Encode implements bin.Encoder. +func (r *ResetAuthenticationEmailAddressRequest) Encode(b *bin.Buffer) error { + if r == nil { + return fmt.Errorf("can't encode resetAuthenticationEmailAddress#e742722c as nil") + } + b.PutID(ResetAuthenticationEmailAddressRequestTypeID) + return r.EncodeBare(b) +} + +// EncodeBare implements bin.BareEncoder. +func (r *ResetAuthenticationEmailAddressRequest) EncodeBare(b *bin.Buffer) error { + if r == nil { + return fmt.Errorf("can't encode resetAuthenticationEmailAddress#e742722c as nil") + } + return nil +} + +// Decode implements bin.Decoder. +func (r *ResetAuthenticationEmailAddressRequest) Decode(b *bin.Buffer) error { + if r == nil { + return fmt.Errorf("can't decode resetAuthenticationEmailAddress#e742722c to nil") + } + if err := b.ConsumeID(ResetAuthenticationEmailAddressRequestTypeID); err != nil { + return fmt.Errorf("unable to decode resetAuthenticationEmailAddress#e742722c: %w", err) + } + return r.DecodeBare(b) +} + +// DecodeBare implements bin.BareDecoder. +func (r *ResetAuthenticationEmailAddressRequest) DecodeBare(b *bin.Buffer) error { + if r == nil { + return fmt.Errorf("can't decode resetAuthenticationEmailAddress#e742722c to nil") + } + return nil +} + +// EncodeTDLibJSON implements tdjson.TDLibEncoder. +func (r *ResetAuthenticationEmailAddressRequest) EncodeTDLibJSON(b tdjson.Encoder) error { + if r == nil { + return fmt.Errorf("can't encode resetAuthenticationEmailAddress#e742722c as nil") + } + b.ObjStart() + b.PutID("resetAuthenticationEmailAddress") + b.Comma() + b.StripComma() + b.ObjEnd() + return nil +} + +// DecodeTDLibJSON implements tdjson.TDLibDecoder. +func (r *ResetAuthenticationEmailAddressRequest) DecodeTDLibJSON(b tdjson.Decoder) error { + if r == nil { + return fmt.Errorf("can't decode resetAuthenticationEmailAddress#e742722c to nil") + } + + return b.Obj(func(b tdjson.Decoder, key []byte) error { + switch string(key) { + case tdjson.TypeField: + if err := b.ConsumeID("resetAuthenticationEmailAddress"); err != nil { + return fmt.Errorf("unable to decode resetAuthenticationEmailAddress#e742722c: %w", err) + } + default: + return b.Skip() + } + return nil + }) +} + +// ResetAuthenticationEmailAddress invokes method resetAuthenticationEmailAddress#e742722c returning error if any. +func (c *Client) ResetAuthenticationEmailAddress(ctx context.Context) error { + var ok Ok + + request := &ResetAuthenticationEmailAddressRequest{} + if err := c.rpc.Invoke(ctx, request, &ok); err != nil { + return err + } + return nil +} diff --git a/tdapi/tl_update_gen.go b/tdapi/tl_update_gen.go index 5574d293cc..26f5b143c7 100644 --- a/tdapi/tl_update_gen.go +++ b/tdapi/tl_update_gen.go @@ -17538,7 +17538,7 @@ type UpdateLanguagePackStrings struct { LocalizationTarget string // Identifier of the updated language pack LanguagePackID string - // List of changed language pack strings + // List of changed language pack strings; empty if all strings have changed Strings []LanguagePackString } diff --git a/tdapi/tl_view_messages_gen.go b/tdapi/tl_view_messages_gen.go index 633b14ff24..6a643f0af0 100644 --- a/tdapi/tl_view_messages_gen.go +++ b/tdapi/tl_view_messages_gen.go @@ -37,10 +37,9 @@ type ViewMessagesRequest struct { ChatID int64 // The identifiers of the messages being viewed MessageIDs []int64 - // Source of the message view + // Source of the message view; pass null to guess the source based on chat open state Source MessageSourceClass - // Pass true to mark as read the specified messages even the chat is closed; pass null to - // guess the source based on chat open state + // Pass true to mark as read the specified messages even the chat is closed ForceRead bool }