Skip to content

Commit

Permalink
feat(schema): update TDLib to the latest layer
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Mar 25, 2023
1 parent 133ee34 commit c3e5cb3
Show file tree
Hide file tree
Showing 10 changed files with 1,967 additions and 1,085 deletions.
38 changes: 27 additions & 11 deletions _schema/tdapi.tl
Original file line number Diff line number Diff line change
@@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -6039,7 +6049,7 @@ updateChatThemes#98dc58d5 chat_themes:vector<chatTheme> = 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<languagePackString> = Update;

//@description The connection state has changed. This update must be used only to show a human-readable description of the connection state
Expand Down Expand Up @@ -6302,6 +6312,9 @@ requestQrCodeAuthentication#56fe3c4e other_user_ids:vector<int53> = 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;
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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<int53> 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).
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion tdapi/tl_authentication_code_type_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c3e5cb3

Please sign in to comment.