From 2be9a475e97fc36f4cd68fcc06150898cfee327a Mon Sep 17 00:00:00 2001 From: Ernesto Castellotti Date: Fri, 2 Oct 2020 22:25:30 +0200 Subject: [PATCH] Update JSON scheme to TDLIB 99163ff --- TLScheme.json | 6821 +++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 5488 insertions(+), 1333 deletions(-) diff --git a/TLScheme.json b/TLScheme.json index 58e7752..2c281e3 100644 --- a/TLScheme.json +++ b/TLScheme.json @@ -14,7 +14,7 @@ } ], "description": "An object of this type can be returned on every function call, in case of an error", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -23,7 +23,7 @@ "name": "ok", "methods": null, "description": "An object of this type is returned on a successful function call for certain functions", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -89,7 +89,7 @@ { "name": "system_version", "type": "string", - "description": "Version of the operating system the application is being run on; must be non-empty" + "description": "Version of the operating system the application is being run on. If empty, the version is automatically detected by TDLib" }, { "name": "application_version", @@ -108,7 +108,7 @@ } ], "description": "Contains parameters for TDLib initialization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -131,7 +131,7 @@ "description": "Length of the code" } ], - "description": "An authentication code is delivered via a private Telegram message, which can be viewed in another client", + "description": "An authentication code is delivered via a private Telegram message, which can be viewed from another active session", "inheritance": "AuthenticationCodeType", "return_type": "", "isFunction": false, @@ -207,7 +207,7 @@ } ], "description": "Information about the authentication code that was sent", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -227,7 +227,7 @@ } ], "description": "Information about the email address authentication code that was sent", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -238,12 +238,12 @@ { "name": "offset", "type": "int32", - "description": "Offset of the entity in UTF-16 code points" + "description": "Offset of the entity, in UTF-16 code units" }, { "name": "length", "type": "int32", - "description": "Length of the entity, in UTF-16 code points" + "description": "Length of the entity, in UTF-16 code units" }, { "name": "type", @@ -252,7 +252,7 @@ } ], "description": "Represents a part of the text that needs to be formatted in some unusual way", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -267,7 +267,7 @@ } ], "description": "Contains a list of text entities", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -283,11 +283,11 @@ { "name": "entities", "type": "vector", - "description": "Entities contained in the text" + "description": "Entities contained in the text. Entities can be nested, but must not mutually intersect with each other. Pre, Code and PreCode entities can't contain other entities. Bold, Italic, Underline and Strikethrough entities can contain and to be contained in all other entities. All other entities can't contain each other" } ], "description": "A text with some entities", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -303,7 +303,7 @@ { "name": "min_user_age", "type": "int32", - "description": "Mininum age of a user to be able to accept the terms; 0 if any" + "description": "The minimum age of a user to be able to accept the terms; 0 if any" }, { "name": "show_popup", @@ -312,7 +312,7 @@ } ], "description": "Contains Telegram terms of service", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -320,7 +320,7 @@ { "name": "AuthorizationState", "methods": null, - "description": "Represents the current authorization state of the client", + "description": "Represents the current authorization state of the TDLib client", "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, @@ -353,7 +353,7 @@ { "name": "authorizationStateWaitPhoneNumber", "methods": null, - "description": "TDLib needs the user's phone number to authorize", + "description": "TDLib needs the user's phone number to authorize. Call `setAuthenticationPhoneNumber` to provide the phone number, or use `requestQrCodeAuthentication`, or `checkAuthenticationBotToken` for other authentication options", "inheritance": "AuthorizationState", "return_type": "", "isFunction": false, @@ -362,23 +362,43 @@ { "name": "authorizationStateWaitCode", "methods": [ - { - "name": "is_registered", - "type": "Bool", - "description": "True, if the user is already registered" - }, - { - "name": "terms_of_service", - "type": "termsOfService", - "description": "Telegram terms of service, which should be accepted before user can continue registration; may be null" - }, { "name": "code_info", "type": "authenticationCodeInfo", "description": "Information about the authorization code that was sent" } ], - "description": "TDLib needs the user's authentication code to finalize authorization", + "description": "TDLib needs the user's authentication code to authorize", + "inheritance": "AuthorizationState", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "authorizationStateWaitOtherDeviceConfirmation", + "methods": [ + { + "name": "link", + "type": "string", + "description": "A tg:// URL for the QR code. The link will be updated frequently" + } + ], + "description": "The user needs to confirm authorization on another logged in device by scanning a QR code with the provided link", + "inheritance": "AuthorizationState", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "authorizationStateWaitRegistration", + "methods": [ + { + "name": "terms_of_service", + "type": "termsOfService", + "description": "Telegram terms of service" + } + ], + "description": "The user is unregistered and need to accept terms of service and enter their first name and last name to finish registration", "inheritance": "AuthorizationState", "return_type": "", "isFunction": false, @@ -395,7 +415,7 @@ { "name": "has_recovery_email_address", "type": "Bool", - "description": "True if a recovery email address has been set up" + "description": "True, if a recovery email address has been set up" }, { "name": "recovery_email_address_pattern", @@ -475,7 +495,7 @@ } ], "description": "Represents the current state of 2-step verification", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -490,7 +510,7 @@ } ], "description": "Contains information about the current recovery email address", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -510,7 +530,7 @@ } ], "description": "Returns information about the availability of a temporary password, which can be used for payments", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -560,7 +580,7 @@ } ], "description": "Represents a local file", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -571,7 +591,12 @@ { "name": "id", "type": "string", - "description": "Remote file identifier; may be empty. Can be used across application restarts or even from other devices for the current user. If the ID starts with \"http://\" or \"https://\", it represents the HTTP URL of the file. TDLib is currently unable to download files if only their URL is known. If downloadFile is called on such a file or if it is sent to a secret chat, TDLib starts a file generation process by sending updateFileGenerationStart to the client with the HTTP URL in the original_path and \"#url#\" as the conversion string. Clients should generate the file by downloading it to the specified location" + "description": "Remote file identifier; may be empty. Can be used by the current user across application restarts or even from other devices. Uniquely identifies a file, but a file can have a lot of different valid identifiers. If the ID starts with \"http://\" or \"https://\", it represents the HTTP URL of the file. TDLib is currently unable to download files if only their URL is known. If downloadFile is called on such a file or if it is sent to a secret chat, TDLib starts a file generation process by sending updateFileGenerationStart to the application with the HTTP URL in the original_path and \"#url#\" as the conversion string. Application should generate the file by downloading it to the specified location" + }, + { + "name": "unique_id", + "type": "string", + "description": "Unique file identifier; may be empty if unknown. The unique file identifier which is the same for the same file even for different users and is persistent over time" }, { "name": "is_uploading_active", @@ -590,7 +615,7 @@ } ], "description": "Represents a remote file", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -625,7 +650,7 @@ } ], "description": "Represents a file", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -663,7 +688,7 @@ "description": "Remote file identifier" } ], - "description": "A file defined by its remote ID", + "description": "A file defined by its remote ID. The remote ID is guaranteed to be usable only if the corresponding file is still accessible to the user and known to TDLib. For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the application", "inheritance": "InputFile", "return_type": "", "isFunction": false, @@ -703,7 +728,7 @@ "description": "Expected size of the generated file; 0 if unknown" } ], - "description": "A file generated by the client", + "description": "A file generated by the application", "inheritance": "InputFile", "return_type": "", "isFunction": false, @@ -715,26 +740,149 @@ { "name": "type", "type": "string", - "description": "Thumbnail type (see https://core.telegram.org/constructor/photoSize)" + "description": "Image type (see https://core.telegram.org/constructor/photoSize)" }, { "name": "photo", "type": "file", - "description": "Information about the photo file" + "description": "Information about the image file" }, { "name": "width", "type": "int32", - "description": "Photo width" + "description": "Image width" }, { "name": "height", "type": "int32", - "description": "Photo height" + "description": "Image height" + }, + { + "name": "progressive_sizes", + "type": "vector", + "description": "Sizes of progressive JPEG file prefixes, which can be used to preliminarily show the image" } ], - "description": "Photo description", - "inheritance": "BaseTLClass", + "description": "Describes an image in JPEG format", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "minithumbnail", + "methods": [ + { + "name": "width", + "type": "int32", + "description": "Thumbnail width, usually doesn't exceed 40" + }, + { + "name": "height", + "type": "int32", + "description": "Thumbnail height, usually doesn't exceed 40" + }, + { + "name": "data", + "type": "bytes", + "description": "The thumbnail in JPEG format" + } + ], + "description": "Thumbnail image of a very poor quality and low resolution", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "ThumbnailFormat", + "methods": null, + "description": "Describes format of the thumbnail", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "thumbnailFormatJpeg", + "methods": null, + "description": "The thumbnail is in JPEG format", + "inheritance": "ThumbnailFormat", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "thumbnailFormatPng", + "methods": null, + "description": "The thumbnail is in PNG format. It will be used only for background patterns", + "inheritance": "ThumbnailFormat", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "thumbnailFormatWebp", + "methods": null, + "description": "The thumbnail is in WEBP format. It will be used only for some stickers", + "inheritance": "ThumbnailFormat", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "thumbnailFormatGif", + "methods": null, + "description": "The thumbnail is in static GIF format. It will be used only for some bot inline results", + "inheritance": "ThumbnailFormat", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "thumbnailFormatTgs", + "methods": null, + "description": "The thumbnail is in TGS format. It will be used only for animated sticker sets", + "inheritance": "ThumbnailFormat", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "thumbnailFormatMpeg4", + "methods": null, + "description": "The thumbnail is in MPEG4 format. It will be used only for some animations and videos", + "inheritance": "ThumbnailFormat", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "thumbnail", + "methods": [ + { + "name": "format", + "type": "ThumbnailFormat", + "description": "Thumbnail format" + }, + { + "name": "width", + "type": "int32", + "description": "Thumbnail width" + }, + { + "name": "height", + "type": "int32", + "description": "Thumbnail height" + }, + { + "name": "file", + "type": "file", + "description": "The thumbnail" + } + ], + "description": "Represents a thumbnail", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -809,7 +957,7 @@ } ], "description": "Position on a photo where a mask should be placed", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -844,7 +992,51 @@ } ], "description": "Describes one answer option of a poll", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "PollType", + "methods": null, + "description": "Describes the type of a poll", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "pollTypeRegular", + "methods": [ + { + "name": "allow_multiple_answers", + "type": "Bool", + "description": "True, if multiple answer options can be chosen simultaneously" + } + ], + "description": "A regular poll", + "inheritance": "PollType", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "pollTypeQuiz", + "methods": [ + { + "name": "correct_option_id", + "type": "int32", + "description": "0-based identifier of the correct answer option; -1 for a yet unanswered poll" + }, + { + "name": "explanation", + "type": "formattedText", + "description": "Text that is shown when the user chooses an incorrect answer or taps on the lamp icon, 0-200 characters with at most 2 line feeds; empty for a yet unanswered poll" + } + ], + "description": "A poll in quiz mode, which has exactly one correct answer option and can be answered only once", + "inheritance": "PollType", "return_type": "", "isFunction": false, "isSynchronous": false @@ -877,10 +1069,20 @@ "type": "string", "description": "MIME type of the file, usually \"image/gif\" or \"video/mp4\"" }, + { + "name": "has_stickers", + "type": "Bool", + "description": "True, if stickers were added to the animation. The list of corresponding sticker set can be received using getAttachedStickerSets" + }, + { + "name": "minithumbnail", + "type": "minithumbnail", + "description": "Animation minithumbnail; may be null" + }, { "name": "thumbnail", - "type": "photoSize", - "description": "Animation thumbnail; may be null" + "type": "thumbnail", + "description": "Animation thumbnail in JPEG or MPEG4 format; may be null" }, { "name": "animation", @@ -889,7 +1091,7 @@ } ], "description": "Describes an animation file. The animation must be encoded in GIF or MPEG4 format", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -922,10 +1124,15 @@ "type": "string", "description": "The MIME type of the file; as defined by the sender" }, + { + "name": "album_cover_minithumbnail", + "type": "minithumbnail", + "description": "The minithumbnail of the album cover; may be null" + }, { "name": "album_cover_thumbnail", - "type": "photoSize", - "description": "The thumbnail of the album cover; as defined by the sender. The full size thumbnail should be extracted from the downloaded file; may be null" + "type": "thumbnail", + "description": "The thumbnail of the album cover in JPEG format; as defined by the sender. The full size thumbnail should be extracted from the downloaded file; may be null" }, { "name": "audio", @@ -933,8 +1140,8 @@ "description": "File containing the audio" } ], - "description": "Describes an audio file. Audio is usually in MP3 format", - "inheritance": "BaseTLClass", + "description": "Describes an audio file. Audio is usually in MP3 or M4A format", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -952,10 +1159,15 @@ "type": "string", "description": "MIME type of the file; as defined by the sender" }, + { + "name": "minithumbnail", + "type": "minithumbnail", + "description": "Document minithumbnail; may be null" + }, { "name": "thumbnail", - "type": "photoSize", - "description": "Document thumbnail; as defined by the sender; may be null" + "type": "thumbnail", + "description": "Document thumbnail in JPEG or PNG format (PNG will be used only for background patterns); as defined by the sender; may be null" }, { "name": "document", @@ -964,7 +1176,7 @@ } ], "description": "Describes a document of any type", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -975,7 +1187,12 @@ { "name": "has_stickers", "type": "Bool", - "description": "True, if stickers were added to the photo" + "description": "True, if stickers were added to the photo. The list of corresponding sticker sets can be received using getAttachedStickerSets" + }, + { + "name": "minithumbnail", + "type": "minithumbnail", + "description": "Photo minithumbnail; may be null" }, { "name": "sizes", @@ -984,7 +1201,7 @@ } ], "description": "Describes a photo", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1012,6 +1229,11 @@ "type": "string", "description": "Emoji corresponding to the sticker" }, + { + "name": "is_animated", + "type": "Bool", + "description": "True, if the sticker is an animated sticker in TGS format" + }, { "name": "is_mask", "type": "Bool", @@ -1024,7 +1246,7 @@ }, { "name": "thumbnail", - "type": "photoSize", + "type": "thumbnail", "description": "Sticker thumbnail in WEBP or JPEG format; may be null" }, { @@ -1034,7 +1256,7 @@ } ], "description": "Describes a sticker", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1070,17 +1292,22 @@ { "name": "has_stickers", "type": "Bool", - "description": "True, if stickers were added to the photo" + "description": "True, if stickers were added to the video. The list of corresponding sticker sets can be received using getAttachedStickerSets" }, { "name": "supports_streaming", "type": "Bool", "description": "True, if the video should be tried to be streamed" }, + { + "name": "minithumbnail", + "type": "minithumbnail", + "description": "Video minithumbnail; may be null" + }, { "name": "thumbnail", - "type": "photoSize", - "description": "Video thumbnail; as defined by the sender; may be null" + "type": "thumbnail", + "description": "Video thumbnail in JPEG or MPEG4 format; as defined by the sender; may be null" }, { "name": "video", @@ -1089,7 +1316,7 @@ } ], "description": "Describes a video file", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1107,10 +1334,15 @@ "type": "int32", "description": "Video width and height; as defined by the sender" }, + { + "name": "minithumbnail", + "type": "minithumbnail", + "description": "Video minithumbnail; may be null" + }, { "name": "thumbnail", - "type": "photoSize", - "description": "Video thumbnail; as defined by the sender; may be null" + "type": "thumbnail", + "description": "Video thumbnail in JPEG format; as defined by the sender; may be null" }, { "name": "video", @@ -1119,7 +1351,7 @@ } ], "description": "Describes a video note. The video must be equal in width and height, cropped to a circle, and stored in MPEG4 format", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1149,7 +1381,7 @@ } ], "description": "Describes a voice note. The voice note must be encoded with the Opus codec, and stored inside an OGG container. Voice notes can have only a single audio channel", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1184,7 +1416,7 @@ } ], "description": "Describes a user contact", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1204,7 +1436,7 @@ } ], "description": "Describes a location on planet Earth", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1230,7 +1462,7 @@ { "name": "provider", "type": "string", - "description": "Provider of the venue database; as defined by the sender. Currently only \"foursquare\" needs to be supported" + "description": "Provider of the venue database; as defined by the sender. Currently only \"foursquare\" and \"gplaces\" (Google Places) need to be supported" }, { "name": "id", @@ -1244,7 +1476,7 @@ } ], "description": "Describes a venue", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1289,7 +1521,7 @@ } ], "description": "Describes a game", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1305,7 +1537,7 @@ { "name": "question", "type": "string", - "description": "Poll question, 1-255 characters" + "description": "Poll question, 1-300 characters" }, { "name": "options", @@ -1317,6 +1549,31 @@ "type": "int32", "description": "Total number of voters, participating in the poll" }, + { + "name": "recent_voter_user_ids", + "type": "vector", + "description": "User identifiers of recent voters, if the poll is non-anonymous" + }, + { + "name": "is_anonymous", + "type": "Bool", + "description": "True, if the poll is anonymous" + }, + { + "name": "type", + "type": "PollType", + "description": "Type of the poll" + }, + { + "name": "open_period", + "type": "int32", + "description": "Amount of time the poll will be active after creation, in seconds" + }, + { + "name": "close_date", + "type": "int32", + "description": "Point in time (Unix timestamp) when the poll will be automatically closed" + }, { "name": "is_closed", "type": "Bool", @@ -1324,7 +1581,7 @@ } ], "description": "Describes a poll", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1335,77 +1592,51 @@ { "name": "id", "type": "int64", - "description": "Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of userProfilePhotos" + "description": "Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos" }, { "name": "small", "type": "file", - "description": "A small (160x160) user profile photo" + "description": "A small (160x160) user profile photo. The file can be downloaded only before the photo is changed" }, { "name": "big", "type": "file", - "description": "A big (640x640) user profile photo" + "description": "A big (640x640) user profile photo. The file can be downloaded only before the photo is changed" + }, + { + "name": "has_animation", + "type": "Bool", + "description": "True, if the photo has animated variant" } ], "description": "Describes a user profile photo", - "inheritance": "BaseTLClass", - "return_type": "", - "isFunction": false, - "isSynchronous": false - }, - { - "name": "chatPhoto", - "methods": [ - { - "name": "small", - "type": "file", - "description": "A small (160x160) chat photo" - }, - { - "name": "big", - "type": "file", - "description": "A big (640x640) chat photo" - } - ], - "description": "Describes the photo of a chat", - "inheritance": "BaseTLClass", - "return_type": "", - "isFunction": false, - "isSynchronous": false - }, - { - "name": "LinkState", - "methods": null, - "description": "Represents the relationship between user A and user B. For incoming_link, user A is the current user; for outgoing_link, user B is the current user", "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false }, { - "name": "linkStateNone", - "methods": null, - "description": "The phone number of user A is not known to user B", - "inheritance": "LinkState", - "return_type": "", - "isFunction": false, - "isSynchronous": false - }, - { - "name": "linkStateKnowsPhoneNumber", - "methods": null, - "description": "The phone number of user A is known but that number has not been saved to the contact list of user B", - "inheritance": "LinkState", - "return_type": "", - "isFunction": false, - "isSynchronous": false - }, - { - "name": "linkStateIsContact", - "methods": null, - "description": "The phone number of user A has been saved to the contact list of user B", - "inheritance": "LinkState", + "name": "chatPhotoInfo", + "methods": [ + { + "name": "small", + "type": "file", + "description": "A small (160x160) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed" + }, + { + "name": "big", + "type": "file", + "description": "A big (640x640) chat photo variant in JPEG format. The file can be downloaded only before the photo is changed" + }, + { + "name": "has_animation", + "type": "Bool", + "description": "True, if the photo has animated variant" + } + ], + "description": "Contains basic information about the photo of a chat", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1413,7 +1644,7 @@ { "name": "UserType", "methods": null, - "description": "Represents the type of the user. The following types are possible: regular users, deleted users and bots", + "description": "Represents the type of a user. The following types are possible: regular users, deleted users and bots", "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, @@ -1431,7 +1662,7 @@ { "name": "userTypeDeleted", "methods": null, - "description": "A deleted user or deleted bot. No information on the user besides the user_id is available. It is not possible to perform any active actions on this type of user", + "description": "A deleted user or deleted bot. No information on the user besides the user identifier is available. It is not possible to perform any active actions on this type of user", "inheritance": "UserType", "return_type": "", "isFunction": false, @@ -1458,7 +1689,7 @@ { "name": "inline_query_placeholder", "type": "string", - "description": "Placeholder for inline queries (displayed on the client input field)" + "description": "Placeholder for inline queries (displayed on the application input field)" }, { "name": "need_location", @@ -1475,7 +1706,7 @@ { "name": "userTypeUnknown", "methods": null, - "description": "No information on the user besides the user_id is available, yet this user has not been deleted. This object is extremely rare and must be handled like a deleted user. It is not possible to perform any actions on users of this type", + "description": "No information on the user besides the user identifier is available, yet this user has not been deleted. This object is extremely rare and must be handled like a deleted user. It is not possible to perform any actions on users of this type", "inheritance": "UserType", "return_type": "", "isFunction": false, @@ -1495,8 +1726,8 @@ "description": "Description of the bot command" } ], - "description": "Represents commands supported by a bot", - "inheritance": "BaseTLClass", + "description": "Represents a command supported by a bot", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1516,7 +1747,166 @@ } ], "description": "Provides information about a bot and its supported commands", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatLocation", + "methods": [ + { + "name": "location", + "type": "location", + "description": "The location" + }, + { + "name": "address", + "type": "string", + "description": "Location address; 1-64 characters, as defined by the chat owner" + } + ], + "description": "Represents a location to which a chat is connected", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "animatedChatPhoto", + "methods": [ + { + "name": "length", + "type": "int32", + "description": "Animation width and height" + }, + { + "name": "file", + "type": "file", + "description": "Information about the animation file" + }, + { + "name": "main_frame_timestamp", + "type": "double", + "description": "Timestamp of the frame, used as a static chat photo" + } + ], + "description": "Animated variant of a chat photo in MPEG4 format", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatPhoto", + "methods": [ + { + "name": "id", + "type": "int64", + "description": "Unique photo identifier" + }, + { + "name": "added_date", + "type": "int32", + "description": "Point in time (Unix timestamp) when the photo has been added" + }, + { + "name": "minithumbnail", + "type": "minithumbnail", + "description": "Photo minithumbnail; may be null" + }, + { + "name": "sizes", + "type": "vector", + "description": "Available variants of the photo in JPEG format, in different size" + }, + { + "name": "animation", + "type": "animatedChatPhoto", + "description": "Animated variant of the photo in MPEG4 format; may be null" + } + ], + "description": "Describes a chat or user profile photo", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatPhotos", + "methods": [ + { + "name": "total_count", + "type": "int32", + "description": "Total number of photos" + }, + { + "name": "photos", + "type": "vector", + "description": "List of photos" + } + ], + "description": "Contains a list of chat or user profile photos", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "InputChatPhoto", + "methods": null, + "description": "Describes a photo to be set as a user profile or chat photo", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "inputChatPhotoPrevious", + "methods": [ + { + "name": "chat_photo_id", + "type": "int64", + "description": "Identifier of the profile photo to reuse" + } + ], + "description": "A previously used profile photo of the current user", + "inheritance": "InputChatPhoto", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "inputChatPhotoStatic", + "methods": [ + { + "name": "photo", + "type": "InputFile", + "description": "Photo to be set as profile photo. Only inputFileLocal and inputFileGenerated are allowed" + } + ], + "description": "A static photo in JPEG format", + "inheritance": "InputChatPhoto", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "inputChatPhotoAnimation", + "methods": [ + { + "name": "animation", + "type": "InputFile", + "description": "Animation to be set as profile photo. Only inputFileLocal and inputFileGenerated are allowed" + }, + { + "name": "main_frame_timestamp", + "type": "double", + "description": "Timestamp of the frame, which will be used as static chat photo" + } + ], + "description": "An animation in MPEG4 format; must be square, at most 10 seconds long, have width between 160 and 800 and be at most 2MB in size", + "inheritance": "InputChatPhoto", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1560,14 +1950,14 @@ "description": "Profile photo of the user; may be null" }, { - "name": "outgoing_link", - "type": "LinkState", - "description": "Relationship from the current user to the other user" + "name": "is_contact", + "type": "Bool", + "description": "The user is a contact of the current user" }, { - "name": "incoming_link", - "type": "LinkState", - "description": "Relationship from the other user to the current user" + "name": "is_mutual_contact", + "type": "Bool", + "description": "The user is a contact of the current user and the current user is a contact of the user" }, { "name": "is_verified", @@ -1582,7 +1972,12 @@ { "name": "restriction_reason", "type": "string", - "description": "If non-empty, it contains the reason why access to this user must be restricted. The format of the string is \"{type}: {description}\". {type} contains the type of the restriction and at least one of the suffixes \"-all\", \"-ios\", \"-android\", or \"-wp\", which describe the platforms on which access should be restricted. (For example, \"terms-ios-android\". {description} contains a human-readable description of the restriction, which can be shown to the user)" + "description": "If non-empty, it contains a human-readable description of the reason why access to this user must be restricted" + }, + { + "name": "is_scam", + "type": "Bool", + "description": "True, if many users reported this user as a scam" }, { "name": "have_access", @@ -1601,7 +1996,7 @@ } ], "description": "Represents a user", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1610,20 +2005,30 @@ "name": "userFullInfo", "methods": [ { - "name": "is_blocked", - "type": "Bool", - "description": "True, if the user is blacklisted by the current user" + "name": "photo", + "type": "chatPhoto", + "description": "User profile photo; may be null" }, { "name": "can_be_called", "type": "Bool", "description": "True, if the user can be called" }, + { + "name": "supports_video_calls", + "type": "Bool", + "description": "True, if a video call can be created with the user" + }, { "name": "has_private_calls", "type": "Bool", "description": "True, if the user can't be called due to their privacy settings" }, + { + "name": "need_phone_number_privacy_exception", + "type": "Bool", + "description": "True, if the current user needs to explicitly allow to share their phone number with the user when the method addContact is used" + }, { "name": "bio", "type": "string", @@ -1645,53 +2050,8 @@ "description": "If the user is a bot, information about the bot; may be null" } ], - "description": "Contains full information about a user (except the full list of profile photos)", - "inheritance": "BaseTLClass", - "return_type": "", - "isFunction": false, - "isSynchronous": false - }, - { - "name": "userProfilePhoto", - "methods": [ - { - "name": "id", - "type": "int64", - "description": "Unique user profile photo identifier" - }, - { - "name": "added_date", - "type": "int32", - "description": "Point in time (Unix timestamp) when the photo has been added" - }, - { - "name": "sizes", - "type": "vector", - "description": "Available variants of the user photo, in different sizes" - } - ], - "description": "Contains full information about a user profile photo", - "inheritance": "BaseTLClass", - "return_type": "", - "isFunction": false, - "isSynchronous": false - }, - { - "name": "userProfilePhotos", - "methods": [ - { - "name": "total_count", - "type": "int32", - "description": "Total number of user profile photos" - }, - { - "name": "photos", - "type": "vector", - "description": "A list of photos" - } - ], - "description": "Contains part of the list of user photos", - "inheritance": "BaseTLClass", + "description": "Contains full information about a user", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1711,7 +2071,97 @@ } ], "description": "Represents a list of users", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatAdministrator", + "methods": [ + { + "name": "user_id", + "type": "int32", + "description": "User identifier of the administrator" + }, + { + "name": "custom_title", + "type": "string", + "description": "Custom title of the administrator" + }, + { + "name": "is_owner", + "type": "Bool", + "description": "True, if the user is the owner of the chat" + } + ], + "description": "Contains information about a chat administrator", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatAdministrators", + "methods": [ + { + "name": "administrators", + "type": "vector", + "description": "A list of chat administrators" + } + ], + "description": "Represents a list of chat administrators", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatPermissions", + "methods": [ + { + "name": "can_send_messages", + "type": "Bool", + "description": "True, if the user can send text messages, contacts, locations, and venues" + }, + { + "name": "can_send_media_messages", + "type": "Bool", + "description": "True, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies can_send_messages permissions" + }, + { + "name": "can_send_polls", + "type": "Bool", + "description": "True, if the user can send polls. Implies can_send_messages permissions" + }, + { + "name": "can_send_other_messages", + "type": "Bool", + "description": "True, if the user can send animations, games, stickers, and dice and use inline bots. Implies can_send_messages permissions" + }, + { + "name": "can_add_web_page_previews", + "type": "Bool", + "description": "True, if the user may add a web page preview to their messages. Implies can_send_messages permissions" + }, + { + "name": "can_change_info", + "type": "Bool", + "description": "True, if the user can change the chat title, photo, and other settings" + }, + { + "name": "can_invite_users", + "type": "Bool", + "description": "True, if the user can invite new users to the chat" + }, + { + "name": "can_pin_messages", + "type": "Bool", + "description": "True, if the user can pin messages" + } + ], + "description": "Describes actions that a user is allowed to take in a chat", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1728,13 +2178,23 @@ { "name": "chatMemberStatusCreator", "methods": [ + { + "name": "custom_title", + "type": "string", + "description": "A custom title of the owner; 0-16 characters without emojis; applicable to supergroups only" + }, + { + "name": "is_anonymous", + "type": "Bool", + "description": "True, if the creator isn't shown in the chat member list and sends messages anonymously" + }, { "name": "is_member", "type": "Bool", "description": "True, if the user is a member of the chat" } ], - "description": "The user is the creator of a chat and has all the administrator privileges", + "description": "The user is the owner of a chat and has all the administrator privileges", "inheritance": "ChatMemberStatus", "return_type": "", "isFunction": false, @@ -1743,6 +2203,11 @@ { "name": "chatMemberStatusAdministrator", "methods": [ + { + "name": "custom_title", + "type": "string", + "description": "A custom title of the administrator; 0-16 characters without emojis; applicable to supergroups only" + }, { "name": "can_be_edited", "type": "Bool", @@ -1786,7 +2251,12 @@ { "name": "can_promote_members", "type": "Bool", - "description": "True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that were directly or indirectly promoted by him" + "description": "True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them" + }, + { + "name": "is_anonymous", + "type": "Bool", + "description": "True, if the administrator isn't shown in the chat member list and sends messages anonymously" } ], "description": "The user is a member of a chat and has some additional privileges. In basic groups, administrators can edit and delete messages sent by others, add new members, and ban unprivileged members. In supergroups and channels, there are more detailed options for administrator privileges", @@ -1818,24 +2288,9 @@ "description": "Point in time (Unix timestamp) when restrictions will be lifted from the user; 0 if never. If the user is restricted for more than 366 days or for less than 30 seconds from the current time, the user is considered to be restricted forever" }, { - "name": "can_send_messages", - "type": "Bool", - "description": "True, if the user can send text messages, contacts, locations, and venues" - }, - { - "name": "can_send_media_messages", - "type": "Bool", - "description": "True, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies can_send_messages permissions" - }, - { - "name": "can_send_other_messages", - "type": "Bool", - "description": "True, if the user can send animations, games, and stickers and use inline bots. Implies can_send_media_messages permissions" - }, - { - "name": "can_add_web_page_previews", - "type": "Bool", - "description": "True, if the user may add a web page preview to his messages. Implies can_send_messages permissions" + "name": "permissions", + "type": "chatPermissions", + "description": "User permissions in the chat" } ], "description": "The user is under certain restrictions in the chat. Not supported in basic groups and channels", @@ -1884,7 +2339,7 @@ { "name": "joined_chat_date", "type": "int32", - "description": "Point in time (Unix timestamp) when the user joined a chat" + "description": "Point in time (Unix timestamp) when the user joined the chat" }, { "name": "status", @@ -1894,11 +2349,11 @@ { "name": "bot_info", "type": "botInfo", - "description": "If the user is a bot, information about the bot; may be null. Can be null even for a bot if the bot is not a chat member" + "description": "If the user is a bot, information about the bot; may be null. Can be null even for a bot if the bot is not the chat member" } ], "description": "A user with information about joining/leaving a chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1918,7 +2373,7 @@ } ], "description": "Contains a list of chat members", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -1932,10 +2387,19 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "chatMembersFilterContacts", + "methods": null, + "description": "Returns contacts of the user", + "inheritance": "ChatMembersFilter", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "chatMembersFilterAdministrators", "methods": null, - "description": "Returns the creator and administrators", + "description": "Returns the owner and administrators", "inheritance": "ChatMembersFilter", "return_type": "", "isFunction": false, @@ -1995,10 +2459,25 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "supergroupMembersFilterContacts", + "methods": [ + { + "name": "query", + "type": "string", + "description": "Query to search for" + } + ], + "description": "Returns contacts of the user, which are members of the supergroup or channel", + "inheritance": "SupergroupMembersFilter", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "supergroupMembersFilterAdministrators", "methods": null, - "description": "Returns the creator and administrators", + "description": "Returns the owner and administrators", "inheritance": "SupergroupMembersFilter", "return_type": "", "isFunction": false, @@ -2076,11 +2555,6 @@ "type": "ChatMemberStatus", "description": "Status of the current user in the group" }, - { - "name": "everyone_is_administrator", - "type": "Bool", - "description": "True, if all members have been granted administrator rights in the group" - }, { "name": "is_active", "type": "Bool", @@ -2093,7 +2567,7 @@ } ], "description": "Represents a basic group of 0-200 users (must be upgraded to a supergroup to accommodate more than 200 users)", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -2101,6 +2575,16 @@ { "name": "basicGroupFullInfo", "methods": [ + { + "name": "photo", + "type": "chatPhoto", + "description": "Chat photo; may be null" + }, + { + "name": "description", + "type": "string", + "description": "Group description" + }, { "name": "creator_user_id", "type": "int32", @@ -2114,11 +2598,11 @@ { "name": "invite_link", "type": "string", - "description": "Invite link for this group; available only for the group creator and only after it has been generated at least once" + "description": "Invite link for this group; available only after it has been generated at least once and only for the group creator" } ], "description": "Contains full information about a basic group", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -2144,23 +2628,33 @@ { "name": "status", "type": "ChatMemberStatus", - "description": "Status of the current user in the supergroup or channel" + "description": "Status of the current user in the supergroup or channel; custom title will be always empty" }, { "name": "member_count", "type": "int32", - "description": "Member count; 0 if unknown. Currently it is guaranteed to be known only if the supergroup or channel was found through SearchPublicChats" + "description": "Number of members in the supergroup or channel; 0 if unknown. Currently it is guaranteed to be known only if the supergroup or channel was received through searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, or getUserPrivacySettingRules" }, { - "name": "anyone_can_invite", + "name": "has_linked_chat", "type": "Bool", - "description": "True, if any member of the supergroup can invite other members. This field has no meaning for channels" + "description": "True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel" + }, + { + "name": "has_location", + "type": "Bool", + "description": "True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup" }, { "name": "sign_messages", "type": "Bool", "description": "True, if messages sent to the channel should contain information about the sender. This field is only applicable to channels" }, + { + "name": "is_slow_mode_enabled", + "type": "Bool", + "description": "True, if the slow mode is enabled in the supergroup" + }, { "name": "is_channel", "type": "Bool", @@ -2174,11 +2668,16 @@ { "name": "restriction_reason", "type": "string", - "description": "If non-empty, contains the reason why access to this supergroup or channel must be restricted. Format of the string is \"{type}: {description}\". {type} Contains the type of the restriction and at least one of the suffixes \"-all\", \"-ios\", \"-android\", or \"-wp\", which describe the platforms on which access should be restricted. (For example, \"terms-ios-android\". {description} contains a human-readable description of the restriction, which can be shown to the user)" + "description": "If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted" + }, + { + "name": "is_scam", + "type": "Bool", + "description": "True, if many users reported this supergroup as a scam" } ], "description": "Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -2186,6 +2685,11 @@ { "name": "supergroupFullInfo", "methods": [ + { + "name": "photo", + "type": "chatPhoto", + "description": "Chat photo; may be null" + }, { "name": "description", "type": "string", @@ -2211,6 +2715,21 @@ "type": "int32", "description": "Number of users banned from chat; 0 if unknown" }, + { + "name": "linked_chat_id", + "type": "int53", + "description": "Chat identifier of a discussion group for the channel, or a channel, for which the supergroup is the designated discussion group; 0 if none or unknown" + }, + { + "name": "slow_mode_delay", + "type": "int32", + "description": "Delay between consecutive sent messages for non-administrator supergroup members, in seconds" + }, + { + "name": "slow_mode_delay_expires_in", + "type": "double", + "description": "Time left before next message can be sent in the supergroup, in seconds. An updateSupergroupFullInfo update is not triggered when value of this field changes, but both new and old values are non-zero" + }, { "name": "can_get_members", "type": "Bool", @@ -2219,7 +2738,7 @@ { "name": "can_set_username", "type": "Bool", - "description": "True, if the chat can be made public" + "description": "True, if the chat username can be changed" }, { "name": "can_set_sticker_set", @@ -2227,20 +2746,30 @@ "description": "True, if the supergroup sticker set can be changed" }, { - "name": "can_view_statistics", + "name": "can_set_location", "type": "Bool", - "description": "True, if the channel statistics is available through getChatStatisticsUrl" + "description": "True, if the supergroup location can be changed" + }, + { + "name": "can_get_statistics", + "type": "Bool", + "description": "True, if the supergroup or channel statistics are available" }, { "name": "is_all_history_available", "type": "Bool", - "description": "True, if new chat members will have access to old messages. In public supergroups and both public and private channels, old messages are always available, so this option affects only private supergroups. The value of this field is only available for chat administrators" + "description": "True, if new chat members will have access to old messages. In public or discussion groups and both public and private channels, old messages are always available, so this option affects only private supergroups without a linked chat. The value of this field is only available for chat administrators" }, { "name": "sticker_set_id", "type": "int64", "description": "Identifier of the supergroup sticker set; 0 if none" }, + { + "name": "location", + "type": "chatLocation", + "description": "Location to which the supergroup is connected; may be null" + }, { "name": "invite_link", "type": "string", @@ -2258,7 +2787,7 @@ } ], "description": "Contains full information about a supergroup or channel", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -2330,16 +2859,16 @@ { "name": "key_hash", "type": "bytes", - "description": "Hash of the currently used key for comparison with the hash of the chat partner's key. This is a string of 36 bytes, which must be used to make a 12x12 square image with a color depth of 4. The first 16 bytes should be used to make a central 8x8 square, while the remaining 20 bytes should be used to construct a 2-pixel-wide border around that square. Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex numbers" + "description": "Hash of the currently used key for comparison with the hash of the chat partner's key. This is a string of 36 little-endian bytes, which must be split into groups of 2 bits, each denoting a pixel of one of 4 colors FFFFFF, D5E6F3, 2D5775, and 2F99C9. The pixels must be used to make a 12x12 square image filled from left to right, top to bottom. Alternatively, the first 32 bytes of the hash can be converted to the hexadecimal format and printed as 32 2-digit hex numbers" }, { "name": "layer", "type": "int32", - "description": "Secret chat layer; determines features supported by the other client. Video notes are supported if the layer >= 66" + "description": "Secret chat layer; determines features supported by the chat partner's application. Video notes are supported if the layer >= 66; nested text entities and underline and strikethrough entities are supported if the layer >= 101" } ], "description": "Represents a secret chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -2368,6 +2897,21 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "messageForwardOriginChat", + "methods": [ + { + "name": "sender_chat_id", + "type": "int53", + "description": "Identifier of the chat that originally sent the message" + } + ], + "description": "The message was originally written by an anonymous chat administrator on behalf of the chat", + "inheritance": "MessageForwardOrigin", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "messageForwardOriginHiddenUser", "methods": [ @@ -2377,7 +2921,7 @@ "description": "Name of the sender" } ], - "description": "The message was originally written by a user, which is hidden by his privacy settings", + "description": "The message was originally written by a user, which is hidden by their privacy settings", "inheritance": "MessageForwardOrigin", "return_type": "", "isFunction": false, @@ -2421,19 +2965,84 @@ "type": "int32", "description": "Point in time (Unix timestamp) when the message was originally sent" }, + { + "name": "public_service_announcement_type", + "type": "string", + "description": "The type of a public service announcement for the forwarded message" + }, { "name": "from_chat_id", "type": "int53", - "description": "For messages forwarded to the chat with the current user (saved messages), the identifier of the chat from which the message was forwarded last time; 0 if unknown" + "description": "For messages forwarded to the chat with the current user (Saved Messages), to the Replies bot chat, or to the channel's discussion group, the identifier of the chat from which the message was forwarded last time; 0 if unknown" }, { "name": "from_message_id", "type": "int53", - "description": "For messages forwarded to the chat with the current user (saved messages), the identifier of the original message from which the new message was forwarded last time; 0 if unknown" + "description": "For messages forwarded to the chat with the current user (Saved Messages), to the Replies bot chat, or to the channel's discussion group, the identifier of the original message from which the new message was forwarded last time; 0 if unknown" } ], "description": "Contains information about a forwarded message", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "messageReplyInfo", + "methods": [ + { + "name": "reply_count", + "type": "int32", + "description": "Number of times the message was directly or indirectly replied" + }, + { + "name": "recent_replier_user_ids", + "type": "vector", + "description": "User identifiers of the recent repliers to the message; available in channels with a discussion supergroup" + }, + { + "name": "last_read_inbox_message_id", + "type": "int53", + "description": "Identifier of the last read incoming reply to the message" + }, + { + "name": "last_read_outbox_message_id", + "type": "int53", + "description": "Identifier of the last read outgoing reply to the message" + }, + { + "name": "last_message_id", + "type": "int53", + "description": "Identifier of the last reply to the message" + } + ], + "description": "Contains information about message replies", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "messageInteractionInfo", + "methods": [ + { + "name": "view_count", + "type": "int32", + "description": "Number of times the message was viewed" + }, + { + "name": "forward_count", + "type": "int32", + "description": "Number of times the message was forwarded" + }, + { + "name": "reply_info", + "type": "messageReplyInfo", + "description": "Contains information about direct or indirect replies to the message; may be null. Currently, available only in channels with a discussion supergroup and discussion supergroups for messages, which are not replies itself" + } + ], + "description": "Contains information about interactions with a message", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -2458,7 +3067,28 @@ }, { "name": "messageSendingStateFailed", - "methods": null, + "methods": [ + { + "name": "error_code", + "type": "int32", + "description": "An error code; 0 if unknown" + }, + { + "name": "error_message", + "type": "string", + "description": "Error message" + }, + { + "name": "can_retry", + "type": "Bool", + "description": "True, if the message can be re-sent" + }, + { + "name": "retry_after", + "type": "double", + "description": "Time left before the message can be re-sent, in seconds. No update is sent when this field changes" + } + ], "description": "The message failed to be sent", "inheritance": "MessageSendingState", "return_type": "", @@ -2471,12 +3101,17 @@ { "name": "id", "type": "int53", - "description": "Message identifier, unique for the chat to which the message belongs" + "description": "Message identifier; unique for the chat to which the message belongs" }, { "name": "sender_user_id", "type": "int32", - "description": "Identifier of the user who sent the message; 0 if unknown. It is unknown for channel posts" + "description": "Identifier of the user who sent the message; 0 if unknown. Currently, it is unknown for channel posts, for channel posts automatically forwarded to discussion group and for anonymously sent supergroup messages" + }, + { + "name": "sender_chat_id", + "type": "int53", + "description": "Identifier of the chat on behalf of which the message was sent; 0 if none" }, { "name": "chat_id", @@ -2488,6 +3123,11 @@ "type": "MessageSendingState", "description": "Information about the sending state of the message; may be null" }, + { + "name": "scheduling_state", + "type": "MessageSchedulingState", + "description": "Information about the scheduling state of the message; may be null" + }, { "name": "is_outgoing", "type": "Bool", @@ -2496,7 +3136,7 @@ { "name": "can_be_edited", "type": "Bool", - "description": "True, if the message can be edited. For live location and poll messages this fields shows, whether editMessageLiveLocation or stopPoll can be used with this message by the client" + "description": "True, if the message can be edited. For live location and poll messages this fields shows whether editMessageLiveLocation or stopPoll can be used with this message by the application" }, { "name": "can_be_forwarded", @@ -2513,6 +3153,16 @@ "type": "Bool", "description": "True, if the message can be deleted for all users" }, + { + "name": "can_get_statistics", + "type": "Bool", + "description": "True, if the message statistics are available" + }, + { + "name": "can_get_message_thread", + "type": "Bool", + "description": "True, if the message thread info is available" + }, { "name": "is_channel_post", "type": "Bool", @@ -2538,11 +3188,26 @@ "type": "messageForwardInfo", "description": "Information about the initial message sender; may be null" }, + { + "name": "interaction_info", + "type": "messageInteractionInfo", + "description": "Information about interactions with the message; may be null" + }, + { + "name": "reply_in_chat_id", + "type": "int53", + "description": "If non-zero, the identifier of the chat to which the replied message belongs; Currently, only messages in the Replies chat can have different reply_in_chat_id and chat_id" + }, { "name": "reply_to_message_id", "type": "int53", "description": "If non-zero, the identifier of the message this message is replying to; can be the identifier of a deleted message" }, + { + "name": "message_thread_id", + "type": "int53", + "description": "If non-zero, the identifier of the message thread the message belongs to; unique within the chat to which the message belongs" + }, { "name": "ttl", "type": "int32", @@ -2563,16 +3228,16 @@ "type": "string", "description": "For channel posts, optional author signature" }, - { - "name": "views", - "type": "int32", - "description": "Number of times this message was viewed" - }, { "name": "media_album_id", "type": "int64", "description": "Unique identifier of an album this message belongs to. Only photos and videos can be grouped together in albums" }, + { + "name": "restriction_reason", + "type": "string", + "description": "If non-empty, contains a human-readable description of the reason why access to this message must be restricted" + }, { "name": "content", "type": "MessageContent", @@ -2585,7 +3250,7 @@ } ], "description": "Describes a message", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -2605,7 +3270,7 @@ } ], "description": "Contains a list of messages", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -2613,19 +3278,24 @@ { "name": "foundMessages", "methods": [ + { + "name": "total_count", + "type": "int32", + "description": "Approximate total count of messages found; -1 if unknown" + }, { "name": "messages", "type": "vector", "description": "List of messages" }, { - "name": "next_from_search_id", - "type": "int64", - "description": "Value to pass as from_search_id to get more results" + "name": "next_offset", + "type": "string", + "description": "The offset for the next request. If empty, there are no more results" } ], "description": "Contains a list of messages found by a search", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -2721,7 +3391,7 @@ } ], "description": "Contains information about notification settings for a chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -2756,7 +3426,7 @@ } ], "description": "Contains information about notification settings for several chats", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -2769,6 +3439,11 @@ "type": "int53", "description": "Identifier of the message to reply to; 0 if none" }, + { + "name": "date", + "type": "int32", + "description": "Point in time (Unix timestamp) when the draft was created" + }, { "name": "input_message_text", "type": "InputMessageContent", @@ -2776,7 +3451,7 @@ } ], "description": "Contains information about a message draft", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -2860,6 +3535,266 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "chatFilter", + "methods": [ + { + "name": "title", + "type": "string", + "description": "The title of the filter; 1-12 characters without line feeds" + }, + { + "name": "icon_name", + "type": "string", + "description": "The icon name for short filter representation. If non-empty, must be one of \"All\", \"Unread\", \"Unmuted\", \"Bots\", \"Channels\", \"Groups\", \"Private\", \"Custom\", \"Setup\", \"Cat\", \"Crown\", \"Favorite\", \"Flower\", \"Game\", \"Home\", \"Love\", \"Mask\", \"Party\", \"Sport\", \"Study\", \"Trade\", \"Travel\", \"Work\". If empty, use getChatFilterDefaultIconName to get default icon name for the filter" + }, + { + "name": "pinned_chat_ids", + "type": "vector", + "description": "The chat identifiers of pinned chats in the filtered chat list" + }, + { + "name": "included_chat_ids", + "type": "vector", + "description": "The chat identifiers of always included chats in the filtered chat list" + }, + { + "name": "excluded_chat_ids", + "type": "vector", + "description": "The chat identifiers of always excluded chats in the filtered chat list" + }, + { + "name": "exclude_muted", + "type": "Bool", + "description": "True, if the muted chats need to be excluded" + }, + { + "name": "exclude_read", + "type": "Bool", + "description": "True, if read chats need to be excluded" + }, + { + "name": "exclude_archived", + "type": "Bool", + "description": "True, if archived chats need to be excluded" + }, + { + "name": "include_contacts", + "type": "Bool", + "description": "True, if contacts need to be included" + }, + { + "name": "include_non_contacts", + "type": "Bool", + "description": "True, if non-contact users need to be included" + }, + { + "name": "include_bots", + "type": "Bool", + "description": "True, if bots need to be included" + }, + { + "name": "include_groups", + "type": "Bool", + "description": "True, if basic groups and supergroups need to be included" + }, + { + "name": "include_channels", + "type": "Bool", + "description": "True, if channels need to be included" + } + ], + "description": "Represents a filter of user chats", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatFilterInfo", + "methods": [ + { + "name": "id", + "type": "int32", + "description": "Unique chat filter identifier" + }, + { + "name": "title", + "type": "string", + "description": "The title of the filter; 1-12 characters without line feeds" + }, + { + "name": "icon_name", + "type": "string", + "description": "The icon name for short filter representation. One of \"All\", \"Unread\", \"Unmuted\", \"Bots\", \"Channels\", \"Groups\", \"Private\", \"Custom\", \"Setup\", \"Cat\", \"Crown\", \"Favorite\", \"Flower\", \"Game\", \"Home\", \"Love\", \"Mask\", \"Party\", \"Sport\", \"Study\", \"Trade\", \"Travel\", \"Work\"" + } + ], + "description": "Contains basic information about a chat filter", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "recommendedChatFilter", + "methods": [ + { + "name": "filter", + "type": "chatFilter", + "description": "The chat filter" + }, + { + "name": "description", + "type": "string", + "description": "Chat filter description" + } + ], + "description": "Describes a recommended chat filter", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "recommendedChatFilters", + "methods": [ + { + "name": "chat_filters", + "type": "vector", + "description": "List of recommended chat filters" + } + ], + "description": "Contains a list of recommended chat filters", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "ChatList", + "methods": null, + "description": "Describes a list of chats", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatListMain", + "methods": null, + "description": "A main list of chats", + "inheritance": "ChatList", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatListArchive", + "methods": null, + "description": "A list of chats usually located at the top of the main chat list. Unmuted chats are automatically moved from the Archive to the Main chat list when a new message arrives", + "inheritance": "ChatList", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatListFilter", + "methods": [ + { + "name": "chat_filter_id", + "type": "int32", + "description": "Chat filter identifier" + } + ], + "description": "A list of chats belonging to a chat filter", + "inheritance": "ChatList", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatLists", + "methods": [ + { + "name": "chat_lists", + "type": "vector", + "description": "List of chat lists" + } + ], + "description": "Contains a list of chat lists", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "ChatSource", + "methods": null, + "description": "Describes a reason why an external chat is shown in a chat list", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatSourceMtprotoProxy", + "methods": null, + "description": "The chat is sponsored by the user's MTProxy server", + "inheritance": "ChatSource", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatSourcePublicServiceAnnouncement", + "methods": [ + { + "name": "type", + "type": "string", + "description": "The type of the announcement" + }, + { + "name": "text", + "type": "string", + "description": "The text of the announcement" + } + ], + "description": "The chat contains a public service announcement", + "inheritance": "ChatSource", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatPosition", + "methods": [ + { + "name": "list", + "type": "ChatList", + "description": "The chat list" + }, + { + "name": "order", + "type": "int64", + "description": "A parameter used to determine order of the chat in the chat list. Chats must be sorted by the pair (order, chat.id) in descending order" + }, + { + "name": "is_pinned", + "type": "Bool", + "description": "True, if the chat is pinned in the chat list" + }, + { + "name": "source", + "type": "ChatSource", + "description": "Source of the chat in the chat list; may be null" + } + ], + "description": "Describes a position of a chat in a chat list", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "chat", "methods": [ @@ -2880,23 +3815,23 @@ }, { "name": "photo", - "type": "chatPhoto", + "type": "chatPhotoInfo", "description": "Chat photo; may be null" }, + { + "name": "permissions", + "type": "chatPermissions", + "description": "Actions that non-administrator chat members are allowed to take in the chat" + }, { "name": "last_message", "type": "message", "description": "Last message in the chat; may be null" }, { - "name": "order", - "type": "int64", - "description": "Descending parameter by which chats are sorted in the main chat list. If the order number of two chats is the same, they must be sorted in descending order by ID. If 0, the position of the chat in the list is undetermined" - }, - { - "name": "is_pinned", - "type": "Bool", - "description": "True, if the chat is pinned" + "name": "positions", + "type": "vector", + "description": "Positions of the chat in chat lists" }, { "name": "is_marked_as_unread", @@ -2904,9 +3839,14 @@ "description": "True, if the chat is marked as unread" }, { - "name": "is_sponsored", + "name": "is_blocked", "type": "Bool", - "description": "True, if the chat is sponsored by the user's MTProxy server" + "description": "True, if the chat is blocked by the current user and private messages from the chat can't be received" + }, + { + "name": "has_scheduled_messages", + "type": "Bool", + "description": "True, if the chat has scheduled messages" }, { "name": "can_be_deleted_only_for_self", @@ -2953,6 +3893,11 @@ "type": "chatNotificationSettings", "description": "Notification settings for this chat" }, + { + "name": "action_bar", + "type": "ChatActionBar", + "description": "Describes actions which should be possible to do through a chat action bar; may be null" + }, { "name": "pinned_message_id", "type": "int53", @@ -2971,11 +3916,11 @@ { "name": "client_data", "type": "string", - "description": "Contains client-specific data associated with the chat. (For example, the chat position or local chat notification settings can be stored here.) Persistent if a message database is used" + "description": "Contains application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used" } ], "description": "A chat. (Can be a private chat, basic group, supergroup, or secret chat)", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -2983,6 +3928,11 @@ { "name": "chats", "methods": [ + { + "name": "total_count", + "type": "int32", + "description": "Approximate total count of chats found" + }, { "name": "chat_ids", "type": "vector", @@ -2990,7 +3940,47 @@ } ], "description": "Represents a list of chats", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatNearby", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "distance", + "type": "int32", + "description": "Distance to the chat location in meters" + } + ], + "description": "Describes a chat located nearby", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatsNearby", + "methods": [ + { + "name": "users_nearby", + "type": "vector", + "description": "List of users nearby" + }, + { + "name": "supergroups_nearby", + "type": "vector", + "description": "List of location-based supergroups nearby" + } + ], + "description": "Represents a list of chats located nearby", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -3005,7 +3995,7 @@ } ], "description": "Contains a chat invite link", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -3016,7 +4006,12 @@ { "name": "chat_id", "type": "int53", - "description": "Chat identifier of the invite link; 0 if the user is not a member of this chat" + "description": "Chat identifier of the invite link; 0 if the user has no access to the chat before joining" + }, + { + "name": "accessible_for", + "type": "int32", + "description": "If non-zero, the remaining time for which read access is granted to the chat, in seconds" }, { "name": "type", @@ -3030,13 +4025,13 @@ }, { "name": "photo", - "type": "chatPhoto", + "type": "chatPhotoInfo", "description": "Chat photo; may be null" }, { "name": "member_count", "type": "int32", - "description": "Number of members" + "description": "Number of members in the chat" }, { "name": "member_user_ids", @@ -3046,11 +4041,109 @@ { "name": "is_public", "type": "Bool", - "description": "True, if the chat is a public supergroup or channel with a username" + "description": "True, if the chat is a public supergroup or channel, i.e. it has a username or it is a location-based supergroup" } ], "description": "Contains information about a chat invite link", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "PublicChatType", + "methods": null, + "description": "Describes a type of public chats", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "publicChatTypeHasUsername", + "methods": null, + "description": "The chat is public, because it has username", + "inheritance": "PublicChatType", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "publicChatTypeIsLocationBased", + "methods": null, + "description": "The chat is public, because it is a location-based supergroup", + "inheritance": "PublicChatType", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "ChatActionBar", + "methods": null, + "description": "Describes actions which should be possible to do through a chat action bar", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatActionBarReportSpam", + "methods": [ + { + "name": "can_unarchive", + "type": "Bool", + "description": "If true, the chat was automatically archived and can be moved back to the main chat list using addChatToList simultaneously with setting chat notification settings to default using setChatNotificationSettings" + } + ], + "description": "The chat can be reported as spam using the method reportChat with the reason chatReportReasonSpam", + "inheritance": "ChatActionBar", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatActionBarReportUnrelatedLocation", + "methods": null, + "description": "The chat is a location-based supergroup, which can be reported as having unrelated location using the method reportChat with the reason chatReportReasonUnrelatedLocation", + "inheritance": "ChatActionBar", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatActionBarReportAddBlock", + "methods": [ + { + "name": "can_unarchive", + "type": "Bool", + "description": "If true, the chat was automatically archived and can be moved back to the main chat list using addChatToList simultaneously with setting chat notification settings to default using setChatNotificationSettings" + }, + { + "name": "distance", + "type": "int32", + "description": "If non-negative, the current user was found by the peer through searchChatsNearby and this is the distance between the users" + } + ], + "description": "The chat is a private or secret chat, which can be reported using the method reportChat, or the other user can be blocked using the method blockUser, or the other user can be added to the contact list using the method addContact", + "inheritance": "ChatActionBar", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatActionBarAddContact", + "methods": null, + "description": "The chat is a private or secret chat and the other user can be added to the contact list using the method addContact", + "inheritance": "ChatActionBar", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatActionBarSharePhoneNumber", + "methods": null, + "description": "The chat is a private or secret chat with a mutual contact and the user's phone number can be shared with the other user using the method sharePhoneNumber", + "inheritance": "ChatActionBar", "return_type": "", "isFunction": false, "isSynchronous": false @@ -3091,6 +4184,26 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "keyboardButtonTypeRequestPoll", + "methods": [ + { + "name": "force_regular", + "type": "Bool", + "description": "If true, only regular polls must be allowed to create" + }, + { + "name": "force_quiz", + "type": "Bool", + "description": "If true, only polls in quiz mode must be allowed to create" + } + ], + "description": "A button that allows the user to create and send a poll when pressed; available only in private chats", + "inheritance": "KeyboardButtonType", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "keyboardButton", "methods": [ @@ -3106,7 +4219,7 @@ } ], "description": "Represents a single button in a bot keyboard", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -3135,6 +4248,31 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "inlineKeyboardButtonTypeLoginUrl", + "methods": [ + { + "name": "url", + "type": "string", + "description": "An HTTP URL to open" + }, + { + "name": "id", + "type": "int32", + "description": "Unique button identifier" + }, + { + "name": "forward_text", + "type": "string", + "description": "If non-empty, new text of the button in forwarded messages" + } + ], + "description": "A button that opens a specified URL and automatically logs in in current user if they allowed to do that", + "inheritance": "InlineKeyboardButtonType", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "inlineKeyboardButtonTypeCallback", "methods": [ @@ -3144,7 +4282,22 @@ "description": "Data to be sent to the bot via a callback query" } ], - "description": "A button that sends a special callback query to a bot", + "description": "A button that sends a callback query to a bot", + "inheritance": "InlineKeyboardButtonType", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "inlineKeyboardButtonTypeCallbackWithPassword", + "methods": [ + { + "name": "data", + "type": "bytes", + "description": "Data to be sent to the bot via a callback query" + } + ], + "description": "A button that asks for password of the current user and then sends a callback query to a bot", "inheritance": "InlineKeyboardButtonType", "return_type": "", "isFunction": false, @@ -3153,7 +4306,7 @@ { "name": "inlineKeyboardButtonTypeCallbackGame", "methods": null, - "description": "A button with a game that sends a special callback query to a bot. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageGame", + "description": "A button with a game that sends a callback query to a bot. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageGame", "inheritance": "InlineKeyboardButtonType", "return_type": "", "isFunction": false, @@ -3203,7 +4356,7 @@ } ], "description": "Represents a single button in an inline keyboard", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -3226,7 +4379,7 @@ "description": "True, if the keyboard is removed only for the mentioned users or the target user of a reply" } ], - "description": "Instructs clients to remove the keyboard once this message has been received. This kind of keyboard can't be received in an incoming message; instead, UpdateChatReplyMarkup with message_id == 0 will be sent", + "description": "Instructs application to remove the keyboard once this message has been received. This kind of keyboard can't be received in an incoming message; instead, UpdateChatReplyMarkup with message_id == 0 will be sent", "inheritance": "ReplyMarkup", "return_type": "", "isFunction": false, @@ -3241,7 +4394,7 @@ "description": "True, if a forced reply must automatically be shown to the current user. For outgoing messages, specify true to show the forced reply only for the mentioned users and for the target user of a reply" } ], - "description": "Instructs clients to force a reply to this message", + "description": "Instructs application to force a reply to this message", "inheritance": "ReplyMarkup", "return_type": "", "isFunction": false, @@ -3258,12 +4411,12 @@ { "name": "resize_keyboard", "type": "Bool", - "description": "True, if the client needs to resize the keyboard vertically" + "description": "True, if the application needs to resize the keyboard vertically" }, { "name": "one_time", "type": "Bool", - "description": "True, if the client needs to hide the keyboard after use" + "description": "True, if the application needs to hide the keyboard after use" }, { "name": "is_personal", @@ -3292,6 +4445,95 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "LoginUrlInfo", + "methods": null, + "description": "Contains information about an inline button of type inlineKeyboardButtonTypeLoginUrl", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "loginUrlInfoOpen", + "methods": [ + { + "name": "url", + "type": "string", + "description": "The URL to open" + }, + { + "name": "skip_confirm", + "type": "Bool", + "description": "True, if there is no need to show an ordinary open URL confirm" + } + ], + "description": "An HTTP url needs to be open", + "inheritance": "LoginUrlInfo", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "loginUrlInfoRequestConfirmation", + "methods": [ + { + "name": "url", + "type": "string", + "description": "An HTTP URL to be opened" + }, + { + "name": "domain", + "type": "string", + "description": "A domain of the URL" + }, + { + "name": "bot_user_id", + "type": "int32", + "description": "User identifier of a bot linked with the website" + }, + { + "name": "request_write_access", + "type": "Bool", + "description": "True, if the user needs to be requested to give the permission to the bot to send them messages" + } + ], + "description": "An authorization confirmation dialog needs to be shown to the user", + "inheritance": "LoginUrlInfo", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "messageThreadInfo", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Identifier of the chat to which the message thread belongs" + }, + { + "name": "message_thread_id", + "type": "int53", + "description": "Message thread identifier, unique within the chat" + }, + { + "name": "messages", + "type": "vector", + "description": "The messages from which the thread starts. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id)" + }, + { + "name": "draft_message", + "type": "draftMessage", + "description": "A draft of a message in the message thread; may be null" + } + ], + "description": "Contains information about a message thread", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "RichText", "methods": null, @@ -3370,7 +4612,7 @@ "description": "Text" } ], - "description": "A strike-through rich text", + "description": "A strikethrough rich text", "inheritance": "RichText", "return_type": "", "isFunction": false, @@ -3403,6 +4645,11 @@ "name": "url", "type": "string", "description": "URL" + }, + { + "name": "is_cached", + "type": "Bool", + "description": "True, if the URL has cached instant view server-side" } ], "description": "A rich text URL link", @@ -3507,12 +4754,12 @@ { "name": "width", "type": "int32", - "description": "Width of a bounding box in which the image should be shown, 0 if unknown" + "description": "Width of a bounding box in which the image should be shown; 0 if unknown" }, { "name": "height", "type": "int32", - "description": "Height of a bounding box in which the image should be shown, 0 if unknown" + "description": "Height of a bounding box in which the image should be shown; 0 if unknown" } ], "description": "A small image inside the text", @@ -3522,20 +4769,65 @@ "isSynchronous": false }, { - "name": "richTextAnchor", + "name": "richTextReference", "methods": [ { "name": "text", "type": "RichText", - "description": "Text" + "description": "The text" }, + { + "name": "reference_text", + "type": "RichText", + "description": "The text to show on click" + }, + { + "name": "url", + "type": "string", + "description": "An HTTP URL, opening the reference" + } + ], + "description": "A rich text reference of a text on the same web page", + "inheritance": "RichText", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "richTextAnchor", + "methods": [ { "name": "name", "type": "string", "description": "Anchor name" } ], - "description": "A rich text anchor", + "description": "An anchor", + "inheritance": "RichText", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "richTextAnchorLink", + "methods": [ + { + "name": "text", + "type": "RichText", + "description": "The link text" + }, + { + "name": "name", + "type": "string", + "description": "The anchor name. If the name is empty, the link should bring back to top" + }, + { + "name": "url", + "type": "string", + "description": "An HTTP URL, opening the anchor" + } + ], + "description": "A link to an anchor on the same web page", "inheritance": "RichText", "return_type": "", "isFunction": false, @@ -3571,7 +4863,7 @@ } ], "description": "Contains a caption of an instant view web page block, consisting of a text and a trailing credit", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -3591,7 +4883,7 @@ } ], "description": "Describes an item of a list page block", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -3674,7 +4966,7 @@ { "name": "text", "type": "RichText", - "description": "Cell text" + "description": "Cell text; may be null. If the text is null, then the cell should be invisible" }, { "name": "is_header", @@ -3703,7 +4995,7 @@ } ], "description": "Represents a cell of a table", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -3743,7 +5035,7 @@ } ], "description": "Contains information about a related article", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -4081,6 +5373,26 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "pageBlockVoiceNote", + "methods": [ + { + "name": "voice_note", + "type": "voiceNote", + "description": "Voice note; may be null" + }, + { + "name": "caption", + "type": "pageBlockCaption", + "description": "Voice note caption" + } + ], + "description": "A voice note", + "inheritance": "PageBlock", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "pageBlockCover", "methods": [ @@ -4117,12 +5429,12 @@ { "name": "width", "type": "int32", - "description": "Block width, 0 if unknown" + "description": "Block width; 0 if unknown" }, { "name": "height", "type": "int32", - "description": "Block height, 0 if unknown" + "description": "Block height; 0 if unknown" }, { "name": "caption", @@ -4162,7 +5474,7 @@ { "name": "author_photo", "type": "photo", - "description": "Post author photo" + "description": "Post author photo; may be null" }, { "name": "date", @@ -4236,7 +5548,7 @@ }, { "name": "photo", - "type": "chatPhoto", + "type": "chatPhotoInfo", "description": "Chat photo; may be null" }, { @@ -4369,16 +5681,16 @@ "type": "vector", "description": "Content of the web page" }, + { + "name": "view_count", + "type": "int32", + "description": "Number of the instant view views; 0 if unknown" + }, { "name": "version", "type": "int32", "description": "Version of the instant view, currently can be 1 or 2" }, - { - "name": "url", - "type": "string", - "description": "Instant view URL; may be different from WebPage.url and must be used for the correct anchors handling" - }, { "name": "is_rtl", "type": "Bool", @@ -4391,7 +5703,7 @@ } ], "description": "Describes an instant view page for a web page", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -4426,7 +5738,7 @@ }, { "name": "description", - "type": "string", + "type": "formattedText", "description": "Description of the content" }, { @@ -4506,7 +5818,122 @@ } ], "description": "Describes a web page preview", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "countryInfo", + "methods": [ + { + "name": "country_code", + "type": "string", + "description": "A two-letter ISO 3166-1 alpha-2 country code" + }, + { + "name": "name", + "type": "string", + "description": "Native name of the country" + }, + { + "name": "english_name", + "type": "string", + "description": "English name of the country" + }, + { + "name": "is_hidden", + "type": "Bool", + "description": "True, if the country should be hidden from the list of all countries" + }, + { + "name": "calling_codes", + "type": "vector", + "description": "List of country calling codes" + } + ], + "description": "Contains information about a country", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "countries", + "methods": [ + { + "name": "countries", + "type": "vector", + "description": "The list of countries" + } + ], + "description": "Contains information about countries", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "phoneNumberInfo", + "methods": [ + { + "name": "country", + "type": "countryInfo", + "description": "Information about the country to which the phone number belongs; may be null" + }, + { + "name": "country_calling_code", + "type": "string", + "description": "The part of the phone number denoting country calling code or its part" + }, + { + "name": "formatted_phone_number", + "type": "string", + "description": "The phone number without country calling code formatted accordingly to local rules" + } + ], + "description": "Contains information about a phone number", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "bankCardActionOpenUrl", + "methods": [ + { + "name": "text", + "type": "string", + "description": "Action text" + }, + { + "name": "url", + "type": "string", + "description": "The URL to be opened" + } + ], + "description": "Describes an action associated with a bank card number", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "bankCardInfo", + "methods": [ + { + "name": "title", + "type": "string", + "description": "Title of the bank card description" + }, + { + "name": "actions", + "type": "vector", + "description": "Actions that can be done with the bank card number" + } + ], + "description": "Information about a bank card", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -4546,7 +5973,7 @@ } ], "description": "Describes an address", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -4566,7 +5993,7 @@ } ], "description": "Portion of the price of a product (e.g., \"delivery cost\", \"tax amount\")", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -4626,7 +6053,7 @@ } ], "description": "Product invoice", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -4656,7 +6083,7 @@ } ], "description": "Order information", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -4681,7 +6108,7 @@ } ], "description": "One shipping option", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -4701,7 +6128,7 @@ } ], "description": "Contains information about saved card credentials", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -4805,7 +6232,7 @@ } ], "description": "Stripe payment provider", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -4850,7 +6277,7 @@ } ], "description": "Contains information about an invoice payment form", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -4870,7 +6297,7 @@ } ], "description": "Contains a temporary identifier of validated order information, which is stored for one hour. Also contains the available shipping options", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -4890,7 +6317,7 @@ } ], "description": "Contains the result of a payment request", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -4930,7 +6357,7 @@ } ], "description": "Contains information about a successful payment", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -4950,7 +6377,7 @@ } ], "description": "File with the date it was uploaded", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -5101,7 +6528,7 @@ } ], "description": "Represents a date according to the Gregorian calendar", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -5161,7 +6588,7 @@ } ], "description": "Contains the user's personal details", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -5201,7 +6628,7 @@ } ], "description": "An identity document", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -5241,7 +6668,7 @@ } ], "description": "An identity document to be saved to Telegram Passport", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -5261,7 +6688,7 @@ } ], "description": "A personal document, containing some information about a user", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -5281,7 +6708,7 @@ } ], "description": "A personal document to be saved to Telegram Passport", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -5704,7 +7131,7 @@ } ], "description": "Contains information about saved Telegram Passport elements", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -5837,7 +7264,7 @@ } ], "description": "Contains the description of an error in a Telegram Passport element", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -5867,7 +7294,7 @@ } ], "description": "Contains information about a Telegram Passport element that was requested by a service", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -5882,7 +7309,7 @@ } ], "description": "Contains a description of the required Telegram Passport element that was requested by a service", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -5907,7 +7334,7 @@ } ], "description": "Contains information about a Telegram Passport authorization form that was requested", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -5927,7 +7354,7 @@ } ], "description": "Contains information about a Telegram Passport elements and corresponding errors", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -5952,7 +7379,7 @@ } ], "description": "Contains encrypted Telegram Passport data credentials", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -6007,7 +7434,7 @@ } ], "description": "Contains information about an encrypted Telegram Passport element; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -6181,7 +7608,7 @@ } ], "description": "Contains the description of an error in a Telegram Passport element; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -6221,7 +7648,7 @@ { "name": "animation", "type": "animation", - "description": "Message content" + "description": "The animation description" }, { "name": "caption", @@ -6246,7 +7673,7 @@ { "name": "audio", "type": "audio", - "description": "Message content" + "description": "The audio description" }, { "name": "caption", @@ -6266,7 +7693,7 @@ { "name": "document", "type": "document", - "description": "Message content" + "description": "The document description" }, { "name": "caption", @@ -6286,7 +7713,7 @@ { "name": "photo", "type": "photo", - "description": "Message content" + "description": "The photo description" }, { "name": "caption", @@ -6320,7 +7747,7 @@ { "name": "sticker", "type": "sticker", - "description": "Message content" + "description": "The sticker description" } ], "description": "A sticker message", @@ -6335,7 +7762,7 @@ { "name": "video", "type": "video", - "description": "Message content" + "description": "The video description" }, { "name": "caption", @@ -6369,7 +7796,7 @@ { "name": "video_note", "type": "videoNote", - "description": "Message content" + "description": "The video note description" }, { "name": "is_viewed", @@ -6394,7 +7821,7 @@ { "name": "voice_note", "type": "voiceNote", - "description": "Message content" + "description": "The voice note description" }, { "name": "caption", @@ -6419,7 +7846,7 @@ { "name": "location", "type": "location", - "description": "Message content" + "description": "The location description" }, { "name": "live_period", @@ -6444,7 +7871,7 @@ { "name": "venue", "type": "venue", - "description": "Message content" + "description": "The venue description" } ], "description": "A message with information about a venue", @@ -6459,7 +7886,7 @@ { "name": "contact", "type": "contact", - "description": "Message content" + "description": "The contact description" } ], "description": "A message with a user contact", @@ -6468,13 +7895,48 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "messageDice", + "methods": [ + { + "name": "initial_state_sticker", + "type": "sticker", + "description": "The animated sticker with the initial dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known" + }, + { + "name": "final_state_sticker", + "type": "sticker", + "description": "The animated sticker with the final dice animation; may be null if unknown. updateMessageContent will be sent when the sticker became known" + }, + { + "name": "emoji", + "type": "string", + "description": "Emoji on which the dice throw animation is based" + }, + { + "name": "value", + "type": "int32", + "description": "The dice value. If the value is 0, the dice don't have final state yet" + }, + { + "name": "success_animation_frame_number", + "type": "int32", + "description": "Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded" + } + ], + "description": "A dice message. The dice value is randomly generated by the server", + "inheritance": "MessageContent", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "messageGame", "methods": [ { "name": "game", "type": "game", - "description": "Game" + "description": "The game description" } ], "description": "A message with a game", @@ -6489,7 +7951,7 @@ { "name": "poll", "type": "poll", - "description": "Poll" + "description": "The poll description" } ], "description": "A message with a poll", @@ -6556,6 +8018,11 @@ { "name": "messageCall", "methods": [ + { + "name": "is_video", + "type": "Bool", + "description": "True, if the call was a video call" + }, { "name": "discard_reason", "type": "CallDiscardReason", @@ -6628,7 +8095,7 @@ "methods": [ { "name": "photo", - "type": "photo", + "type": "chatPhoto", "description": "New chat photo" } ], @@ -6937,7 +8404,7 @@ { "name": "messageUnsupported", "methods": null, - "description": "Message content that is not supported by the client", + "description": "Message content that is not supported in the current TDLib version", "inheritance": "MessageContent", "return_type": "", "isFunction": false, @@ -7006,6 +8473,24 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "textEntityTypePhoneNumber", + "methods": null, + "description": "A phone number", + "inheritance": "TextEntityType", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "textEntityTypeBankCardNumber", + "methods": null, + "description": "A bank card number. The getBankCardInfo method can be used to get information about the bank card", + "inheritance": "TextEntityType", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "textEntityTypeBold", "methods": null, @@ -7024,6 +8509,24 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "textEntityTypeUnderline", + "methods": null, + "description": "An underlined text", + "inheritance": "TextEntityType", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "textEntityTypeStrikethrough", + "methods": null, + "description": "A strikethrough text", + "inheritance": "TextEntityType", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "textEntityTypeCode", "methods": null, @@ -7087,15 +8590,6 @@ "isFunction": false, "isSynchronous": false }, - { - "name": "textEntityTypePhoneNumber", - "methods": null, - "description": "A phone number", - "inheritance": "TextEntityType", - "return_type": "", - "isFunction": false, - "isSynchronous": false - }, { "name": "inputThumbnail", "methods": [ @@ -7115,8 +8609,91 @@ "description": "Thumbnail height, usually shouldn't exceed 320. Use 0 if unknown" } ], - "description": "A thumbnail to be sent along with a file; should be in JPEG or WEBP format for stickers, and less than 200 kB in size", - "inheritance": "BaseTLClass", + "description": "A thumbnail to be sent along with a file; must be in JPEG or WEBP format for stickers, and less than 200 KB in size", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "MessageSchedulingState", + "methods": null, + "description": "Contains information about the time when a scheduled message will be sent", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "messageSchedulingStateSendAtDate", + "methods": [ + { + "name": "send_date", + "type": "int32", + "description": "Date the message will be sent. The date must be within 367 days in the future" + } + ], + "description": "The message will be sent at the specified date", + "inheritance": "MessageSchedulingState", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "messageSchedulingStateSendWhenOnline", + "methods": null, + "description": "The message will be sent when the peer will be online. Applicable to private chats only and when the exact online status of the peer is known", + "inheritance": "MessageSchedulingState", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "messageSendOptions", + "methods": [ + { + "name": "disable_notification", + "type": "Bool", + "description": "Pass true to disable notification for the message" + }, + { + "name": "from_background", + "type": "Bool", + "description": "Pass true if the message is sent from the background" + }, + { + "name": "scheduling_state", + "type": "MessageSchedulingState", + "description": "Message scheduling state. Messages sent to a secret chat, live location messages and self-destructing messages can't be scheduled" + } + ], + "description": "Options to be used when a message is sent", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "messageCopyOptions", + "methods": [ + { + "name": "send_copy", + "type": "Bool", + "description": "True, if content of the message needs to be copied without a link to the original message. Always true if the message is forwarded to a secret chat" + }, + { + "name": "replace_caption", + "type": "Bool", + "description": "True, if media caption of the message copy needs to be replaced. Ignored if send_copy is false" + }, + { + "name": "new_caption", + "type": "formattedText", + "description": "New message caption. Ignored if replace_caption is false" + } + ], + "description": "Options to be used when a message content is copied without a link to the original message", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -7136,7 +8713,7 @@ { "name": "text", "type": "formattedText", - "description": "Formatted text to be sent; 1-GetOption(\"message_text_length_max\") characters. Only Bold, Italic, Code, Pre, PreCode and TextUrl entities are allowed to be specified manually" + "description": "Formatted text to be sent; 1-GetOption(\"message_text_length_max\") characters. Only Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities are allowed to be specified manually" }, { "name": "disable_web_page_preview", @@ -7168,6 +8745,11 @@ "type": "inputThumbnail", "description": "Animation thumbnail, if available" }, + { + "name": "added_sticker_file_ids", + "type": "vector", + "description": "File identifiers of the stickers added to the animation, if applicable" + }, { "name": "duration", "type": "int32", @@ -7248,6 +8830,11 @@ "type": "inputThumbnail", "description": "Document thumbnail, if available" }, + { + "name": "disable_content_type_detection", + "type": "Bool", + "description": "If true, automatic file type detection will be disabled and the document will be always sent as file. Always true for files sent to secret chats" + }, { "name": "caption", "type": "formattedText", @@ -7461,7 +9048,7 @@ { "name": "live_period", "type": "int32", - "description": "Period for which the location can be updated, in seconds; should bebetween 60 and 86400 for a live location and 0 otherwise" + "description": "Period for which the location can be updated, in seconds; should be between 60 and 86400 for a live location and 0 otherwise" } ], "description": "A message with a location", @@ -7500,6 +9087,26 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "inputMessageDice", + "methods": [ + { + "name": "emoji", + "type": "string", + "description": "Emoji on which the dice throw animation is based" + }, + { + "name": "clear_draft", + "type": "Bool", + "description": "True, if a chat message draft should be deleted" + } + ], + "description": "A dice message", + "inheritance": "InputMessageContent", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "inputMessageGame", "methods": [ @@ -7591,15 +9198,40 @@ { "name": "question", "type": "string", - "description": "Poll question, 1-255 characters" + "description": "Poll question, 1-255 characters (up to 300 characters for bots)" }, { "name": "options", "type": "vector", "description": "List of poll answer options, 2-10 strings 1-100 characters each" + }, + { + "name": "is_anonymous", + "type": "Bool", + "description": "True, if the poll voters are anonymous. Non-anonymous polls can't be sent or forwarded to channels" + }, + { + "name": "type", + "type": "PollType", + "description": "Type of the poll" + }, + { + "name": "open_period", + "type": "int32", + "description": "Amount of time the poll will be active after creation, in seconds; for bots only" + }, + { + "name": "close_date", + "type": "int32", + "description": "Point in time (Unix timestamp) when the poll will be automatically closed; for bots only" + }, + { + "name": "is_closed", + "type": "Bool", + "description": "True, if the poll needs to be sent already closed; for bots only" } ], - "description": "A message with a poll. Polls can't be sent to private or secret chats", + "description": "A message with a poll. Polls can't be sent to secret chats. Polls can be sent only to a private chat with a bot", "inheritance": "InputMessageContent", "return_type": "", "isFunction": false, @@ -7622,6 +9254,11 @@ "name": "in_game_share", "type": "Bool", "description": "True, if a game message should be shared within a launched game; applies only to game messages" + }, + { + "name": "copy_options", + "type": "messageCopyOptions", + "description": "Options to be used to copy content of the message without a link to the original message" } ], "description": "A forwarded message", @@ -7777,7 +9414,16 @@ { "name": "searchMessagesFilterUnreadMention", "methods": null, - "description": "Returns only messages with unread mentions of the current user, or messages that are replies to their messages. When using this filter the results can't be additionally filtered by a query or by the sending user", + "description": "Returns only messages with unread mentions of the current user, or messages that are replies to their messages. When using this filter the results can't be additionally filtered by a query, a message thread or by the sending user", + "inheritance": "SearchMessagesFilter", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "searchMessagesFilterFailedToSend", + "methods": null, + "description": "Returns only failed to send messages. This filter can be used only if the message database is used", "inheritance": "SearchMessagesFilter", "return_type": "", "isFunction": false, @@ -8024,13 +9670,13 @@ } ], "description": "Represents a list of stickers", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false }, { - "name": "stickerEmojis", + "name": "emojis", "methods": [ { "name": "emojis", @@ -8038,8 +9684,8 @@ "description": "List of emojis" } ], - "description": "Represents a list of all emoji corresponding to a sticker in a sticker set. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object", - "inheritance": "BaseTLClass", + "description": "Represents a list of emoji", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -8062,6 +9708,11 @@ "type": "string", "description": "Name of the sticker set" }, + { + "name": "thumbnail", + "type": "thumbnail", + "description": "Sticker set thumbnail in WEBP or TGS format with width and height 100; may be null. The file can be downloaded only before the thumbnail is changed" + }, { "name": "is_installed", "type": "Bool", @@ -8077,6 +9728,11 @@ "type": "Bool", "description": "True, if the sticker set is official" }, + { + "name": "is_animated", + "type": "Bool", + "description": "True, is the stickers in the set are animated" + }, { "name": "is_masks", "type": "Bool", @@ -8094,12 +9750,12 @@ }, { "name": "emojis", - "type": "vector", - "description": "A list of emoji corresponding to the stickers in the same order" + "type": "vector", + "description": "A list of emoji corresponding to the stickers in the same order. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object" } ], "description": "Represents a sticker set", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -8122,6 +9778,11 @@ "type": "string", "description": "Name of the sticker set" }, + { + "name": "thumbnail", + "type": "thumbnail", + "description": "Sticker set thumbnail in WEBP or TGS format with width and height 100; may be null" + }, { "name": "is_installed", "type": "Bool", @@ -8137,6 +9798,11 @@ "type": "Bool", "description": "True, if the sticker set is official" }, + { + "name": "is_animated", + "type": "Bool", + "description": "True, is the stickers in the set are animated" + }, { "name": "is_masks", "type": "Bool", @@ -8155,11 +9821,11 @@ { "name": "covers", "type": "vector", - "description": "Contains up to the first 5 stickers from the set, depending on the context. If the client needs more stickers the full set should be requested" + "description": "Contains up to the first 5 stickers from the set, depending on the context. If the application needs more stickers the full set should be requested" } ], "description": "Represents short information about a sticker set", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -8179,7 +9845,7 @@ } ], "description": "Represents a list of sticker sets", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -8254,51 +9920,110 @@ { "name": "min_layer", "type": "int32", - "description": "Minimum supported API layer; use 65" + "description": "The minimum supported API layer; use 65" }, { "name": "max_layer", "type": "int32", - "description": "Maximum supported API layer; use 65" + "description": "The maximum supported API layer; use 65" + }, + { + "name": "library_versions", + "type": "vector", + "description": "List of supported libtgvoip versions" } ], "description": "Specifies the supported call protocols", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false }, { - "name": "callConnection", + "name": "CallServerType", + "methods": null, + "description": "Describes the type of a call server", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "callServerTypeTelegramReflector", + "methods": [ + { + "name": "peer_tag", + "type": "bytes", + "description": "A peer tag to be used with the reflector" + } + ], + "description": "A Telegram call reflector", + "inheritance": "CallServerType", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "callServerTypeWebrtc", + "methods": [ + { + "name": "username", + "type": "string", + "description": "Username to be used for authentication" + }, + { + "name": "password", + "type": "string", + "description": "Authentication password" + }, + { + "name": "supports_turn", + "type": "Bool", + "description": "True, if the server supports TURN" + }, + { + "name": "supports_stun", + "type": "Bool", + "description": "True, if the server supports STUN" + } + ], + "description": "A WebRTC server", + "inheritance": "CallServerType", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "callServer", "methods": [ { "name": "id", "type": "int64", - "description": "Reflector identifier" + "description": "Server identifier" }, { - "name": "ip", + "name": "ip_address", "type": "string", - "description": "IPv4 reflector address" + "description": "Server IPv4 address" }, { - "name": "ipv6", + "name": "ipv6_address", "type": "string", - "description": "IPv6 reflector address" + "description": "Server IPv6 address" }, { "name": "port", "type": "int32", - "description": "Reflector port number" + "description": "Server port number" }, { - "name": "peer_tag", - "type": "bytes", - "description": "Connection peer tag" + "name": "type", + "type": "CallServerType", + "description": "Server type" } ], - "description": "Describes the address of UDP reflectors", - "inheritance": "BaseTLClass", + "description": "Describes a server for relaying call data", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -8313,7 +10038,7 @@ } ], "description": "Contains the call identifier", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -8365,9 +10090,9 @@ "description": "Call protocols supported by the peer" }, { - "name": "connections", - "type": "vector", - "description": "Available UDP reflectors" + "name": "servers", + "type": "vector", + "description": "List of available call servers" }, { "name": "config", @@ -8445,6 +10170,96 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "CallProblem", + "methods": null, + "description": "Describes the exact type of a problem with a call", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "callProblemEcho", + "methods": null, + "description": "The user heard their own voice", + "inheritance": "CallProblem", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "callProblemNoise", + "methods": null, + "description": "The user heard background noise", + "inheritance": "CallProblem", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "callProblemInterruptions", + "methods": null, + "description": "The other side kept disappearing", + "inheritance": "CallProblem", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "callProblemDistortedSpeech", + "methods": null, + "description": "The speech was distorted", + "inheritance": "CallProblem", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "callProblemSilentLocal", + "methods": null, + "description": "The user couldn't hear the other side", + "inheritance": "CallProblem", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "callProblemSilentRemote", + "methods": null, + "description": "The other side couldn't hear the user", + "inheritance": "CallProblem", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "callProblemDropped", + "methods": null, + "description": "The call ended unexpectedly", + "inheritance": "CallProblem", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "callProblemDistortedVideo", + "methods": null, + "description": "The video was distorted", + "inheritance": "CallProblem", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "callProblemPixelatedVideo", + "methods": null, + "description": "The video was pixelated", + "inheritance": "CallProblem", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "call", "methods": [ @@ -8463,6 +10278,11 @@ "type": "Bool", "description": "True, if the call is outgoing" }, + { + "name": "is_video", + "type": "Bool", + "description": "True, if the call is a video call" + }, { "name": "state", "type": "CallState", @@ -8470,7 +10290,32 @@ } ], "description": "Describes a call", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "phoneNumberAuthenticationSettings", + "methods": [ + { + "name": "allow_flash_call", + "type": "Bool", + "description": "Pass true if the authentication code may be sent via flash call to the specified phone number" + }, + { + "name": "is_current_phone_number", + "type": "Bool", + "description": "Pass true if the authenticated phone number is used on the current device" + }, + { + "name": "allow_sms_retriever_api", + "type": "Bool", + "description": "For official applications only. True, if the application can use Android SMS Retriever API (requires Google Play Services >= 10.2) to automatically receive the authentication code from the SMS. See https://developers.google.com/identity/sms-retriever/ for more details" + } + ], + "description": "Contains settings for the authentication of the user's phone number", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -8485,7 +10330,7 @@ } ], "description": "Represents a list of animations", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -8505,7 +10350,7 @@ } ], "description": "Represents the result of an ImportContacts request", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -8520,7 +10365,7 @@ } ], "description": "Contains an HTTP URL", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -8535,7 +10380,7 @@ "isSynchronous": false }, { - "name": "inputInlineQueryResultAnimatedGif", + "name": "inputInlineQueryResultAnimation", "methods": [ { "name": "id", @@ -8550,80 +10395,35 @@ { "name": "thumbnail_url", "type": "string", - "description": "URL of the static result thumbnail (JPEG or GIF), if it exists" + "description": "URL of the result thumbnail (JPEG, GIF, or MPEG4), if it exists" }, { - "name": "gif_url", + "name": "thumbnail_mime_type", "type": "string", - "description": "The URL of the GIF-file (file size must not exceed 1MB)" + "description": "MIME type of the video thumbnail. If non-empty, must be one of \"image/jpeg\", \"image/gif\" and \"video/mp4\"" }, { - "name": "gif_duration", - "type": "int32", - "description": "Duration of the GIF, in seconds" - }, - { - "name": "gif_width", - "type": "int32", - "description": "Width of the GIF" - }, - { - "name": "gif_height", - "type": "int32", - "description": "Height of the GIF" - }, - { - "name": "reply_markup", - "type": "ReplyMarkup", - "description": "The message reply markup. Must be of type replyMarkupInlineKeyboard or null" - }, - { - "name": "input_message_content", - "type": "InputMessageContent", - "description": "The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageAnimation, InputMessageLocation, InputMessageVenue or InputMessageContact" - } - ], - "description": "Represents a link to an animated GIF", - "inheritance": "InputInlineQueryResult", - "return_type": "", - "isFunction": false, - "isSynchronous": false - }, - { - "name": "inputInlineQueryResultAnimatedMpeg4", - "methods": [ - { - "name": "id", + "name": "video_url", "type": "string", - "description": "Unique identifier of the query result" + "description": "The URL of the video file (file size must not exceed 1MB)" }, { - "name": "title", + "name": "video_mime_type", "type": "string", - "description": "Title of the result" + "description": "MIME type of the video file. Must be one of \"image/gif\" and \"video/mp4\"" }, { - "name": "thumbnail_url", - "type": "string", - "description": "URL of the static result thumbnail (JPEG or GIF), if it exists" - }, - { - "name": "mpeg4_url", - "type": "string", - "description": "The URL of the MPEG4-file (file size must not exceed 1MB)" - }, - { - "name": "mpeg4_duration", + "name": "video_duration", "type": "int32", "description": "Duration of the video, in seconds" }, { - "name": "mpeg4_width", + "name": "video_width", "type": "int32", "description": "Width of the video" }, { - "name": "mpeg4_height", + "name": "video_height", "type": "int32", "description": "Height of the video" }, @@ -8638,7 +10438,7 @@ "description": "The content of the message to be sent. Must be one of the following types: InputMessageText, InputMessageAnimation, InputMessageLocation, InputMessageVenue or InputMessageContact" } ], - "description": "Represents a link to an animated (i.e. without sound) H.264/MPEG-4 AVC video", + "description": "Represents a link to an animated GIF or an animated (i.e. without sound) H.264/MPEG-4 AVC video", "inheritance": "InputInlineQueryResult", "return_type": "", "isFunction": false, @@ -9005,7 +10805,7 @@ { "name": "sticker_url", "type": "string", - "description": "The URL of the WEBP sticker (sticker file size must not exceed 5MB)" + "description": "The URL of the WEBP or TGS sticker (sticker file size must not exceed 5MB)" }, { "name": "sticker_width", @@ -9028,7 +10828,7 @@ "description": "The content of the message to be sent. Must be one of the following types: InputMessageText, inputMessageSticker, InputMessageLocation, InputMessageVenue or InputMessageContact" } ], - "description": "Represents a link to a WEBP sticker", + "description": "Represents a link to a WEBP or TGS sticker", "inheritance": "InputInlineQueryResult", "return_type": "", "isFunction": false, @@ -9223,8 +11023,8 @@ }, { "name": "thumbnail", - "type": "photoSize", - "description": "Result thumbnail; may be null" + "type": "thumbnail", + "description": "Result thumbnail in JPEG format; may be null" } ], "description": "Represents a link to an article or web page", @@ -9248,8 +11048,8 @@ }, { "name": "thumbnail", - "type": "photoSize", - "description": "Result thumbnail; may be null" + "type": "thumbnail", + "description": "Result thumbnail in JPEG format; may be null" } ], "description": "Represents a user contact", @@ -9278,8 +11078,8 @@ }, { "name": "thumbnail", - "type": "photoSize", - "description": "Result thumbnail; may be null" + "type": "thumbnail", + "description": "Result thumbnail in JPEG format; may be null" } ], "description": "Represents a point on the map", @@ -9303,8 +11103,8 @@ }, { "name": "thumbnail", - "type": "photoSize", - "description": "Result thumbnail; may be null" + "type": "thumbnail", + "description": "Result thumbnail in JPEG format; may be null" } ], "description": "Represents information about a venue", @@ -9543,7 +11343,7 @@ } ], "description": "Represents the results of the inline query. Use sendInlineQueryResultMessage to send the result of the query", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -9566,7 +11366,27 @@ "description": "Data that was attached to the callback button" } ], - "description": "The payload from a general callback button", + "description": "The payload for a general callback button", + "inheritance": "CallbackQueryPayload", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "callbackQueryPayloadDataWithPassword", + "methods": [ + { + "name": "password", + "type": "string", + "description": "The password for the current user" + }, + { + "name": "data", + "type": "bytes", + "description": "Data that was attached to the callback button" + } + ], + "description": "The payload for a callback button requiring password", "inheritance": "CallbackQueryPayload", "return_type": "", "isFunction": false, @@ -9581,7 +11401,7 @@ "description": "A short name of the game that was attached to the callback button" } ], - "description": "The payload from a game callback button", + "description": "The payload for a game callback button", "inheritance": "CallbackQueryPayload", "return_type": "", "isFunction": false, @@ -9607,7 +11427,7 @@ } ], "description": "Contains a bot's answer to a callback query", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -9622,7 +11442,7 @@ } ], "description": "Contains the result of a custom request", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -9647,7 +11467,7 @@ } ], "description": "Contains one row of the game high score table", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -9662,7 +11482,7 @@ } ], "description": "Contains a list of game high scores", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -9711,6 +11531,21 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "chatEventPollStopped", + "methods": [ + { + "name": "message", + "type": "message", + "description": "The message with the poll" + } + ], + "description": "A poll in a message was stopped", + "inheritance": "ChatEventAction", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "chatEventMessagePinned", "methods": [ @@ -9843,6 +11678,26 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "chatEventPermissionsChanged", + "methods": [ + { + "name": "old_permissions", + "type": "chatPermissions", + "description": "Previous chat permissions" + }, + { + "name": "new_permissions", + "type": "chatPermissions", + "description": "New chat permissions" + } + ], + "description": "The chat permissions was changed", + "inheritance": "ChatEventAction", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "chatEventDescriptionChanged", "methods": [ @@ -9907,12 +11762,52 @@ "name": "chatEventInvitesToggled", "methods": [ { - "name": "anyone_can_invite", + "name": "can_invite_users", "type": "Bool", - "description": "New value of anyone_can_invite" + "description": "New value of can_invite_users permission" } ], - "description": "The anyone_can_invite setting of a supergroup chat was toggled", + "description": "The can_invite_users permission of a supergroup chat was toggled", + "inheritance": "ChatEventAction", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatEventLinkedChatChanged", + "methods": [ + { + "name": "old_linked_chat_id", + "type": "int53", + "description": "Previous supergroup linked chat identifier" + }, + { + "name": "new_linked_chat_id", + "type": "int53", + "description": "New supergroup linked chat identifier" + } + ], + "description": "The linked chat of a supergroup was changed", + "inheritance": "ChatEventAction", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatEventSlowModeDelayChanged", + "methods": [ + { + "name": "old_slow_mode_delay", + "type": "int32", + "description": "Previous value of slow_mode_delay" + }, + { + "name": "new_slow_mode_delay", + "type": "int32", + "description": "New value of slow_mode_delay" + } + ], + "description": "The slow_mode_delay setting of a supergroup was changed", "inheritance": "ChatEventAction", "return_type": "", "isFunction": false, @@ -9953,6 +11848,26 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "chatEventLocationChanged", + "methods": [ + { + "name": "old_location", + "type": "chatLocation", + "description": "Previous location; may be null" + }, + { + "name": "new_location", + "type": "chatLocation", + "description": "New location; may be null" + } + ], + "description": "The supergroup location was changed", + "inheritance": "ChatEventAction", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "chatEventIsAllHistoryAvailableToggled", "methods": [ @@ -9993,7 +11908,7 @@ } ], "description": "Represents a chat event", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -10008,7 +11923,7 @@ } ], "description": "Contains a list of chat events", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -10068,7 +11983,7 @@ } ], "description": "Represents a set of filters used to obtain a chat event log", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -10161,7 +12076,7 @@ } ], "description": "Represents one language pack string", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -10176,7 +12091,7 @@ } ], "description": "Contains a list of language pack strings", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -10251,7 +12166,7 @@ } ], "description": "Contains information about a language pack", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -10266,7 +12181,7 @@ } ], "description": "Contains information about the current localization target", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -10274,7 +12189,7 @@ { "name": "DeviceToken", "methods": null, - "description": "Represents a data needed to subscribe for push notifications through registerDevice method. To use specific push notification service, you must specify the correct application platform and upload valid server authentication data at https://my.telegram.org", + "description": "Represents a data needed to subscribe for push notifications through registerDevice method. To use specific push notification service, the correct application platform must be specified and a valid server authentication data must be uploaded at https://my.telegram.org", "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, @@ -10485,47 +12400,219 @@ } ], "description": "Contains a globally unique push receiver identifier, which can be used to identify which account has received a push notification", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false }, { - "name": "wallpaper", + "name": "BackgroundFill", + "methods": null, + "description": "Describes a fill of a background", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "backgroundFillSolid", "methods": [ - { - "name": "id", - "type": "int32", - "description": "Unique persistent wallpaper identifier" - }, - { - "name": "sizes", - "type": "vector", - "description": "Available variants of the wallpaper in different sizes. These photos can only be downloaded; they can't be sent in a message" - }, { "name": "color", "type": "int32", - "description": "Main color of the wallpaper in RGB24 format; should be treated as background color if no photos are specified" + "description": "A color of the background in the RGB24 format" } ], - "description": "Contains information about a wallpaper", - "inheritance": "BaseTLClass", + "description": "Describes a solid fill of a background", + "inheritance": "BackgroundFill", "return_type": "", "isFunction": false, "isSynchronous": false }, { - "name": "wallpapers", + "name": "backgroundFillGradient", "methods": [ { - "name": "wallpapers", - "type": "vector", - "description": "A list of wallpapers" + "name": "top_color", + "type": "int32", + "description": "A top color of the background in the RGB24 format" + }, + { + "name": "bottom_color", + "type": "int32", + "description": "A bottom color of the background in the RGB24 format" + }, + { + "name": "rotation_angle", + "type": "int32", + "description": "Clockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45" } ], - "description": "Contains a list of wallpapers", - "inheritance": "BaseTLClass", + "description": "Describes a gradient fill of a background", + "inheritance": "BackgroundFill", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "BackgroundType", + "methods": null, + "description": "Describes the type of a background", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "backgroundTypeWallpaper", + "methods": [ + { + "name": "is_blurred", + "type": "Bool", + "description": "True, if the wallpaper must be downscaled to fit in 450x450 square and then box-blurred with radius 12" + }, + { + "name": "is_moving", + "type": "Bool", + "description": "True, if the background needs to be slightly moved when device is tilted" + } + ], + "description": "A wallpaper in JPEG format", + "inheritance": "BackgroundType", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "backgroundTypePattern", + "methods": [ + { + "name": "fill", + "type": "BackgroundFill", + "description": "Description of the background fill" + }, + { + "name": "intensity", + "type": "int32", + "description": "Intensity of the pattern when it is shown above the filled background, 0-100" + }, + { + "name": "is_moving", + "type": "Bool", + "description": "True, if the background needs to be slightly moved when device is tilted" + } + ], + "description": "A PNG or TGV (gzipped subset of SVG with MIME type \"application/x-tgwallpattern\") pattern to be combined with the background fill chosen by the user", + "inheritance": "BackgroundType", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "backgroundTypeFill", + "methods": [ + { + "name": "fill", + "type": "BackgroundFill", + "description": "Description of the background fill" + } + ], + "description": "A filled background", + "inheritance": "BackgroundType", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "background", + "methods": [ + { + "name": "id", + "type": "int64", + "description": "Unique background identifier" + }, + { + "name": "is_default", + "type": "Bool", + "description": "True, if this is one of default backgrounds" + }, + { + "name": "is_dark", + "type": "Bool", + "description": "True, if the background is dark and is recommended to be used with dark theme" + }, + { + "name": "name", + "type": "string", + "description": "Unique background name" + }, + { + "name": "document", + "type": "document", + "description": "Document with the background; may be null. Null only for filled backgrounds" + }, + { + "name": "type", + "type": "BackgroundType", + "description": "Type of the background" + } + ], + "description": "Describes a chat background", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "backgrounds", + "methods": [ + { + "name": "backgrounds", + "type": "vector", + "description": "A list of backgrounds" + } + ], + "description": "Contains a list of backgrounds", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "InputBackground", + "methods": null, + "description": "Contains information about background to set", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "inputBackgroundLocal", + "methods": [ + { + "name": "background", + "type": "InputFile", + "description": "Background file to use. Only inputFileLocal and inputFileGenerated are supported. The file must be in JPEG format for wallpapers and in PNG format for patterns" + } + ], + "description": "A background from a local file", + "inheritance": "InputBackground", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "inputBackgroundRemote", + "methods": [ + { + "name": "background_id", + "type": "int64", + "description": "The background identifier" + } + ], + "description": "A background from the server", + "inheritance": "InputBackground", "return_type": "", "isFunction": false, "isSynchronous": false @@ -10540,7 +12627,64 @@ } ], "description": "Contains a list of hashtags", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "CanTransferOwnershipResult", + "methods": null, + "description": "Represents result of checking whether the current session can be used to transfer a chat ownership to another user", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "canTransferOwnershipResultOk", + "methods": null, + "description": "The session can be used", + "inheritance": "CanTransferOwnershipResult", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "canTransferOwnershipResultPasswordNeeded", + "methods": null, + "description": "The 2-step verification needs to be enabled first", + "inheritance": "CanTransferOwnershipResult", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "canTransferOwnershipResultPasswordTooFresh", + "methods": [ + { + "name": "retry_after", + "type": "int32", + "description": "Time left before the session can be used to transfer ownership of a chat, in seconds" + } + ], + "description": "The 2-step verification was enabled recently, user needs to wait", + "inheritance": "CanTransferOwnershipResult", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "canTransferOwnershipResultSessionTooFresh", + "methods": [ + { + "name": "retry_after", + "type": "int32", + "description": "Time left before the session can be used to transfer ownership of a chat, in seconds" + } + ], + "description": "The session was created recently, user needs to wait", + "inheritance": "CanTransferOwnershipResult", "return_type": "", "isFunction": false, "isSynchronous": false @@ -10584,7 +12728,7 @@ { "name": "checkChatUsernameResultPublicChatsTooMuch", "methods": null, - "description": "The user has too much public chats, one of them should be made private first", + "description": "The user has too much chats with username, one of them should be made private first", "inheritance": "CheckChatUsernameResult", "return_type": "", "isFunction": false, @@ -10642,7 +12786,7 @@ "description": "True, if the message is a pinned message with the specified content" } ], - "description": "An animation message (GIF-style)", + "description": "An animation message (GIF-style).", "inheritance": "PushMessageContent", "return_type": "", "isFunction": false, @@ -10840,6 +12984,11 @@ "type": "string", "description": "Poll question" }, + { + "name": "is_regular", + "type": "Bool", + "description": "True, if the poll is regular and not in quiz mode" + }, { "name": "is_pinned", "type": "Bool", @@ -11001,7 +13150,7 @@ { "name": "is_returned", "type": "Bool", - "description": "True, if the user has returned to the group himself" + "description": "True, if the user has returned to the group themself" } ], "description": "New chat members were invited to a group", @@ -11050,7 +13199,7 @@ { "name": "is_left", "type": "Bool", - "description": "True, if the user has left the group himself" + "description": "True, if the user has left the group themself" } ], "description": "A chat member was deleted", @@ -11162,12 +13311,27 @@ { "name": "message_id", "type": "int53", - "description": "The message identifier. The message will not be available in the chat history, but the ID can be used in viewMessages and as reply_to_message_id" + "description": "The message identifier. The message will not be available in the chat history, but the ID can be used in viewMessages, or as reply_to_message_id" }, { "name": "sender_user_id", "type": "int32", - "description": "Sender of the message. Corresponding user may be inaccessible" + "description": "Sender of the message; 0 if unknown. Corresponding user may be inaccessible" + }, + { + "name": "sender_chat_id", + "type": "int53", + "description": "Sender chat of the message; 0 if none" + }, + { + "name": "sender_name", + "type": "string", + "description": "Name of the sender; can be different from the name of the sender user" + }, + { + "name": "is_outgoing", + "type": "Bool", + "description": "True, if the message is outgoing" }, { "name": "content", @@ -11184,7 +13348,7 @@ { "name": "NotificationGroupType", "methods": null, - "description": "Describes type of notifications in the group", + "description": "Describes the type of notifications in a notification group", "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, @@ -11239,6 +13403,11 @@ "type": "int32", "description": "Notification date" }, + { + "name": "is_silent", + "type": "Bool", + "description": "True, if the notification was initially silent" + }, { "name": "type", "type": "NotificationType", @@ -11246,7 +13415,7 @@ } ], "description": "Contains information about a notification", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -11281,7 +13450,7 @@ } ], "description": "Describes a group of notifications", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -11324,7 +13493,7 @@ "methods": [ { "name": "value", - "type": "int32", + "type": "int64", "description": "The value of the option" } ], @@ -11364,7 +13533,7 @@ } ], "description": "Represents one member of a JSON object", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -11495,7 +13664,7 @@ { "name": "user_ids", "type": "vector", - "description": "The user identifiers" + "description": "The user identifiers, total number of users in all rules must not exceed 1000" } ], "description": "A rule to allow certain specified users to do something", @@ -11504,6 +13673,21 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "userPrivacySettingRuleAllowChatMembers", + "methods": [ + { + "name": "chat_ids", + "type": "vector", + "description": "The chat identifiers, total number of chats in all rules must not exceed 20" + } + ], + "description": "A rule to allow all members of certain specified basic groups and supergroups to doing something", + "inheritance": "UserPrivacySettingRule", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "userPrivacySettingRuleRestrictAll", "methods": null, @@ -11528,7 +13712,7 @@ { "name": "user_ids", "type": "vector", - "description": "The user identifiers" + "description": "The user identifiers, total number of users in all rules must not exceed 1000" } ], "description": "A rule to restrict all specified users from doing something", @@ -11537,6 +13721,21 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "userPrivacySettingRuleRestrictChatMembers", + "methods": [ + { + "name": "chat_ids", + "type": "vector", + "description": "The chat identifiers, total number of chats in all rules must not exceed 20" + } + ], + "description": "A rule to restrict all members of specified basic groups and supergroups from doing something", + "inheritance": "UserPrivacySettingRule", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "userPrivacySettingRules", "methods": [ @@ -11547,7 +13746,7 @@ } ], "description": "A list of privacy rules. Rules are matched in the specified order. The first matched rule defines the privacy setting for a given user. If no rule matches, the action is not allowed", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -11570,6 +13769,33 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "userPrivacySettingShowProfilePhoto", + "methods": null, + "description": "A privacy setting for managing whether the user's profile photo is visible", + "inheritance": "UserPrivacySetting", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "userPrivacySettingShowLinkInForwardedMessages", + "methods": null, + "description": "A privacy setting for managing whether a link to the user's account is included in forwarded messages", + "inheritance": "UserPrivacySetting", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "userPrivacySettingShowPhoneNumber", + "methods": null, + "description": "A privacy setting for managing whether the user's phone number is visible", + "inheritance": "UserPrivacySetting", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "userPrivacySettingAllowChatInvites", "methods": null, @@ -11597,6 +13823,15 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "userPrivacySettingAllowFindingByPhoneNumber", + "methods": null, + "description": "A privacy setting for managing whether the user can be found by their phone number. Checked only if the phone number is not known to the other user. Can be set only to \"Allow contacts\" or \"Allow all\"", + "inheritance": "UserPrivacySetting", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "accountTtl", "methods": [ @@ -11607,7 +13842,7 @@ } ], "description": "Contains information about the period of inactivity after which the current user's account will automatically be deleted", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -11692,7 +13927,7 @@ } ], "description": "Contains information about one session in a Telegram application used by the current user. Sessions should be shown to the user in the returned order", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -11707,7 +13942,7 @@ } ], "description": "Contains a list of sessions", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -11762,7 +13997,7 @@ } ], "description": "Contains information about one website the current user is logged in with Telegram", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -11777,22 +14012,7 @@ } ], "description": "Contains a list of websites the current user is logged in with Telegram", - "inheritance": "BaseTLClass", - "return_type": "", - "isFunction": false, - "isSynchronous": false - }, - { - "name": "chatReportSpamState", - "methods": [ - { - "name": "can_report_spam", - "type": "Bool", - "description": "True, if a prompt with the \"Report spam\" action should be shown to the user" - } - ], - "description": "Contains information about the availability of the \"Report spam\" action for a chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -11851,6 +14071,15 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "chatReportReasonUnrelatedLocation", + "methods": null, + "description": "The location-based chat is unrelated to its stated location", + "inheritance": "ChatReportReason", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "chatReportReasonCustom", "methods": [ @@ -11867,7 +14096,7 @@ "isSynchronous": false }, { - "name": "publicMessageLink", + "name": "messageLink", "methods": [ { "name": "link", @@ -11875,13 +14104,48 @@ "description": "Message link" }, { - "name": "html", - "type": "string", - "description": "HTML-code for embedding the message" + "name": "is_public", + "type": "Bool", + "description": "True, if the link will work for non-members of the chat" } ], - "description": "Contains a public HTTPS link to a message in a public supergroup or channel", - "inheritance": "BaseTLClass", + "description": "Contains an HTTPS link to a message in a supergroup or channel", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "messageLinkInfo", + "methods": [ + { + "name": "is_public", + "type": "Bool", + "description": "True, if the link is a public link for a message in a chat" + }, + { + "name": "chat_id", + "type": "int53", + "description": "If found, identifier of the chat to which the message belongs, 0 otherwise" + }, + { + "name": "message", + "type": "message", + "description": "If found, the linked message; may be null" + }, + { + "name": "for_album", + "type": "Bool", + "description": "True, if the whole media album to which the message belongs is linked" + }, + { + "name": "for_comment", + "type": "Bool", + "description": "True, if the message is linked as a channel post comment or from a message thread" + } + ], + "description": "Contains information about a link to a message in a chat", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -11896,7 +14160,7 @@ } ], "description": "Contains a part of a file", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -12048,7 +14312,7 @@ { "name": "fileTypeWallpaper", "methods": null, - "description": "The file is a wallpaper", + "description": "The file is a wallpaper or a background pattern", "inheritance": "FileType", "return_type": "", "isFunction": false, @@ -12074,7 +14338,7 @@ } ], "description": "Contains the storage usage statistics for a specific file type", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -12104,7 +14368,7 @@ } ], "description": "Contains the storage usage statistics for a specific chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -12129,7 +14393,7 @@ } ], "description": "Contains the exact storage usage statistics split by chats and file type", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -12164,7 +14428,7 @@ } ], "description": "Contains approximate storage usage statistics, excluding files of unknown file type", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -12179,7 +14443,7 @@ } ], "description": "Contains database statistics", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -12313,7 +14577,7 @@ { "name": "since_date", "type": "int32", - "description": "Point in time (Unix timestamp) when the app began collecting statistics" + "description": "Point in time (Unix timestamp) from which the statistics are collected" }, { "name": "entries", @@ -12322,7 +14586,82 @@ } ], "description": "A full list of available network statistic entries", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "autoDownloadSettings", + "methods": [ + { + "name": "is_auto_download_enabled", + "type": "Bool", + "description": "True, if the auto-download is enabled" + }, + { + "name": "max_photo_file_size", + "type": "int32", + "description": "The maximum size of a photo file to be auto-downloaded" + }, + { + "name": "max_video_file_size", + "type": "int32", + "description": "The maximum size of a video file to be auto-downloaded" + }, + { + "name": "max_other_file_size", + "type": "int32", + "description": "The maximum size of other file types to be auto-downloaded" + }, + { + "name": "video_upload_bitrate", + "type": "int32", + "description": "The maximum suggested bitrate for uploaded videos" + }, + { + "name": "preload_large_videos", + "type": "Bool", + "description": "True, if the beginning of video files needs to be preloaded for instant playback" + }, + { + "name": "preload_next_audio", + "type": "Bool", + "description": "True, if the next audio track needs to be preloaded while the user is listening to an audio file" + }, + { + "name": "use_less_data_for_calls", + "type": "Bool", + "description": "True, if \"use less data for calls\" option needs to be enabled" + } + ], + "description": "Contains auto-download settings", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "autoDownloadSettingsPresets", + "methods": [ + { + "name": "low", + "type": "autoDownloadSettings", + "description": "Preset with lowest settings; supposed to be used by default when roaming" + }, + { + "name": "medium", + "type": "autoDownloadSettings", + "description": "Preset with medium settings; supposed to be used by default when using mobile data" + }, + { + "name": "high", + "type": "autoDownloadSettings", + "description": "Preset with highest settings; supposed to be used by default when connected on Wi-Fi" + } + ], + "description": "Contains auto-download settings presets for the user", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -12339,7 +14678,7 @@ { "name": "connectionStateWaitingForNetwork", "methods": null, - "description": "Currently waiting for the network to become available. Use SetNetworkType to change the available network type", + "description": "Currently waiting for the network to become available. Use setNetworkType to change the available network type", "inheritance": "ConnectionState", "return_type": "", "isFunction": false, @@ -12366,7 +14705,7 @@ { "name": "connectionStateUpdating", "methods": null, - "description": "Downloading data received while the client was offline", + "description": "Downloading data received while the application was offline", "inheritance": "ConnectionState", "return_type": "", "isFunction": false, @@ -12444,6 +14783,15 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "topChatCategoryForwardChats", + "methods": null, + "description": "A category containing frequently used chats used to forward messages", + "inheritance": "TopChatCategory", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "TMeUrlType", "methods": null, @@ -12528,7 +14876,7 @@ } ], "description": "Represents a URL linking to an internal Telegram entity", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -12543,7 +14891,34 @@ } ], "description": "Contains a list of t.me URLs", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "SuggestedAction", + "methods": null, + "description": "Describes an action suggested to the current user", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "suggestedActionEnableArchiveAndMuteNewChats", + "methods": null, + "description": "Suggests the user to enable \"archive_and_mute_new_chats_from_unknown_users\" option", + "inheritance": "SuggestedAction", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "suggestedActionCheckPhoneNumber", + "methods": null, + "description": "Suggests the user to check authorization phone number and change the phone number if it is inaccessible", + "inheritance": "SuggestedAction", "return_type": "", "isFunction": false, "isSynchronous": false @@ -12558,7 +14933,7 @@ } ], "description": "Contains a counter", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -12573,7 +14948,7 @@ } ], "description": "Contains some text", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -12588,7 +14963,7 @@ } ], "description": "Contains a value representing a number of seconds", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -12608,7 +14983,7 @@ } ], "description": "Contains information about a tg:// deep link", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -12624,8 +14999,14 @@ }, { "name": "textParseModeMarkdown", - "methods": null, - "description": "The text should be parsed in markdown-style", + "methods": [ + { + "name": "version", + "type": "int32", + "description": "Version of the parser: 0 or 1 - Telegram Bot API \"Markdown\" parse mode, 2 - Telegram Bot API \"MarkdownV2\" parse mode" + } + ], + "description": "The text uses Markdown-style formatting", "inheritance": "TextParseMode", "return_type": "", "isFunction": false, @@ -12634,7 +15015,7 @@ { "name": "textParseModeHTML", "methods": null, - "description": "The text should be parsed in HTML-style", + "description": "The text uses HTML-style formatting. The same as Telegram Bot API \"HTML\" parse mode", "inheritance": "TextParseMode", "return_type": "", "isFunction": false, @@ -12643,7 +15024,7 @@ { "name": "ProxyType", "methods": null, - "description": "Describes the type of the proxy server", + "description": "Describes the type of a proxy server", "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, @@ -12685,7 +15066,7 @@ { "name": "http_only", "type": "Bool", - "description": "Pass true, if the proxy supports only HTTP requests and doesn't support transparent TCP connections via HTTP CONNECT method" + "description": "Pass true if the proxy supports only HTTP requests and doesn't support transparent TCP connections via HTTP CONNECT method" } ], "description": "A HTTP transparent proxy server", @@ -12744,7 +15125,7 @@ } ], "description": "Contains information about a proxy server", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -12759,23 +15140,32 @@ } ], "description": "Represents a list of proxy servers", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false }, { - "name": "inputSticker", + "name": "InputSticker", + "methods": null, + "description": "Describes a sticker that needs to be added to a sticker set", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "inputStickerStatic", "methods": [ { - "name": "png_sticker", + "name": "sticker", "type": "InputFile", - "description": "PNG image with the sticker; must be up to 512 kB in size and fit in a 512x512 square" + "description": "PNG image with the sticker; must be up to 512 KB in size and fit in a 512x512 square" }, { "name": "emojis", "type": "string", - "description": "Emoji corresponding to the sticker" + "description": "Emojis corresponding to the sticker" }, { "name": "mask_position", @@ -12783,8 +15173,431 @@ "description": "For masks, position where the mask should be placed; may be null" } ], - "description": "Describes a sticker that should be added to a sticker set", - "inheritance": "BaseTLClass", + "description": "A static sticker in PNG format, which will be converted to WEBP server-side", + "inheritance": "InputSticker", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "inputStickerAnimated", + "methods": [ + { + "name": "sticker", + "type": "InputFile", + "description": "File with the animated sticker. Only local or uploaded within a week files are supported. See https://core.telegram.org/animated_stickers#technical-requirements for technical requirements" + }, + { + "name": "emojis", + "type": "string", + "description": "Emojis corresponding to the sticker" + } + ], + "description": "An animated sticker in TGS format", + "inheritance": "InputSticker", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "dateRange", + "methods": [ + { + "name": "start_date", + "type": "int32", + "description": "Point in time (Unix timestamp) at which the date range begins" + }, + { + "name": "end_date", + "type": "int32", + "description": "Point in time (Unix timestamp) at which the date range ends" + } + ], + "description": "Represents a date range", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "statisticsValue", + "methods": [ + { + "name": "value", + "type": "double", + "description": "The value" + }, + { + "name": "previous_value", + "type": "double", + "description": "The value for the previous day" + }, + { + "name": "growth_rate_percentage", + "type": "double", + "description": "The growth rate of the value, as a percentage" + } + ], + "description": "A statistics value", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "StatisticsGraph", + "methods": null, + "description": "Describes a statistics graph", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "statisticsGraphData", + "methods": [ + { + "name": "json_data", + "type": "string", + "description": "Graph data in JSON format" + }, + { + "name": "zoom_token", + "type": "string", + "description": "If non-empty, a token which can be used to receive a zoomed in graph" + } + ], + "description": "A graph data", + "inheritance": "StatisticsGraph", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "statisticsGraphAsync", + "methods": [ + { + "name": "token", + "type": "string", + "description": "The token to use for data loading" + } + ], + "description": "The graph data to be asynchronously loaded through getStatisticsGraph", + "inheritance": "StatisticsGraph", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "statisticsGraphError", + "methods": [ + { + "name": "error_message", + "type": "string", + "description": "The error message" + } + ], + "description": "An error message to be shown to the user instead of the graph", + "inheritance": "StatisticsGraph", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatStatisticsMessageInteractionInfo", + "methods": [ + { + "name": "message_id", + "type": "int53", + "description": "Message identifier" + }, + { + "name": "view_count", + "type": "int32", + "description": "Number of times the message was viewed" + }, + { + "name": "forward_count", + "type": "int32", + "description": "Number of times the message was forwarded" + } + ], + "description": "Contains statistics about interactions with a message", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatStatisticsMessageSenderInfo", + "methods": [ + { + "name": "user_id", + "type": "int32", + "description": "User identifier" + }, + { + "name": "sent_message_count", + "type": "int32", + "description": "Number of sent messages" + }, + { + "name": "average_character_count", + "type": "int32", + "description": "Average number of characters in sent messages" + } + ], + "description": "Contains statistics about messages sent by a user", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatStatisticsAdministratorActionsInfo", + "methods": [ + { + "name": "user_id", + "type": "int32", + "description": "Administrator user identifier" + }, + { + "name": "deleted_message_count", + "type": "int32", + "description": "Number of messages deleted by the administrator" + }, + { + "name": "banned_user_count", + "type": "int32", + "description": "Number of users banned by the administrator" + }, + { + "name": "restricted_user_count", + "type": "int32", + "description": "Number of users restricted by the administrator" + } + ], + "description": "Contains statistics about administrator actions done by a user", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatStatisticsInviterInfo", + "methods": [ + { + "name": "user_id", + "type": "int32", + "description": "User identifier" + }, + { + "name": "added_member_count", + "type": "int32", + "description": "Number of new members invited by the user" + } + ], + "description": "Contains statistics about number of new members invited by a user", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "ChatStatistics", + "methods": null, + "description": "Contains a detailed statistics about a chat", + "inheritance": "TLBaseClass", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatStatisticsSupergroup", + "methods": [ + { + "name": "period", + "type": "dateRange", + "description": "A period to which the statistics applies" + }, + { + "name": "member_count", + "type": "statisticsValue", + "description": "Number of members in the chat" + }, + { + "name": "message_count", + "type": "statisticsValue", + "description": "Number of messages sent to the chat" + }, + { + "name": "viewer_count", + "type": "statisticsValue", + "description": "Number of users who viewed messages in the chat" + }, + { + "name": "sender_count", + "type": "statisticsValue", + "description": "Number of users who sent messages to the chat" + }, + { + "name": "member_count_graph", + "type": "StatisticsGraph", + "description": "A graph containing number of members in the chat" + }, + { + "name": "join_graph", + "type": "StatisticsGraph", + "description": "A graph containing number of members joined and left the chat" + }, + { + "name": "join_by_source_graph", + "type": "StatisticsGraph", + "description": "A graph containing number of new member joins per source" + }, + { + "name": "language_graph", + "type": "StatisticsGraph", + "description": "A graph containing distribution of active users per language" + }, + { + "name": "message_content_graph", + "type": "StatisticsGraph", + "description": "A graph containing distribution of sent messages by content type" + }, + { + "name": "action_graph", + "type": "StatisticsGraph", + "description": "A graph containing number of different actions in the chat" + }, + { + "name": "day_graph", + "type": "StatisticsGraph", + "description": "A graph containing distribution of message views per hour" + }, + { + "name": "week_graph", + "type": "StatisticsGraph", + "description": "A graph containing distribution of message views per day of week" + }, + { + "name": "top_senders", + "type": "vector", + "description": "List of users sent most messages in the last week" + }, + { + "name": "top_administrators", + "type": "vector", + "description": "List of most active administrators in the last week" + }, + { + "name": "top_inviters", + "type": "vector", + "description": "List of most active inviters of new members in the last week" + } + ], + "description": "A detailed statistics about a supergroup chat", + "inheritance": "ChatStatistics", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "chatStatisticsChannel", + "methods": [ + { + "name": "period", + "type": "dateRange", + "description": "A period to which the statistics applies" + }, + { + "name": "member_count", + "type": "statisticsValue", + "description": "Number of members in the chat" + }, + { + "name": "mean_view_count", + "type": "statisticsValue", + "description": "Mean number of times the recently sent messages was viewed" + }, + { + "name": "mean_share_count", + "type": "statisticsValue", + "description": "Mean number of times the recently sent messages was shared" + }, + { + "name": "enabled_notifications_percentage", + "type": "double", + "description": "A percentage of users with enabled notifications for the chat" + }, + { + "name": "member_count_graph", + "type": "StatisticsGraph", + "description": "A graph containing number of members in the chat" + }, + { + "name": "join_graph", + "type": "StatisticsGraph", + "description": "A graph containing number of members joined and left the chat" + }, + { + "name": "mute_graph", + "type": "StatisticsGraph", + "description": "A graph containing number of members muted and unmuted the chat" + }, + { + "name": "view_count_by_hour_graph", + "type": "StatisticsGraph", + "description": "A graph containing number of message views in a given hour in the last two weeks" + }, + { + "name": "view_count_by_source_graph", + "type": "StatisticsGraph", + "description": "A graph containing number of message views per source" + }, + { + "name": "join_by_source_graph", + "type": "StatisticsGraph", + "description": "A graph containing number of new member joins per source" + }, + { + "name": "language_graph", + "type": "StatisticsGraph", + "description": "A graph containing number of users viewed chat messages per language" + }, + { + "name": "message_interaction_graph", + "type": "StatisticsGraph", + "description": "A graph containing number of chat message views and shares" + }, + { + "name": "instant_view_interaction_graph", + "type": "StatisticsGraph", + "description": "A graph containing number of views of associated with the chat instant views" + }, + { + "name": "recent_message_interactions", + "type": "vector", + "description": "Detailed statistics about number of views and shares of recently sent messages" + } + ], + "description": "A detailed statistics about a channel chat", + "inheritance": "ChatStatistics", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "messageStatistics", + "methods": [ + { + "name": "message_interaction_graph", + "type": "StatisticsGraph", + "description": "A graph containing number of message views and shares" + } + ], + "description": "A detailed statistics about a message", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -12874,7 +15687,7 @@ { "name": "message", "type": "message", - "description": "Contains information about the message that failed to send" + "description": "Contains information about the message which failed to send" }, { "name": "old_message_id", @@ -12954,7 +15767,7 @@ "isSynchronous": false }, { - "name": "updateMessageViews", + "name": "updateMessageInteractionInfo", "methods": [ { "name": "chat_id", @@ -12967,12 +15780,12 @@ "description": "Message identifier" }, { - "name": "views", - "type": "int32", - "description": "New value of the view count" + "name": "interaction_info", + "type": "messageInteractionInfo", + "description": "New information about interactions with the message; may be null" } ], - "description": "The view count of the message has changed", + "description": "The information about interactions with a message has changed", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -13023,6 +15836,26 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "updateMessageLiveLocationViewed", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Identifier of the chat with the live location message" + }, + { + "name": "message_id", + "type": "int53", + "description": "Identifier of the message with live location" + } + ], + "description": "A message with a live location was viewed. When the update is received, the application is supposed to update the live location", + "inheritance": "Update", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "updateNewChat", "methods": [ @@ -13032,7 +15865,7 @@ "description": "The chat" } ], - "description": "A new chat has been loaded/created. This update is guaranteed to come before the chat identifier is returned to the client. The chat field changes will be reported through separate updates", + "description": "A new chat has been loaded/created. This update is guaranteed to come before the chat identifier is returned to the application. The chat field changes will be reported through separate updates", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -13068,7 +15901,7 @@ }, { "name": "photo", - "type": "chatPhoto", + "type": "chatPhotoInfo", "description": "The new chat photo; may be null" } ], @@ -13078,6 +15911,26 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "updateChatPermissions", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "permissions", + "type": "chatPermissions", + "description": "The new chat permissions" + } + ], + "description": "Chat permissions was changed", + "inheritance": "Update", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "updateChatLastMessage", "methods": [ @@ -13092,19 +15945,19 @@ "description": "The new last message in the chat; may be null" }, { - "name": "order", - "type": "int64", - "description": "New value of the chat order" + "name": "positions", + "type": "vector", + "description": "The new chat positions in the chat lists" } ], - "description": "The last message of a chat was changed. If last_message is null then the last message in the chat became unknown. Some new unknown messages might be added to the chat in this case", + "description": "The last message of a chat was changed. If last_message is null, then the last message in the chat became unknown. Some new unknown messages might be added to the chat in this case", "inheritance": "Update", "return_type": "", "isFunction": false, "isSynchronous": false }, { - "name": "updateChatOrder", + "name": "updateChatPosition", "methods": [ { "name": "chat_id", @@ -13112,37 +15965,12 @@ "description": "Chat identifier" }, { - "name": "order", - "type": "int64", - "description": "New value of the order" + "name": "position", + "type": "chatPosition", + "description": "New chat position. If new order is 0, then the chat needs to be removed from the list" } ], - "description": "The order of the chat in the chat list has changed. Instead of this update updateChatLastMessage, updateChatIsPinned or updateChatDraftMessage might be sent", - "inheritance": "Update", - "return_type": "", - "isFunction": false, - "isSynchronous": false - }, - { - "name": "updateChatIsPinned", - "methods": [ - { - "name": "chat_id", - "type": "int53", - "description": "Chat identifier" - }, - { - "name": "is_pinned", - "type": "Bool", - "description": "New value of is_pinned" - }, - { - "name": "order", - "type": "int64", - "description": "New value of the chat order" - } - ], - "description": "A chat was pinned or unpinned", + "description": "The position of a chat in a chat list has changed. Instead of this update updateChatLastMessage or updateChatDraftMessage might be sent", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -13169,7 +15997,7 @@ "isSynchronous": false }, { - "name": "updateChatIsSponsored", + "name": "updateChatIsBlocked", "methods": [ { "name": "chat_id", @@ -13177,17 +16005,32 @@ "description": "Chat identifier" }, { - "name": "is_sponsored", + "name": "is_blocked", "type": "Bool", - "description": "New value of is_sponsored" - }, - { - "name": "order", - "type": "int64", - "description": "New value of chat order" + "description": "New value of is_blocked" } ], - "description": "A chat's is_sponsored field has changed", + "description": "A chat was blocked or unblocked", + "inheritance": "Update", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "updateChatHasScheduledMessages", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "has_scheduled_messages", + "type": "Bool", + "description": "New value of has_scheduled_messages" + } + ], + "description": "A chat's has_scheduled_messages field has changed", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -13318,6 +16161,26 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "updateChatActionBar", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "action_bar", + "type": "ChatActionBar", + "description": "The new value of the action bar; may be null" + } + ], + "description": "The chat action bar was changed", + "inheritance": "Update", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "updateChatPinnedMessage", "methods": [ @@ -13372,9 +16235,9 @@ "description": "The new draft message; may be null" }, { - "name": "order", - "type": "int64", - "description": "New value of the chat order" + "name": "positions", + "type": "vector", + "description": "The new chat positions in the chat lists" } ], "description": "A chat draft has changed. Be aware that the update may come in the currently opened chat but with old content of the draft. If the user has changed the content of the draft, this update shouldn't be applied", @@ -13383,6 +16246,21 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "updateChatFilters", + "methods": [ + { + "name": "chat_filters", + "type": "vector", + "description": "The new list of chat filters" + } + ], + "description": "The list of chat filters or a chat filter has changed", + "inheritance": "Update", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "updateChatOnlineMemberCount", "methods": [ @@ -13482,7 +16360,7 @@ "description": "Lists of active notification groups" } ], - "description": "Contains active notifications that was shown on previous application launches. This update is sent only if a message database is used. In that case it comes once before any updateNotification and updateNotificationGroup update", + "description": "Contains active notifications that was shown on previous application launches. This update is sent only if the message database is used. In that case it comes once before any updateNotification and updateNotificationGroup update", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -13502,7 +16380,7 @@ "description": "True, if there can be some yet unreceived notifications, which are being fetched from the server" } ], - "description": "Describes, whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications", + "description": "Describes whether there are some pending notification updates. Can be used to prevent application from killing, while there are some pending notifications", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -13546,6 +16424,11 @@ "type": "int53", "description": "Chat identifier" }, + { + "name": "message_thread_id", + "type": "int53", + "description": "If not 0, a message thread identifier in which the action was performed" + }, { "name": "user_id", "type": "int32", @@ -13592,7 +16475,7 @@ "description": "New data about the user" } ], - "description": "Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the client", + "description": "Some data of a user has changed. This update is guaranteed to come before the user identifier is returned to the application", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -13607,7 +16490,7 @@ "description": "New data about the group" } ], - "description": "Some data of a basic group has changed. This update is guaranteed to come before the basic group identifier is returned to the client", + "description": "Some data of a basic group has changed. This update is guaranteed to come before the basic group identifier is returned to the application", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -13622,7 +16505,7 @@ "description": "New data about the supergroup" } ], - "description": "Some data of a supergroup or a channel has changed. This update is guaranteed to come before the supergroup identifier is returned to the client", + "description": "Some data of a supergroup or a channel has changed. This update is guaranteed to come before the supergroup identifier is returned to the application", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -13637,7 +16520,7 @@ "description": "New data about the secret chat" } ], - "description": "Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned to the client", + "description": "Some data of a secret chat has changed. This update is guaranteed to come before the secret chat identifier is returned to the application", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -13717,7 +16600,7 @@ "description": "Notification content" } ], - "description": "Service notification from the server. Upon receiving this the client must show a popup with the content of the notification", + "description": "Service notification from the server. Upon receiving this the application must show a popup with the content of the notification", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -13759,10 +16642,10 @@ { "name": "conversion", "type": "string", - "description": "String specifying the conversion applied to the original file. If conversion is \"#url#\" than original_path contains an HTTP/HTTPS URL of a file, which should be downloaded by the client" + "description": "String specifying the conversion applied to the original file. If conversion is \"#url#\" than original_path contains an HTTP/HTTPS URL of a file, which should be downloaded by the application" } ], - "description": "The file generation process needs to be started by the client", + "description": "The file generation process needs to be started by the application", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -13798,6 +16681,26 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "updateNewCallSignalingData", + "methods": [ + { + "name": "call_id", + "type": "int32", + "description": "The call identifier" + }, + { + "name": "data", + "type": "bytes", + "description": "The data" + } + ], + "description": "New call signaling data arrived", + "inheritance": "Update", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "updateUserPrivacySettingRules", "methods": [ @@ -13821,6 +16724,11 @@ { "name": "updateUnreadMessageCount", "methods": [ + { + "name": "chat_list", + "type": "ChatList", + "description": "The chat list with changed number of unread messages" + }, { "name": "unread_count", "type": "int32", @@ -13832,7 +16740,7 @@ "description": "Total number of unread messages in unmuted chats" } ], - "description": "Number of unread messages has changed. This update is sent only if a message database is used", + "description": "Number of unread messages in a chat list has changed. This update is sent only if the message database is used", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -13841,6 +16749,16 @@ { "name": "updateUnreadChatCount", "methods": [ + { + "name": "chat_list", + "type": "ChatList", + "description": "The chat list with changed number of unread messages" + }, + { + "name": "total_count", + "type": "int32", + "description": "Approximate total number of chats in the chat list" + }, { "name": "unread_count", "type": "int32", @@ -13862,7 +16780,7 @@ "description": "Total number of unmuted chats marked as unread" } ], - "description": "Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if a message database is used", + "description": "Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if the message database is used", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -13888,6 +16806,21 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "updateStickerSet", + "methods": [ + { + "name": "sticker_set", + "type": "stickerSet", + "description": "The sticker set" + } + ], + "description": "A sticker set has changed", + "inheritance": "Update", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "updateInstalledStickerSets", "methods": [ @@ -13914,7 +16847,7 @@ { "name": "sticker_sets", "type": "stickerSets", - "description": "The new list of trending sticker sets" + "description": "The prefix of the list of trending sticker sets with the newest trending sticker sets" } ], "description": "The list of trending sticker sets was updated or some of them were viewed", @@ -13973,6 +16906,26 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "updateSelectedBackground", + "methods": [ + { + "name": "for_dark_theme", + "type": "Bool", + "description": "True, if background for dark theme has changed" + }, + { + "name": "background", + "type": "background", + "description": "The new selected background; may be null" + } + ], + "description": "The selected background has changed", + "inheritance": "Update", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "updateLanguagePackStrings", "methods": [ @@ -14007,7 +16960,7 @@ "description": "The new connection state" } ], - "description": "The connection state has changed", + "description": "The connection state has changed. This update must be used only to show the user a human-readable description of the connection state", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -14033,6 +16986,76 @@ "isFunction": false, "isSynchronous": false }, + { + "name": "updateUsersNearby", + "methods": [ + { + "name": "users_nearby", + "type": "vector", + "description": "The new list of users nearby" + } + ], + "description": "The list of users nearby has changed. The update is guaranteed to be sent only 60 seconds after a successful searchChatsNearby request", + "inheritance": "Update", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "updateDiceEmojis", + "methods": [ + { + "name": "emojis", + "type": "vector", + "description": "The new list of supported dice emojis" + } + ], + "description": "The list of supported dice emojis has changed", + "inheritance": "Update", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "updateAnimationSearchParameters", + "methods": [ + { + "name": "provider", + "type": "string", + "description": "Name of the animation search provider" + }, + { + "name": "emojis", + "type": "vector", + "description": "The new list of emojis suggested for searching" + } + ], + "description": "The parameters of animation search through GetOption(\"animation_search_bot_username\") bot has changed", + "inheritance": "Update", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "updateSuggestedActions", + "methods": [ + { + "name": "added_actions", + "type": "vector", + "description": "Added suggested actions" + }, + { + "name": "removed_actions", + "type": "vector", + "description": "Removed suggested actions" + } + ], + "description": "The list of suggested to the user actions has changed", + "inheritance": "Update", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, { "name": "updateNewInlineQuery", "methods": [ @@ -14049,7 +17072,7 @@ { "name": "user_location", "type": "location", - "description": "User location, provided by the client; may be null" + "description": "User location; may be null" }, { "name": "query", @@ -14079,7 +17102,7 @@ { "name": "user_location", "type": "location", - "description": "User location, provided by the client; may be null" + "description": "User location; may be null" }, { "name": "query", @@ -14119,7 +17142,7 @@ { "name": "chat_id", "type": "int53", - "description": "Identifier of the chat, in which the query was sent" + "description": "Identifier of the chat where the query was sent" }, { "name": "message_id", @@ -14302,7 +17325,32 @@ "description": "New data about the poll" } ], - "description": "Information about a poll was updated; for bots only", + "description": "A poll was updated; for bots only", + "inheritance": "Update", + "return_type": "", + "isFunction": false, + "isSynchronous": false + }, + { + "name": "updatePollAnswer", + "methods": [ + { + "name": "poll_id", + "type": "int64", + "description": "Unique poll identifier" + }, + { + "name": "user_id", + "type": "int32", + "description": "The user, who changed the answer to the poll" + }, + { + "name": "option_ids", + "type": "vector", + "description": "0-based identifiers of answer options, chosen by the user" + } + ], + "description": "A user changed the answer to a poll; for bots only", "inheritance": "Update", "return_type": "", "isFunction": false, @@ -14318,7 +17366,7 @@ } ], "description": "Contains a list of updates", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -14352,7 +17400,12 @@ { "name": "max_file_size", "type": "int53", - "description": "Maximum size of the file to where the internal TDLib log is written before the file will be auto-rotated" + "description": "The maximum size of the file to where the internal TDLib log is written before the file will be auto-rotated" + }, + { + "name": "redirect_stderr", + "type": "Bool", + "description": "Pass true to additionally redirect stderr to the log file. Ignored on Windows" } ], "description": "The log is written to a file", @@ -14380,7 +17433,7 @@ } ], "description": "Contains a TDLib internal log verbosity level", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -14395,7 +17448,7 @@ } ], "description": "Contains a list of available TDLib internal log tags", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -14410,7 +17463,7 @@ } ], "description": "A simple object containing a number; for testing only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -14425,7 +17478,7 @@ } ], "description": "A simple object containing a string; for testing only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -14440,7 +17493,7 @@ } ], "description": "A simple object containing a sequence of bytes; for testing only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -14455,7 +17508,7 @@ } ], "description": "A simple object containing a vector of numbers; for testing only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -14470,7 +17523,7 @@ } ], "description": "A simple object containing a vector of objects that hold a number; for testing only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -14485,7 +17538,7 @@ } ], "description": "A simple object containing a vector of strings; for testing only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -14500,7 +17553,7 @@ } ], "description": "A simple object containing a vector of objects that hold a string; for testing only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "", "isFunction": false, "isSynchronous": false @@ -14508,8 +17561,8 @@ { "name": "getAuthorizationState", "methods": null, - "description": "Returns the current authorization state; this is an offline request. For informational purposes only. Use updateAuthorizationState instead to maintain the current authorization state", - "inheritance": "BaseTLClass", + "description": "Returns the current authorization state; this is an offline request. For informational purposes only. Use updateAuthorizationState instead to maintain the current authorization state. Can be called before initialization", + "inheritance": "TLBaseClass", "return_type": "AuthorizationState", "isFunction": true, "isSynchronous": false @@ -14524,7 +17577,7 @@ } ], "description": "Sets the parameters for TDLib initialization. Works only when the current authorization state is authorizationStateWaitTdlibParameters", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -14539,7 +17592,7 @@ } ], "description": "Checks the database encryption key for correctness. Works only when the current authorization state is authorizationStateWaitEncryptionKey", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -14553,18 +17606,13 @@ "description": "The phone number of the user, in international format" }, { - "name": "allow_flash_call", - "type": "Bool", - "description": "Pass true if the authentication code may be sent via flash call to the specified phone number" - }, - { - "name": "is_current_phone_number", - "type": "Bool", - "description": "Pass true if the phone number is used on the current device. Ignored if allow_flash_call is false" + "name": "settings", + "type": "phoneNumberAuthenticationSettings", + "description": "Settings for the authentication of the user's phone number" } ], - "description": "Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber", - "inheritance": "BaseTLClass", + "description": "Sets the phone number of the user and sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -14573,7 +17621,7 @@ "name": "resendAuthenticationCode", "methods": null, "description": "Re-sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitCode and the next_code_type of the result is not null", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -14585,20 +17633,45 @@ "name": "code", "type": "string", "description": "The verification code received via SMS, Telegram message, phone call, or flash call" - }, + } + ], + "description": "Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "requestQrCodeAuthentication", + "methods": [ + { + "name": "other_user_ids", + "type": "vector", + "description": "List of user identifiers of other users currently using the application" + } + ], + "description": "Requests QR code authentication by scanning a QR code on another logged in device. Works only when the current authorization state is authorizationStateWaitPhoneNumber, or if there is no pending authentication query and the current authorization state is authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "registerUser", + "methods": [ { "name": "first_name", "type": "string", - "description": "If the user is not yet registered, the first name of the user; 1-64 characters. You can also pass an empty string for unregistered user there to check verification code validness. In the latter case PHONE_NUMBER_UNOCCUPIED error will be returned for a valid code" + "description": "The first name of the user; 1-64 characters" }, { "name": "last_name", "type": "string", - "description": "If the user is not yet registered; the last name of the user; optional; 0-64 characters" + "description": "The last name of the user; 0-64 characters" } ], - "description": "Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode", - "inheritance": "BaseTLClass", + "description": "Finishes user registration. Works only when the current authorization state is authorizationStateWaitRegistration", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -14613,7 +17686,7 @@ } ], "description": "Checks the authentication password for correctness. Works only when the current authorization state is authorizationStateWaitPassword", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -14622,7 +17695,7 @@ "name": "requestAuthenticationPasswordRecovery", "methods": null, "description": "Requests to send a password recovery code to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -14637,7 +17710,7 @@ } ], "description": "Recovers the password with a password recovery code sent to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -14652,7 +17725,7 @@ } ], "description": "Checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -14661,7 +17734,7 @@ "name": "logOut", "methods": null, "description": "Closes the TDLib instance after a proper logout. Requires an available network connection. All local data will be destroyed. After the logout completes, updateAuthorizationState with authorizationStateClosed will be sent", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -14669,8 +17742,8 @@ { "name": "close", "methods": null, - "description": "Closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes, updateAuthorizationState with authorizationStateClosed will be sent", - "inheritance": "BaseTLClass", + "description": "Closes the TDLib instance. All databases will be flushed to disk and properly closed. After the close completes, updateAuthorizationState with authorizationStateClosed will be sent. Can be called before initialization", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -14678,17 +17751,32 @@ { "name": "destroy", "methods": null, - "description": "Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in the list of all active sessions. All local data will be destroyed. After the destruction completes updateAuthorizationState with authorizationStateClosed will be sent", - "inheritance": "BaseTLClass", + "description": "Closes the TDLib instance, destroying all local data without a proper logout. The current user session will remain in the list of all active sessions. All local data will be destroyed. After the destruction completes updateAuthorizationState with authorizationStateClosed will be sent. Can be called before authorization", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false }, + { + "name": "confirmQrCodeAuthentication", + "methods": [ + { + "name": "link", + "type": "string", + "description": "A link from a QR code. The link must be scanned by the in-app camera" + } + ], + "description": "Confirms QR code authentication on another device. Returns created session on success", + "inheritance": "TLBaseClass", + "return_type": "session", + "isFunction": true, + "isSynchronous": false + }, { "name": "getCurrentState", "methods": null, - "description": "Returns all updates needed to restore current TDLib state, i.e. all actual UpdateAuthorizationState/UpdateUser/UpdateNewChat and others. This is especially usefull if TDLib is run in a separate process. This is an offline method. Can be called before authorization", - "inheritance": "BaseTLClass", + "description": "Returns all updates needed to restore current TDLib state, i.e. all actual UpdateAuthorizationState/UpdateUser/UpdateNewChat and others. This is especially useful if TDLib is run in a separate process. Can be called before initialization", + "inheritance": "TLBaseClass", "return_type": "updates", "isFunction": true, "isSynchronous": false @@ -14703,7 +17791,7 @@ } ], "description": "Changes the database encryption key. Usually the encryption key is never changed and is stored in some OS keychain", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -14712,7 +17800,7 @@ "name": "getPasswordState", "methods": null, "description": "Returns the current state of 2-step verification", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "passwordState", "isFunction": true, "isSynchronous": false @@ -14747,7 +17835,7 @@ } ], "description": "Changes the password for the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "passwordState", "isFunction": true, "isSynchronous": false @@ -14762,7 +17850,7 @@ } ], "description": "Returns a 2-step verification recovery email address that was previously set up. This method can be used to verify a password provided by the user", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "recoveryEmailAddress", "isFunction": true, "isSynchronous": false @@ -14781,8 +17869,8 @@ "description": "New recovery email address" } ], - "description": "Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed If new_recovery_email_address is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation", - "inheritance": "BaseTLClass", + "description": "Changes the 2-step verification recovery email address of the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed. If new_recovery_email_address is the same as the email address that is currently set up, this call succeeds immediately and aborts all other requests waiting for an email confirmation", + "inheritance": "TLBaseClass", "return_type": "passwordState", "isFunction": true, "isSynchronous": false @@ -14797,7 +17885,7 @@ } ], "description": "Checks the 2-step verification recovery email address verification code", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "passwordState", "isFunction": true, "isSynchronous": false @@ -14806,7 +17894,7 @@ "name": "resendRecoveryEmailAddressCode", "methods": null, "description": "Resends the 2-step verification recovery email address verification code", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "passwordState", "isFunction": true, "isSynchronous": false @@ -14815,7 +17903,7 @@ "name": "requestPasswordRecovery", "methods": null, "description": "Requests to send a password recovery code to an email address that was previously set up", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "emailAddressAuthenticationCodeInfo", "isFunction": true, "isSynchronous": false @@ -14830,7 +17918,7 @@ } ], "description": "Recovers the password using a recovery code sent to an email address that was previously set up", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "passwordState", "isFunction": true, "isSynchronous": false @@ -14850,7 +17938,7 @@ } ], "description": "Creates a new temporary password for processing payments", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "temporaryPasswordState", "isFunction": true, "isSynchronous": false @@ -14859,7 +17947,7 @@ "name": "getTemporaryPasswordState", "methods": null, "description": "Returns information about the current temporary password", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "temporaryPasswordState", "isFunction": true, "isSynchronous": false @@ -14868,7 +17956,7 @@ "name": "getMe", "methods": null, "description": "Returns the current user", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "user", "isFunction": true, "isSynchronous": false @@ -14883,7 +17971,7 @@ } ], "description": "Returns information about a user by their identifier. This is an offline request if the current user is not a bot", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "user", "isFunction": true, "isSynchronous": false @@ -14898,7 +17986,7 @@ } ], "description": "Returns full information about a user by their identifier", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "userFullInfo", "isFunction": true, "isSynchronous": false @@ -14913,7 +18001,7 @@ } ], "description": "Returns information about a basic group by its identifier. This is an offline request if the current user is not a bot", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "basicGroup", "isFunction": true, "isSynchronous": false @@ -14928,7 +18016,7 @@ } ], "description": "Returns full information about a basic group by its identifier", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "basicGroupFullInfo", "isFunction": true, "isSynchronous": false @@ -14942,8 +18030,8 @@ "description": "Supergroup or channel identifier" } ], - "description": "Returns information about a supergroup or channel by its identifier. This is an offline request if the current user is not a bot", - "inheritance": "BaseTLClass", + "description": "Returns information about a supergroup or a channel by its identifier. This is an offline request if the current user is not a bot", + "inheritance": "TLBaseClass", "return_type": "supergroup", "isFunction": true, "isSynchronous": false @@ -14957,8 +18045,8 @@ "description": "Supergroup or channel identifier" } ], - "description": "Returns full information about a supergroup or channel by its identifier, cached for up to 1 minute", - "inheritance": "BaseTLClass", + "description": "Returns full information about a supergroup or a channel by its identifier, cached for up to 1 minute", + "inheritance": "TLBaseClass", "return_type": "supergroupFullInfo", "isFunction": true, "isSynchronous": false @@ -14973,7 +18061,7 @@ } ], "description": "Returns information about a secret chat by its identifier. This is an offline request", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "secretChat", "isFunction": true, "isSynchronous": false @@ -14988,7 +18076,7 @@ } ], "description": "Returns information about a chat by its identifier, this is an offline request if the current user is not a bot", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chat", "isFunction": true, "isSynchronous": false @@ -15008,7 +18096,7 @@ } ], "description": "Returns information about a message", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -15028,7 +18116,7 @@ } ], "description": "Returns information about a message, if it is available locally without sending network request. This is an offline request", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -15044,11 +18132,11 @@ { "name": "message_id", "type": "int53", - "description": "Identifier of the message reply to which get" + "description": "Identifier of the message reply to which to get" } ], - "description": "Returns information about a message that is replied by given message", - "inheritance": "BaseTLClass", + "description": "Returns information about a message that is replied by a given message. Also returns the pinned message, the game message, and the invoice message for messages of the types messagePinMessage, messageGameScore, and messagePaymentSuccessful respectively", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -15063,7 +18151,7 @@ } ], "description": "Returns information about a pinned chat message", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -15083,11 +18171,31 @@ } ], "description": "Returns information about messages. If a message is not found, returns null on the corresponding position of the result", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "messages", "isFunction": true, "isSynchronous": false }, + { + "name": "getMessageThread", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "message_id", + "type": "int53", + "description": "Identifier of the message" + } + ], + "description": "Returns information about a message thread. Can be used only if message.can_get_message_thread == true", + "inheritance": "TLBaseClass", + "return_type": "messageThreadInfo", + "isFunction": true, + "isSynchronous": false + }, { "name": "getFile", "methods": [ @@ -15098,7 +18206,7 @@ } ], "description": "Returns information about a file; this is an offline request", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "file", "isFunction": true, "isSynchronous": false @@ -15117,8 +18225,8 @@ "description": "File type, if known" } ], - "description": "Returns information about a file by its remote ID; this is an offline request. Can be used to register a URL as a file for further uploading, or sending as a message", - "inheritance": "BaseTLClass", + "description": "Returns information about a file by its remote ID; this is an offline request. Can be used to register a URL as a file for further uploading, or sending as a message. Even the request succeeds, the file can be used only if it is still accessible to the user. For example, if the file is from a message, then the message must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with the file must be preloaded by the application", + "inheritance": "TLBaseClass", "return_type": "file", "isFunction": true, "isSynchronous": false @@ -15126,6 +18234,11 @@ { "name": "getChats", "methods": [ + { + "name": "chat_list", + "type": "ChatList", + "description": "The chat list in which to return chats" + }, { "name": "offset_order", "type": "int64", @@ -15142,8 +18255,8 @@ "description": "The maximum number of chats to be returned. It is possible that fewer chats than the limit are returned even if the end of the list is not reached" } ], - "description": "Returns an ordered list of chats. Chats are sorted by the pair (order, chat_id) in decreasing order. (For example, to get a list of chats from the beginning, the offset_order should be equal to a biggest signed 64-bit number 9223372036854775807 == 2^63 - 1). For optimal performance the number of returned chats is chosen by the library.", - "inheritance": "BaseTLClass", + "description": "Returns an ordered list of chats in a chat list. Chats are sorted by the pair (chat.position.order, chat.id) in descending order. (For example, to get a list of chats from the beginning, the offset_order should be equal to a biggest signed 64-bit number 9223372036854775807 == 2^63 - 1). For optimal performance the number of returned chats is chosen by the library", + "inheritance": "TLBaseClass", "return_type": "chats", "isFunction": true, "isSynchronous": false @@ -15158,7 +18271,7 @@ } ], "description": "Searches a public chat by its username. Currently only private chats, supergroups and channels can be public. Returns the chat if found; otherwise an error is returned", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chat", "isFunction": true, "isSynchronous": false @@ -15173,7 +18286,7 @@ } ], "description": "Searches public chats by looking for specified query in their username and title. Currently only private chats, supergroups and channels can be public. Returns a meaningful number of results. Returns nothing if the length of the searched username prefix is less than 5. Excludes private chats with contacts and chats from the chat list from the results", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chats", "isFunction": true, "isSynchronous": false @@ -15189,11 +18302,11 @@ { "name": "limit", "type": "int32", - "description": "Maximum number of chats to be returned" + "description": "The maximum number of chats to be returned" } ], - "description": "Searches for the specified query in the title and username of already known chats, this is an offline request. Returns chats in the order seen in the chat list", - "inheritance": "BaseTLClass", + "description": "Searches for the specified query in the title and username of already known chats, this is an offline request. Returns chats in the order seen in the main chat list", + "inheritance": "TLBaseClass", "return_type": "chats", "isFunction": true, "isSynchronous": false @@ -15209,15 +18322,30 @@ { "name": "limit", "type": "int32", - "description": "Maximum number of chats to be returned" + "description": "The maximum number of chats to be returned" } ], - "description": "Searches for the specified query in the title and username of already known chats via request to the server. Returns chats in the order seen in the chat list", - "inheritance": "BaseTLClass", + "description": "Searches for the specified query in the title and username of already known chats via request to the server. Returns chats in the order seen in the main chat list", + "inheritance": "TLBaseClass", "return_type": "chats", "isFunction": true, "isSynchronous": false }, + { + "name": "searchChatsNearby", + "methods": [ + { + "name": "location", + "type": "location", + "description": "Current user location" + } + ], + "description": "Returns a list of users and location-based supergroups nearby. The list of users nearby will be updated for 60 seconds after the request by the updates updateUsersNearby. The request should be sent again every 25 seconds with adjusted location to not miss new chats", + "inheritance": "TLBaseClass", + "return_type": "chatsNearby", + "isFunction": true, + "isSynchronous": false + }, { "name": "getTopChats", "methods": [ @@ -15229,11 +18357,11 @@ { "name": "limit", "type": "int32", - "description": "Maximum number of chats to be returned; up to 30" + "description": "The maximum number of chats to be returned; up to 30" } ], "description": "Returns a list of frequently used chats. Supported only if the chat info database is enabled", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chats", "isFunction": true, "isSynchronous": false @@ -15253,7 +18381,7 @@ } ], "description": "Removes a chat from the list of frequently used chats. Supported only if the chat info database is enabled", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -15268,7 +18396,7 @@ } ], "description": "Adds a chat to the list of recently found chats. The chat is added to the beginning of the list. If the chat is already in the list, it will be removed from the list first", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -15283,7 +18411,7 @@ } ], "description": "Removes a chat from the list of recently found chats", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -15292,7 +18420,7 @@ "name": "clearRecentlyFoundChats", "methods": null, "description": "Clears the list of recently found chats", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -15312,16 +18440,55 @@ } ], "description": "Checks whether a username can be set for a chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "CheckChatUsernameResult", "isFunction": true, "isSynchronous": false }, { "name": "getCreatedPublicChats", + "methods": [ + { + "name": "type", + "type": "PublicChatType", + "description": "Type of the public chats to return" + } + ], + "description": "Returns a list of public chats of the specified type, owned by the user", + "inheritance": "TLBaseClass", + "return_type": "chats", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "checkCreatedPublicChatsLimit", + "methods": [ + { + "name": "type", + "type": "PublicChatType", + "description": "Type of the public chats, for which to check the limit" + } + ], + "description": "Checks whether the maximum number of owned public chats has been reached. Returns corresponding error if the limit was reached", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getSuitableDiscussionChats", "methods": null, - "description": "Returns a list of public chats created by the user", - "inheritance": "BaseTLClass", + "description": "Returns a list of basic group and supergroup chats, which can be used as a discussion group for a channel. Basic group chats need to be first upgraded to supergroups before they can be set as a discussion group", + "inheritance": "TLBaseClass", + "return_type": "chats", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getInactiveSupergroupChats", + "methods": null, + "description": "Returns a list of recently inactive supergroups and channels. Can be used when user reaches limit on the number of joined supergroups and channels and receives CHANNELS_TOO_MUCH error", + "inheritance": "TLBaseClass", "return_type": "chats", "isFunction": true, "isSynchronous": false @@ -15342,11 +18509,11 @@ { "name": "limit", "type": "int32", - "description": "Maximum number of chats to be returned; up to 100" + "description": "The maximum number of chats to be returned; up to 100" } ], "description": "Returns a list of common group chats with a given user. Chats are sorted by their type and creation date", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chats", "isFunction": true, "isSynchronous": false @@ -15372,7 +18539,7 @@ { "name": "limit", "type": "int32", - "description": "The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater or equal to -offset. Fewer messages may be returned than specified by the limit, even if the end of the message history has not been reached" + "description": "The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than or equal to -offset. Fewer messages may be returned than specified by the limit, even if the end of the message history has not been reached" }, { "name": "only_local", @@ -15381,7 +18548,42 @@ } ], "description": "Returns messages in a chat. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id). For optimal performance the number of returned messages is chosen by the library. This is an offline request if only_local is true", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "messages", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getMessageThreadHistory", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "message_id", + "type": "int53", + "description": "Message identifier, which thread history needs to be returned" + }, + { + "name": "from_message_id", + "type": "int53", + "description": "Identifier of the message starting from which history must be fetched; use 0 to get results from the last message" + }, + { + "name": "offset", + "type": "int32", + "description": "Specify 0 to get results from exactly the from_message_id or a negative offset up to 99 to get additionally some newer messages" + }, + { + "name": "limit", + "type": "int32", + "description": "The maximum number of messages to be returned; must be positive and can't be greater than 100. If the offset is negative, the limit must be greater than or equal to -offset. Fewer messages may be returned than specified by the limit, even if the end of the message thread history has not been reached" + } + ], + "description": "Returns messages in a message thread of a message. Can be used only if message.can_get_message_thread == true. Message thread of a channel message is in the channel's linked supergroup. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id). For optimal performance the number of returned messages is chosen by the library", + "inheritance": "TLBaseClass", "return_type": "messages", "isFunction": true, "isSynchronous": false @@ -15406,7 +18608,7 @@ } ], "description": "Deletes all messages in the chat. Use Chat.can_be_deleted_only_for_self and Chat.can_be_deleted_for_all_users fields to find whether and how the method can be applied to the chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -15448,10 +18650,15 @@ "name": "filter", "type": "SearchMessagesFilter", "description": "Filter for message content in the search results" + }, + { + "name": "message_thread_id", + "type": "int53", + "description": "If not 0, only messages in the specified thread will be returned; supergroups only" } ], "description": "Searches for messages with given words in the chat. Returns the results in reverse chronological order, i.e. in order of decreasing message_id. Cannot be used in secret chats with a non-empty query (searchSecretMessages should be used instead), or without an enabled message database. For optimal performance the number of returned messages is chosen by the library", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "messages", "isFunction": true, "isSynchronous": false @@ -15459,6 +18666,11 @@ { "name": "searchMessages", "methods": [ + { + "name": "chat_list", + "type": "ChatList", + "description": "Chat list in which to search messages; pass null to search in all chats regardless of their chat list" + }, { "name": "query", "type": "string", @@ -15482,11 +18694,26 @@ { "name": "limit", "type": "int32", - "description": "The maximum number of messages to be returned, up to 100. Fewer messages may be returned than specified by the limit, even if the end of the message history has not been reached" + "description": "The maximum number of messages to be returned; up to 100. Fewer messages may be returned than specified by the limit, even if the end of the message history has not been reached" + }, + { + "name": "filter", + "type": "SearchMessagesFilter", + "description": "Filter for message content in the search results; searchMessagesFilterCall, searchMessagesFilterMissedCall, searchMessagesFilterMention, searchMessagesFilterUnreadMention and searchMessagesFilterFailedToSend are unsupported in this function" + }, + { + "name": "min_date", + "type": "int32", + "description": "If not 0, the minimum date of the messages to return" + }, + { + "name": "max_date", + "type": "int32", + "description": "If not 0, the maximum date of the messages to return" } ], "description": "Searches for messages in all chats except secret chats. Returns the results in reverse chronological order (i.e., in order of decreasing (date, chat_id, message_id)). For optimal performance the number of returned messages is chosen by the library", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "messages", "isFunction": true, "isSynchronous": false @@ -15505,23 +18732,23 @@ "description": "Query to search for. If empty, searchChatMessages should be used instead" }, { - "name": "from_search_id", - "type": "int64", - "description": "The identifier from the result of a previous request, use 0 to get results from the last message" + "name": "offset", + "type": "string", + "description": "Offset of the first entry to return as received from the previous request; use empty string to get first chunk of results" }, { "name": "limit", "type": "int32", - "description": "Maximum number of messages to be returned; up to 100. Fewer messages may be returned than specified by the limit, even if the end of the message history has not been reached" + "description": "The maximum number of messages to be returned; up to 100. Fewer messages may be returned than specified by the limit, even if the end of the message history has not been reached" }, { "name": "filter", "type": "SearchMessagesFilter", - "description": "A filter for the content of messages in the search results" + "description": "A filter for message content in the search results" } ], "description": "Searches for messages in secret chats. Returns the results in reverse chronological order. For optimal performance the number of returned messages is chosen by the library", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "foundMessages", "isFunction": true, "isSynchronous": false @@ -15546,7 +18773,7 @@ } ], "description": "Searches for call messages. Returns the results in reverse chronological order (i. e., in order of decreasing message_id). For optimal performance the number of returned messages is chosen by the library", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "messages", "isFunction": true, "isSynchronous": false @@ -15562,11 +18789,11 @@ { "name": "limit", "type": "int32", - "description": "Maximum number of messages to be returned" + "description": "The maximum number of messages to be returned" } ], "description": "Returns information about the recent locations of chat members that were sent to the chat. Returns up to 1 location message per user", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "messages", "isFunction": true, "isSynchronous": false @@ -15574,8 +18801,8 @@ { "name": "getActiveLiveLocationMessages", "methods": null, - "description": "Returns all active live locations that should be updated by the client. The list is persistent across application restarts only if the message database is used", - "inheritance": "BaseTLClass", + "description": "Returns all active live locations that should be updated by the application. The list is persistent across application restarts only if the message database is used", + "inheritance": "TLBaseClass", "return_type": "messages", "isFunction": true, "isSynchronous": false @@ -15595,7 +18822,7 @@ } ], "description": "Returns the last message sent in a chat no later than the specified date", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -15620,11 +18847,56 @@ } ], "description": "Returns approximate number of messages of the specified type in the chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "count", "isFunction": true, "isSynchronous": false }, + { + "name": "getChatScheduledMessages", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + } + ], + "description": "Returns all scheduled messages in a chat. The messages are returned in a reverse chronological order (i.e., in order of decreasing message_id)", + "inheritance": "TLBaseClass", + "return_type": "messages", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getMessagePublicForwards", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier of the message" + }, + { + "name": "message_id", + "type": "int53", + "description": "Message identifier" + }, + { + "name": "offset", + "type": "string", + "description": "Offset of the first entry to return as received from the previous request; use empty string to get first chunk of results" + }, + { + "name": "limit", + "type": "int32", + "description": "The maximum number of messages to be returned; must be positive and can't be greater than 100. Fewer messages may be returned than specified by the limit, even if the end of the list has not been reached" + } + ], + "description": "Returns forwarded copies of a channel message to another public channels. For optimal performance the number of returned messages is chosen by the library", + "inheritance": "TLBaseClass", + "return_type": "foundMessages", + "isFunction": true, + "isSynchronous": false + }, { "name": "removeNotification", "methods": [ @@ -15640,7 +18912,7 @@ } ], "description": "Removes an active notification from notification list. Needs to be called only if the notification is removed by the current user", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -15656,40 +18928,15 @@ { "name": "max_notification_id", "type": "int32", - "description": "Maximum identifier of removed notifications" + "description": "The maximum identifier of removed notifications" } ], "description": "Removes a group of active notifications. Needs to be called only if the notification group is removed by the current user", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false }, - { - "name": "getPublicMessageLink", - "methods": [ - { - "name": "chat_id", - "type": "int53", - "description": "Identifier of the chat to which the message belongs" - }, - { - "name": "message_id", - "type": "int53", - "description": "Identifier of the message" - }, - { - "name": "for_album", - "type": "Bool", - "description": "Pass true if a link for a whole media album should be returned" - } - ], - "description": "Returns a public HTTPS link to a message. Available only for messages in public supergroups and channels", - "inheritance": "BaseTLClass", - "return_type": "publicMessageLink", - "isFunction": true, - "isSynchronous": false - }, { "name": "getMessageLink", "methods": [ @@ -15702,11 +18949,61 @@ "name": "message_id", "type": "int53", "description": "Identifier of the message" + }, + { + "name": "for_album", + "type": "Bool", + "description": "Pass true to create a link for the whole media album" + }, + { + "name": "for_comment", + "type": "Bool", + "description": "Pass true to create a link to the message as a channel post comment, or from a message thread" } ], - "description": "Returns a private HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels. The link will work only for members of the chat", - "inheritance": "BaseTLClass", - "return_type": "httpUrl", + "description": "Returns an HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels. This is an offline request", + "inheritance": "TLBaseClass", + "return_type": "messageLink", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getMessageEmbeddingCode", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Identifier of the chat to which the message belongs" + }, + { + "name": "message_id", + "type": "int53", + "description": "Identifier of the message" + }, + { + "name": "for_album", + "type": "Bool", + "description": "Pass true to return an HTML code for embedding of the whole media album" + } + ], + "description": "Returns an HTML code for embedding the message. Available only for messages in supergroups and channels with a username", + "inheritance": "TLBaseClass", + "return_type": "text", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getMessageLinkInfo", + "methods": [ + { + "name": "url", + "type": "string", + "description": "The message link in the format \"https://t.me/c/...\", or \"tg://privatepost?...\", or \"https://t.me/username/...\", or \"tg://resolve?...\"" + } + ], + "description": "Returns information about a public or private message link", + "inheritance": "TLBaseClass", + "return_type": "messageLinkInfo", "isFunction": true, "isSynchronous": false }, @@ -15718,20 +19015,20 @@ "type": "int53", "description": "Target chat" }, + { + "name": "message_thread_id", + "type": "int53", + "description": "If not 0, a message thread identifier in which the message will be sent" + }, { "name": "reply_to_message_id", "type": "int53", "description": "Identifier of the message to reply to or 0" }, { - "name": "disable_notification", - "type": "Bool", - "description": "Pass true to disable notification for the message. Not supported in secret chats" - }, - { - "name": "from_background", - "type": "Bool", - "description": "Pass true if the message is sent from the background" + "name": "options", + "type": "messageSendOptions", + "description": "Options to be used to send the message" }, { "name": "reply_markup", @@ -15745,7 +19042,7 @@ } ], "description": "Sends a message. Returns the sent message", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -15758,20 +19055,20 @@ "type": "int53", "description": "Target chat" }, + { + "name": "message_thread_id", + "type": "int53", + "description": "If not 0, a message thread identifier in which the messages will be sent" + }, { "name": "reply_to_message_id", "type": "int53", "description": "Identifier of a message to reply to or 0" }, { - "name": "disable_notification", - "type": "Bool", - "description": "Pass true to disable notification for the messages. Not supported in secret chats" - }, - { - "name": "from_background", - "type": "Bool", - "description": "Pass true if the messages are sent from the background" + "name": "options", + "type": "messageSendOptions", + "description": "Options to be used to send the messages" }, { "name": "input_message_contents", @@ -15780,7 +19077,7 @@ } ], "description": "Sends messages grouped together into an album. Currently only photo and video messages can be grouped into an album. Returns sent messages", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "messages", "isFunction": true, "isSynchronous": false @@ -15801,11 +19098,11 @@ { "name": "parameter", "type": "string", - "description": "A hidden parameter sent to the bot for deep linking purposes (https://api.telegram.org/bots#deep-linking)" + "description": "A hidden parameter sent to the bot for deep linking purposes (https://core.telegram.org/bots#deep-linking)" } ], "description": "Invites a bot to a chat (if it is not yet a member) and sends it the /start command. Bots can't be invited to a private chat other than the chat with the bot. Bots can't be invited to channels (although they can be added as admins) and secret chats. Returns the sent message", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -15818,20 +19115,20 @@ "type": "int53", "description": "Target chat" }, + { + "name": "message_thread_id", + "type": "int53", + "description": "If not 0, a message thread identifier in which the message will be sent" + }, { "name": "reply_to_message_id", "type": "int53", "description": "Identifier of a message to reply to or 0" }, { - "name": "disable_notification", - "type": "Bool", - "description": "Pass true to disable notification for the message. Not supported in secret chats" - }, - { - "name": "from_background", - "type": "Bool", - "description": "Pass true if the message is sent from background" + "name": "options", + "type": "messageSendOptions", + "description": "Options to be used to send the message" }, { "name": "query_id", @@ -15850,7 +19147,7 @@ } ], "description": "Sends the result of an inline query as a message. Returns the sent message. Always clears a chat draft message", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -15871,26 +19168,46 @@ { "name": "message_ids", "type": "vector", - "description": "Identifiers of the messages to forward" + "description": "Identifiers of the messages to forward. Message identifiers must be in a strictly increasing order" }, { - "name": "disable_notification", - "type": "Bool", - "description": "Pass true to disable notification for the message, doesn't work if messages are forwarded to a secret chat" + "name": "options", + "type": "messageSendOptions", + "description": "Options to be used to send the messages" }, { - "name": "from_background", + "name": "send_copy", "type": "Bool", - "description": "Pass true if the message is sent from the background" + "description": "True, if content of the messages needs to be copied without links to the original messages. Always true if the messages are forwarded to a secret chat" }, { - "name": "as_album", + "name": "remove_caption", "type": "Bool", - "description": "True, if the messages should be grouped into an album after forwarding. For this to work, no more than 10 messages may be forwarded, and all of them must be photo or video messages" + "description": "True, if media caption of message copies needs to be removed. Ignored if send_copy is false" } ], "description": "Forwards previously sent messages. Returns the forwarded messages in the same order as the message identifiers passed in message_ids. If a message can't be forwarded, null will be returned instead of the message", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "messages", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "resendMessages", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Identifier of the chat to send messages" + }, + { + "name": "message_ids", + "type": "vector", + "description": "Identifiers of the messages to resend. Message identifiers must be in a strictly increasing order" + } + ], + "description": "Resends messages which failed to send. Can be called only for messages for which messageSendingStateFailed.can_retry is true and after specified in messageSendingStateFailed.retry_after time passed. If a message is re-sent, the corresponding failed to send message is deleted. Returns the sent messages in the same order as the message identifiers passed in message_ids. If a message can't be re-sent, null will be returned instead of the message", + "inheritance": "TLBaseClass", "return_type": "messages", "isFunction": true, "isSynchronous": false @@ -15910,7 +19227,7 @@ } ], "description": "Changes the current TTL setting (sets a new self-destruct timer) in a secret chat and sends the corresponding message", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -15925,7 +19242,7 @@ } ], "description": "Sends a notification about a screenshot taken in a chat. Supported only in private and secret chats", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -15960,7 +19277,7 @@ } ], "description": "Adds a local message to a chat. The message is persistent across application restarts only if the message database is used. Returns the added message", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -15985,7 +19302,7 @@ } ], "description": "Deletes messages", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16004,8 +19321,8 @@ "description": "User identifier" } ], - "description": "Deletes all messages sent by the specified user to a chat. Supported only in supergroups; requires can_delete_messages administrator privileges", - "inheritance": "BaseTLClass", + "description": "Deletes all messages sent by the specified user to a chat. Supported only for supergroups; requires can_delete_messages administrator privileges", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16035,7 +19352,7 @@ } ], "description": "Edits the text of a message (or a text of a game message). Returns the edited message after the edit is completed on the server side", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -16065,7 +19382,7 @@ } ], "description": "Edits the message content of a live location. Messages can be edited for a limited period of time specified in the live location. Returns the edited message after the edit is completed on the server side", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -16095,7 +19412,7 @@ } ], "description": "Edits the content of a message with an animation, an audio, a document, a photo or a video. The media in the message can't be replaced if the message was set to self-destruct. Media can't be replaced by self-destructing media. Media in an album can be edited only to contain a photo or a video. Returns the edited message after the edit is completed on the server side", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -16125,7 +19442,7 @@ } ], "description": "Edits the message content caption. Returns the edited message after the edit is completed on the server side", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -16150,7 +19467,7 @@ } ], "description": "Edits the message reply markup; for bots only. Returns the edited message after the edit is completed on the server side", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -16175,7 +19492,7 @@ } ], "description": "Edits the text of an inline text or game message sent via a bot; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16200,7 +19517,7 @@ } ], "description": "Edits the content of a live location in an inline message sent via a bot; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16225,7 +19542,7 @@ } ], "description": "Edits the content of a message with an animation, an audio, a document, a photo or a video in an inline message sent via a bot; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16250,7 +19567,7 @@ } ], "description": "Edits the caption of an inline message sent via a bot; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16270,7 +19587,32 @@ } ], "description": "Edits the reply markup of an inline message sent via a bot; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "editMessageSchedulingState", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "The chat the message belongs to" + }, + { + "name": "message_id", + "type": "int53", + "description": "Identifier of the message" + }, + { + "name": "scheduling_state", + "type": "MessageSchedulingState", + "description": "The new message scheduling state. Pass null to send the message immediately" + } + ], + "description": "Edits the time when a scheduled message will be sent. Scheduling state of all messages in the same album or forwarded together with the message will be also changed", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16284,8 +19626,8 @@ "description": "The text in which to look for entites" } ], - "description": "Returns all entities (mentions, hashtags, cashtags, bot commands, URLs, and email addresses) contained in the text. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Returns all entities (mentions, hashtags, cashtags, bot commands, bank card numbers, URLs, and email addresses) contained in the text. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "textEntities", "isFunction": true, "isSynchronous": true @@ -16296,7 +19638,7 @@ { "name": "text", "type": "string", - "description": "The text which should be parsed" + "description": "The text to parse" }, { "name": "parse_mode", @@ -16304,8 +19646,38 @@ "description": "Text parse mode" } ], - "description": "Parses Bold, Italic, Code, Pre, PreCode and TextUrl entities contained in the text. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Parses Bold, Italic, Underline, Strikethrough, Code, Pre, PreCode, TextUrl and MentionName entities contained in the text. Can be called synchronously", + "inheritance": "TLBaseClass", + "return_type": "formattedText", + "isFunction": true, + "isSynchronous": true + }, + { + "name": "parseMarkdown", + "methods": [ + { + "name": "text", + "type": "formattedText", + "description": "The text to parse. For example, \"__italic__ ~~strikethrough~~ **bold** `code` ```pre``` __[italic__ text_url](telegram.org) __italic**bold italic__bold**\"" + } + ], + "description": "Parses Markdown entities in a human-friendly format, ignoring markup errors. Can be called synchronously", + "inheritance": "TLBaseClass", + "return_type": "formattedText", + "isFunction": true, + "isSynchronous": true + }, + { + "name": "getMarkdownText", + "methods": [ + { + "name": "text", + "type": "formattedText", + "description": "The text" + } + ], + "description": "Replaces text entities with Markdown formatting in a human-friendly format. Entities that can't be represented in Markdown unambiguously are kept as is. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "formattedText", "isFunction": true, "isSynchronous": true @@ -16319,8 +19691,8 @@ "description": "The name of the file or path to the file" } ], - "description": "Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Returns the MIME type of a file, guessed by its extension. Returns an empty string on failure. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "text", "isFunction": true, "isSynchronous": true @@ -16334,8 +19706,8 @@ "description": "The MIME type of the file" } ], - "description": "Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Returns the extension of a file, guessed by its MIME type. Returns an empty string on failure. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "text", "isFunction": true, "isSynchronous": true @@ -16349,8 +19721,8 @@ "description": "File name or path to the file" } ], - "description": "Removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "text", "isFunction": true, "isSynchronous": true @@ -16379,8 +19751,8 @@ "description": "Language pack key of the string to be returned" } ], - "description": "Returns a string stored in the local database from the specified localization target and language pack by its key. Returns a 404 error if the string is not found. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Returns a string stored in the local database from the specified localization target and language pack by its key. Returns a 404 error if the string is not found. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "LanguagePackStringValue", "isFunction": true, "isSynchronous": true @@ -16394,8 +19766,8 @@ "description": "The JSON-serialized string" } ], - "description": "Converts a JSON-serialized string to corresponding JsonValue object. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Converts a JSON-serialized string to corresponding JsonValue object. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "JsonValue", "isFunction": true, "isSynchronous": true @@ -16409,8 +19781,8 @@ "description": "The JsonValue object" } ], - "description": "Converts a JsonValue object to corresponding JSON-serialized string. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Converts a JsonValue object to corresponding JSON-serialized string. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "text", "isFunction": true, "isSynchronous": true @@ -16431,15 +19803,50 @@ { "name": "option_ids", "type": "vector", - "description": "0-based identifiers of options, chosen by the user. Currently user can't choose more than 1 option" + "description": "0-based identifiers of answer options, chosen by the user. User can choose more than 1 answer option only is the poll allows multiple answers" } ], - "description": "Changes user answer to a poll", - "inheritance": "BaseTLClass", + "description": "Changes the user answer to a poll. A poll in quiz mode can be answered only once", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false }, + { + "name": "getPollVoters", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Identifier of the chat to which the poll belongs" + }, + { + "name": "message_id", + "type": "int53", + "description": "Identifier of the message containing the poll" + }, + { + "name": "option_id", + "type": "int32", + "description": "0-based identifier of the answer option" + }, + { + "name": "offset", + "type": "int32", + "description": "Number of users to skip in the result; must be non-negative" + }, + { + "name": "limit", + "type": "int32", + "description": "The maximum number of users to be returned; must be positive and can't be greater than 50. Fewer users may be returned than specified by the limit, even if the end of the voter list has not been reached" + } + ], + "description": "Returns users voted for the specified option in a non-anonymous polls. For the optimal performance the number of returned users is chosen by the library", + "inheritance": "TLBaseClass", + "return_type": "users", + "isFunction": true, + "isSynchronous": false + }, { "name": "stopPoll", "methods": [ @@ -16460,11 +19867,81 @@ } ], "description": "Stops a poll. A poll in a message can be stopped when the message has can_be_edited flag set", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false }, + { + "name": "hideSuggestedAction", + "methods": [ + { + "name": "action", + "type": "SuggestedAction", + "description": "Suggested action to hide" + } + ], + "description": "Hides a suggested action", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getLoginUrlInfo", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier of the message with the button" + }, + { + "name": "message_id", + "type": "int53", + "description": "Message identifier of the message with the button" + }, + { + "name": "button_id", + "type": "int32", + "description": "Button identifier" + } + ], + "description": "Returns information about a button of type inlineKeyboardButtonTypeLoginUrl. The method needs to be called when the user presses the button", + "inheritance": "TLBaseClass", + "return_type": "LoginUrlInfo", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getLoginUrl", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier of the message with the button" + }, + { + "name": "message_id", + "type": "int53", + "description": "Message identifier of the message with the button" + }, + { + "name": "button_id", + "type": "int32", + "description": "Button identifier" + }, + { + "name": "allow_write_access", + "type": "Bool", + "description": "True, if the user allowed the bot to send them messages" + } + ], + "description": "Returns an HTTP URL which can be used to automatically authorize the user on a website after clicking an inline button of type inlineKeyboardButtonTypeLoginUrl. Use the method getLoginUrlInfo to find whether a prior user confirmation is needed. If an error is returned, then the button must be handled as an ordinary URL button", + "inheritance": "TLBaseClass", + "return_type": "httpUrl", + "isFunction": true, + "isSynchronous": false + }, { "name": "getInlineQueryResults", "methods": [ @@ -16476,7 +19953,7 @@ { "name": "chat_id", "type": "int53", - "description": "Identifier of the chat, where the query was sent" + "description": "Identifier of the chat where the query was sent" }, { "name": "user_location", @@ -16495,7 +19972,7 @@ } ], "description": "Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "inlineQueryResults", "isFunction": true, "isSynchronous": false @@ -16540,7 +20017,7 @@ } ], "description": "Sets the result of an inline query; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16565,7 +20042,7 @@ } ], "description": "Sends a callback query to a bot and returns an answer. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "callbackQueryAnswer", "isFunction": true, "isSynchronous": false @@ -16600,7 +20077,7 @@ } ], "description": "Sets the result of a callback query; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16625,7 +20102,7 @@ } ], "description": "Sets the result of a shipping query; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16645,7 +20122,7 @@ } ], "description": "Sets the result of a pre-checkout query; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16685,7 +20162,7 @@ } ], "description": "Updates the game score of the specified user in the game; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "message", "isFunction": true, "isSynchronous": false @@ -16720,7 +20197,7 @@ } ], "description": "Updates the game score of the specified user in a game; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16745,7 +20222,7 @@ } ], "description": "Returns the high scores for a game and some part of the high score table in the range of the specified user; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "gameHighScores", "isFunction": true, "isSynchronous": false @@ -16765,7 +20242,7 @@ } ], "description": "Returns game high scores and some part of the high score table in the range of the specified user; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "gameHighScores", "isFunction": true, "isSynchronous": false @@ -16785,7 +20262,7 @@ } ], "description": "Deletes the default reply markup from a chat. Must be called after a one-time keyboard or a ForceReply reply markup has been used. UpdateChatReplyMarkup will be sent if the reply markup will be changed", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16798,6 +20275,11 @@ "type": "int53", "description": "Chat identifier" }, + { + "name": "message_thread_id", + "type": "int53", + "description": "If not 0, a message thread identifier in which the action was performed" + }, { "name": "action", "type": "ChatAction", @@ -16805,7 +20287,7 @@ } ], "description": "Sends a notification about user activity in a chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16820,7 +20302,7 @@ } ], "description": "Informs TDLib that the chat is opened by the user. Many useful activities depend on the chat being opened or closed (e.g., in supergroups and channels all updates are received only for opened chats)", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16835,7 +20317,7 @@ } ], "description": "Informs TDLib that the chat is closed by the user. Many useful activities depend on the chat being opened or closed", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16848,6 +20330,11 @@ "type": "int53", "description": "Chat identifier" }, + { + "name": "message_thread_id", + "type": "int53", + "description": "If not 0, a message thread identifier in which the messages are being viewed" + }, { "name": "message_ids", "type": "vector", @@ -16856,11 +20343,11 @@ { "name": "force_read", "type": "Bool", - "description": "True, if messages in closed chats should be marked as read" + "description": "True, if messages in closed chats should be marked as read by the request" } ], "description": "Informs TDLib that messages are being viewed by the user. Many useful activities depend on whether the messages are currently being viewed or not (e.g., marking messages as read, incrementing a view counter, updating a view counter, removing deleted messages in supergroups and channels)", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16880,7 +20367,7 @@ } ], "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). An updateMessageContentOpened update will be generated if something has changed", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16895,7 +20382,7 @@ } ], "description": "Marks all mentions in a chat as read", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -16915,7 +20402,7 @@ } ], "description": "Returns an existing chat corresponding to a given user", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chat", "isFunction": true, "isSynchronous": false @@ -16935,7 +20422,7 @@ } ], "description": "Returns an existing chat corresponding to a known basic group", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chat", "isFunction": true, "isSynchronous": false @@ -16955,7 +20442,7 @@ } ], "description": "Returns an existing chat corresponding to a known supergroup or channel", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chat", "isFunction": true, "isSynchronous": false @@ -16970,7 +20457,7 @@ } ], "description": "Returns an existing chat corresponding to a known secret chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chat", "isFunction": true, "isSynchronous": false @@ -16990,7 +20477,7 @@ } ], "description": "Creates a new basic group and sends a corresponding messageBasicGroupChatCreate. Returns the newly created chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chat", "isFunction": true, "isSynchronous": false @@ -17012,10 +20499,15 @@ "name": "description", "type": "string", "description": "Chat description; 0-255 characters" + }, + { + "name": "location", + "type": "chatLocation", + "description": "Chat location if a location-based supergroup is being created" } ], "description": "Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chat", "isFunction": true, "isSynchronous": false @@ -17030,7 +20522,7 @@ } ], "description": "Creates a new secret chat. Returns the newly created chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chat", "isFunction": true, "isSynchronous": false @@ -17044,12 +20536,151 @@ "description": "Identifier of the chat to upgrade" } ], - "description": "Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom. Deactivates the original basic group", - "inheritance": "BaseTLClass", + "description": "Creates a new supergroup from an existing basic group and sends a corresponding messageChatUpgradeTo and messageChatUpgradeFrom; requires creator privileges. Deactivates the original basic group", + "inheritance": "TLBaseClass", "return_type": "chat", "isFunction": true, "isSynchronous": false }, + { + "name": "getChatListsToAddChat", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + } + ], + "description": "Returns chat lists to which the chat can be added. This is an offline request", + "inheritance": "TLBaseClass", + "return_type": "chatLists", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "addChatToList", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "chat_list", + "type": "ChatList", + "description": "The chat list. Use getChatListsToAddChat to get suitable chat lists" + } + ], + "description": "Adds a chat to a chat list. A chat can't be simultaneously in Main and Archive chat lists, so it is automatically removed from another one if needed", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getChatFilter", + "methods": [ + { + "name": "chat_filter_id", + "type": "int32", + "description": "Chat filter identifier" + } + ], + "description": "Returns information about a chat filter by its identifier", + "inheritance": "TLBaseClass", + "return_type": "chatFilter", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "createChatFilter", + "methods": [ + { + "name": "filter", + "type": "chatFilter", + "description": "Chat filter" + } + ], + "description": "Creates new chat filter. Returns information about the created chat filter", + "inheritance": "TLBaseClass", + "return_type": "chatFilterInfo", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "editChatFilter", + "methods": [ + { + "name": "chat_filter_id", + "type": "int32", + "description": "Chat filter identifier" + }, + { + "name": "filter", + "type": "chatFilter", + "description": "The edited chat filter" + } + ], + "description": "Edits existing chat filter. Returns information about the edited chat filter", + "inheritance": "TLBaseClass", + "return_type": "chatFilterInfo", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "deleteChatFilter", + "methods": [ + { + "name": "chat_filter_id", + "type": "int32", + "description": "Chat filter identifier" + } + ], + "description": "Deletes existing chat filter", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "reorderChatFilters", + "methods": [ + { + "name": "chat_filter_ids", + "type": "vector", + "description": "Identifiers of chat filters in the new correct order" + } + ], + "description": "Changes the order of chat filters", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getRecommendedChatFilters", + "methods": null, + "description": "Returns recommended chat filters for the current user", + "inheritance": "TLBaseClass", + "return_type": "recommendedChatFilters", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getChatFilterDefaultIconName", + "methods": [ + { + "name": "filter", + "type": "chatFilter", + "description": "Chat filter" + } + ], + "description": "Returns default icon name for a filter. Can be called synchronously", + "inheritance": "TLBaseClass", + "return_type": "text", + "isFunction": true, + "isSynchronous": true + }, { "name": "setChatTitle", "methods": [ @@ -17064,8 +20695,8 @@ "description": "New title of the chat; 1-128 characters" } ], - "description": "Changes the chat title. Supported only for basic groups, supergroups and channels. Requires administrator rights in basic groups and the appropriate administrator rights in supergroups and channels. The title will not be changed until the request to the server has been completed", - "inheritance": "BaseTLClass", + "description": "Changes the chat title. Supported only for basic groups, supergroups and channels. Requires can_change_info rights", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17080,12 +20711,32 @@ }, { "name": "photo", - "type": "InputFile", - "description": "New chat photo. You can use a zero InputFileId to delete the chat photo. Files that are accessible only by HTTP URL are not acceptable" + "type": "InputChatPhoto", + "description": "New chat photo. Pass null to delete the chat photo" } ], - "description": "Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires administrator rights in basic groups and the appropriate administrator rights in supergroups and channels. The photo will not be changed before request to the server has been completed", - "inheritance": "BaseTLClass", + "description": "Changes the photo of a chat. Supported only for basic groups, supergroups and channels. Requires can_change_info rights", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "setChatPermissions", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "permissions", + "type": "chatPermissions", + "description": "New non-administrator members permissions in the chat" + } + ], + "description": "Changes the chat members permissions. Supported only for basic groups and supergroups. Requires can_restrict_members administrator right", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17098,6 +20749,11 @@ "type": "int53", "description": "Chat identifier" }, + { + "name": "message_thread_id", + "type": "int53", + "description": "If not 0, a message thread identifier in which the draft was changed" + }, { "name": "draft_message", "type": "draftMessage", @@ -17105,7 +20761,7 @@ } ], "description": "Changes the draft message in a chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17121,31 +20777,11 @@ { "name": "notification_settings", "type": "chatNotificationSettings", - "description": "New notification settings for the chat" + "description": "New notification settings for the chat. If the chat is muted for more than 1 week, it is considered to be muted forever" } ], - "description": "Changes the notification settings of a chat", - "inheritance": "BaseTLClass", - "return_type": "ok", - "isFunction": true, - "isSynchronous": false - }, - { - "name": "toggleChatIsPinned", - "methods": [ - { - "name": "chat_id", - "type": "int53", - "description": "Chat identifier" - }, - { - "name": "is_pinned", - "type": "Bool", - "description": "New value of is_pinned" - } - ], - "description": "Changes the pinned state of a chat. You can pin up to GetOption(\"pinned_chat_count_max\") non-secret chats and the same number of secret chats", - "inheritance": "BaseTLClass", + "description": "Changes the notification settings of a chat. Notification settings of a chat with the current user (Saved Messages) can't be changed", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17165,7 +20801,27 @@ } ], "description": "Changes the marked as unread state of a chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "toggleChatIsBlocked", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "is_blocked", + "type": "Bool", + "description": "New value of is_blocked" + } + ], + "description": "Changes the block state of a chat. Currently, only private chats and supergroups can be blocked", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17185,7 +20841,7 @@ } ], "description": "Changes the value of the default disable_notification parameter, used when a message is sent to a chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17204,8 +20860,88 @@ "description": "New value of client_data" } ], - "description": "Changes client data associated with a chat", - "inheritance": "BaseTLClass", + "description": "Changes application-specific data associated with a chat", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "setChatDescription", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Identifier of the chat" + }, + { + "name": "description", + "type": "string", + "description": "New chat description; 0-255 characters" + } + ], + "description": "Changes information about a chat. Available for basic groups, supergroups, and channels. Requires can_change_info rights", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "setChatDiscussionGroup", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Identifier of the channel chat. Pass 0 to remove a link from the supergroup passed in the second argument to a linked channel chat (requires can_pin_messages rights in the supergroup)" + }, + { + "name": "discussion_chat_id", + "type": "int53", + "description": "Identifier of a new channel's discussion group. Use 0 to remove the discussion group. Use the method getSuitableDiscussionChats to find all suitable groups. Basic group chats need to be first upgraded to supergroup chats. If new chat members don't have access to old messages in the supergroup, then toggleSupergroupIsAllHistoryAvailable needs to be used first to change that" + } + ], + "description": "Changes the discussion group of a channel chat; requires can_change_info rights in the channel if it is specified", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "setChatLocation", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "location", + "type": "chatLocation", + "description": "New location for the chat; must be valid and not null" + } + ], + "description": "Changes the location of a chat. Available only for some location-based supergroups, use supergroupFullInfo.can_set_location to check whether the method is allowed to use", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "setChatSlowModeDelay", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "slow_mode_delay", + "type": "int32", + "description": "New slow mode delay for the chat; must be one of 0, 10, 30, 60, 300, 900, 3600" + } + ], + "description": "Changes the slow mode delay of a chat. Available only for supergroups; requires can_restrict_members rights", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17229,8 +20965,8 @@ "description": "True, if there should be no notification about the pinned message" } ], - "description": "Pins a message in a chat; requires appropriate administrator rights in the group or channel", - "inheritance": "BaseTLClass", + "description": "Pins a message in a chat; requires can_pin_messages rights", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17244,8 +20980,8 @@ "description": "Identifier of the chat" } ], - "description": "Removes the pinned message from a chat; requires appropriate administrator rights in the group or channel", - "inheritance": "BaseTLClass", + "description": "Removes the pinned message from a chat; requires can_pin_messages rights in the group or channel", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17260,7 +20996,7 @@ } ], "description": "Adds current user as a new member to a chat. Private and secret chats can't be joined using this method", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17275,7 +21011,7 @@ } ], "description": "Removes current user from chat members. Private and secret chats can't be left using this method", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17300,7 +21036,7 @@ } ], "description": "Adds a new member to a chat. Members can't be added to private or secret chats. Members will not be added until the chat state has been synchronized with the server", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17320,7 +21056,7 @@ } ], "description": "Adds multiple new members to a chat. Currently this option is only available for supergroups and channels. This option can't be used to join a chat. Members can't be added to a channel if it has more than 200 members. Members will not be added until the chat state has been synchronized with the server", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17344,8 +21080,42 @@ "description": "The new status of the member in the chat" } ], - "description": "Changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for adding new members to the chat; instead, use addChatMember. The chat member status will not be changed until it has been synchronized with the server", - "inheritance": "BaseTLClass", + "description": "Changes the status of a chat member, needs appropriate privileges. This function is currently not suitable for adding new members to the chat and transferring chat ownership; instead, use addChatMember or transferChatOwnership. The chat member status will not be changed until it has been synchronized with the server", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "canTransferOwnership", + "methods": null, + "description": "Checks whether the current session can be used to transfer a chat ownership to another user", + "inheritance": "TLBaseClass", + "return_type": "CanTransferOwnershipResult", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "transferChatOwnership", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "user_id", + "type": "int32", + "description": "Identifier of the user to which transfer the ownership. The ownership can't be transferred to a bot or to a deleted user" + }, + { + "name": "password", + "type": "string", + "description": "The password of the current user" + } + ], + "description": "Changes the owner of a chat. The current user must be a current owner of the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17365,7 +21135,7 @@ } ], "description": "Returns information about a single member of a chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chatMember", "isFunction": true, "isSynchronous": false @@ -17395,7 +21165,7 @@ } ], "description": "Searches for a specified query in the first name, last name and username of the members of a specified chat. Requires administrator rights in channels", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chatMembers", "isFunction": true, "isSynchronous": false @@ -17409,9 +21179,9 @@ "description": "Chat identifier" } ], - "description": "Returns a list of users who are administrators of the chat", - "inheritance": "BaseTLClass", - "return_type": "users", + "description": "Returns a list of administrators of the chat with their custom titles", + "inheritance": "TLBaseClass", + "return_type": "chatAdministrators", "isFunction": true, "isSynchronous": false }, @@ -17425,7 +21195,7 @@ } ], "description": "Clears draft messages in all chats", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17445,7 +21215,7 @@ } ], "description": "Returns list of chats with non-default notification settings", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chats", "isFunction": true, "isSynchronous": false @@ -17460,7 +21230,7 @@ } ], "description": "Returns the notification settings for chats of a given type", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "scopeNotificationSettings", "isFunction": true, "isSynchronous": false @@ -17480,7 +21250,7 @@ } ], "description": "Changes notification settings for chats of a given type", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17489,7 +21259,32 @@ "name": "resetAllNotificationSettings", "methods": null, "description": "Resets all notification settings to their default values. By default, all chats are unmuted, the sound is set to \"default\" and message previews are shown", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "toggleChatIsPinned", + "methods": [ + { + "name": "chat_list", + "type": "ChatList", + "description": "Chat list in which to change the pinned state of the chat" + }, + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "is_pinned", + "type": "Bool", + "description": "True, if the chat is pinned" + } + ], + "description": "Changes the pinned state of a chat. There can be up to GetOption(\"pinned_chat_count_max\")/GetOption(\"pinned_archived_chat_count_max\") pinned non-secret chats and the same number of secret chats in the main/arhive chat list", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17497,6 +21292,11 @@ { "name": "setPinnedChats", "methods": [ + { + "name": "chat_list", + "type": "ChatList", + "description": "Chat list in which to change the order of pinned chats" + }, { "name": "chat_ids", "type": "vector", @@ -17504,7 +21304,7 @@ } ], "description": "Changes the order of pinned chats", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17539,7 +21339,7 @@ } ], "description": "Downloads a file from the cloud. Download progress and completion of the download will be notified through updateFile updates", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "file", "isFunction": true, "isSynchronous": false @@ -17559,7 +21359,7 @@ } ], "description": "Returns file downloaded prefix size from a given offset", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "count", "isFunction": true, "isSynchronous": false @@ -17579,7 +21379,7 @@ } ], "description": "Stops the downloading of a file. If a file has already been downloaded, does nothing", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17604,7 +21404,7 @@ } ], "description": "Asynchronously uploads a file to the cloud without sending it in a message. updateFile will be used to notify about upload progress and successful completion of the upload. The file will not have a persistent remote identifier until it will be sent in a message", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "file", "isFunction": true, "isSynchronous": false @@ -17619,7 +21419,7 @@ } ], "description": "Stops the uploading of a file. Supported only for files uploaded by using uploadFile. For other files the behavior is undefined", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17643,8 +21443,8 @@ "description": "The data to write" } ], - "description": "Writes a part of a generated file. This method is intended to be used only if the client has no direct access to TDLib's file system, because it is usually slower than a direct write to the destination file", - "inheritance": "BaseTLClass", + "description": "Writes a part of a generated file. This method is intended to be used only if the application has no direct access to TDLib's file system, because it is usually slower than a direct write to the destination file", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17668,8 +21468,8 @@ "description": "The number of bytes already generated" } ], - "description": "Informs TDLib on a file generation prograss", - "inheritance": "BaseTLClass", + "description": "Informs TDLib on a file generation progress", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17689,7 +21489,7 @@ } ], "description": "Finishes the file generation", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17713,8 +21513,8 @@ "description": "Number of bytes to read. An error will be returned if there are not enough bytes available in the file from the specified position. Pass 0 to read all available data from the specified position" } ], - "description": "Reads a part of a file from the TDLib file cache and returns read bytes. This method is intended to be used only if the client has no direct access to TDLib's file system, because it is usually slower than a direct read from the file", - "inheritance": "BaseTLClass", + "description": "Reads a part of a file from the TDLib file cache and returns read bytes. This method is intended to be used only if the application has no direct access to TDLib's file system, because it is usually slower than a direct read from the file", + "inheritance": "TLBaseClass", "return_type": "filePart", "isFunction": true, "isSynchronous": false @@ -17729,7 +21529,7 @@ } ], "description": "Deletes a file from the TDLib file cache", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17743,8 +21543,8 @@ "description": "Chat identifier" } ], - "description": "Generates a new invite link for a chat; the previously generated link is revoked. Available for basic groups, supergroups, and channels. In basic groups this can be called only by the group's creator; in supergroups and channels this requires appropriate administrator rights", - "inheritance": "BaseTLClass", + "description": "Generates a new invite link for a chat; the previously generated link is revoked. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right", + "inheritance": "TLBaseClass", "return_type": "chatInviteLink", "isFunction": true, "isSynchronous": false @@ -17759,7 +21559,7 @@ } ], "description": "Checks the validity of an invite link for a chat and returns information about the corresponding chat", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chatInviteLinkInfo", "isFunction": true, "isSynchronous": false @@ -17774,7 +21574,7 @@ } ], "description": "Uses an invite link to add the current user to the chat if possible. The new member will not be added until the chat state has been synchronized with the server", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chat", "isFunction": true, "isSynchronous": false @@ -17790,11 +21590,16 @@ { "name": "protocol", "type": "callProtocol", - "description": "Description of the call protocols supported by the client" + "description": "Description of the call protocols supported by the application" + }, + { + "name": "is_video", + "type": "Bool", + "description": "True, if a video call needs to be created" } ], "description": "Creates a new call", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "callId", "isFunction": true, "isSynchronous": false @@ -17810,11 +21615,31 @@ { "name": "protocol", "type": "callProtocol", - "description": "Description of the call protocols supported by the client" + "description": "Description of the call protocols supported by the application" } ], "description": "Accepts an incoming call", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "sendCallSignalingData", + "methods": [ + { + "name": "call_id", + "type": "int32", + "description": "Call identifier" + }, + { + "name": "data", + "type": "bytes", + "description": "The data" + } + ], + "description": "Sends call signaling data", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17837,6 +21662,11 @@ "type": "int32", "description": "The call duration, in seconds" }, + { + "name": "is_video", + "type": "Bool", + "description": "True, if the call was a video call" + }, { "name": "connection_id", "type": "int64", @@ -17844,7 +21674,7 @@ } ], "description": "Discards a call", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17866,10 +21696,15 @@ "name": "comment", "type": "string", "description": "An optional user comment if the rating is less than 5" + }, + { + "name": "problems", + "type": "vector", + "description": "List of the exact types of problems with the call, specified by the user" } ], "description": "Sends a call rating", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -17889,58 +21724,78 @@ } ], "description": "Sends debug information for a call", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false }, { - "name": "blockUser", + "name": "blockChatFromReplies", "methods": [ { - "name": "user_id", - "type": "int32", - "description": "User identifier" - } - ], - "description": "Adds a user to the blacklist", - "inheritance": "BaseTLClass", - "return_type": "ok", - "isFunction": true, - "isSynchronous": false - }, - { - "name": "unblockUser", - "methods": [ + "name": "message_id", + "type": "int53", + "description": "The identifier of an incoming message in the Replies chat" + }, { - "name": "user_id", - "type": "int32", - "description": "User identifier" + "name": "delete_message", + "type": "Bool", + "description": "Pass true if the message must be deleted" + }, + { + "name": "delete_all_messages", + "type": "Bool", + "description": "Pass true if all messages from the same sender must be deleted" + }, + { + "name": "report_spam", + "type": "Bool", + "description": "Pass true if the sender must be reported to the Telegram moderators" } ], - "description": "Removes a user from the blacklist", - "inheritance": "BaseTLClass", + "description": "Blocks an original sender of a message in the Replies chat", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false }, { - "name": "getBlockedUsers", + "name": "getBlockedChats", "methods": [ { "name": "offset", "type": "int32", - "description": "Number of users to skip in the result; must be non-negative" + "description": "Number of chats to skip in the result; must be non-negative" }, { "name": "limit", "type": "int32", - "description": "Maximum number of users to return; up to 100" + "description": "The maximum number of chats to return; up to 100" } ], - "description": "Returns users that were blocked by the current user", - "inheritance": "BaseTLClass", - "return_type": "users", + "description": "Returns chats that were blocked by the current user", + "inheritance": "TLBaseClass", + "return_type": "chats", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "addContact", + "methods": [ + { + "name": "contact", + "type": "contact", + "description": "The contact to add or edit; phone number can be empty and needs to be specified only if known, vCard is ignored" + }, + { + "name": "share_phone_number", + "type": "Bool", + "description": "True, if the new contact needs to be allowed to see current user's phone number. A corresponding rule to userPrivacySettingShowPhoneNumber will be added if needed. Use the field UserFullInfo.need_phone_number_privacy_exception to check whether the current user needs to be asked to share their phone number" + } + ], + "description": "Adds a user to the contact list or edits an existing contact by their user identifier", + "inheritance": "TLBaseClass", + "return_type": "ok", "isFunction": true, "isSynchronous": false }, @@ -17950,11 +21805,11 @@ { "name": "contacts", "type": "vector", - "description": "The list of contacts to import or edit, contact's vCard are ignored and are not imported" + "description": "The list of contacts to import or edit; contacts' vCard are ignored and are not imported" } ], - "description": "Adds new contacts or edits existing contacts; contacts' user identifiers are ignored", - "inheritance": "BaseTLClass", + "description": "Adds new contacts or edits existing contacts by their phone numbers; contacts' user identifiers are ignored", + "inheritance": "TLBaseClass", "return_type": "importedContacts", "isFunction": true, "isSynchronous": false @@ -17963,7 +21818,7 @@ "name": "getContacts", "methods": null, "description": "Returns all user contacts", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "users", "isFunction": true, "isSynchronous": false @@ -17979,11 +21834,11 @@ { "name": "limit", "type": "int32", - "description": "Maximum number of users to be returned" + "description": "The maximum number of users to be returned" } ], "description": "Searches for the specified query in the first names, last names and usernames of the known user contacts", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "users", "isFunction": true, "isSynchronous": false @@ -17998,7 +21853,7 @@ } ], "description": "Removes users from the contact list", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18007,7 +21862,7 @@ "name": "getImportedContactCount", "methods": null, "description": "Returns the total number of imported contacts", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "count", "isFunction": true, "isSynchronous": false @@ -18022,7 +21877,7 @@ } ], "description": "Changes imported contacts using the list of current user contacts saved on the device. Imports newly added contacts and, if at least the file database is enabled, deletes recently deleted contacts. Query result depends on the result of the previous query, so only one query is possible at the same time", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "importedContacts", "isFunction": true, "isSynchronous": false @@ -18031,7 +21886,22 @@ "name": "clearImportedContacts", "methods": null, "description": "Clears all imported contacts, contact list remains unchanged", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "sharePhoneNumber", + "methods": [ + { + "name": "user_id", + "type": "int32", + "description": "Identifier of the user with whom to share the phone number. The user must be a mutual contact" + } + ], + "description": "Shares the phone number of the current user with a mutual contact. Supposed to be called when the user clicks on chatActionBarSharePhoneNumber", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18052,12 +21922,12 @@ { "name": "limit", "type": "int32", - "description": "Maximum number of photos to be returned; up to 100" + "description": "The maximum number of photos to be returned; up to 100" } ], "description": "Returns the profile photos of a user. The result of this query may be outdated: some photos might have been deleted already", - "inheritance": "BaseTLClass", - "return_type": "userProfilePhotos", + "inheritance": "TLBaseClass", + "return_type": "chatPhotos", "isFunction": true, "isSynchronous": false }, @@ -18072,11 +21942,11 @@ { "name": "limit", "type": "int32", - "description": "Maximum number of stickers to be returned" + "description": "The maximum number of stickers to be returned" } ], "description": "Returns stickers from the installed sticker sets that correspond to a given emoji. If the emoji is not empty, favorite and recently used stickers may also be returned", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "stickers", "isFunction": true, "isSynchronous": false @@ -18092,11 +21962,11 @@ { "name": "limit", "type": "int32", - "description": "Maximum number of stickers to be returned" + "description": "The maximum number of stickers to be returned" } ], "description": "Searches for stickers from public sticker sets that correspond to a given emoji", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "stickers", "isFunction": true, "isSynchronous": false @@ -18111,7 +21981,7 @@ } ], "description": "Returns a list of installed sticker sets", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "stickerSets", "isFunction": true, "isSynchronous": false @@ -18132,20 +22002,31 @@ { "name": "limit", "type": "int32", - "description": "Maximum number of sticker sets to return" + "description": "The maximum number of sticker sets to return" } ], "description": "Returns a list of archived sticker sets", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "stickerSets", "isFunction": true, "isSynchronous": false }, { "name": "getTrendingStickerSets", - "methods": null, - "description": "Returns a list of trending sticker sets", - "inheritance": "BaseTLClass", + "methods": [ + { + "name": "offset", + "type": "int32", + "description": "The offset from which to return the sticker sets; must be non-negative" + }, + { + "name": "limit", + "type": "int32", + "description": "The maximum number of sticker sets to be returned; must be non-negative. Fewer sticker sets may be returned than specified by the limit, even if the end of the list has not been reached" + } + ], + "description": "Returns a list of trending sticker sets. For the optimal performance the number of returned sticker sets is chosen by the library", + "inheritance": "TLBaseClass", "return_type": "stickerSets", "isFunction": true, "isSynchronous": false @@ -18160,7 +22041,7 @@ } ], "description": "Returns a list of sticker sets attached to a file. Currently only photos and videos can have attached sticker sets", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "stickerSets", "isFunction": true, "isSynchronous": false @@ -18175,7 +22056,7 @@ } ], "description": "Returns information about a sticker set by its identifier", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "stickerSet", "isFunction": true, "isSynchronous": false @@ -18190,7 +22071,7 @@ } ], "description": "Searches for a sticker set by its name", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "stickerSet", "isFunction": true, "isSynchronous": false @@ -18211,11 +22092,11 @@ { "name": "limit", "type": "int32", - "description": "Maximum number of sticker sets to return" + "description": "The maximum number of sticker sets to return" } ], "description": "Searches for installed sticker sets by looking for specified query in their title and name", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "stickerSets", "isFunction": true, "isSynchronous": false @@ -18230,7 +22111,7 @@ } ], "description": "Searches for ordinary sticker sets by looking for specified query in their title and name. Excludes installed sticker sets from the results", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "stickerSets", "isFunction": true, "isSynchronous": false @@ -18255,7 +22136,7 @@ } ], "description": "Installs/uninstalls or activates/archives a sticker set", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18270,7 +22151,7 @@ } ], "description": "Informs the server that some trending sticker sets have been viewed by the user", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18290,7 +22171,7 @@ } ], "description": "Changes the order of installed sticker sets", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18305,7 +22186,7 @@ } ], "description": "Returns a list of recently used stickers", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "stickers", "isFunction": true, "isSynchronous": false @@ -18325,7 +22206,7 @@ } ], "description": "Manually adds a new sticker to the list of recently used stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first. Only stickers belonging to a sticker set can be added to this list", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "stickers", "isFunction": true, "isSynchronous": false @@ -18345,7 +22226,7 @@ } ], "description": "Removes a sticker from the list of recently used stickers", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18360,7 +22241,7 @@ } ], "description": "Clears the list of recently used stickers", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18369,7 +22250,7 @@ "name": "getFavoriteStickers", "methods": null, "description": "Returns favorite stickers", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "stickers", "isFunction": true, "isSynchronous": false @@ -18384,7 +22265,7 @@ } ], "description": "Adds a new sticker to the list of favorite stickers. The new sticker is added to the top of the list. If the sticker was already in the list, it is removed from the list first. Only stickers belonging to a sticker set can be added to this list", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18399,7 +22280,7 @@ } ], "description": "Removes a sticker from the list of favorite stickers", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18413,9 +22294,49 @@ "description": "Sticker file identifier" } ], - "description": "Returns emoji corresponding to a sticker", - "inheritance": "BaseTLClass", - "return_type": "stickerEmojis", + "description": "Returns emoji corresponding to a sticker. The list is only for informational purposes, because a sticker is always sent with a fixed emoji from the corresponding Sticker object", + "inheritance": "TLBaseClass", + "return_type": "emojis", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "searchEmojis", + "methods": [ + { + "name": "text", + "type": "string", + "description": "Text to search for" + }, + { + "name": "exact_match", + "type": "Bool", + "description": "True, if only emojis, which exactly match text needs to be returned" + }, + { + "name": "input_language_codes", + "type": "vector", + "description": "List of possible IETF language tags of the user's input language; may be empty if unknown" + } + ], + "description": "Searches for emojis by keywords. Supported only if the file database is enabled", + "inheritance": "TLBaseClass", + "return_type": "emojis", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getEmojiSuggestionsUrl", + "methods": [ + { + "name": "language_code", + "type": "string", + "description": "Language code for which the emoji replacements will be suggested" + } + ], + "description": "Returns an HTTP URL which can be used to automatically log in to the translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation", + "inheritance": "TLBaseClass", + "return_type": "httpUrl", "isFunction": true, "isSynchronous": false }, @@ -18423,7 +22344,7 @@ "name": "getSavedAnimations", "methods": null, "description": "Returns saved animations", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "animations", "isFunction": true, "isSynchronous": false @@ -18438,7 +22359,7 @@ } ], "description": "Manually adds a new animation to the list of saved animations. The new animation is added to the beginning of the list. If the animation was already in the list, it is removed first. Only non-secret video animations with MIME type \"video/mp4\" can be added to the list", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18453,7 +22374,7 @@ } ], "description": "Removes an animation from the list of saved animations", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18462,7 +22383,7 @@ "name": "getRecentInlineBots", "methods": null, "description": "Returns up to 20 recently used inline bots in the order of their last usage", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "users", "isFunction": true, "isSynchronous": false @@ -18478,11 +22399,11 @@ { "name": "limit", "type": "int32", - "description": "Maximum number of hashtags to be returned" + "description": "The maximum number of hashtags to be returned" } ], "description": "Searches for recently used hashtags by their prefix", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "hashtags", "isFunction": true, "isSynchronous": false @@ -18497,7 +22418,7 @@ } ], "description": "Removes a hashtag from the list of recently used hashtags", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18512,7 +22433,7 @@ } ], "description": "Returns a web page preview by the text of the message. Do not call this function too often. Returns a 404 error if the web page has no preview", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "webPage", "isFunction": true, "isSynchronous": false @@ -18532,7 +22453,7 @@ } ], "description": "Returns an instant view version of a web page if available. Returns a 404 error if the web page has no instant view page", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "webPageInstantView", "isFunction": true, "isSynchronous": false @@ -18542,12 +22463,12 @@ "methods": [ { "name": "photo", - "type": "InputFile", - "description": "Profile photo to set. inputFileId and inputFileRemote may still be unsupported" + "type": "InputChatPhoto", + "description": "Profile photo to set" } ], - "description": "Uploads a new profile photo for the current user. If something changes, updateUser will be sent", - "inheritance": "BaseTLClass", + "description": "Changes a profile photo for the current user", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18561,8 +22482,8 @@ "description": "Identifier of the profile photo to delete" } ], - "description": "Deletes a profile photo. If something changes, updateUser will be sent", - "inheritance": "BaseTLClass", + "description": "Deletes a profile photo", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18581,8 +22502,8 @@ "description": "The new value of the optional last name for the user; 0-64 characters" } ], - "description": "Changes the first and last name of the current user. If something changes, updateUser will be sent", - "inheritance": "BaseTLClass", + "description": "Changes the first and last name of the current user", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18597,7 +22518,7 @@ } ], "description": "Changes the bio of the current user", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18611,8 +22532,23 @@ "description": "The new value of the username. Use an empty string to remove the username" } ], - "description": "Changes the username of the current user. If something changes, updateUser will be sent", - "inheritance": "BaseTLClass", + "description": "Changes the username of the current user", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "setLocation", + "methods": [ + { + "name": "location", + "type": "location", + "description": "The new location of the user" + } + ], + "description": "Changes the location of the current user. Needs to be called if GetOption(\"is_location_visible\") is true and location changes for more than 1 kilometer", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18626,18 +22562,13 @@ "description": "The new phone number of the user in international format" }, { - "name": "allow_flash_call", - "type": "Bool", - "description": "Pass true if the code can be sent via flash call to the specified phone number" - }, - { - "name": "is_current_phone_number", - "type": "Bool", - "description": "Pass true if the phone number is used on the current device. Ignored if allow_flash_call is false" + "name": "settings", + "type": "phoneNumberAuthenticationSettings", + "description": "Settings for the authentication of the user's phone number" } ], "description": "Changes the phone number of the user and sends an authentication code to the user's new phone number. On success, returns information about the sent code", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "authenticationCodeInfo", "isFunction": true, "isSynchronous": false @@ -18646,7 +22577,7 @@ "name": "resendChangePhoneNumberCode", "methods": null, "description": "Re-sends the authentication code sent to confirm a new phone number for the user. Works only if the previously received authenticationCodeInfo next_code_type was not null", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "authenticationCodeInfo", "isFunction": true, "isSynchronous": false @@ -18661,7 +22592,22 @@ } ], "description": "Checks the authentication code sent to confirm a new phone number of the user", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "setCommands", + "methods": [ + { + "name": "commands", + "type": "vector", + "description": "List of the bot's commands" + } + ], + "description": "Sets the list of commands supported by the bot; for bots only", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18670,7 +22616,7 @@ "name": "getActiveSessions", "methods": null, "description": "Returns all active sessions of the current user", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "sessions", "isFunction": true, "isSynchronous": false @@ -18685,7 +22631,7 @@ } ], "description": "Terminates a session of the current user", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18694,7 +22640,7 @@ "name": "terminateAllOtherSessions", "methods": null, "description": "Terminates all other sessions of the current user", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18703,7 +22649,7 @@ "name": "getConnectedWebsites", "methods": null, "description": "Returns all website where the current user used Telegram to log in", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "connectedWebsites", "isFunction": true, "isSynchronous": false @@ -18718,7 +22664,7 @@ } ], "description": "Disconnects website from the current user's Telegram account", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18727,27 +22673,7 @@ "name": "disconnectAllWebsites", "methods": null, "description": "Disconnects all websites from the current user's Telegram account", - "inheritance": "BaseTLClass", - "return_type": "ok", - "isFunction": true, - "isSynchronous": false - }, - { - "name": "toggleBasicGroupAdministrators", - "methods": [ - { - "name": "basic_group_id", - "type": "int32", - "description": "Identifier of the basic group" - }, - { - "name": "everyone_is_administrator", - "type": "Bool", - "description": "New value of everyone_is_administrator" - } - ], - "description": "Toggles the \"All members are admins\" setting in basic groups; requires creator privileges in the group", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18766,8 +22692,8 @@ "description": "New value of the username. Use an empty string to remove the username" } ], - "description": "Changes the username of a supergroup or channel, requires creator privileges in the supergroup or channel", - "inheritance": "BaseTLClass", + "description": "Changes the username of a supergroup or channel, requires owner privileges in the supergroup or channel", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18786,28 +22712,8 @@ "description": "New value of the supergroup sticker set identifier. Use 0 to remove the supergroup sticker set" } ], - "description": "Changes the sticker set of a supergroup; requires appropriate rights in the supergroup", - "inheritance": "BaseTLClass", - "return_type": "ok", - "isFunction": true, - "isSynchronous": false - }, - { - "name": "toggleSupergroupInvites", - "methods": [ - { - "name": "supergroup_id", - "type": "int32", - "description": "Identifier of the supergroup" - }, - { - "name": "anyone_can_invite", - "type": "Bool", - "description": "New value of anyone_can_invite" - } - ], - "description": "Toggles whether all members of a supergroup can add new members; requires appropriate administrator rights in the supergroup.", - "inheritance": "BaseTLClass", + "description": "Changes the sticker set of a supergroup; requires can_change_info rights", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18826,8 +22732,8 @@ "description": "New value of sign_messages" } ], - "description": "Toggles sender signatures messages sent in a channel; requires appropriate administrator rights in the channel.", - "inheritance": "BaseTLClass", + "description": "Toggles sender signatures messages sent in a channel; requires can_change_info rights", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18846,28 +22752,8 @@ "description": "The new value of is_all_history_available" } ], - "description": "Toggles whether the message history of a supergroup is available to new members; requires appropriate administrator rights in the supergroup.", - "inheritance": "BaseTLClass", - "return_type": "ok", - "isFunction": true, - "isSynchronous": false - }, - { - "name": "setSupergroupDescription", - "methods": [ - { - "name": "supergroup_id", - "type": "int32", - "description": "Identifier of the supergroup or channel" - }, - { - "name": "description", - "type": "string", - "description": "New supergroup or channel description; 0-255 characters" - } - ], - "description": "Changes information about a supergroup or channel; requires appropriate administrator rights", - "inheritance": "BaseTLClass", + "description": "Toggles whether the message history of a supergroup is available to new members; requires can_change_info rights", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18892,7 +22778,7 @@ } ], "description": "Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18922,7 +22808,7 @@ } ], "description": "Returns information about members or banned users in a supergroup or channel. Can be used only if SupergroupFullInfo.can_get_members == true; additionally, administrator privileges may be required for some filters", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "chatMembers", "isFunction": true, "isSynchronous": false @@ -18936,8 +22822,8 @@ "description": "Identifier of the supergroup or channel" } ], - "description": "Deletes a supergroup or channel along with all messages in the corresponding chat. This will release the supergroup or channel username and remove all members; requires creator privileges in the supergroup or channel. Chats with more than 1000 members can't be deleted using this method", - "inheritance": "BaseTLClass", + "description": "Deletes a supergroup or channel along with all messages in the corresponding chat. This will release the supergroup or channel username and remove all members; requires owner privileges in the supergroup or channel. Chats with more than 1000 members can't be deleted using this method", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18951,8 +22837,8 @@ "description": "Secret chat identifier" } ], - "description": "Closes a secret chat, effectively transfering its state to secretChatStateClosed", - "inheritance": "BaseTLClass", + "description": "Closes a secret chat, effectively transferring its state to secretChatStateClosed", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -18978,7 +22864,7 @@ { "name": "limit", "type": "int32", - "description": "Maximum number of events to return; up to 100" + "description": "The maximum number of events to return; up to 100" }, { "name": "filters", @@ -18991,8 +22877,8 @@ "description": "User identifiers by which to filter events. By default, events relating to all users will be returned" } ], - "description": "Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only in supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i. e., in order of decreasing event_id)", - "inheritance": "BaseTLClass", + "description": "Returns a list of service actions taken by chat members and administrators in the last 48 hours. Available only for supergroups and channels. Requires administrator rights. Returns results in reverse chronological order (i. e., in order of decreasing event_id)", + "inheritance": "TLBaseClass", "return_type": "chatEvents", "isFunction": true, "isSynchronous": false @@ -19012,7 +22898,7 @@ } ], "description": "Returns an invoice payment form. This method should be called when the user presses inlineKeyboardButtonBuy", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "paymentForm", "isFunction": true, "isSynchronous": false @@ -19042,7 +22928,7 @@ } ], "description": "Validates the order information provided by a user and returns the available shipping options for a flexible invoice", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "validatedOrderInfo", "isFunction": true, "isSynchronous": false @@ -19077,7 +22963,7 @@ } ], "description": "Sends a filled-out payment form to the bot for final verification", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "paymentResult", "isFunction": true, "isSynchronous": false @@ -19097,7 +22983,7 @@ } ], "description": "Returns information about a successful payment", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "paymentReceipt", "isFunction": true, "isSynchronous": false @@ -19106,7 +22992,7 @@ "name": "getSavedOrderInfo", "methods": null, "description": "Returns saved order info, if any", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "orderInfo", "isFunction": true, "isSynchronous": false @@ -19115,7 +23001,7 @@ "name": "deleteSavedOrderInfo", "methods": null, "description": "Deletes saved order info", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19124,7 +23010,7 @@ "name": "deleteSavedCredentials", "methods": null, "description": "Deletes saved credentials for all payment provider bots", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19133,17 +23019,107 @@ "name": "getSupportUser", "methods": null, "description": "Returns a user that can be contacted to get support", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "user", "isFunction": true, "isSynchronous": false }, { - "name": "getWallpapers", + "name": "getBackgrounds", + "methods": [ + { + "name": "for_dark_theme", + "type": "Bool", + "description": "True, if the backgrounds need to be ordered for dark theme" + } + ], + "description": "Returns backgrounds installed by the user", + "inheritance": "TLBaseClass", + "return_type": "backgrounds", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getBackgroundUrl", + "methods": [ + { + "name": "name", + "type": "string", + "description": "Background name" + }, + { + "name": "type", + "type": "BackgroundType", + "description": "Background type" + } + ], + "description": "Constructs a persistent HTTP URL for a background", + "inheritance": "TLBaseClass", + "return_type": "httpUrl", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "searchBackground", + "methods": [ + { + "name": "name", + "type": "string", + "description": "The name of the background" + } + ], + "description": "Searches for a background by its name", + "inheritance": "TLBaseClass", + "return_type": "background", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "setBackground", + "methods": [ + { + "name": "background", + "type": "InputBackground", + "description": "The input background to use, null for filled backgrounds" + }, + { + "name": "type", + "type": "BackgroundType", + "description": "Background type; null for default background. The method will return error 404 if type is null" + }, + { + "name": "for_dark_theme", + "type": "Bool", + "description": "True, if the background is chosen for dark theme" + } + ], + "description": "Changes the background selected by the user; adds background to the list of installed backgrounds", + "inheritance": "TLBaseClass", + "return_type": "background", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "removeBackground", + "methods": [ + { + "name": "background_id", + "type": "int64", + "description": "The background identifier" + } + ], + "description": "Removes background from the list of installed backgrounds", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "resetBackgrounds", "methods": null, - "description": "Returns background wallpapers", - "inheritance": "BaseTLClass", - "return_type": "wallpapers", + "description": "Resets list of installed backgrounds to its default value", + "inheritance": "TLBaseClass", + "return_type": "ok", "isFunction": true, "isSynchronous": false }, @@ -19157,7 +23133,7 @@ } ], "description": "Returns information about the current localization target. This is an offline request if only_local is true. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "localizationTargetInfo", "isFunction": true, "isSynchronous": false @@ -19172,7 +23148,7 @@ } ], "description": "Returns information about a language pack. Returned language pack identifier may be different from a provided one. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "languagePackInfo", "isFunction": true, "isSynchronous": false @@ -19192,7 +23168,7 @@ } ], "description": "Returns strings from a language pack in the current localization target by their keys. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "languagePackStrings", "isFunction": true, "isSynchronous": false @@ -19207,7 +23183,7 @@ } ], "description": "Fetches the latest versions of all strings from a language pack in the current localization target from the server. This method doesn't need to be called explicitly for the current used/base language packs. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19222,7 +23198,7 @@ } ], "description": "Adds a custom server language pack to the list of installed language packs in current localization target. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19242,7 +23218,7 @@ } ], "description": "Adds or changes a custom local language pack to the current localization target", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19257,7 +23233,7 @@ } ], "description": "Edits information about a custom local language pack in the current localization target. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19277,7 +23253,7 @@ } ], "description": "Adds, edits or deletes a string in a custom local language pack. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19292,7 +23268,7 @@ } ], "description": "Deletes all information about a language pack in the current localization target. The language pack which is currently in use (including base language pack) or is being synchronized can't be deleted. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19308,11 +23284,11 @@ { "name": "other_user_ids", "type": "vector", - "description": "List of user identifiers of other users currently using the client" + "description": "List of user identifiers of other users currently using the application" } ], "description": "Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "pushReceiverId", "isFunction": true, "isSynchronous": false @@ -19327,7 +23303,7 @@ } ], "description": "Handles a push notification. Returns error with code 406 if the push notification is not supported and connection to the server is required to fetch new data. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19341,8 +23317,8 @@ "description": "JSON-encoded push notification payload" } ], - "description": "Returns a globally unique push notification subscription identifier for identification of an account, which has received a push notification. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Returns a globally unique push notification subscription identifier for identification of an account, which has received a push notification. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "pushReceiverId", "isFunction": true, "isSynchronous": true @@ -19357,7 +23333,7 @@ } ], "description": "Returns t.me URLs recently visited by a newly registered user", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "tMeUrls", "isFunction": true, "isSynchronous": false @@ -19377,7 +23353,7 @@ } ], "description": "Changes user privacy settings", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19392,7 +23368,7 @@ } ], "description": "Returns the current privacy settings", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "userPrivacySettingRules", "isFunction": true, "isSynchronous": false @@ -19407,7 +23383,7 @@ } ], "description": "Returns the value of an option by its name. (Check the list of available options on https://core.telegram.org/tdlib/options.) Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "OptionValue", "isFunction": true, "isSynchronous": false @@ -19427,7 +23403,7 @@ } ], "description": "Sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19442,7 +23418,7 @@ } ], "description": "Changes the period of inactivity after which the account of the current user will automatically be deleted", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19451,7 +23427,7 @@ "name": "getAccountTtl", "methods": null, "description": "Returns the period of inactivity after which the account of the current user will automatically be deleted", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "accountTtl", "isFunction": true, "isSynchronous": false @@ -19466,13 +23442,13 @@ } ], "description": "Deletes the account of the current user, deleting all information associated with the user from the server. The phone number of the account can be used to create a new account. Can be called before authorization when the current authorization state is authorizationStateWaitPassword", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false }, { - "name": "getChatReportSpamState", + "name": "removeChatActionBar", "methods": [ { "name": "chat_id", @@ -19480,28 +23456,8 @@ "description": "Chat identifier" } ], - "description": "Returns information on whether the current chat can be reported as spam", - "inheritance": "BaseTLClass", - "return_type": "chatReportSpamState", - "isFunction": true, - "isSynchronous": false - }, - { - "name": "changeChatReportSpamState", - "methods": [ - { - "name": "chat_id", - "type": "int53", - "description": "Chat identifier" - }, - { - "name": "is_spam_chat", - "type": "Bool", - "description": "If true, the chat will be reported as spam; otherwise it will be marked as not spam" - } - ], - "description": "Reports to the server whether a chat is a spam chat or not. Can be used only if ChatReportSpamState.can_report_spam is true. After this request, ChatReportSpamState.can_report_spam becomes false forever", - "inheritance": "BaseTLClass", + "description": "Removes a chat action bar without any other action", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19525,8 +23481,8 @@ "description": "Identifiers of reported messages, if any" } ], - "description": "Reports a chat to the Telegram moderators. Supported only for supergroups, channels, or private chats with bots, since other chats can't be checked by moderators", - "inheritance": "BaseTLClass", + "description": "Reports a chat to the Telegram moderators. A chat can be reported only from the chat action bar, or if this is a private chats with a bot, a private chat with a user sharing their location, a supergroup, or a channel, since other chats can't be checked by moderators", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19550,23 +23506,93 @@ "description": "Pass true if a URL with the dark theme must be returned" } ], - "description": "Returns URL with the chat statistics. Currently this method can be used only for channels", - "inheritance": "BaseTLClass", + "description": "Returns an HTTP URL with the chat statistics. Currently this method of getting the statistics are disabled and can be deleted in the future", + "inheritance": "TLBaseClass", "return_type": "httpUrl", "isFunction": true, "isSynchronous": false }, + { + "name": "getChatStatistics", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "is_dark", + "type": "Bool", + "description": "Pass true if a dark theme is used by the application" + } + ], + "description": "Returns detailed statistics about a chat. Currently this method can be used only for supergroups and channels. Can be used only if SupergroupFullInfo.can_get_statistics == true", + "inheritance": "TLBaseClass", + "return_type": "ChatStatistics", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getMessageStatistics", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "message_id", + "type": "int53", + "description": "Message identifier" + }, + { + "name": "is_dark", + "type": "Bool", + "description": "Pass true if a dark theme is used by the application" + } + ], + "description": "Returns detailed statistics about a message. Can be used only if Message.can_get_statistics == true", + "inheritance": "TLBaseClass", + "return_type": "messageStatistics", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getStatisticsGraph", + "methods": [ + { + "name": "chat_id", + "type": "int53", + "description": "Chat identifier" + }, + { + "name": "token", + "type": "string", + "description": "The token for graph loading" + }, + { + "name": "x", + "type": "int53", + "description": "X-value for zoomed in graph or 0 otherwise" + } + ], + "description": "Loads asynchronous or zoomed in chat or message statistics graph", + "inheritance": "TLBaseClass", + "return_type": "StatisticsGraph", + "isFunction": true, + "isSynchronous": false + }, { "name": "getStorageStatistics", "methods": [ { "name": "chat_limit", "type": "int32", - "description": "Maximum number of chats with the largest storage usage for which separate statistics should be returned. All other chats will be grouped in entries with chat_id == 0. If the chat info database is not used, the chat_limit is ignored and is always set to 0" + "description": "The maximum number of chats with the largest storage usage for which separate statistics should be returned. All other chats will be grouped in entries with chat_id == 0. If the chat info database is not used, the chat_limit is ignored and is always set to 0" } ], "description": "Returns storage usage statistics. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "storageStatistics", "isFunction": true, "isSynchronous": false @@ -19575,7 +23601,7 @@ "name": "getStorageStatisticsFast", "methods": null, "description": "Quickly returns approximate storage usage statistics. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "storageStatisticsFast", "isFunction": true, "isSynchronous": false @@ -19584,7 +23610,7 @@ "name": "getDatabaseStatistics", "methods": null, "description": "Returns database statistics", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "databaseStatistics", "isFunction": true, "isSynchronous": false @@ -19627,6 +23653,11 @@ "type": "vector", "description": "If not empty, files from the given chats are excluded. Use 0 as chat identifier to exclude all files not belonging to any chat (e.g., profile photos)" }, + { + "name": "return_deleted_file_statistics", + "type": "Bool", + "description": "Pass true if deleted file statistics need to be returned instead of the whole storage usage statistics. Affects only returned statistics" + }, { "name": "chat_limit", "type": "int32", @@ -19634,7 +23665,7 @@ } ], "description": "Optimizes storage usage, i.e. deletes some files and returns new storage usage statistics. Secret thumbnails can't be deleted", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "storageStatistics", "isFunction": true, "isSynchronous": false @@ -19649,7 +23680,7 @@ } ], "description": "Sets the current network type. Can be called before authorization. Calling this method forces all network connections to reopen, mitigating the delay in switching between different networks, so it should be called whenever the network is changed, even if the network type remains the same. Network type is used to check whether the library can use the network at all and also for collecting detailed network data usage statistics", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19664,7 +23695,7 @@ } ], "description": "Returns network data usage statistics. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "networkStatistics", "isFunction": true, "isSynchronous": false @@ -19679,7 +23710,7 @@ } ], "description": "Adds the specified data to data usage statistics. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19688,11 +23719,55 @@ "name": "resetNetworkStatistics", "methods": null, "description": "Resets all network data usage statistics to zero. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false }, + { + "name": "getAutoDownloadSettingsPresets", + "methods": null, + "description": "Returns auto-download settings presets for the current user", + "inheritance": "TLBaseClass", + "return_type": "autoDownloadSettingsPresets", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "setAutoDownloadSettings", + "methods": [ + { + "name": "settings", + "type": "autoDownloadSettings", + "description": "New user auto-download settings" + }, + { + "name": "type", + "type": "NetworkType", + "description": "Type of the network for which the new settings are applied" + } + ], + "description": "Sets auto-download settings", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "getBankCardInfo", + "methods": [ + { + "name": "bank_card_number", + "type": "string", + "description": "The bank card number" + } + ], + "description": "Returns information about a bank card", + "inheritance": "TLBaseClass", + "return_type": "bankCardInfo", + "isFunction": true, + "isSynchronous": false + }, { "name": "getPassportElement", "methods": [ @@ -19708,7 +23783,7 @@ } ], "description": "Returns one of the available Telegram Passport elements", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "PassportElement", "isFunction": true, "isSynchronous": false @@ -19723,7 +23798,7 @@ } ], "description": "Returns all available Telegram Passport elements", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "passportElements", "isFunction": true, "isSynchronous": false @@ -19743,7 +23818,7 @@ } ], "description": "Adds an element to the user's Telegram Passport. May return an error with a message \"PHONE_VERIFICATION_NEEDED\" or \"EMAIL_VERIFICATION_NEEDED\" if the chosen phone number or the chosen email address must be verified first", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "PassportElement", "isFunction": true, "isSynchronous": false @@ -19758,7 +23833,7 @@ } ], "description": "Deletes a Telegram Passport element", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19778,7 +23853,7 @@ } ], "description": "Informs the user that some of the elements in their Telegram Passport contain errors; for bots only. The user will not be able to resend the elements, until the errors are fixed", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19793,7 +23868,7 @@ } ], "description": "Returns an IETF language tag of the language preferred in the country, which should be used to fill native fields in Telegram Passport personal details. Returns a 404 error if unknown", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "text", "isFunction": true, "isSynchronous": false @@ -19807,18 +23882,13 @@ "description": "The phone number of the user, in international format" }, { - "name": "allow_flash_call", - "type": "Bool", - "description": "Pass true if the authentication code may be sent via flash call to the specified phone number" - }, - { - "name": "is_current_phone_number", - "type": "Bool", - "description": "Pass true if the phone number is used on the current device. Ignored if allow_flash_call is false" + "name": "settings", + "type": "phoneNumberAuthenticationSettings", + "description": "Settings for the authentication of the user's phone number" } ], "description": "Sends a code to verify a phone number to be added to a user's Telegram Passport", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "authenticationCodeInfo", "isFunction": true, "isSynchronous": false @@ -19827,7 +23897,7 @@ "name": "resendPhoneNumberVerificationCode", "methods": null, "description": "Re-sends the code to verify a phone number to be added to a user's Telegram Passport", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "authenticationCodeInfo", "isFunction": true, "isSynchronous": false @@ -19842,7 +23912,7 @@ } ], "description": "Checks the phone number verification code for Telegram Passport", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19857,7 +23927,7 @@ } ], "description": "Sends a code to verify an email address to be added to a user's Telegram Passport", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "emailAddressAuthenticationCodeInfo", "isFunction": true, "isSynchronous": false @@ -19866,7 +23936,7 @@ "name": "resendEmailAddressVerificationCode", "methods": null, "description": "Re-sends the code to verify an email address to be added to a user's Telegram Passport", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "emailAddressAuthenticationCodeInfo", "isFunction": true, "isSynchronous": false @@ -19881,7 +23951,7 @@ } ], "description": "Checks the email address verification code for Telegram Passport", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19911,7 +23981,7 @@ } ], "description": "Returns a Telegram Passport authorization form for sharing data with a service", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "passportAuthorizationForm", "isFunction": true, "isSynchronous": false @@ -19931,7 +24001,7 @@ } ], "description": "Returns already available Telegram Passport elements suitable for completing a Telegram Passport authorization form. Result can be received only once for each authorization form", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "passportElementsWithErrors", "isFunction": true, "isSynchronous": false @@ -19951,7 +24021,7 @@ } ], "description": "Sends a Telegram Passport authorization form, effectively sharing data with the service. This method must be called after getPassportAuthorizationFormAvailableElements if some previously available elements need to be used", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -19970,18 +24040,13 @@ "description": "Value of the \"phone\" parameter from the link" }, { - "name": "allow_flash_call", - "type": "Bool", - "description": "Pass true if the authentication code may be sent via flash call to the specified phone number" - }, - { - "name": "is_current_phone_number", - "type": "Bool", - "description": "Pass true if the phone number is used on the current device. Ignored if allow_flash_call is false" + "name": "settings", + "type": "phoneNumberAuthenticationSettings", + "description": "Settings for the authentication of the user's phone number" } ], "description": "Sends phone number confirmation code. Should be called when user presses \"https://t.me/confirmphone?phone=*******&hash=**********\" or \"tg://confirmphone?phone=*******&hash=**********\" link", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "authenticationCodeInfo", "isFunction": true, "isSynchronous": false @@ -19990,7 +24055,7 @@ "name": "resendPhoneNumberConfirmationCode", "methods": null, "description": "Resends phone number confirmation code", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "authenticationCodeInfo", "isFunction": true, "isSynchronous": false @@ -20005,7 +24070,7 @@ } ], "description": "Checks phone number confirmation code", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -20025,7 +24090,7 @@ } ], "description": "Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -20041,11 +24106,11 @@ { "name": "png_sticker", "type": "InputFile", - "description": "PNG image with the sticker; must be up to 512 kB in size and fit in 512x512 square" + "description": "PNG image with the sticker; must be up to 512 KB in size and fit in 512x512 square" } ], "description": "Uploads a PNG image with a sticker; for bots only; returns the uploaded file", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "file", "isFunction": true, "isSynchronous": false @@ -20071,16 +24136,16 @@ { "name": "is_masks", "type": "Bool", - "description": "True, if stickers are masks" + "description": "True, if stickers are masks. Animated stickers can't be masks" }, { "name": "stickers", - "type": "vector", - "description": "List of stickers to be added to the set" + "type": "vector", + "description": "List of stickers to be added to the set; must be non-empty. All stickers must be of the same type" } ], "description": "Creates a new sticker set; for bots only. Returns the newly created sticker set", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "stickerSet", "isFunction": true, "isSynchronous": false @@ -20100,12 +24165,37 @@ }, { "name": "sticker", - "type": "inputSticker", + "type": "InputSticker", "description": "Sticker to add to the set" } ], "description": "Adds a new sticker to a set; for bots only. Returns the sticker set", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "stickerSet", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "setStickerSetThumbnail", + "methods": [ + { + "name": "user_id", + "type": "int32", + "description": "Sticker set owner" + }, + { + "name": "name", + "type": "string", + "description": "Sticker set name" + }, + { + "name": "thumbnail", + "type": "InputFile", + "description": "Thumbnail to set in PNG or TGS format. Animated thumbnail must be set for animated sticker sets and only for them. Pass a zero InputFileId to delete the thumbnail" + } + ], + "description": "Sets a sticker set thumbnail; for bots only. Returns the sticker set", + "inheritance": "TLBaseClass", "return_type": "stickerSet", "isFunction": true, "isSynchronous": false @@ -20125,7 +24215,7 @@ } ], "description": "Changes the position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -20140,7 +24230,7 @@ } ], "description": "Removes a sticker from the set to which it belongs; for bots only. The sticker set must have been created by the bot", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -20180,7 +24270,7 @@ } ], "description": "Returns information about a file with a map thumbnail in PNG format. Only map thumbnail files with size less than 1MB can be downloaded", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "file", "isFunction": true, "isSynchronous": false @@ -20195,7 +24285,7 @@ } ], "description": "Accepts Telegram terms of services", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -20215,7 +24305,7 @@ } ], "description": "Sends a custom request; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "customRequestResult", "isFunction": true, "isSynchronous": false @@ -20235,7 +24325,7 @@ } ], "description": "Answers a custom query; for bots only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -20249,26 +24339,50 @@ "description": "Number of seconds before the function returns" } ], - "description": "Succeeds after a specified amount of time has passed. Can be called before authorization. Can be called before initialization", - "inheritance": "BaseTLClass", + "description": "Succeeds after a specified amount of time has passed. Can be called before initialization", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false }, + { + "name": "getCountries", + "methods": null, + "description": "Returns information about existing countries. Can be called before authorization", + "inheritance": "TLBaseClass", + "return_type": "countries", + "isFunction": true, + "isSynchronous": false + }, { "name": "getCountryCode", "methods": null, - "description": "Uses current user IP to found his country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be called before authorization", - "inheritance": "BaseTLClass", + "description": "Uses current user IP address to find their country. Returns two-letter ISO 3166-1 alpha-2 country code. Can be called before authorization", + "inheritance": "TLBaseClass", "return_type": "text", "isFunction": true, "isSynchronous": false }, + { + "name": "getPhoneNumberInfo", + "methods": [ + { + "name": "phone_number_prefix", + "type": "string", + "description": "The phone number prefix" + } + ], + "description": "Returns information about a phone number by its prefix. Can be called before authorization", + "inheritance": "TLBaseClass", + "return_type": "phoneNumberInfo", + "isFunction": true, + "isSynchronous": false + }, { "name": "getInviteText", "methods": null, "description": "Returns the default text for invitation messages to be used as a placeholder when the current user invites friends to Telegram", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "text", "isFunction": true, "isSynchronous": false @@ -20283,7 +24397,7 @@ } ], "description": "Returns information about a tg:// deep link. Use \"tg://need_update_for_some_feature\" or \"tg:some_unsupported_feature\" for testing. Returns a 404 error for unknown links. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "deepLinkInfo", "isFunction": true, "isSynchronous": false @@ -20292,7 +24406,7 @@ "name": "getApplicationConfig", "methods": null, "description": "Returns application config, provided by the server. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "JsonValue", "isFunction": true, "isSynchronous": false @@ -20317,7 +24431,7 @@ } ], "description": "Saves application log event on the server. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -20347,7 +24461,7 @@ } ], "description": "Adds a proxy server for network requests. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "proxy", "isFunction": true, "isSynchronous": false @@ -20382,7 +24496,7 @@ } ], "description": "Edits an existing proxy server for network requests. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "proxy", "isFunction": true, "isSynchronous": false @@ -20397,7 +24511,7 @@ } ], "description": "Enables a proxy. Only one proxy can be enabled at a time. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -20406,7 +24520,7 @@ "name": "disableProxy", "methods": null, "description": "Disables the currently enabled proxy. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -20421,7 +24535,7 @@ } ], "description": "Removes a proxy server. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -20430,7 +24544,7 @@ "name": "getProxies", "methods": null, "description": "Returns list of proxies that are currently set up. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "proxies", "isFunction": true, "isSynchronous": false @@ -20445,7 +24559,7 @@ } ], "description": "Returns an HTTPS link, which can be used to add a proxy. Available only for SOCKS5 and MTProto proxies. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "text", "isFunction": true, "isSynchronous": false @@ -20460,7 +24574,7 @@ } ], "description": "Computes time needed to receive a response from a Telegram server through a proxy. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "seconds", "isFunction": true, "isSynchronous": false @@ -20474,8 +24588,8 @@ "description": "New log stream" } ], - "description": "Sets new log stream for internal logging of TDLib. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Sets new log stream for internal logging of TDLib. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": true @@ -20483,8 +24597,8 @@ { "name": "getLogStream", "methods": null, - "description": "Returns information about currently used log stream for internal logging of TDLib. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Returns information about currently used log stream for internal logging of TDLib. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "LogStream", "isFunction": true, "isSynchronous": true @@ -20498,8 +24612,8 @@ "description": "New value of the verbosity level for logging. Value 0 corresponds to fatal errors, value 1 corresponds to errors, value 2 corresponds to warnings and debug warnings, value 3 corresponds to informational, value 4 corresponds to debug, value 5 corresponds to verbose debug, value greater than 5 and up to 1023 can be used to enable even more logging" } ], - "description": "Sets the verbosity level of the internal logging of TDLib. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Sets the verbosity level of the internal logging of TDLib. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": true @@ -20507,8 +24621,8 @@ { "name": "getLogVerbosityLevel", "methods": null, - "description": "Returns current verbosity level of the internal logging of TDLib. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Returns current verbosity level of the internal logging of TDLib. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "logVerbosityLevel", "isFunction": true, "isSynchronous": true @@ -20516,8 +24630,8 @@ { "name": "getLogTags", "methods": null, - "description": "Returns list of available TDLib internal log tags, for example, [\"actor\", \"binlog\", \"connections\", \"notifications\", \"proxy\"]. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Returns list of available TDLib internal log tags, for example, [\"actor\", \"binlog\", \"connections\", \"notifications\", \"proxy\"]. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "logTags", "isFunction": true, "isSynchronous": true @@ -20536,8 +24650,8 @@ "description": "New verbosity level; 1-1024" } ], - "description": "Sets the verbosity level for a specified TDLib internal log tag. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Sets the verbosity level for a specified TDLib internal log tag. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": true @@ -20551,8 +24665,8 @@ "description": "Logging tag to change verbosity level" } ], - "description": "Returns current verbosity level for a specified TDLib internal log tag. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Returns current verbosity level for a specified TDLib internal log tag. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "logVerbosityLevel", "isFunction": true, "isSynchronous": true @@ -20563,7 +24677,7 @@ { "name": "verbosity_level", "type": "int32", - "description": "Minimum verbosity level needed for the message to be logged, 0-1023" + "description": "The minimum verbosity level needed for the message to be logged, 0-1023" }, { "name": "text", @@ -20571,8 +24685,8 @@ "description": "Text of a message to log" } ], - "description": "Adds a message to TDLib internal log. This is an offline method. Can be called before authorization. Can be called synchronously", - "inheritance": "BaseTLClass", + "description": "Adds a message to TDLib internal log. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": true @@ -20581,7 +24695,7 @@ "name": "testCallEmpty", "methods": null, "description": "Does nothing; for testing only. This is an offline method. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -20596,7 +24710,7 @@ } ], "description": "Returns the received string; for testing only. This is an offline method. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "testString", "isFunction": true, "isSynchronous": false @@ -20611,7 +24725,7 @@ } ], "description": "Returns the received bytes; for testing only. This is an offline method. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "testBytes", "isFunction": true, "isSynchronous": false @@ -20626,7 +24740,7 @@ } ], "description": "Returns the received vector of numbers; for testing only. This is an offline method. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "testVectorInt", "isFunction": true, "isSynchronous": false @@ -20641,7 +24755,7 @@ } ], "description": "Returns the received vector of objects containing a number; for testing only. This is an offline method. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "testVectorIntObject", "isFunction": true, "isSynchronous": false @@ -20656,7 +24770,7 @@ } ], "description": "Returns the received vector of strings; for testing only. This is an offline method. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "testVectorString", "isFunction": true, "isSynchronous": false @@ -20671,7 +24785,7 @@ } ], "description": "Returns the received vector of objects containing a string; for testing only. This is an offline method. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "testVectorStringObject", "isFunction": true, "isSynchronous": false @@ -20686,7 +24800,7 @@ } ], "description": "Returns the squared received number; for testing only. This is an offline method. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "testInt", "isFunction": true, "isSynchronous": false @@ -20695,7 +24809,42 @@ "name": "testNetwork", "methods": null, "description": "Sends a simple network request to the Telegram servers; for testing only. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", + "return_type": "ok", + "isFunction": true, + "isSynchronous": false + }, + { + "name": "testProxy", + "methods": [ + { + "name": "server", + "type": "string", + "description": "Proxy server IP address" + }, + { + "name": "port", + "type": "int32", + "description": "Proxy server port" + }, + { + "name": "type", + "type": "ProxyType", + "description": "Proxy type" + }, + { + "name": "dc_id", + "type": "int32", + "description": "Identifier of a datacenter, with which to test connection" + }, + { + "name": "timeout", + "type": "double", + "description": "The maximum overall timeout for the request" + } + ], + "description": "Sends a simple network request to the Telegram servers via proxy; for testing only. Can be called before authorization", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -20704,7 +24853,7 @@ "name": "testGetDifference", "methods": null, "description": "Forces an updates.getDifference call to the Telegram servers; for testing only", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "ok", "isFunction": true, "isSynchronous": false @@ -20713,18 +24862,24 @@ "name": "testUseUpdate", "methods": null, "description": "Does nothing and ensures that the Update object is used; for testing only. This is an offline method. Can be called before authorization", - "inheritance": "BaseTLClass", + "inheritance": "TLBaseClass", "return_type": "Update", "isFunction": true, "isSynchronous": false }, { - "name": "testUseError", - "methods": null, - "description": "Does nothing and ensures that the Error object is used; for testing only. This is an offline method. Can be called before authorization", - "inheritance": "BaseTLClass", + "name": "testReturnError", + "methods": [ + { + "name": "error", + "type": "error", + "description": "The error to be returned" + } + ], + "description": "Returns the specified error and ensures that the Error object is used; for testing only. Can be called synchronously", + "inheritance": "TLBaseClass", "return_type": "error", "isFunction": true, - "isSynchronous": false + "isSynchronous": true } ] \ No newline at end of file