From b03e2f4f0b14e0ecb899a726398261c11d57a9cb Mon Sep 17 00:00:00 2001 From: teidesu <86301490+teidesu@users.noreply.github.com> Date: Sat, 24 Jul 2021 23:21:52 +0300 Subject: [PATCH] fix(tl): updated schema god i love when telegram changes schema in a backwards-incompatible way and doesn't change layer number because they dont give a slightest fuck on third party mtproto implementations --- packages/tl/README.md | 2 +- packages/tl/raw-errors.json | 2 +- packages/tl/raw-schema.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/tl/README.md b/packages/tl/README.md index 04f70721..e2f2c04a 100644 --- a/packages/tl/README.md +++ b/packages/tl/README.md @@ -2,7 +2,7 @@ > TL schema and related utils used for MTCute. -Generated from TL layer **131** (last updated on 06.07.2021). +Generated from TL layer **131** (last updated on 24.07.2021). ## About diff --git a/packages/tl/raw-errors.json b/packages/tl/raw-errors.json index d46e278a..d380c75b 100644 --- a/packages/tl/raw-errors.json +++ b/packages/tl/raw-errors.json @@ -1 +1 @@ -[{"codes":"400","name":"BAD_REQUEST","description":"The query contains errors. In the event that a request was created using a form and contains user generated data, the user should be notified that the data must be corrected before the query is repeated","base":true},{"codes":"401","name":"UNAUTHORIZED","description":"There was an unauthorized attempt to use functionality available only to authorized users.","base":true},{"codes":"403","name":"FORBIDDEN","description":"Privacy violation. For example, an attempt to write a message to someone who has blacklisted the current user.","base":true},{"codes":"404","name":"NOT_FOUND","description":"An attempt to invoke a non-existent object, such as a method.","base":true},{"codes":"420","name":"FLOOD","description":"The maximum allowed number of attempts to invoke the given methodwith the given input parameters has been exceeded. For example, in anattempt to request a large number of text messages (SMS) for the samephone number.","base":true},{"codes":"303","name":"SEE_OTHER","description":"The request must be repeated, but directed to a different data center","base":true},{"codes":"406","name":"NOT_ACCEPTABLE","description":"Similar to 400 BAD_REQUEST, but the app should not display any error messages to user in UI as a result of this response. The error message will be delivered via updateServiceNotification instead.","base":true},{"codes":"500","name":"INTERNAL","description":"An internal server error occurred while a request was being processed; for example, there was a disruption while accessing a database or file storage.","base":true},{"name":"2FA_CONFIRM_WAIT_X","codes":"420","description":"The account is 2FA protected so it will be deleted in a week. Otherwise it can be reset in {seconds}"},{"name":"ABOUT_TOO_LONG","codes":"400","description":"The provided bio is too long"},{"name":"ACCESS_TOKEN_EXPIRED","codes":"400","description":"Bot token expired"},{"name":"ACCESS_TOKEN_INVALID","codes":"400","description":"The provided token is not valid"},{"name":"ACTIVE_USER_REQUIRED","codes":"401","description":"The method is only available to already activated users"},{"name":"ADMINS_TOO_MUCH","codes":"400","description":"Too many admins"},{"name":"ADMIN_RANK_EMOJI_NOT_ALLOWED","codes":"400","description":"Emoji are not allowed in admin titles or ranks"},{"name":"ADMIN_RANK_INVALID","codes":"400","description":"The given admin title or rank was invalid (possibly larger than 16 characters)"},{"name":"ALBUM_PHOTOS_TOO_MANY","codes":"400","description":"Too many photos were included in the album"},{"name":"API_ID_INVALID","codes":"400","description":"The api_id/api_hash combination is invalid"},{"name":"API_ID_PUBLISHED_FLOOD","codes":"400","description":"This API id was published somewhere, you can't use it now"},{"name":"ARTICLE_TITLE_EMPTY","codes":"400","description":"The title of the article is empty"},{"name":"AUDIO_TITLE_EMPTY","codes":"400","description":"The title attribute of the audio must be non-empty"},{"name":"AUDIO_CONTENT_URL_EMPTY","codes":"400","description":""},{"name":"AUTH_BYTES_INVALID","codes":"400","description":"The provided authorization is invalid"},{"name":"AUTH_KEY_DUPLICATED","codes":"406","description":"The authorization key (session file) was used under two different IP addresses simultaneously, and can no longer be used. Use the same session exclusively, or use different sessions"},{"name":"AUTH_KEY_INVALID","codes":"401","description":"The key is invalid"},{"name":"AUTH_KEY_PERM_EMPTY","codes":"401","description":"The method is unavailable for temporary authorization key, not bound to permanent"},{"name":"AUTH_KEY_UNREGISTERED","codes":"401","description":"The key is not registered in the system"},{"name":"AUTH_RESTART","codes":"500","description":"Restart the authorization process"},{"name":"AUTH_TOKEN_ALREADY_ACCEPTED","codes":"400","description":"The authorization token was already used"},{"name":"AUTH_TOKEN_EXPIRED","codes":"400","description":"The provided authorization token has expired and the updated QR-code must be re-scanned"},{"name":"AUTH_TOKEN_INVALID","codes":"400","description":"An invalid authorization token was provided"},{"name":"AUTOARCHIVE_NOT_AVAILABLE","codes":"400","description":"You cannot use this feature yet"},{"name":"BANK_CARD_NUMBER_INVALID","codes":"400","description":"Incorrect credit card number"},{"name":"BASE_PORT_LOC_INVALID","codes":"400","description":"Base port location invalid"},{"name":"BANNED_RIGHTS_INVALID","codes":"400","description":"You cannot use that set of permissions in this request, i.e. restricting view_messages as a default"},{"name":"BOTS_TOO_MUCH","codes":"400","description":"There are too many bots in this chat/channel"},{"name":"BOT_ONESIDE_NOT_AVAIL","codes":"400","description":""},{"name":"BOT_CHANNELS_NA","codes":"400","description":"Bots can't edit admin privileges"},{"name":"BOT_COMMAND_DESCRIPTION_INVALID","codes":"400","description":"The command description was empty, too long or had invalid characters used"},{"name":"BOT_COMMAND_INVALID","codes":"400","description":""},{"name":"BOT_DOMAIN_INVALID","codes":"400","description":"The domain used for the auth button does not match the one configured in @BotFather"},{"name":"BOT_GAMES_DISABLED","codes":"400","description":"Bot games cannot be used in this type of chat"},{"name":"BOT_GROUPS_BLOCKED","codes":"400","description":"This bot can't be added to groups"},{"name":"BOT_INLINE_DISABLED","codes":"400","description":"This bot can't be used in inline mode"},{"name":"BOT_INVALID","codes":"400","description":"This is not a valid bot"},{"name":"BOT_METHOD_INVALID","codes":"400","description":"The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot"},{"name":"BOT_MISSING","codes":"400","description":"This method can only be run by a bot"},{"name":"BOT_PAYMENTS_DISABLED","codes":"400","description":"This method can only be run by a bot"},{"name":"BOT_POLLS_DISABLED","codes":"400","description":"You cannot create polls under a bot account"},{"name":"BOT_RESPONSE_TIMEOUT","codes":"400","description":"The bot did not answer to the callback query in time"},{"name":"BROADCAST_CALLS_DISABLED","codes":"400","description":""},{"name":"BROADCAST_FORBIDDEN","codes":"403","description":"The request cannot be used in broadcast channels"},{"name":"BROADCAST_ID_INVALID","codes":"400","description":"The channel is invalid"},{"name":"BROADCAST_PUBLIC_VOTERS_FORBIDDEN","codes":"400","description":"You cannot broadcast polls where the voters are public"},{"name":"BROADCAST_REQUIRED","codes":"400","description":"The request can only be used with a broadcast channel"},{"name":"BUTTON_DATA_INVALID","codes":"400","description":"The provided button data is invalid"},{"name":"BUTTON_TYPE_INVALID","codes":"400","description":"The type of one of the buttons you provided is invalid"},{"name":"BUTTON_URL_INVALID","codes":"400","description":"Button URL invalid"},{"name":"CALL_ALREADY_ACCEPTED","codes":"400","description":"The call was already accepted"},{"name":"CALL_ALREADY_DECLINED","codes":"400","description":"The call was already declined"},{"name":"CALL_OCCUPY_FAILED","codes":"500","description":"The call failed because the user is already making another call"},{"name":"CALL_PEER_INVALID","codes":"400","description":"The provided call peer object is invalid"},{"name":"CALL_PROTOCOL_FLAGS_INVALID","codes":"400","description":"Call protocol flags invalid"},{"name":"CDN_METHOD_INVALID","codes":"400","description":"This method cannot be invoked on a CDN server. Refer to https://core.telegram.org/cdn#schema for available methods"},{"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","codes":"400","description":"You're admin of too many public channels, make some channels private to change the username of this channel"},{"name":"CHANNELS_TOO_MUCH","codes":"400","description":"You have joined too many channels/supergroups"},{"name":"CHANNEL_BANNED","codes":"400","description":"The channel is banned"},{"name":"CHANNEL_INVALID","codes":"400","description":"Invalid channel object. Make sure to pass the right types, for instance making sure that the request is designed for channels or otherwise look for a different one more suited"},{"name":"CHANNEL_PRIVATE","codes":"400","description":"The channel specified is private and you lack permission to access it. Another reason may be that you were banned from it"},{"name":"CHANNEL_PUBLIC_GROUP_NA","codes":"403","description":"channel/supergroup not available"},{"name":"CHAT_ABOUT_NOT_MODIFIED","codes":"400","description":"About text has not changed"},{"name":"CHAT_ABOUT_TOO_LONG","codes":"400","description":"Chat about too long"},{"name":"CHAT_ADMIN_INVITE_REQUIRED","codes":"403","description":"You do not have the rights to do this"},{"name":"CHAT_ADMIN_REQUIRED","codes":"400","description":"Chat admin privileges are required to do that in the specified chat (for example, to send a message in a channel which is not yours), or invalid permissions used for the channel or group"},{"name":"CHAT_FORBIDDEN","codes":"403","description":"You cannot write in this chat"},{"name":"CHAT_ID_EMPTY","codes":"400","description":"The provided chat ID is empty"},{"name":"CHAT_ID_INVALID","codes":"400","description":"Invalid object ID for a chat. Make sure to pass the right types, for instance making sure that the request is designed for chats (not channels/megagroups) or otherwise look for a different one more suited\\nAn example working with a megagroup and AddChatUserRequest, it will fail because megagroups are channels. Use InviteToChannelRequest instead"},{"name":"CHAT_INVALID","codes":"400","description":"The chat is invalid for this request"},{"name":"CHAT_LINK_EXISTS","codes":"400","description":"The chat is linked to a channel and cannot be used in that request"},{"name":"CHAT_NOT_MODIFIED","codes":"400","description":"The chat or channel wasn't modified (title, invites, username, admins, etc. are the same)"},{"name":"CHAT_RESTRICTED","codes":"400","description":"The chat is restricted and cannot be used in that request"},{"name":"CHAT_SEND_GIFS_FORBIDDEN","codes":"403","description":"You can't send gifs in this chat"},{"name":"CHAT_SEND_INLINE_FORBIDDEN","codes":"400","description":"You cannot send inline results in this chat"},{"name":"CHAT_SEND_MEDIA_FORBIDDEN","codes":"403","description":"You can't send media in this chat"},{"name":"CHAT_SEND_STICKERS_FORBIDDEN","codes":"403","description":"You can't send stickers in this chat"},{"name":"CHAT_TITLE_EMPTY","codes":"400","description":"No chat title provided"},{"name":"CHAT_WRITE_FORBIDDEN","codes":"403","description":"You can't write in this chat"},{"name":"CHP_CALL_FAIL","codes":"500","description":"The statistics cannot be retrieved at this time"},{"name":"CODE_EMPTY","codes":"400","description":"The provided code is empty"},{"name":"CODE_HASH_INVALID","codes":"400","description":"Code hash invalid"},{"name":"CODE_INVALID","codes":"400","description":"Code invalid (i.e. from email)"},{"name":"CONNECTION_API_ID_INVALID","codes":"400","description":"The provided API id is invalid"},{"name":"CONNECTION_DEVICE_MODEL_EMPTY","codes":"400","description":"Device model empty"},{"name":"CONNECTION_LANG_PACK_INVALID","codes":"400","description":"The specified language pack is not valid. This is meant to be used by official applications only so far, leave it empty"},{"name":"CONNECTION_LAYER_INVALID","codes":"400","description":"The very first request must always be InvokeWithLayerRequest"},{"name":"CONNECTION_NOT_INITED","codes":"400","description":"Connection not initialized"},{"name":"CONNECTION_SYSTEM_EMPTY","codes":"400","description":"Connection system empty"},{"name":"CONNECTION_SYSTEM_LANG_CODE_EMPTY","codes":"400","description":"The system language string was empty during connection"},{"name":"CONTACT_ID_INVALID","codes":"400","description":"The provided contact ID is invalid"},{"name":"CONTACT_NAME_EMPTY","codes":"400","description":"The provided contact name cannot be empty"},{"name":"CURRENCY_TOTAL_AMOUNT_INVALID","codes":"400","description":""},{"name":"DATA_INVALID","codes":"400","description":"Encrypted data invalid"},{"name":"DATA_JSON_INVALID","codes":"400","description":"The provided JSON data is invalid"},{"name":"DATE_EMPTY","codes":"400","description":"Date empty"},{"name":"DC_ID_INVALID","codes":"400","description":"This occurs when an authorization is tried to be exported for the same data center one is currently connected to"},{"name":"DH_G_A_INVALID","codes":"400","description":"g_a invalid"},{"name":"DOCUMENT_INVALID","codes":"400","description":"The document file was invalid and can't be used in inline mode"},{"name":"EMAIL_HASH_EXPIRED","codes":"400","description":"The email hash expired and cannot be used to verify it"},{"name":"EMAIL_INVALID","codes":"400","description":"The given email is invalid"},{"name":"EMAIL_UNCONFIRMED_X","codes":"400","description":"Email unconfirmed, the length of the code must be {code_length}"},{"name":"EMOTICON_EMPTY","codes":"400","description":"The emoticon field cannot be empty"},{"name":"EMOTICON_INVALID","codes":"400","description":"The specified emoticon cannot be used or was not a emoticon"},{"name":"EMOTICON_STICKERPACK_MISSING","codes":"400","description":"The emoticon sticker pack you are trying to get is missing"},{"name":"ENCRYPTED_MESSAGE_INVALID","codes":"400","description":"Encrypted message invalid"},{"name":"ENCRYPTION_ALREADY_ACCEPTED","codes":"400","description":"Secret chat already accepted"},{"name":"ENCRYPTION_ALREADY_DECLINED","codes":"400","description":"The secret chat was already declined"},{"name":"ENCRYPTION_DECLINED","codes":"400","description":"The secret chat was declined"},{"name":"ENCRYPTION_ID_INVALID","codes":"400","description":"The provided secret chat ID is invalid"},{"name":"ENCRYPTION_OCCUPY_FAILED","codes":"500","description":"TDLib developer claimed it is not an error while accepting secret chats and 500 is used instead of 420"},{"name":"ENTITIES_TOO_LONG","codes":"400","description":"It is no longer possible to send such long data inside entity tags (for example inline text URLs)"},{"name":"ENTITY_MENTION_USER_INVALID","codes":"400","description":"You can't use this entity"},{"name":"ERROR_TEXT_EMPTY","codes":"400","description":"The provided error message is empty"},{"name":"EXPIRE_FORBIDDEN","codes":"400","description":""},{"name":"EXPORT_CARD_INVALID","codes":"400","description":"Provided card is invalid"},{"name":"EXTERNAL_URL_INVALID","codes":"400","description":"External URL invalid"},{"name":"FIELD_NAME_EMPTY","codes":"400","description":"The field with the name FIELD_NAME is missing"},{"name":"FIELD_NAME_INVALID","codes":"400","description":"The field with the name FIELD_NAME is invalid"},{"name":"FILEREF_UPGRADE_NEEDED","codes":"406","description":"The file reference needs to be refreshed before being used again"},{"name":"FILE_CONTENT_TYPE_INVALID","codes":"400","description":""},{"name":"FILE_ID_INVALID","codes":"400","description":"The provided file id is invalid. Make sure all parameters are present, have the correct type and are not empty (ID, access hash, file reference, thumb size ...)"},{"name":"FILE_MIGRATE_X","codes":"303","description":"The file to be accessed is currently stored in DC {new_dc}"},{"name":"FILE_PARTS_INVALID","codes":"400","description":"The number of file parts is invalid"},{"name":"FILE_PART_0_MISSING","codes":"400","description":"File part 0 missing"},{"name":"FILE_PART_EMPTY","codes":"400","description":"The provided file part is empty"},{"name":"FILE_PART_INVALID","codes":"400","description":"The file part number is invalid"},{"name":"FILE_PART_LENGTH_INVALID","codes":"400","description":"The length of a file part is invalid"},{"name":"FILE_PART_SIZE_CHANGED","codes":"400","description":"The file part size (chunk size) cannot change during upload"},{"name":"FILE_PART_SIZE_INVALID","codes":"400","description":"The provided file part size is invalid"},{"name":"FILE_PART_X_MISSING","codes":"400","description":"Part {which} of the file is missing from storage"},{"name":"FILE_REFERENCE_EMPTY","codes":"400","description":"The file reference must exist to access the media and it cannot be empty"},{"name":"FILE_REFERENCE_EXPIRED","codes":"400","description":"The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent"},{"name":"FILE_REFERENCE_INVALID","codes":"400","description":"The file reference is invalid or you can't do that operation on such message"},{"name":"FIRSTNAME_INVALID","codes":"400","description":"The first name is invalid"},{"name":"FLOOD_TEST_PHONE_WAIT_X","codes":"420","description":"A wait of {seconds} seconds is required in the test servers"},{"name":"FLOOD_WAIT_X","codes":"420","description":"A wait of {seconds} seconds is required"},{"name":"FOLDER_ID_EMPTY","codes":"400","description":"The folder you tried to delete was already empty"},{"name":"FOLDER_ID_INVALID","codes":"400","description":"The folder you tried to use was not valid"},{"name":"FRESH_CHANGE_ADMINS_FORBIDDEN","codes":"400","description":"Recently logged-in users cannot add or change admins"},{"name":"FRESH_CHANGE_PHONE_FORBIDDEN","codes":"406","description":"Recently logged-in users cannot use this request"},{"name":"FRESH_RESET_AUTHORISATION_FORBIDDEN","codes":"406","description":"The current session is too new and cannot be used to reset other authorisations yet"},{"name":"FROM_PEER_INVALID","codes":"400","description":"The given from_user peer cannot be used for the parameter"},{"name":"GAME_BOT_INVALID","codes":"400","description":"You cannot send that game with the current bot"},{"name":"GIF_CONTENT_TYPE_INVALID","codes":"400","description":""},{"name":"GIF_ID_INVALID","codes":"400","description":"The provided GIF ID is invalid"},{"name":"GRAPH_INVALID_RELOAD","codes":"400","description":""},{"name":"GRAPH_OUTDATED_RELOAD","codes":"400","description":"Data can't be used for the channel statistics, graphs outdated"},{"name":"GROUPCALL_ALREADY_DISCARDED","codes":"400","description":""},{"name":"GROUPCALL_FORBIDDEN","codes":"403","description":""},{"name":"GROUPCALL_JOIN_MISSING","codes":"400","description":""},{"name":"GROUPCALL_SSRC_DUPLICATE_MUCH","codes":"400","description":""},{"name":"GROUPCALL_NOT_MODIFIED","codes":"400","description":""},{"name":"GROUPED_MEDIA_INVALID","codes":"400","description":"Invalid grouped media"},{"name":"GROUP_CALL_INVALID","codes":"400","description":"Group call invalid"},{"name":"HASH_INVALID","codes":"400","description":"The provided hash is invalid"},{"name":"HISTORY_GET_FAILED","codes":"500","description":"Fetching of history failed"},{"name":"IMAGE_PROCESS_FAILED","codes":"400","description":"Failure while processing image"},{"name":"IMPORT_FILE_INVALID","codes":"400","description":"The file is too large to be imported"},{"name":"IMPORT_FORMAT_UNRECOGNIZED","codes":"400","description":"Unknown import format"},{"name":"IMPORT_ID_INVALID","codes":"400","description":""},{"name":"INLINE_BOT_REQUIRED","codes":"403","description":"The action must be performed through an inline bot callback"},{"name":"INLINE_RESULT_EXPIRED","codes":"400","description":"The inline query expired"},{"name":"INPUT_CONSTRUCTOR_INVALID","codes":"400","description":"The provided constructor is invalid"},{"name":"INPUT_FETCH_ERROR","codes":"400","description":"An error occurred while deserializing TL parameters"},{"name":"INPUT_FETCH_FAIL","codes":"400","description":"Failed deserializing TL payload"},{"name":"INPUT_FILTER_INVALID","codes":"400","description":"The search query filter is invalid"},{"name":"INPUT_LAYER_INVALID","codes":"400","description":"The provided layer is invalid"},{"name":"INPUT_METHOD_INVALID","codes":"400","description":"The invoked method does not exist anymore or has never existed"},{"name":"INPUT_REQUEST_TOO_LONG","codes":"400","description":"The input request was too long. This may be a bug in the library as it can occur when serializing more bytes than it should (like appending the vector constructor code at the end of a message)"},{"name":"INPUT_USER_DEACTIVATED","codes":"400","description":"The specified user was deleted"},{"name":"INTERDC_X_CALL_ERROR","codes":"500","description":"An error occurred while communicating with DC {dc}"},{"name":"INTERDC_X_CALL_RICH_ERROR","codes":"500","description":"A rich error occurred while communicating with DC {dc}"},{"name":"INVITE_HASH_EMPTY","codes":"400","description":"The invite hash is empty"},{"name":"INVITE_HASH_EXPIRED","codes":"400","description":"The chat the user tried to join has expired and is not valid anymore"},{"name":"INVITE_HASH_INVALID","codes":"400","description":"The invite hash is invalid"},{"name":"LANG_PACK_INVALID","codes":"400","description":"The provided language pack is invalid"},{"name":"LASTNAME_INVALID","codes":"400","description":"The last name is invalid"},{"name":"LIMIT_INVALID","codes":"400","description":"An invalid limit was provided. See https://core.telegram.org/api/files#downloading-files"},{"name":"LINK_NOT_MODIFIED","codes":"400","description":"The channel is already linked to this group"},{"name":"LOCATION_INVALID","codes":"400","description":"The location given for a file was invalid. See https://core.telegram.org/api/files#downloading-files"},{"name":"MAX_ID_INVALID","codes":"400","description":"The provided max ID is invalid"},{"name":"MAX_QTS_INVALID","codes":"400","description":"The provided QTS were invalid"},{"name":"MD5_CHECKSUM_INVALID","codes":"400","description":"The MD5 check-sums do not match"},{"name":"MEDIA_CAPTION_TOO_LONG","codes":"400","description":"The caption is too long"},{"name":"MEDIA_EMPTY","codes":"400","description":"The provided media object is invalid or the current account may not be able to send it (such as games as users)"},{"name":"MEDIA_GROUPED_INVALID","codes":"400","description":""},{"name":"MEDIA_INVALID","codes":"400","description":"Media invalid"},{"name":"MEDIA_NEW_INVALID","codes":"400","description":"The new media to edit the message with is invalid (such as stickers or voice notes)"},{"name":"MEDIA_PREV_INVALID","codes":"400","description":"The old media cannot be edited with anything else (such as stickers or voice notes)"},{"name":"MEDIA_TTL_INVALID","codes":"400","description":""},{"name":"MEGAGROUP_ID_INVALID","codes":"400","description":"The group is invalid"},{"name":"MEGAGROUP_PREHISTORY_HIDDEN","codes":"400","description":"You can't set this discussion group because it's history is hidden"},{"name":"MEGAGROUP_REQUIRED","codes":"400","description":"The request can only be used with a megagroup channel"},{"name":"MEMBER_NO_LOCATION","codes":"500","description":"An internal failure occurred while fetching user info (couldn't find location)"},{"name":"MEMBER_OCCUPY_PRIMARY_LOC_FAILED","codes":"500","description":"Occupation of primary member location failed"},{"name":"MESSAGE_AUTHOR_REQUIRED","codes":"403","description":"Message author required"},{"name":"MESSAGE_DELETE_FORBIDDEN","codes":"403","description":"You can't delete one of the messages you tried to delete, most likely because it is a service message."},{"name":"MESSAGE_EDIT_TIME_EXPIRED","codes":"400","description":"You can't edit this message anymore, too much time has passed since its creation."},{"name":"MESSAGE_EMPTY","codes":"400","description":"Empty or invalid UTF-8 message was sent"},{"name":"MESSAGE_IDS_EMPTY","codes":"400","description":"No message ids were provided"},{"name":"MESSAGE_ID_INVALID","codes":"400","description":"The specified message ID is invalid or you can't do that operation on such message"},{"name":"MESSAGE_NOT_MODIFIED","codes":"400","description":"Content of the message was not modified"},{"name":"MESSAGE_POLL_CLOSED","codes":"400","description":"The poll was closed and can no longer be voted on"},{"name":"MESSAGE_TOO_LONG","codes":"400","description":"Message was too long. Current maximum length is 4096 UTF-8 characters"},{"name":"METHOD_INVALID","codes":"400","description":"The API method is invalid and cannot be used"},{"name":"MSGID_DECREASE_RETRY","codes":"500","description":"The request should be retried with a lower message ID"},{"name":"MSG_ID_INVALID","codes":"400","description":"The message ID used in the peer was invalid"},{"name":"MSG_WAIT_FAILED","codes":"400","description":"A waiting call returned an error"},{"name":"MT_SEND_QUEUE_TOO_LONG","codes":"500","description":""},{"name":"MULTI_MEDIA_TOO_LONG","codes":"400","description":"Too many media files were included in the same album"},{"name":"NEED_CHAT_INVALID","codes":"500","description":"The provided chat is invalid"},{"name":"NEED_MEMBER_INVALID","codes":"500","description":"The provided member is invalid or does not exist (for example a thumb size)"},{"name":"NETWORK_MIGRATE_X","codes":"303","description":"The source IP address is associated with DC {new_dc}"},{"name":"NEW_SALT_INVALID","codes":"400","description":"The new salt is invalid"},{"name":"NEW_SETTINGS_INVALID","codes":"400","description":"The new settings are invalid"},{"name":"NEXT_OFFSET_INVALID","codes":"400","description":"The value for next_offset is invalid. Check that it has normal characters and is not too long"},{"name":"OFFSET_INVALID","codes":"400","description":"The given offset was invalid, it must be divisible by 1KB. See https://core.telegram.org/api/files#downloading-files"},{"name":"OFFSET_PEER_ID_INVALID","codes":"400","description":"The provided offset peer is invalid"},{"name":"OPTIONS_TOO_MUCH","codes":"400","description":"You defined too many options for the poll"},{"name":"OPTION_INVALID","codes":"400","description":"The option specified is invalid and does not exist in the target poll"},{"name":"PACK_SHORT_NAME_INVALID","codes":"400","description":"Invalid sticker pack name. It must begin with a letter, can't contain consecutive underscores and must end in \"_by_\"."},{"name":"PACK_SHORT_NAME_OCCUPIED","codes":"400","description":"A stickerpack with this name already exists"},{"name":"PARTICIPANTS_TOO_FEW","codes":"400","description":"Not enough participants"},{"name":"PARTICIPANT_CALL_FAILED","codes":"500","description":"Failure while making call"},{"name":"PARTICIPANT_JOIN_MISSING","codes":"403","description":""},{"name":"PARTICIPANT_VERSION_OUTDATED","codes":"400","description":"The other participant does not use an up to date telegram client with support for calls"},{"name":"PASSWORD_EMPTY","codes":"400","description":"The provided password is empty"},{"name":"PASSWORD_HASH_INVALID","codes":"400","description":"The password (and thus its hash value) you entered is invalid"},{"name":"PASSWORD_MISSING","codes":"400","description":"The account must have 2-factor authentication enabled (a password) before this method can be used"},{"name":"PASSWORD_REQUIRED","codes":"400","description":"The account must have 2-factor authentication enabled (a password) before this method can be used"},{"name":"PASSWORD_TOO_FRESH_X","codes":"400","description":"The password was added too recently and {seconds} seconds must pass before using the method"},{"name":"PAYMENT_PROVIDER_INVALID","codes":"400","description":"The payment provider was not recognised or its token was invalid"},{"name":"PEER_FLOOD","codes":"400","description":"Too many requests"},{"name":"PEER_ID_INVALID","codes":"400","description":"An invalid Peer was used. Make sure to pass the right peer type and that the value is valid (for instance, bots cannot start conversations)"},{"name":"PEER_ID_NOT_SUPPORTED","codes":"400","description":"The provided peer ID is not supported"},{"name":"PERSISTENT_TIMESTAMP_EMPTY","codes":"400","description":"Persistent timestamp empty"},{"name":"PERSISTENT_TIMESTAMP_INVALID","codes":"400","description":"Persistent timestamp invalid"},{"name":"PERSISTENT_TIMESTAMP_OUTDATED","codes":"500","description":"Persistent timestamp outdated"},{"name":"PHONE_CODE_EMPTY","codes":"400","description":"The phone code is missing"},{"name":"PHONE_CODE_EXPIRED","codes":"400","description":"The confirmation code has expired"},{"name":"PHONE_CODE_HASH_EMPTY","codes":"400","description":"The phone code hash is missing"},{"name":"PHONE_CODE_INVALID","codes":"400","description":"The phone code entered was invalid"},{"name":"PHONE_MIGRATE_X","codes":"303","description":"The phone number a user is trying to use for authorization is associated with DC {new_dc}"},{"name":"PHONE_NUMBER_APP_SIGNUP_FORBIDDEN","codes":"400","description":"You can't sign up using this app"},{"name":"PHONE_NUMBER_BANNED","codes":"400","description":"The used phone number has been banned from Telegram and cannot be used anymore. Maybe check https://www.telegram.org/faq_spam"},{"name":"PHONE_NUMBER_FLOOD","codes":"400","description":"You asked for the code too many times."},{"name":"PHONE_NUMBER_INVALID","codes":"400 406","description":"The phone number is invalid"},{"name":"PHONE_NUMBER_OCCUPIED","codes":"400","description":"The phone number is already in use"},{"name":"PHONE_NUMBER_UNOCCUPIED","codes":"400","description":"The phone number is not yet being used"},{"name":"PHONE_PASSWORD_FLOOD","codes":"406","description":"You have tried logging in too many times"},{"name":"PHONE_PASSWORD_PROTECTED","codes":"400","description":"This phone is password protected"},{"name":"PHOTO_CONTENT_TYPE_INVALID","codes":"400","description":""},{"name":"PHOTO_CONTENT_URL_EMPTY","codes":"400","description":"The content from the URL used as a photo appears to be empty or has caused another HTTP error"},{"name":"PHOTO_CROP_SIZE_SMALL","codes":"400","description":"Photo is too small"},{"name":"PHOTO_EXT_INVALID","codes":"400","description":"The extension of the photo is invalid"},{"name":"PHOTO_ID_INVALID","codes":"400","description":"Photo id is invalid"},{"name":"PHOTO_INVALID","codes":"400","description":"Photo invalid"},{"name":"PHOTO_INVALID_DIMENSIONS","codes":"400","description":"The photo dimensions are invalid (hint: `pip install pillow` for `send_file` to resize images)"},{"name":"PHOTO_SAVE_FILE_INVALID","codes":"400","description":"The photo you tried to send cannot be saved by Telegram. A reason may be that it exceeds 10MB. Try resizing it locally"},{"name":"PHOTO_THUMB_URL_EMPTY","codes":"400","description":"The URL used as a thumbnail appears to be empty or has caused another HTTP error"},{"name":"PIN_RESTRICTED","codes":"400","description":"You can't pin messages in private chats with other people"},{"name":"POLL_ANSWERS_INVALID","codes":"400","description":"The poll did not have enough answers or had too many"},{"name":"POLL_OPTION_DUPLICATE","codes":"400","description":"A duplicate option was sent in the same poll"},{"name":"POLL_OPTION_INVALID","codes":"400","description":"A poll option used invalid data (the data may be too long)"},{"name":"POLL_QUESTION_INVALID","codes":"400","description":"The poll question was either empty or too long"},{"name":"POLL_UNSUPPORTED","codes":"400","description":"This layer does not support polls in the issued method"},{"name":"PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN","codes":"406","description":"Similar to a flood wait, must wait {minutes} minutes"},{"name":"PRIVACY_KEY_INVALID","codes":"400","description":"The privacy key is invalid"},{"name":"PRIVACY_TOO_LONG","codes":"400","description":"Cannot add that many entities in a single request"},{"name":"PRIVACY_VALUE_INVALID","codes":"400","description":"The privacy value is invalid"},{"name":"PTS_CHANGE_EMPTY","codes":"500","description":"No PTS change"},{"name":"QUERY_ID_EMPTY","codes":"400","description":"The query ID is empty"},{"name":"QUERY_ID_INVALID","codes":"400","description":"The query ID is invalid"},{"name":"QUERY_TOO_SHORT","codes":"400","description":"The query string is too short"},{"name":"QUIZ_CORRECT_ANSWERS_EMPTY","codes":"400","description":"A quiz must specify one correct answer"},{"name":"QUIZ_CORRECT_ANSWERS_TOO_MUCH","codes":"400","description":"There can only be one correct answer"},{"name":"QUIZ_CORRECT_ANSWER_INVALID","codes":"400","description":"The correct answer is not an existing answer"},{"name":"QUIZ_MULTIPLE_INVALID","codes":"400","description":"A poll cannot be both multiple choice and quiz"},{"name":"RANDOM_ID_DUPLICATE","codes":"500","description":"You provided a random ID that was already used"},{"name":"RANDOM_ID_INVALID","codes":"400","description":"A provided random ID is invalid"},{"name":"RANDOM_LENGTH_INVALID","codes":"400","description":"Random length invalid"},{"name":"RANGES_INVALID","codes":"400","description":"Invalid range provided"},{"name":"REACTION_EMPTY","codes":"400","description":"No reaction provided"},{"name":"REACTION_INVALID","codes":"400","description":"Invalid reaction provided (only emoji are allowed)"},{"name":"REFLECTOR_NOT_AVAILABLE","codes":"400","description":"Invalid call reflector server"},{"name":"REG_ID_GENERATE_FAILED","codes":"500","description":"Failure while generating registration ID"},{"name":"REPLY_MARKUP_GAME_EMPTY","codes":"400","description":"The provided reply markup for the game is empty"},{"name":"REPLY_MARKUP_INVALID","codes":"400","description":"The provided reply markup is invalid"},{"name":"REPLY_MARKUP_TOO_LONG","codes":"400","description":"The data embedded in the reply markup buttons was too much"},{"name":"RESULTS_TOO_MUCH","codes":"400","description":"You sent too many results, see https://core.telegram.org/bots/api#answerinlinequery for the current limit"},{"name":"RESULT_ID_DUPLICATE","codes":"400","description":"Duplicated IDs on the sent results. Make sure to use unique IDs"},{"name":"RESULT_ID_INVALID","codes":"400","description":"The given result cannot be used to send the selection to the bot"},{"name":"RESULT_TYPE_INVALID","codes":"400","description":"Result type invalid"},{"name":"RIGHT_FORBIDDEN","codes":"403","description":"Either your admin rights do not allow you to do this or you passed the wrong rights combination (some rights only apply to channels and vice versa)"},{"name":"RPC_CALL_FAIL","codes":"500","description":"Telegram is having internal issues, please try again later."},{"name":"RPC_MCGET_FAIL","codes":"500","description":"Telegram is having internal issues, please try again later."},{"name":"RSA_DECRYPT_FAILED","codes":"400","description":"Internal RSA decryption failed"},{"name":"SCHEDULE_BOT_NOT_ALLOWED","codes":"400","description":"Bots are not allowed to schedule messages"},{"name":"SCHEDULE_DATE_INVALID","codes":"400","description":""},{"name":"SCHEDULE_DATE_TOO_LATE","codes":"400","description":"The date you tried to schedule is too far in the future (last known limit of 1 year and a few hours)"},{"name":"SCHEDULE_STATUS_PRIVATE","codes":"400","description":"You cannot schedule a message until the person comes online if their privacy does not show this information"},{"name":"SCHEDULE_TOO_MUCH","codes":"400","description":"You cannot schedule more messages in this chat (last known limit of 100 per chat)"},{"name":"SEARCH_QUERY_EMPTY","codes":"400","description":"The search query is empty"},{"name":"SECONDS_INVALID","codes":"400","description":"Slow mode only supports certain values (e.g. 0, 10s, 30s, 1m, 5m, 15m and 1h)"},{"name":"SEND_MESSAGE_MEDIA_INVALID","codes":"400","description":"The message media was invalid or not specified"},{"name":"SEND_MESSAGE_TYPE_INVALID","codes":"400","description":"The message type is invalid"},{"name":"SENSITIVE_CHANGE_FORBIDDEN","codes":"403","description":"Your sensitive content settings cannot be changed at this time"},{"name":"SESSION_EXPIRED","codes":"401","description":"The authorization has expired"},{"name":"SESSION_PASSWORD_NEEDED","codes":"401","description":"Two-steps verification is enabled and a password is required"},{"name":"SESSION_REVOKED","codes":"401","description":"The authorization has been invalidated, because of the user terminating all sessions"},{"name":"SESSION_TOO_FRESH_X","codes":"400","description":"The session logged in too recently and {seconds} seconds must pass before calling the method"},{"name":"SHA256_HASH_INVALID","codes":"400","description":"The provided SHA256 hash is invalid"},{"name":"SHORTNAME_OCCUPY_FAILED","codes":"400","description":"An error occurred when trying to register the short-name used for the sticker pack. Try a different name"},{"name":"SHORT_NAME_OCCUPIED","codes":"400","description":""},{"name":"SLOWMODE_WAIT_X","codes":"420","description":"A wait of {seconds} seconds is required before sending another message in this chat"},{"name":"SRP_ID_INVALID","codes":"400","description":""},{"name":"START_PARAM_EMPTY","codes":"400","description":"The start parameter is empty"},{"name":"START_PARAM_INVALID","codes":"400","description":"Start parameter invalid"},{"name":"STATS_MIGRATE_X","codes":"303","description":"The channel statistics must be fetched from DC {dc}"},{"name":"STICKERSET_INVALID","codes":"400","description":"The provided sticker set is invalid"},{"name":"STICKERSET_OWNER_ANONYMOUS","codes":"406","description":"This sticker set can't be used as the group's official stickers because it was created by one of its anonymous admins"},{"name":"STICKERS_EMPTY","codes":"400","description":"No sticker provided"},{"name":"STICKER_DOCUMENT_INVALID","codes":"400","description":"The sticker file was invalid (this file has failed Telegram internal checks, make sure to use the correct format and comply with https://core.telegram.org/animated_stickers)"},{"name":"STICKER_EMOJI_INVALID","codes":"400","description":"Sticker emoji invalid"},{"name":"STICKER_FILE_INVALID","codes":"400","description":"Sticker file invalid"},{"name":"STICKER_ID_INVALID","codes":"400","description":"The provided sticker ID is invalid"},{"name":"STICKER_INVALID","codes":"400","description":"The provided sticker is invalid"},{"name":"STICKER_PNG_DIMENSIONS","codes":"400","description":"Sticker png dimensions invalid"},{"name":"STICKER_PNG_NOPNG","codes":"400","description":"Stickers must be a png file but the used image was not a png"},{"name":"STICKER_TGS_NODOC","codes":"400","description":""},{"name":"STICKER_TGS_NOTGS","codes":"400","description":"Stickers must be a tgs file but the used file was not a tgs"},{"name":"STICKER_THUMB_PNG_NOPNG","codes":"400","description":"Stickerset thumb must be a png file but the used file was not png"},{"name":"STICKER_THUMB_TGS_NOTGS","codes":"400","description":"Stickerset thumb must be a tgs file but the used file was not tgs"},{"name":"STORAGE_CHECK_FAILED","codes":"500","description":"Server storage check failed"},{"name":"STORE_INVALID_SCALAR_TYPE","codes":"500","description":""},{"name":"TAKEOUT_INIT_DELAY_X","codes":"420","description":"A wait of {seconds} seconds is required before being able to initiate the takeout"},{"name":"TAKEOUT_INVALID","codes":"400","description":"The takeout session has been invalidated by another data export session"},{"name":"TAKEOUT_REQUIRED","codes":"400","description":"You must initialize a takeout request first"},{"name":"TEMP_AUTH_KEY_EMPTY","codes":"400","description":"No temporary auth key provided"},{"name":"TIMEOUT","codes":"500","description":"A timeout occurred while fetching data from the worker"},{"name":"TITLE_INVALID","codes":"400","description":""},{"name":"THEME_INVALID","codes":"400","description":"Theme invalid"},{"name":"THEME_MIME_INVALID","codes":"400","description":"You cannot create this theme, the mime-type is invalid"},{"name":"TMP_PASSWORD_DISABLED","codes":"400","description":"The temporary password is disabled"},{"name":"TMP_PASSWORD_INVALID","codes":"400","description":"Password auth needs to be regenerated"},{"name":"TOKEN_INVALID","codes":"400","description":"The provided token is invalid"},{"name":"TTL_DAYS_INVALID","codes":"400","description":"The provided TTL is invalid"},{"name":"TTL_PERIOD_INVALID","codes":"400","description":"The provided TTL Period is invalid"},{"name":"TYPES_EMPTY","codes":"400","description":"The types field is empty"},{"name":"TYPE_CONSTRUCTOR_INVALID","codes":"400","description":"The type constructor is invalid"},{"name":"UNKNOWN_METHOD","codes":"500","description":"The method you tried to call cannot be called on non-CDN DCs"},{"name":"UNTIL_DATE_INVALID","codes":"400","description":"That date cannot be specified in this request (try using None)"},{"name":"URL_INVALID","codes":"400","description":"The URL used was invalid (e.g. when answering a callback with a URL that's not t.me/yourbot or your game's URL)"},{"name":"USER_VOLUME_INVALID","codes":"400","description":""},{"name":"USERNAME_INVALID","codes":"400","description":"Nobody is using this username, or the username is unacceptable. If the latter, it must match r\"[a-zA-Z][\\w\\d]{3,30}[a-zA-Z\\d]\""},{"name":"USERNAME_NOT_MODIFIED","codes":"400","description":"The username is not different from the current username"},{"name":"USERNAME_NOT_OCCUPIED","codes":"400","description":"The username is not in use by anyone else yet"},{"name":"USERNAME_OCCUPIED","codes":"400","description":"The username is already taken"},{"name":"USERS_TOO_FEW","codes":"400","description":"Not enough users (to create a chat, for example)"},{"name":"USERS_TOO_MUCH","codes":"400","description":"The maximum number of users has been exceeded (to create a chat, for example)"},{"name":"USER_ADMIN_INVALID","codes":"400","description":"Either you're not an admin or you tried to ban an admin that you didn't promote"},{"name":"USER_ALREADY_PARTICIPANT","codes":"400","description":"The authenticated user is already a participant of the chat"},{"name":"USER_BANNED_IN_CHANNEL","codes":"400","description":"You're banned from sending messages in supergroups/channels"},{"name":"USER_BLOCKED","codes":"400","description":"User blocked"},{"name":"USER_BOT","codes":"400","description":"Bots can only be admins in channels."},{"name":"USER_BOT_INVALID","codes":"400 403","description":"This method can only be called by a bot"},{"name":"USER_BOT_REQUIRED","codes":"400","description":"This method can only be called by a bot"},{"name":"USER_CHANNELS_TOO_MUCH","codes":"403","description":"One of the users you tried to add is already in too many channels/supergroups"},{"name":"USER_CREATOR","codes":"400","description":"You can't leave this channel, because you're its creator"},{"name":"USER_DEACTIVATED","codes":"401","description":"The user has been deleted/deactivated"},{"name":"USER_DEACTIVATED_BAN","codes":"401","description":"The user has been deleted/deactivated"},{"name":"USER_ID_INVALID","codes":"400","description":"Invalid object ID for a user. Make sure to pass the right types, for instance making sure that the request is designed for users or otherwise look for a different one more suited"},{"name":"USER_INVALID","codes":"400","description":"The given user was invalid"},{"name":"USER_IS_BLOCKED","codes":"400 403","description":"User is blocked"},{"name":"USER_IS_BOT","codes":"400","description":"Bots can't send messages to other bots"},{"name":"USER_KICKED","codes":"400","description":"This user was kicked from this supergroup/channel"},{"name":"USER_MIGRATE_X","codes":"303","description":"The user whose identity is being used to execute queries is associated with DC {new_dc}"},{"name":"USER_NOT_MUTUAL_CONTACT","codes":"400 403","description":"The provided user is not a mutual contact"},{"name":"USER_NOT_PARTICIPANT","codes":"400","description":"The target user is not a member of the specified megagroup or channel"},{"name":"USER_PRIVACY_RESTRICTED","codes":"403","description":"The user's privacy settings do not allow you to do this"},{"name":"USER_RESTRICTED","codes":"403","description":"You're spamreported, you can't create channels or chats."},{"name":"USERPIC_UPLOAD_REQUIRED","codes":"400","description":"You must have a profile picture before using this method"},{"name":"VIDEO_CONTENT_TYPE_INVALID","codes":"400","description":"The video content type is not supported with the given parameters (i.e. supports_streaming)"},{"name":"VIDEO_FILE_INVALID","codes":"400","description":"The given video cannot be used"},{"name":"VIDEO_TITLE_EMPTY","codes":"400","description":""},{"name":"WALLPAPER_FILE_INVALID","codes":"400","description":"The given file cannot be used as a wallpaper"},{"name":"WALLPAPER_INVALID","codes":"400","description":"The input wallpaper was not valid"},{"name":"WALLPAPER_MIME_INVALID","codes":"400","description":""},{"name":"WC_CONVERT_URL_INVALID","codes":"400","description":"WC convert URL invalid"},{"name":"WEBDOCUMENT_MIME_INVALID","codes":"400","description":""},{"name":"WEBDOCUMENT_URL_INVALID","codes":"400","description":"The given URL cannot be used"},{"name":"WEBPAGE_CURL_FAILED","codes":"400","description":"Failure while fetching the webpage with cURL"},{"name":"WEBPAGE_MEDIA_EMPTY","codes":"400","description":"Webpage media empty"},{"name":"WORKER_BUSY_TOO_LONG_RETRY","codes":"500","description":"Telegram workers are too busy to respond immediately"},{"name":"YOU_BLOCKED_USER","codes":"400","description":"You blocked this user"},{"virtual":true,"name":"RPC_TIMEOUT","codes":"408","description":"Timeout of {ms} ms exceeded"},{"virtual":true,"name":"MESSAGE_NOT_FOUND","codes":"404","description":"Message was not found"}] \ No newline at end of file +[{"codes":"400","name":"BAD_REQUEST","description":"The query contains errors. In the event that a request was created using a form and contains user generated data, the user should be notified that the data must be corrected before the query is repeated","base":true},{"codes":"401","name":"UNAUTHORIZED","description":"There was an unauthorized attempt to use functionality available only to authorized users.","base":true},{"codes":"403","name":"FORBIDDEN","description":"Privacy violation. For example, an attempt to write a message to someone who has blacklisted the current user.","base":true},{"codes":"404","name":"NOT_FOUND","description":"An attempt to invoke a non-existent object, such as a method.","base":true},{"codes":"420","name":"FLOOD","description":"The maximum allowed number of attempts to invoke the given methodwith the given input parameters has been exceeded. For example, in anattempt to request a large number of text messages (SMS) for the samephone number.","base":true},{"codes":"303","name":"SEE_OTHER","description":"The request must be repeated, but directed to a different data center","base":true},{"codes":"406","name":"NOT_ACCEPTABLE","description":"Similar to 400 BAD_REQUEST, but the app should not display any error messages to user in UI as a result of this response. The error message will be delivered via updateServiceNotification instead.","base":true},{"codes":"500","name":"INTERNAL","description":"An internal server error occurred while a request was being processed; for example, there was a disruption while accessing a database or file storage.","base":true},{"name":"2FA_CONFIRM_WAIT_X","codes":"420","description":"The account is 2FA protected so it will be deleted in a week. Otherwise it can be reset in {seconds}"},{"name":"ABOUT_TOO_LONG","codes":"400","description":"The provided bio is too long"},{"name":"ACCESS_TOKEN_EXPIRED","codes":"400","description":"Bot token expired"},{"name":"ACCESS_TOKEN_INVALID","codes":"400","description":"The provided token is not valid"},{"name":"ACTIVE_USER_REQUIRED","codes":"401","description":"The method is only available to already activated users"},{"name":"ADMINS_TOO_MUCH","codes":"400","description":"Too many admins"},{"name":"ADMIN_RANK_EMOJI_NOT_ALLOWED","codes":"400","description":"Emoji are not allowed in admin titles or ranks"},{"name":"ADMIN_RANK_INVALID","codes":"400","description":"The given admin title or rank was invalid (possibly larger than 16 characters)"},{"name":"ALBUM_PHOTOS_TOO_MANY","codes":"400","description":"Too many photos were included in the album"},{"name":"API_ID_INVALID","codes":"400","description":"The api_id/api_hash combination is invalid"},{"name":"API_ID_PUBLISHED_FLOOD","codes":"400","description":"This API id was published somewhere, you can't use it now"},{"name":"ARTICLE_TITLE_EMPTY","codes":"400","description":"The title of the article is empty"},{"name":"AUDIO_TITLE_EMPTY","codes":"400","description":"The title attribute of the audio must be non-empty"},{"name":"AUDIO_CONTENT_URL_EMPTY","codes":"400","description":""},{"name":"AUTH_BYTES_INVALID","codes":"400","description":"The provided authorization is invalid"},{"name":"AUTH_KEY_DUPLICATED","codes":"406","description":"The authorization key (session file) was used under two different IP addresses simultaneously, and can no longer be used. Use the same session exclusively, or use different sessions"},{"name":"AUTH_KEY_INVALID","codes":"401","description":"The key is invalid"},{"name":"AUTH_KEY_PERM_EMPTY","codes":"401","description":"The method is unavailable for temporary authorization key, not bound to permanent"},{"name":"AUTH_KEY_UNREGISTERED","codes":"401","description":"The key is not registered in the system"},{"name":"AUTH_RESTART","codes":"500","description":"Restart the authorization process"},{"name":"AUTH_TOKEN_ALREADY_ACCEPTED","codes":"400","description":"The authorization token was already used"},{"name":"AUTH_TOKEN_EXPIRED","codes":"400","description":"The provided authorization token has expired and the updated QR-code must be re-scanned"},{"name":"AUTH_TOKEN_INVALID","codes":"400","description":"An invalid authorization token was provided"},{"name":"AUTOARCHIVE_NOT_AVAILABLE","codes":"400","description":"You cannot use this feature yet"},{"name":"BANK_CARD_NUMBER_INVALID","codes":"400","description":"Incorrect credit card number"},{"name":"BASE_PORT_LOC_INVALID","codes":"400","description":"Base port location invalid"},{"name":"BANNED_RIGHTS_INVALID","codes":"400","description":"You cannot use that set of permissions in this request, i.e. restricting view_messages as a default"},{"name":"BOTS_TOO_MUCH","codes":"400","description":"There are too many bots in this chat/channel"},{"name":"BOT_ONESIDE_NOT_AVAIL","codes":"400","description":""},{"name":"BOT_CHANNELS_NA","codes":"400","description":"Bots can't edit admin privileges"},{"name":"BOT_COMMAND_DESCRIPTION_INVALID","codes":"400","description":"The command description was empty, too long or had invalid characters used"},{"name":"BOT_COMMAND_INVALID","codes":"400","description":""},{"name":"BOT_DOMAIN_INVALID","codes":"400","description":"The domain used for the auth button does not match the one configured in @BotFather"},{"name":"BOT_GAMES_DISABLED","codes":"400","description":"Bot games cannot be used in this type of chat"},{"name":"BOT_GROUPS_BLOCKED","codes":"400","description":"This bot can't be added to groups"},{"name":"BOT_INLINE_DISABLED","codes":"400","description":"This bot can't be used in inline mode"},{"name":"BOT_INVALID","codes":"400","description":"This is not a valid bot"},{"name":"BOT_METHOD_INVALID","codes":"400","description":"The API access for bot users is restricted. The method you tried to invoke cannot be executed as a bot"},{"name":"BOT_MISSING","codes":"400","description":"This method can only be run by a bot"},{"name":"BOT_PAYMENTS_DISABLED","codes":"400","description":"This method can only be run by a bot"},{"name":"BOT_POLLS_DISABLED","codes":"400","description":"You cannot create polls under a bot account"},{"name":"BOT_RESPONSE_TIMEOUT","codes":"400","description":"The bot did not answer to the callback query in time"},{"name":"BROADCAST_CALLS_DISABLED","codes":"400","description":""},{"name":"BROADCAST_FORBIDDEN","codes":"403","description":"The request cannot be used in broadcast channels"},{"name":"BROADCAST_ID_INVALID","codes":"400","description":"The channel is invalid"},{"name":"BROADCAST_PUBLIC_VOTERS_FORBIDDEN","codes":"400","description":"You cannot broadcast polls where the voters are public"},{"name":"BROADCAST_REQUIRED","codes":"400","description":"The request can only be used with a broadcast channel"},{"name":"BUTTON_DATA_INVALID","codes":"400","description":"The provided button data is invalid"},{"name":"BUTTON_TYPE_INVALID","codes":"400","description":"The type of one of the buttons you provided is invalid"},{"name":"BUTTON_URL_INVALID","codes":"400","description":"Button URL invalid"},{"name":"CALL_ALREADY_ACCEPTED","codes":"400","description":"The call was already accepted"},{"name":"CALL_ALREADY_DECLINED","codes":"400","description":"The call was already declined"},{"name":"CALL_OCCUPY_FAILED","codes":"500","description":"The call failed because the user is already making another call"},{"name":"CALL_PEER_INVALID","codes":"400","description":"The provided call peer object is invalid"},{"name":"CALL_PROTOCOL_FLAGS_INVALID","codes":"400","description":"Call protocol flags invalid"},{"name":"CDN_METHOD_INVALID","codes":"400","description":"This method cannot be invoked on a CDN server. Refer to https://core.telegram.org/cdn#schema for available methods"},{"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","codes":"400","description":"You're admin of too many public channels, make some channels private to change the username of this channel"},{"name":"CHANNELS_TOO_MUCH","codes":"400","description":"You have joined too many channels/supergroups"},{"name":"CHANNEL_BANNED","codes":"400","description":"The channel is banned"},{"name":"CHANNEL_INVALID","codes":"400","description":"Invalid channel object. Make sure to pass the right types, for instance making sure that the request is designed for channels or otherwise look for a different one more suited"},{"name":"CHANNEL_PRIVATE","codes":"400","description":"The channel specified is private and you lack permission to access it. Another reason may be that you were banned from it"},{"name":"CHANNEL_PUBLIC_GROUP_NA","codes":"403","description":"channel/supergroup not available"},{"name":"CHAT_ABOUT_NOT_MODIFIED","codes":"400","description":"About text has not changed"},{"name":"CHAT_ABOUT_TOO_LONG","codes":"400","description":"Chat about too long"},{"name":"CHAT_ADMIN_INVITE_REQUIRED","codes":"403","description":"You do not have the rights to do this"},{"name":"CHAT_ADMIN_REQUIRED","codes":"400","description":"Chat admin privileges are required to do that in the specified chat (for example, to send a message in a channel which is not yours), or invalid permissions used for the channel or group"},{"name":"CHAT_FORBIDDEN","codes":"403","description":"You cannot write in this chat"},{"name":"CHAT_ID_EMPTY","codes":"400","description":"The provided chat ID is empty"},{"name":"CHAT_ID_INVALID","codes":"400","description":"Invalid object ID for a chat. Make sure to pass the right types, for instance making sure that the request is designed for chats (not channels/megagroups) or otherwise look for a different one more suited\\nAn example working with a megagroup and AddChatUserRequest, it will fail because megagroups are channels. Use InviteToChannelRequest instead"},{"name":"CHAT_INVALID","codes":"400","description":"The chat is invalid for this request"},{"name":"CHAT_LINK_EXISTS","codes":"400","description":"The chat is linked to a channel and cannot be used in that request"},{"name":"CHAT_NOT_MODIFIED","codes":"400","description":"The chat or channel wasn't modified (title, invites, username, admins, etc. are the same)"},{"name":"CHAT_RESTRICTED","codes":"400","description":"The chat is restricted and cannot be used in that request"},{"name":"CHAT_SEND_GIFS_FORBIDDEN","codes":"403","description":"You can't send gifs in this chat"},{"name":"CHAT_SEND_INLINE_FORBIDDEN","codes":"400","description":"You cannot send inline results in this chat"},{"name":"CHAT_SEND_MEDIA_FORBIDDEN","codes":"403","description":"You can't send media in this chat"},{"name":"CHAT_SEND_STICKERS_FORBIDDEN","codes":"403","description":"You can't send stickers in this chat"},{"name":"CHAT_TITLE_EMPTY","codes":"400","description":"No chat title provided"},{"name":"CHAT_WRITE_FORBIDDEN","codes":"403","description":"You can't write in this chat"},{"name":"CHP_CALL_FAIL","codes":"500","description":"The statistics cannot be retrieved at this time"},{"name":"CODE_EMPTY","codes":"400","description":"The provided code is empty"},{"name":"CODE_HASH_INVALID","codes":"400","description":"Code hash invalid"},{"name":"CODE_INVALID","codes":"400","description":"Code invalid (i.e. from email)"},{"name":"CONNECTION_API_ID_INVALID","codes":"400","description":"The provided API id is invalid"},{"name":"CONNECTION_DEVICE_MODEL_EMPTY","codes":"400","description":"Device model empty"},{"name":"CONNECTION_LANG_PACK_INVALID","codes":"400","description":"The specified language pack is not valid. This is meant to be used by official applications only so far, leave it empty"},{"name":"CONNECTION_LAYER_INVALID","codes":"400","description":"The very first request must always be InvokeWithLayerRequest"},{"name":"CONNECTION_NOT_INITED","codes":"400","description":"Connection not initialized"},{"name":"CONNECTION_SYSTEM_EMPTY","codes":"400","description":"Connection system empty"},{"name":"CONNECTION_SYSTEM_LANG_CODE_EMPTY","codes":"400","description":"The system language string was empty during connection"},{"name":"CONTACT_ID_INVALID","codes":"400","description":"The provided contact ID is invalid"},{"name":"CONTACT_NAME_EMPTY","codes":"400","description":"The provided contact name cannot be empty"},{"name":"CURRENCY_TOTAL_AMOUNT_INVALID","codes":"400","description":""},{"name":"DATA_INVALID","codes":"400","description":"Encrypted data invalid"},{"name":"DATA_JSON_INVALID","codes":"400","description":"The provided JSON data is invalid"},{"name":"DATE_EMPTY","codes":"400","description":"Date empty"},{"name":"DC_ID_INVALID","codes":"400","description":"This occurs when an authorization is tried to be exported for the same data center one is currently connected to"},{"name":"DH_G_A_INVALID","codes":"400","description":"g_a invalid"},{"name":"DOCUMENT_INVALID","codes":"400","description":"The document file was invalid and can't be used in inline mode"},{"name":"EMAIL_HASH_EXPIRED","codes":"400","description":"The email hash expired and cannot be used to verify it"},{"name":"EMAIL_INVALID","codes":"400","description":"The given email is invalid"},{"name":"EMAIL_UNCONFIRMED_X","codes":"400","description":"Email unconfirmed, the length of the code must be {code_length}"},{"name":"EMOTICON_EMPTY","codes":"400","description":"The emoticon field cannot be empty"},{"name":"EMOTICON_INVALID","codes":"400","description":"The specified emoticon cannot be used or was not a emoticon"},{"name":"EMOTICON_STICKERPACK_MISSING","codes":"400","description":"The emoticon sticker pack you are trying to get is missing"},{"name":"ENCRYPTED_MESSAGE_INVALID","codes":"400","description":"Encrypted message invalid"},{"name":"ENCRYPTION_ALREADY_ACCEPTED","codes":"400","description":"Secret chat already accepted"},{"name":"ENCRYPTION_ALREADY_DECLINED","codes":"400","description":"The secret chat was already declined"},{"name":"ENCRYPTION_DECLINED","codes":"400","description":"The secret chat was declined"},{"name":"ENCRYPTION_ID_INVALID","codes":"400","description":"The provided secret chat ID is invalid"},{"name":"ENCRYPTION_OCCUPY_FAILED","codes":"500","description":"TDLib developer claimed it is not an error while accepting secret chats and 500 is used instead of 420"},{"name":"ENTITIES_TOO_LONG","codes":"400","description":"It is no longer possible to send such long data inside entity tags (for example inline text URLs)"},{"name":"ENTITY_MENTION_USER_INVALID","codes":"400","description":"You can't use this entity"},{"name":"ERROR_TEXT_EMPTY","codes":"400","description":"The provided error message is empty"},{"name":"EXPIRE_FORBIDDEN","codes":"400","description":""},{"name":"EXPORT_CARD_INVALID","codes":"400","description":"Provided card is invalid"},{"name":"EXTERNAL_URL_INVALID","codes":"400","description":"External URL invalid"},{"name":"FIELD_NAME_EMPTY","codes":"400","description":"The field with the name FIELD_NAME is missing"},{"name":"FIELD_NAME_INVALID","codes":"400","description":"The field with the name FIELD_NAME is invalid"},{"name":"FILEREF_UPGRADE_NEEDED","codes":"406","description":"The file reference needs to be refreshed before being used again"},{"name":"FILE_CONTENT_TYPE_INVALID","codes":"400","description":""},{"name":"FILE_ID_INVALID","codes":"400","description":"The provided file id is invalid. Make sure all parameters are present, have the correct type and are not empty (ID, access hash, file reference, thumb size ...)"},{"name":"FILE_MIGRATE_X","codes":"303","description":"The file to be accessed is currently stored in DC {new_dc}"},{"name":"FILE_PARTS_INVALID","codes":"400","description":"The number of file parts is invalid"},{"name":"FILE_PART_0_MISSING","codes":"400","description":"File part 0 missing"},{"name":"FILE_PART_EMPTY","codes":"400","description":"The provided file part is empty"},{"name":"FILE_PART_INVALID","codes":"400","description":"The file part number is invalid"},{"name":"FILE_PART_LENGTH_INVALID","codes":"400","description":"The length of a file part is invalid"},{"name":"FILE_PART_SIZE_CHANGED","codes":"400","description":"The file part size (chunk size) cannot change during upload"},{"name":"FILE_PART_SIZE_INVALID","codes":"400","description":"The provided file part size is invalid"},{"name":"FILE_PART_X_MISSING","codes":"400","description":"Part {which} of the file is missing from storage"},{"name":"FILE_REFERENCE_EMPTY","codes":"400","description":"The file reference must exist to access the media and it cannot be empty"},{"name":"FILE_REFERENCE_EXPIRED","codes":"400","description":"The file reference has expired and is no longer valid or it belongs to self-destructing media and cannot be resent"},{"name":"FILE_REFERENCE_INVALID","codes":"400","description":"The file reference is invalid or you can't do that operation on such message"},{"name":"FIRSTNAME_INVALID","codes":"400","description":"The first name is invalid"},{"name":"FLOOD_TEST_PHONE_WAIT_X","codes":"420","description":"A wait of {seconds} seconds is required in the test servers"},{"name":"FLOOD_WAIT_X","codes":"420","description":"A wait of {seconds} seconds is required"},{"name":"FOLDER_ID_EMPTY","codes":"400","description":"The folder you tried to delete was already empty"},{"name":"FOLDER_ID_INVALID","codes":"400","description":"The folder you tried to use was not valid"},{"name":"FRESH_CHANGE_ADMINS_FORBIDDEN","codes":"400","description":"Recently logged-in users cannot add or change admins"},{"name":"FRESH_CHANGE_PHONE_FORBIDDEN","codes":"406","description":"Recently logged-in users cannot use this request"},{"name":"FRESH_RESET_AUTHORISATION_FORBIDDEN","codes":"406","description":"The current session is too new and cannot be used to reset other authorisations yet"},{"name":"FROM_PEER_INVALID","codes":"400","description":"The given from_user peer cannot be used for the parameter"},{"name":"GAME_BOT_INVALID","codes":"400","description":"You cannot send that game with the current bot"},{"name":"GIF_CONTENT_TYPE_INVALID","codes":"400","description":""},{"name":"GIF_ID_INVALID","codes":"400","description":"The provided GIF ID is invalid"},{"name":"GRAPH_INVALID_RELOAD","codes":"400","description":""},{"name":"GRAPH_OUTDATED_RELOAD","codes":"400","description":"Data can't be used for the channel statistics, graphs outdated"},{"name":"GROUPCALL_ALREADY_DISCARDED","codes":"400","description":""},{"name":"GROUPCALL_FORBIDDEN","codes":"403","description":""},{"name":"GROUPCALL_JOIN_MISSING","codes":"400","description":""},{"name":"GROUPCALL_SSRC_DUPLICATE_MUCH","codes":"400","description":""},{"name":"GROUPCALL_NOT_MODIFIED","codes":"400","description":""},{"name":"GROUPED_MEDIA_INVALID","codes":"400","description":"Invalid grouped media"},{"name":"GROUP_CALL_INVALID","codes":"400","description":"Group call invalid"},{"name":"HASH_INVALID","codes":"400","description":"The provided hash is invalid"},{"name":"HISTORY_GET_FAILED","codes":"500","description":"Fetching of history failed"},{"name":"IMAGE_PROCESS_FAILED","codes":"400","description":"Failure while processing image"},{"name":"IMPORT_FILE_INVALID","codes":"400","description":"The file is too large to be imported"},{"name":"IMPORT_FORMAT_UNRECOGNIZED","codes":"400","description":"Unknown import format"},{"name":"IMPORT_ID_INVALID","codes":"400","description":""},{"name":"INLINE_BOT_REQUIRED","codes":"403","description":"The action must be performed through an inline bot callback"},{"name":"INLINE_RESULT_EXPIRED","codes":"400","description":"The inline query expired"},{"name":"INPUT_CONSTRUCTOR_INVALID","codes":"400","description":"The provided constructor is invalid"},{"name":"INPUT_FETCH_ERROR","codes":"400","description":"An error occurred while deserializing TL parameters"},{"name":"INPUT_FETCH_FAIL","codes":"400","description":"Failed deserializing TL payload"},{"name":"INPUT_FILTER_INVALID","codes":"400","description":"The search query filter is invalid"},{"name":"INPUT_LAYER_INVALID","codes":"400","description":"The provided layer is invalid"},{"name":"INPUT_METHOD_INVALID","codes":"400","description":"The invoked method does not exist anymore or has never existed"},{"name":"INPUT_REQUEST_TOO_LONG","codes":"400","description":"The input request was too long. This may be a bug in the library as it can occur when serializing more bytes than it should (like appending the vector constructor code at the end of a message)"},{"name":"INPUT_USER_DEACTIVATED","codes":"400","description":"The specified user was deleted"},{"name":"INTERDC_X_CALL_ERROR","codes":"500","description":"An error occurred while communicating with DC {dc}"},{"name":"INTERDC_X_CALL_RICH_ERROR","codes":"500","description":"A rich error occurred while communicating with DC {dc}"},{"name":"INVITE_HASH_EMPTY","codes":"400","description":"The invite hash is empty"},{"name":"INVITE_HASH_EXPIRED","codes":"400","description":"The chat the user tried to join has expired and is not valid anymore"},{"name":"INVITE_HASH_INVALID","codes":"400","description":"The invite hash is invalid"},{"name":"LANG_CODE_INVALID","codes":"400","description":""},{"name":"LANG_PACK_INVALID","codes":"400","description":"The provided language pack is invalid"},{"name":"LASTNAME_INVALID","codes":"400","description":"The last name is invalid"},{"name":"LIMIT_INVALID","codes":"400","description":"An invalid limit was provided. See https://core.telegram.org/api/files#downloading-files"},{"name":"LINK_NOT_MODIFIED","codes":"400","description":"The channel is already linked to this group"},{"name":"LOCATION_INVALID","codes":"400","description":"The location given for a file was invalid. See https://core.telegram.org/api/files#downloading-files"},{"name":"MAX_ID_INVALID","codes":"400","description":"The provided max ID is invalid"},{"name":"MAX_QTS_INVALID","codes":"400","description":"The provided QTS were invalid"},{"name":"MD5_CHECKSUM_INVALID","codes":"400","description":"The MD5 check-sums do not match"},{"name":"MEDIA_CAPTION_TOO_LONG","codes":"400","description":"The caption is too long"},{"name":"MEDIA_EMPTY","codes":"400","description":"The provided media object is invalid or the current account may not be able to send it (such as games as users)"},{"name":"MEDIA_GROUPED_INVALID","codes":"400","description":""},{"name":"MEDIA_INVALID","codes":"400","description":"Media invalid"},{"name":"MEDIA_NEW_INVALID","codes":"400","description":"The new media to edit the message with is invalid (such as stickers or voice notes)"},{"name":"MEDIA_PREV_INVALID","codes":"400","description":"The old media cannot be edited with anything else (such as stickers or voice notes)"},{"name":"MEDIA_TTL_INVALID","codes":"400","description":""},{"name":"MEGAGROUP_ID_INVALID","codes":"400","description":"The group is invalid"},{"name":"MEGAGROUP_PREHISTORY_HIDDEN","codes":"400","description":"You can't set this discussion group because it's history is hidden"},{"name":"MEGAGROUP_REQUIRED","codes":"400","description":"The request can only be used with a megagroup channel"},{"name":"MEMBER_NO_LOCATION","codes":"500","description":"An internal failure occurred while fetching user info (couldn't find location)"},{"name":"MEMBER_OCCUPY_PRIMARY_LOC_FAILED","codes":"500","description":"Occupation of primary member location failed"},{"name":"MESSAGE_AUTHOR_REQUIRED","codes":"403","description":"Message author required"},{"name":"MESSAGE_DELETE_FORBIDDEN","codes":"403","description":"You can't delete one of the messages you tried to delete, most likely because it is a service message."},{"name":"MESSAGE_EDIT_TIME_EXPIRED","codes":"400","description":"You can't edit this message anymore, too much time has passed since its creation."},{"name":"MESSAGE_EMPTY","codes":"400","description":"Empty or invalid UTF-8 message was sent"},{"name":"MESSAGE_IDS_EMPTY","codes":"400","description":"No message ids were provided"},{"name":"MESSAGE_ID_INVALID","codes":"400","description":"The specified message ID is invalid or you can't do that operation on such message"},{"name":"MESSAGE_NOT_MODIFIED","codes":"400","description":"Content of the message was not modified"},{"name":"MESSAGE_POLL_CLOSED","codes":"400","description":"The poll was closed and can no longer be voted on"},{"name":"MESSAGE_TOO_LONG","codes":"400","description":"Message was too long. Current maximum length is 4096 UTF-8 characters"},{"name":"METHOD_INVALID","codes":"400","description":"The API method is invalid and cannot be used"},{"name":"MSGID_DECREASE_RETRY","codes":"500","description":"The request should be retried with a lower message ID"},{"name":"MSG_ID_INVALID","codes":"400","description":"The message ID used in the peer was invalid"},{"name":"MSG_WAIT_FAILED","codes":"400","description":"A waiting call returned an error"},{"name":"MT_SEND_QUEUE_TOO_LONG","codes":"500","description":""},{"name":"MULTI_MEDIA_TOO_LONG","codes":"400","description":"Too many media files were included in the same album"},{"name":"NEED_CHAT_INVALID","codes":"500","description":"The provided chat is invalid"},{"name":"NEED_MEMBER_INVALID","codes":"500","description":"The provided member is invalid or does not exist (for example a thumb size)"},{"name":"NETWORK_MIGRATE_X","codes":"303","description":"The source IP address is associated with DC {new_dc}"},{"name":"NEW_SALT_INVALID","codes":"400","description":"The new salt is invalid"},{"name":"NEW_SETTINGS_INVALID","codes":"400","description":"The new settings are invalid"},{"name":"NEXT_OFFSET_INVALID","codes":"400","description":"The value for next_offset is invalid. Check that it has normal characters and is not too long"},{"name":"OFFSET_INVALID","codes":"400","description":"The given offset was invalid, it must be divisible by 1KB. See https://core.telegram.org/api/files#downloading-files"},{"name":"OFFSET_PEER_ID_INVALID","codes":"400","description":"The provided offset peer is invalid"},{"name":"OPTIONS_TOO_MUCH","codes":"400","description":"You defined too many options for the poll"},{"name":"OPTION_INVALID","codes":"400","description":"The option specified is invalid and does not exist in the target poll"},{"name":"PACK_SHORT_NAME_INVALID","codes":"400","description":"Invalid sticker pack name. It must begin with a letter, can't contain consecutive underscores and must end in \"_by_\"."},{"name":"PACK_SHORT_NAME_OCCUPIED","codes":"400","description":"A stickerpack with this name already exists"},{"name":"PARTICIPANTS_TOO_FEW","codes":"400","description":"Not enough participants"},{"name":"PARTICIPANT_CALL_FAILED","codes":"500","description":"Failure while making call"},{"name":"PARTICIPANT_JOIN_MISSING","codes":"403","description":""},{"name":"PARTICIPANT_VERSION_OUTDATED","codes":"400","description":"The other participant does not use an up to date telegram client with support for calls"},{"name":"PASSWORD_EMPTY","codes":"400","description":"The provided password is empty"},{"name":"PASSWORD_HASH_INVALID","codes":"400","description":"The password (and thus its hash value) you entered is invalid"},{"name":"PASSWORD_MISSING","codes":"400","description":"The account must have 2-factor authentication enabled (a password) before this method can be used"},{"name":"PASSWORD_RECOVERY_EXPIRED","codes":"400","description":""},{"name":"PASSWORD_REQUIRED","codes":"400","description":"The account must have 2-factor authentication enabled (a password) before this method can be used"},{"name":"PASSWORD_TOO_FRESH_X","codes":"400","description":"The password was added too recently and {seconds} seconds must pass before using the method"},{"name":"PAYMENT_PROVIDER_INVALID","codes":"400","description":"The payment provider was not recognised or its token was invalid"},{"name":"PEER_FLOOD","codes":"400","description":"Too many requests"},{"name":"PEER_ID_INVALID","codes":"400","description":"An invalid Peer was used. Make sure to pass the right peer type and that the value is valid (for instance, bots cannot start conversations)"},{"name":"PEER_ID_NOT_SUPPORTED","codes":"400","description":"The provided peer ID is not supported"},{"name":"PERSISTENT_TIMESTAMP_EMPTY","codes":"400","description":"Persistent timestamp empty"},{"name":"PERSISTENT_TIMESTAMP_INVALID","codes":"400","description":"Persistent timestamp invalid"},{"name":"PERSISTENT_TIMESTAMP_OUTDATED","codes":"500","description":"Persistent timestamp outdated"},{"name":"PHONE_CODE_EMPTY","codes":"400","description":"The phone code is missing"},{"name":"PHONE_CODE_EXPIRED","codes":"400","description":"The confirmation code has expired"},{"name":"PHONE_CODE_HASH_EMPTY","codes":"400","description":"The phone code hash is missing"},{"name":"PHONE_CODE_INVALID","codes":"400","description":"The phone code entered was invalid"},{"name":"PHONE_MIGRATE_X","codes":"303","description":"The phone number a user is trying to use for authorization is associated with DC {new_dc}"},{"name":"PHONE_NUMBER_APP_SIGNUP_FORBIDDEN","codes":"400","description":"You can't sign up using this app"},{"name":"PHONE_NUMBER_BANNED","codes":"400","description":"The used phone number has been banned from Telegram and cannot be used anymore. Maybe check https://www.telegram.org/faq_spam"},{"name":"PHONE_NUMBER_FLOOD","codes":"400","description":"You asked for the code too many times."},{"name":"PHONE_NUMBER_INVALID","codes":"400 406","description":"The phone number is invalid"},{"name":"PHONE_NUMBER_OCCUPIED","codes":"400","description":"The phone number is already in use"},{"name":"PHONE_NUMBER_UNOCCUPIED","codes":"400","description":"The phone number is not yet being used"},{"name":"PHONE_PASSWORD_FLOOD","codes":"406","description":"You have tried logging in too many times"},{"name":"PHONE_PASSWORD_PROTECTED","codes":"400","description":"This phone is password protected"},{"name":"PHOTO_CONTENT_TYPE_INVALID","codes":"400","description":""},{"name":"PHOTO_CONTENT_URL_EMPTY","codes":"400","description":"The content from the URL used as a photo appears to be empty or has caused another HTTP error"},{"name":"PHOTO_CROP_SIZE_SMALL","codes":"400","description":"Photo is too small"},{"name":"PHOTO_EXT_INVALID","codes":"400","description":"The extension of the photo is invalid"},{"name":"PHOTO_ID_INVALID","codes":"400","description":"Photo id is invalid"},{"name":"PHOTO_INVALID","codes":"400","description":"Photo invalid"},{"name":"PHOTO_INVALID_DIMENSIONS","codes":"400","description":"The photo dimensions are invalid (hint: `pip install pillow` for `send_file` to resize images)"},{"name":"PHOTO_SAVE_FILE_INVALID","codes":"400","description":"The photo you tried to send cannot be saved by Telegram. A reason may be that it exceeds 10MB. Try resizing it locally"},{"name":"PHOTO_THUMB_URL_EMPTY","codes":"400","description":"The URL used as a thumbnail appears to be empty or has caused another HTTP error"},{"name":"PIN_RESTRICTED","codes":"400","description":"You can't pin messages in private chats with other people"},{"name":"POLL_ANSWERS_INVALID","codes":"400","description":"The poll did not have enough answers or had too many"},{"name":"POLL_OPTION_DUPLICATE","codes":"400","description":"A duplicate option was sent in the same poll"},{"name":"POLL_OPTION_INVALID","codes":"400","description":"A poll option used invalid data (the data may be too long)"},{"name":"POLL_QUESTION_INVALID","codes":"400","description":"The poll question was either empty or too long"},{"name":"POLL_UNSUPPORTED","codes":"400","description":"This layer does not support polls in the issued method"},{"name":"PREVIOUS_CHAT_IMPORT_ACTIVE_WAIT_XMIN","codes":"406","description":"Similar to a flood wait, must wait {minutes} minutes"},{"name":"PRIVACY_KEY_INVALID","codes":"400","description":"The privacy key is invalid"},{"name":"PRIVACY_TOO_LONG","codes":"400","description":"Cannot add that many entities in a single request"},{"name":"PRIVACY_VALUE_INVALID","codes":"400","description":"The privacy value is invalid"},{"name":"PTS_CHANGE_EMPTY","codes":"500","description":"No PTS change"},{"name":"QUERY_ID_EMPTY","codes":"400","description":"The query ID is empty"},{"name":"QUERY_ID_INVALID","codes":"400","description":"The query ID is invalid"},{"name":"QUERY_TOO_SHORT","codes":"400","description":"The query string is too short"},{"name":"QUIZ_CORRECT_ANSWERS_EMPTY","codes":"400","description":"A quiz must specify one correct answer"},{"name":"QUIZ_CORRECT_ANSWERS_TOO_MUCH","codes":"400","description":"There can only be one correct answer"},{"name":"QUIZ_CORRECT_ANSWER_INVALID","codes":"400","description":"The correct answer is not an existing answer"},{"name":"QUIZ_MULTIPLE_INVALID","codes":"400","description":"A poll cannot be both multiple choice and quiz"},{"name":"RANDOM_ID_DUPLICATE","codes":"500","description":"You provided a random ID that was already used"},{"name":"RANDOM_ID_INVALID","codes":"400","description":"A provided random ID is invalid"},{"name":"RANDOM_LENGTH_INVALID","codes":"400","description":"Random length invalid"},{"name":"RANGES_INVALID","codes":"400","description":"Invalid range provided"},{"name":"REACTION_EMPTY","codes":"400","description":"No reaction provided"},{"name":"REACTION_INVALID","codes":"400","description":"Invalid reaction provided (only emoji are allowed)"},{"name":"REFLECTOR_NOT_AVAILABLE","codes":"400","description":"Invalid call reflector server"},{"name":"REG_ID_GENERATE_FAILED","codes":"500","description":"Failure while generating registration ID"},{"name":"REPLY_MARKUP_GAME_EMPTY","codes":"400","description":"The provided reply markup for the game is empty"},{"name":"REPLY_MARKUP_INVALID","codes":"400","description":"The provided reply markup is invalid"},{"name":"REPLY_MARKUP_TOO_LONG","codes":"400","description":"The data embedded in the reply markup buttons was too much"},{"name":"RESET_REQUEST_MISSING","codes":"400","description":""},{"name":"RESULTS_TOO_MUCH","codes":"400","description":"You sent too many results, see https://core.telegram.org/bots/api#answerinlinequery for the current limit"},{"name":"RESULT_ID_DUPLICATE","codes":"400","description":"Duplicated IDs on the sent results. Make sure to use unique IDs"},{"name":"RESULT_ID_INVALID","codes":"400","description":"The given result cannot be used to send the selection to the bot"},{"name":"RESULT_TYPE_INVALID","codes":"400","description":"Result type invalid"},{"name":"RIGHT_FORBIDDEN","codes":"403","description":"Either your admin rights do not allow you to do this or you passed the wrong rights combination (some rights only apply to channels and vice versa)"},{"name":"RPC_CALL_FAIL","codes":"500","description":"Telegram is having internal issues, please try again later."},{"name":"RPC_MCGET_FAIL","codes":"500","description":"Telegram is having internal issues, please try again later."},{"name":"RSA_DECRYPT_FAILED","codes":"400","description":"Internal RSA decryption failed"},{"name":"SCHEDULE_BOT_NOT_ALLOWED","codes":"400","description":"Bots are not allowed to schedule messages"},{"name":"SCHEDULE_DATE_INVALID","codes":"400","description":""},{"name":"SCHEDULE_DATE_TOO_LATE","codes":"400","description":"The date you tried to schedule is too far in the future (last known limit of 1 year and a few hours)"},{"name":"SCHEDULE_STATUS_PRIVATE","codes":"400","description":"You cannot schedule a message until the person comes online if their privacy does not show this information"},{"name":"SCHEDULE_TOO_MUCH","codes":"400","description":"You cannot schedule more messages in this chat (last known limit of 100 per chat)"},{"name":"SEARCH_QUERY_EMPTY","codes":"400","description":"The search query is empty"},{"name":"SECONDS_INVALID","codes":"400","description":"Slow mode only supports certain values (e.g. 0, 10s, 30s, 1m, 5m, 15m and 1h)"},{"name":"SEND_MESSAGE_MEDIA_INVALID","codes":"400","description":"The message media was invalid or not specified"},{"name":"SEND_MESSAGE_TYPE_INVALID","codes":"400","description":"The message type is invalid"},{"name":"SENSITIVE_CHANGE_FORBIDDEN","codes":"403","description":"Your sensitive content settings cannot be changed at this time"},{"name":"SESSION_EXPIRED","codes":"401","description":"The authorization has expired"},{"name":"SESSION_PASSWORD_NEEDED","codes":"401","description":"Two-steps verification is enabled and a password is required"},{"name":"SESSION_REVOKED","codes":"401","description":"The authorization has been invalidated, because of the user terminating all sessions"},{"name":"SESSION_TOO_FRESH_X","codes":"400","description":"The session logged in too recently and {seconds} seconds must pass before calling the method"},{"name":"SHA256_HASH_INVALID","codes":"400","description":"The provided SHA256 hash is invalid"},{"name":"SHORTNAME_OCCUPY_FAILED","codes":"400","description":"An error occurred when trying to register the short-name used for the sticker pack. Try a different name"},{"name":"SHORT_NAME_INVALID","codes":"400","description":""},{"name":"SHORT_NAME_OCCUPIED","codes":"400","description":""},{"name":"SLOWMODE_WAIT_X","codes":"420","description":"A wait of {seconds} seconds is required before sending another message in this chat"},{"name":"SRP_ID_INVALID","codes":"400","description":""},{"name":"START_PARAM_EMPTY","codes":"400","description":"The start parameter is empty"},{"name":"START_PARAM_INVALID","codes":"400","description":"Start parameter invalid"},{"name":"STATS_MIGRATE_X","codes":"303","description":"The channel statistics must be fetched from DC {dc}"},{"name":"STICKERSET_INVALID","codes":"400","description":"The provided sticker set is invalid"},{"name":"STICKERSET_OWNER_ANONYMOUS","codes":"406","description":"This sticker set can't be used as the group's official stickers because it was created by one of its anonymous admins"},{"name":"STICKERS_EMPTY","codes":"400","description":"No sticker provided"},{"name":"STICKER_DOCUMENT_INVALID","codes":"400","description":"The sticker file was invalid (this file has failed Telegram internal checks, make sure to use the correct format and comply with https://core.telegram.org/animated_stickers)"},{"name":"STICKER_EMOJI_INVALID","codes":"400","description":"Sticker emoji invalid"},{"name":"STICKER_FILE_INVALID","codes":"400","description":"Sticker file invalid"},{"name":"STICKER_ID_INVALID","codes":"400","description":"The provided sticker ID is invalid"},{"name":"STICKER_INVALID","codes":"400","description":"The provided sticker is invalid"},{"name":"STICKER_PNG_DIMENSIONS","codes":"400","description":"Sticker png dimensions invalid"},{"name":"STICKER_PNG_NOPNG","codes":"400","description":"Stickers must be a png file but the used image was not a png"},{"name":"STICKER_TGS_NODOC","codes":"400","description":""},{"name":"STICKER_TGS_NOTGS","codes":"400","description":"Stickers must be a tgs file but the used file was not a tgs"},{"name":"STICKER_THUMB_PNG_NOPNG","codes":"400","description":"Stickerset thumb must be a png file but the used file was not png"},{"name":"STICKER_THUMB_TGS_NOTGS","codes":"400","description":"Stickerset thumb must be a tgs file but the used file was not tgs"},{"name":"STORAGE_CHECK_FAILED","codes":"500","description":"Server storage check failed"},{"name":"STORE_INVALID_SCALAR_TYPE","codes":"500","description":""},{"name":"TAKEOUT_INIT_DELAY_X","codes":"420","description":"A wait of {seconds} seconds is required before being able to initiate the takeout"},{"name":"TAKEOUT_INVALID","codes":"400","description":"The takeout session has been invalidated by another data export session"},{"name":"TAKEOUT_REQUIRED","codes":"400","description":"You must initialize a takeout request first"},{"name":"TEMP_AUTH_KEY_EMPTY","codes":"400","description":"No temporary auth key provided"},{"name":"TIMEOUT","codes":"500","description":"A timeout occurred while fetching data from the worker"},{"name":"TITLE_INVALID","codes":"400","description":""},{"name":"THEME_INVALID","codes":"400","description":"Theme invalid"},{"name":"THEME_MIME_INVALID","codes":"400","description":"You cannot create this theme, the mime-type is invalid"},{"name":"TMP_PASSWORD_DISABLED","codes":"400","description":"The temporary password is disabled"},{"name":"TMP_PASSWORD_INVALID","codes":"400","description":"Password auth needs to be regenerated"},{"name":"TOKEN_INVALID","codes":"400","description":"The provided token is invalid"},{"name":"TTL_DAYS_INVALID","codes":"400","description":"The provided TTL is invalid"},{"name":"TTL_PERIOD_INVALID","codes":"400","description":"The provided TTL Period is invalid"},{"name":"TYPES_EMPTY","codes":"400","description":"The types field is empty"},{"name":"TYPE_CONSTRUCTOR_INVALID","codes":"400","description":"The type constructor is invalid"},{"name":"UNKNOWN_METHOD","codes":"500","description":"The method you tried to call cannot be called on non-CDN DCs"},{"name":"UNTIL_DATE_INVALID","codes":"400","description":"That date cannot be specified in this request (try using None)"},{"name":"URL_INVALID","codes":"400","description":"The URL used was invalid (e.g. when answering a callback with a URL that's not t.me/yourbot or your game's URL)"},{"name":"USER_VOLUME_INVALID","codes":"400","description":""},{"name":"USERNAME_INVALID","codes":"400","description":"Nobody is using this username, or the username is unacceptable. If the latter, it must match r\"[a-zA-Z][\\w\\d]{3,30}[a-zA-Z\\d]\""},{"name":"USERNAME_NOT_MODIFIED","codes":"400","description":"The username is not different from the current username"},{"name":"USERNAME_NOT_OCCUPIED","codes":"400","description":"The username is not in use by anyone else yet"},{"name":"USERNAME_OCCUPIED","codes":"400","description":"The username is already taken"},{"name":"USERS_TOO_FEW","codes":"400","description":"Not enough users (to create a chat, for example)"},{"name":"USERS_TOO_MUCH","codes":"400","description":"The maximum number of users has been exceeded (to create a chat, for example)"},{"name":"USER_ADMIN_INVALID","codes":"400","description":"Either you're not an admin or you tried to ban an admin that you didn't promote"},{"name":"USER_ALREADY_PARTICIPANT","codes":"400","description":"The authenticated user is already a participant of the chat"},{"name":"USER_BANNED_IN_CHANNEL","codes":"400","description":"You're banned from sending messages in supergroups/channels"},{"name":"USER_BLOCKED","codes":"400","description":"User blocked"},{"name":"USER_BOT","codes":"400","description":"Bots can only be admins in channels."},{"name":"USER_BOT_INVALID","codes":"400 403","description":"This method can only be called by a bot"},{"name":"USER_BOT_REQUIRED","codes":"400","description":"This method can only be called by a bot"},{"name":"USER_CHANNELS_TOO_MUCH","codes":"403","description":"One of the users you tried to add is already in too many channels/supergroups"},{"name":"USER_CREATOR","codes":"400","description":"You can't leave this channel, because you're its creator"},{"name":"USER_DEACTIVATED","codes":"401","description":"The user has been deleted/deactivated"},{"name":"USER_DEACTIVATED_BAN","codes":"401","description":"The user has been deleted/deactivated"},{"name":"USER_ID_INVALID","codes":"400","description":"Invalid object ID for a user. Make sure to pass the right types, for instance making sure that the request is designed for users or otherwise look for a different one more suited"},{"name":"USER_INVALID","codes":"400","description":"The given user was invalid"},{"name":"USER_IS_BLOCKED","codes":"400 403","description":"User is blocked"},{"name":"USER_IS_BOT","codes":"400","description":"Bots can't send messages to other bots"},{"name":"USER_KICKED","codes":"400","description":"This user was kicked from this supergroup/channel"},{"name":"USER_MIGRATE_X","codes":"303","description":"The user whose identity is being used to execute queries is associated with DC {new_dc}"},{"name":"USER_NOT_MUTUAL_CONTACT","codes":"400 403","description":"The provided user is not a mutual contact"},{"name":"USER_NOT_PARTICIPANT","codes":"400","description":"The target user is not a member of the specified megagroup or channel"},{"name":"USER_PRIVACY_RESTRICTED","codes":"403","description":"The user's privacy settings do not allow you to do this"},{"name":"USER_RESTRICTED","codes":"403","description":"You're spamreported, you can't create channels or chats."},{"name":"USERPIC_UPLOAD_REQUIRED","codes":"400","description":"You must have a profile picture before using this method"},{"name":"VIDEO_CONTENT_TYPE_INVALID","codes":"400","description":"The video content type is not supported with the given parameters (i.e. supports_streaming)"},{"name":"VIDEO_FILE_INVALID","codes":"400","description":"The given video cannot be used"},{"name":"VIDEO_TITLE_EMPTY","codes":"400","description":""},{"name":"WALLPAPER_FILE_INVALID","codes":"400","description":"The given file cannot be used as a wallpaper"},{"name":"WALLPAPER_INVALID","codes":"400","description":"The input wallpaper was not valid"},{"name":"WALLPAPER_MIME_INVALID","codes":"400","description":""},{"name":"WC_CONVERT_URL_INVALID","codes":"400","description":"WC convert URL invalid"},{"name":"WEBDOCUMENT_MIME_INVALID","codes":"400","description":""},{"name":"WEBDOCUMENT_URL_INVALID","codes":"400","description":"The given URL cannot be used"},{"name":"WEBPAGE_CURL_FAILED","codes":"400","description":"Failure while fetching the webpage with cURL"},{"name":"WEBPAGE_MEDIA_EMPTY","codes":"400","description":"Webpage media empty"},{"name":"WORKER_BUSY_TOO_LONG_RETRY","codes":"500","description":"Telegram workers are too busy to respond immediately"},{"name":"YOU_BLOCKED_USER","codes":"400","description":"You blocked this user"},{"virtual":true,"name":"RPC_TIMEOUT","codes":"408","description":"Timeout of {ms} ms exceeded"},{"virtual":true,"name":"MESSAGE_NOT_FOUND","codes":"404","description":"Message was not found"}] \ No newline at end of file diff --git a/packages/tl/raw-schema.json b/packages/tl/raw-schema.json index cb7578c5..8e3601f6 100644 --- a/packages/tl/raw-schema.json +++ b/packages/tl/raw-schema.json @@ -1 +1 @@ -{"mtproto":{"$root":{"classes":[{"name":"resPQ","id":85337187,"type":"ResPQ","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Random number generated by the server, used in the later steps"},{"name":"pq","type":"Buffer","description":"Big endian representation of a natural number, which is a product of two different odd prime numbers. Normally, this value is `<= 2^63-1`. Client is expected to decompose this product to `p` and `q`.\n"},{"name":"serverPublicKeyFingerprints","type":"Long[]","description":"List of public RSA key fingerprints, which are computed as follows:\n - First, the modulus and the exponent are extracted from the key\n - Then, the following TL type is written: `rsa_public_key n:string e:string = RSAPublicKey`\n - This is a bare type, meaning there's no 4-byte type number before it\n - `n` is the modulus, `e` is the exponent, encoded as big-endian\n - Finally, SHA1 is computed, and its last 8 bytes are taken and parsed as LE long\n (i.e. `parse_int64_le(sha1(rsa_public_key).slice(-8))`)\n\nClient is expected to choose out of those keys any single one that it has\nembedded in itself and return one of them in the following request.\n"}],"description":"Response for the first step of Authorization key derivation process"},{"name":"p_q_inner_data","id":2211011308,"type":"P_Q_inner_data","arguments":[{"name":"pq","type":"Buffer","description":"Original product of `p` and `q` sent by the server"},{"name":"p","type":"Buffer","description":"Big endian encoded first factor. Note - `p < q`"},{"name":"q","type":"Buffer","description":"Big endian encoded second factor. Node - `p < q`"},{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"newNonce","type":"Int256","description":"New client nonce generated"}],"description":"Inner data used for {@link tl.mtproto.RawReqDHParamsRequest}"},{"name":"p_q_inner_data_dc","id":2851430293,"type":"P_Q_inner_data","arguments":[{"name":"pq","type":"Buffer"},{"name":"p","type":"Buffer"},{"name":"q","type":"Buffer"},{"name":"nonce","type":"Int128"},{"name":"serverNonce","type":"Int128"},{"name":"newNonce","type":"Int256"},{"name":"dc","type":"number"}]},{"name":"p_q_inner_data_temp","id":1013613780,"type":"P_Q_inner_data","arguments":[{"name":"pq","type":"Buffer","description":"Original product of `p` and `q` sent by the server"},{"name":"p","type":"Buffer","description":"Big endian encoded first factor. Note - `p < q`"},{"name":"q","type":"Buffer","description":"Big endian encoded second factor. Node - `p < q`"},{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"newNonce","type":"Int256","description":"New client nonce generated"},{"name":"expiresIn","type":"number","description":"Maximum number of seconds that this key will be valid for. The server might discard the key earlier.\n"}],"description":"Inner data used for {@link tl.mtproto.RawReqDHParamsRequest}. Unlike {@link tl.mtproto.RawP_q_inner_data}, this is used to generate a temporary key.\n"},{"name":"p_q_inner_data_temp_dc","id":1459478408,"type":"P_Q_inner_d","arguments":[{"name":"pq","type":"Buffer"},{"name":"p","type":"Buffer"},{"name":"q","type":"Buffer"},{"name":"nonce","type":"Int128"},{"name":"serverNonce","type":"Int128"},{"name":"newNonce","type":"Int256"},{"name":"dc","type":"number"},{"name":"expiresIn","type":"number"}]},{"name":"server_DH_params_fail","id":2043348061,"type":"Server_DH_Params","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"newNonceHash","type":"Int128"}],"description":"PQ decomposition was incorrect, try again."},{"name":"server_DH_params_ok","id":3504867164,"type":"Server_DH_Params","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"encryptedAnswer","type":"Buffer","description":"Encrypted DH parameters, obtained as follows:\n - Let `answer` be a serialization of {@link tl.mtproto.RawServer_DH_inner_data}\n - `hash1 = sha1(concat(newNonce, serverNonce))`\n - `hash2 = sha1(concat(serverNonce, newNonce))`\n - `hash3 = sha1(concat(newNonce, newNonce))`\n - `key = concat(hash1, hash2.slice(0, 12))`\n - `iv = concat(hash2.slice(12, 20), hash3, newNonce.slice(0, 4))`\n - `encryptedAnswer = aes256_ige_encrypt(answer, key, iv)\n"}],"description":"PQ decomposition was correct, server-side variables for DH are returned"},{"name":"server_DH_inner_data","id":3045658042,"type":"Server_DH_inner_data","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"g","type":"number","description":"`g` number (generator) used for Diffie-Hellman"},{"name":"dhPrime","type":"Buffer","description":"`p` prime number (modulus) used for Diffie-Hellman"},{"name":"gA","type":"Buffer","description":"`gA` number (`gA = g ^ A % p`, where `A` is server secret) used for Diffie-Hellman"},{"name":"serverTime","type":"number","description":"Server UNIX timestamp (in seconds)"}],"description":"Inner data that is returned in {@link tl.mtproto.RawServer_DH_params_ok}, containing server-side variables for Diffie-Hellman exchange\n"},{"name":"client_DH_inner_data","id":1715713620,"type":"Client_DH_Inner_Data","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"retryId","type":"Long","description":"Retry ID. When requesting for the first time, `0`, then last `authKeyAuxHash` is used\n"},{"name":"gB","type":"Buffer","description":"`gB` number (`gB = g ^ B % p`, where `B` is client secret) used for Diffie-Hellman"}],"description":"Inner data of {@link tl.mtproto.RawSetClientDHParamsRequest}, containing client-side variables for Diffie-Hellman exchange\n"},{"name":"dh_gen_ok","id":1003222836,"type":"Set_client_DH_params_answer","arguments":[{"name":"nonce","type":"Int128"},{"name":"serverNonce","type":"Int128"},{"name":"newNonceHash1","type":"Int128"}]},{"name":"dh_gen_retry","id":1188831161,"type":"Set_client_DH_params_answer","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"newNonceHash2","type":"Int128","description":"Nonce hash, computed as follows: `sha1(concat([newNonce, [0x02], authKeyAuxHash])`\n"}],"description":"DH exchange need to be retried. Current auth key is `gA ^ b % dhPrime`, and `authKeyAuxHash = sha1(authKey).slice(0, 8)`, but they will change.\nWhen this is received, you are expected to send another {@link tl.mtproto.RawSetClientDHParamsRequest}.\n"},{"name":"dh_gen_fail","id":2795351554,"type":"Set_client_DH_params_answer","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"newNonceHash3","type":"Int128","description":"Nonce hash, computed as follows: `sha1(concat([newNonce, [0x03], authKeyAuxHash])`\n"}],"description":"DH exchange failed. You should restart the entire authorization flow."},{"name":"rpc_result","id":4082920705,"type":"RpcResult","arguments":[{"name":"reqMsgId","type":"Long","description":"Requesting message ID"},{"name":"result","type":"Object","description":"Result of the call"}],"description":"Result of an RPC call"},{"name":"rpc_error","id":558156313,"type":"RpcError","arguments":[{"name":"errorCode","type":"number","description":"Numeric error code (like 404)"},{"name":"errorMessage","type":"string","description":"String error code"}],"description":"RPC call resulted in an error, information about that error. Error is still a result, and thus it is sent as a `result` of {@link tl.mtproto.RawRpc_result}\n"},{"name":"rpc_answer_unknown","id":1579864942,"type":"RpcDropAnswer","arguments":[]},{"name":"rpc_answer_dropped_running","id":3447252358,"type":"RpcDropAnswer","arguments":[],"description":"Response was canceled while the RPC query was being processed (where the RPC query itself was still fully processed); in this case, the same rpc_answer_dropped_running is also returned in response to the original query, and both of these responses require an acknowledgment from the client.\n"},{"name":"rpc_answer_dropped","id":2755319991,"type":"RpcDropAnswer","arguments":[{"name":"msgId","type":"Long","description":"Message ID of the RPC response"},{"name":"seqNo","type":"number","description":"Seq NO of the RPC response"},{"name":"bytes","type":"number","description":"Length in bytes of the RPC response"}],"description":"The RPC response was removed from the server’s outgoing queue"},{"name":"future_salt","id":155834844,"type":"FutureSalt","arguments":[{"name":"validSince","type":"number","description":"UNIX time in seconds from when this salt will be used"},{"name":"validUntil","type":"number","description":"UNIX time in seconds until which this salt will be used"},{"name":"salt","type":"RawLong","description":"The server salt itself"}],"description":"Information about a single future server salt"},{"name":"future_salts","id":2924480661,"type":"FutureSalts","arguments":[{"name":"reqMsgId","type":"Long","description":"Requesting message ID"},{"name":"now","type":"number","description":"Current server UNIX timestamp in seconds"},{"name":"salts","type":"future_salt[]","description":"List of future salts"}],"description":"Information about future server salts"},{"name":"pong","id":880243653,"type":"Pong","arguments":[{"name":"msgId","type":"Long","description":"Message ID that contained `mt_ping`"},{"name":"pingId","type":"Long","description":"Ping ID that was sent in `mt_ping`"}],"description":"Response to a {@link tl.mtproto.RawPingRequest}"},{"name":"new_session_created","id":2663516424,"type":"NewSession","arguments":[{"name":"firstMsgId","type":"Long","description":"First message ID that is known by the server to be from this session."},{"name":"uniqueId","type":"Long","description":"Random number generated by the server every time a session is (re-)created"},{"name":"serverSalt","type":"RawLong","description":"Current server salt"}],"description":"The server notifies the client that a new session (from the server’s standpoint) had to be created to handle a client message. If, after this, the server receives a message with an even smaller `msg_id` within the same session, a similar notification will be generated for this `msg_id` as well. No such notifications are generated for high msg_id values.\nThis notification must be acknowledged by the client. It is necessary, for instance, for the client to understand that there is, in fact, a “gap” in the stream of notifications received from the server (the user may have failed to receive notifications during some period of time).\nClient should also resend all the messages that were sent before `firstMsgId`\n"},{"name":"msg_container","id":1945237724,"type":"MessageContainer","arguments":[{"name":"messages","type":"%Message[]","description":"List of messages in the container"}],"description":"A simple container that carries several messages"},{"name":"message","id":1538843921,"type":"Message","arguments":[{"name":"msgId","type":"Long","description":"Original message ID"},{"name":"seqno","type":"number","description":"Original message seq No"},{"name":"bytes","type":"number","description":"Length of the message"},{"name":"body","type":"Object","description":"Contents of the message"}],"description":"A message in the container"},{"name":"msg_copy","id":3764405938,"type":"MessageCopy","arguments":[{"name":"origMessage","type":"Message","description":"Original message"}],"description":"A copy of a message"},{"name":"gzip_packed","id":812830625,"type":"Object","arguments":[{"name":"packedData","type":"Buffer","description":"Gzipped contents of the message"}],"description":"An object, which was gzipped.\nAt the present time, it is supported in the body of an RPC response (i.e., as result in `rpc_result`) and generated by the server for a limited number of high-level queries. In addition, in the future it may be used to transmit non-service messages (i. e. RPC queries) from client to server.\n"},{"name":"msgs_ack","id":1658238041,"type":"MsgsAck","arguments":[{"name":"msgIds","type":"Long[]","description":"IDs of messages to be acknowledged. Maximum 8192 IDs."}],"description":"Receipt of virtually all messages (with the exception of some purely service ones as well as the plain-text messages used in the protocol for creating an authorization key) must be acknowledged.\nThis requires the use of the this service message (not requiring an acknowledgment itself)\nA server usually acknowledges the receipt of a message from a client (normally, an RPC query) using an RPC response. If a response is a long time coming, a server may first send a receipt acknowledgment, and somewhat later, the RPC response itself.\nA client normally acknowledges the receipt of a message from a server (usually, an RPC response) by adding an acknowledgment to the next RPC query if it is not transmitted too late (if it is generated, say, 60-120 seconds following the receipt of a message from the server). However, if for a long period of time there is no reason to send messages to the server or if there is a large number of unacknowledged messages from the server (say, over 16), the client transmits a stand-alone acknowledgment.\n"},{"name":"bad_msg_notification","id":2817521681,"type":"BadMsgNotification","arguments":[{"name":"badMsgId","type":"Long","description":"ID of the \"bad\" message"},{"name":"badMsgSeqno","type":"number","description":"Seq No of the \"bad\" message"},{"name":"errorCode","type":"number","description":"Error code. Known values:\n - `16`: Message ID was too small. Most likely, client time is wrong, it would be\n worthwhile to synchronize it using notification's message ID and re-send the\n original message with the \"correct\" message ID or wrap it in a container\n with a new message ID if the original message had waited too\n long on the client to be transmitted.\n - `17`: Message ID was too big. Similar to the previous case,\n the client time has to be synchronized, and the message re-sent\n - `18`: Incorrect two lower order msg_id bits. The server expects client\n message ID to be divisible by 4.\n - `19`: Container message ID is the same as the message ID of the previous message\n - `20`: Message is too old, and it cannot be verified whether the server\n has received a message with this ID or not\n - `32`: Message seq No was too small (the server has already received a message\n with a higher or same seq No)\n - `33`: Message seq No was too big (the server has already received a message\n with a lower or same seq No)\n - `34`: An even seq No expected (not content-relevant), but odd received\n - `35`: An odd seq No expected (content-relevant), but even received\n - `48`: Incorrect server salt was used. In practice, `mt_bad_server_salt` is used instead.\n - `64`: Incorrect container\n"}],"description":"Used by the server to notify client that the sent message was incorrect."},{"name":"bad_server_salt","id":3987424379,"type":"BadMsgNotification","arguments":[{"name":"badMsgId","type":"Long","description":"ID of the \"bad\" message"},{"name":"badMsgSeqno","type":"number","description":"Seq No of the \"bad\" message"},{"name":"errorCode","type":"number","description":"Always `48`"},{"name":"newServerSalt","type":"RawLong","description":"New server salt to be used"}],"description":"Used by the server to notify client that the sent message was incorrect."},{"name":"msg_resend_req","id":2105940488,"type":"MsgResendReq","arguments":[{"name":"msgIds","type":"Long[]","description":"IDs of the messages to be resent (up to 8192 IDs)"}],"description":"Explicit Request to Re-Send Messages\n\nThe remote party immediately responds by re-sending\nthe requested messages, normally using the same connection\nthat was used to transmit the query. If at least one message\nwith requested ID does not exist or has already been forgotten,\nor has been sent by the requesting party (known from parity),\n`MsgsStateInfo` is returned for all messages requested as if the\n`MsgResendReq` query had been a `MsgsStateReq` query as well.\n"},{"name":"msg_resend_ans_req","id":2249243371,"type":"MsgResendReq","arguments":[{"name":"msgIds","type":"Long[]","description":"IDs of the messages answers to which should be resent (up to 8192 IDs)"}],"description":"Explicit Request to Re-Send Answers\n\nThe remote party immediately responds by re-sending *answers*\nto the requested messages, normally using the same connection\nthat was used to transmit the query. `MsgsStateInfo` is returned\nfor all messages requested as if the `MsgResendReq` query had\nbeen a `MsgsStateReq` query as well.\n"},{"name":"msgs_state_req","id":3664378706,"type":"MsgsStateReq","arguments":[{"name":"msgIds","type":"Long[]","description":"IDs of the messages state of which should be sent (up to 8192 IDs)"}],"description":"Request for Message Status Information. If either party has not received information on the status of its outgoing messages for a while, it may explicitly request it from the other party\n"},{"name":"msgs_state_info","id":81704317,"type":"MsgsStateInfo","arguments":[{"name":"reqMsgId","type":"Long","description":"Requesting message ID"},{"name":"info","type":"Buffer","description":"Byte array containing exactly one byte for each message ID:\n - `1`: nothing is known about the message (ID is too small, the other party may have forgotten it)\n - `2`: message was not received (ID falls within the range of stored identifiers;\n however, the other party has certainly not received a message like that)\n - `3`: message not received (ID is too big; however, the other\n party has certainly not received it yet)\n - `4`: message received (note that this response is also at the same time a receipt acknowledgment)\n - `+8`: message already acknowledged\n - `+16`: message not requiring acknowledgment\n - `+32`: RPC query contained in message being processed or processing already complete\n - `+64`: content-related response to message already generated\n - `+128`: other party knows for a fact that message is already received\n"}],"description":"Informational Message regarding Status of Messages"},{"name":"msgs_all_info","id":2361446705,"type":"MsgsAllInfo","arguments":[{"name":"msgIds","type":"Long[]","description":"Message IDs that the other party is being informed about"},{"name":"info","type":"Buffer","description":"Byte array in the same format as {@link tl.mtproto.RawMsgs_state_info}"}],"description":"Voluntary Communication of Status of Messages. Either party may voluntarily inform the other party of the status of the messages transmitted by the other party.\n"},{"name":"msg_detailed_info","id":661470918,"type":"MsgDetailedInfo","arguments":[{"name":"msgId","type":"Long","description":"Original message ID that this message is informing about"},{"name":"answerMsgId","type":"Long","description":"Message ID that was the response to that message"},{"name":"bytes","type":"number","description":"Size of the answer message"},{"name":"status","type":"number","description":"Always `0`, but this may change in the future"}],"description":"Extended Voluntary Communication of Status of One Message.\n\nNormally used by the server to respond to the receipt of\na duplicate message ID, especially if a response to the\nmessage has already been generated and the response is large.\nIf the response is small, the server may re-send the answer\nitself instead. This message can also be used as a notification\ninstead of resending a large message.\n"},{"name":"msg_new_detailed_info","id":2157819615,"type":"MsgDetailedInfo","arguments":[{"name":"answerMsgId","type":"Long","description":"ID of the message that was sent by the server"},{"name":"bytes","type":"number","description":"Size of the answer message"},{"name":"status","type":"number","description":"Always `0`, but this may change in the future"}],"description":"Similar to {@link tl.mtproto.RawMsg_detailed_info}, but used to notify about messages that were created on the server not in response to an RPC query (e.g. updates) and were transmitted to the client some time ago, but not acknowledged\n"},{"name":"bind_auth_key_inner","id":1973679973,"type":"BindAuthKeyInner","arguments":[{"name":"nonce","type":"RawLong"},{"name":"tempAuthKeyId","type":"RawLong"},{"name":"permAuthKeyId","type":"RawLong"},{"name":"tempSessionId","type":"RawLong"},{"name":"expiresAt","type":"number"}]},{"name":"destroy_auth_key_ok","id":4133544404,"type":"DestroyAuthKeyRes","arguments":[]},{"name":"destroy_auth_key_none","id":178201177,"type":"DestroyAuthKeyRes","arguments":[]},{"name":"destroy_auth_key_fail","id":3926956819,"type":"DestroyAuthKeyRes","arguments":[]},{"name":"destroy_session_ok","id":3793765884,"type":"DestroySessionRes","arguments":[{"name":"sessionId","type":"RawLong","description":"Old session ID"}],"description":"Session was succesfully destroyed"},{"name":"destroy_session_none","id":1658015945,"type":"DestroySessionRes","arguments":[{"name":"sessionId","type":"RawLong","description":"Old session ID"}],"description":"Session was not destroyed because it does not exist"},{"name":"http_wait","id":2459514271,"type":"HttpWait","arguments":[{"name":"maxDelay","type":"number"},{"name":"waitAfter","type":"number"},{"name":"maxWait","type":"number"}]}],"methods":[{"name":"reqPq","id":1615239032,"returns":"ResPQ","arguments":[{"name":"nonce","type":"Int128","description":"Randomly generated number (32-bit) that will be used in the later steps"}],"description":"Request for the first step of Authorization key derivation process. This method is deprecated, use {@link tl.mtproto.RawReqPqMultiRequest} instead. The difference is that when using this, only one server key is returned, while `req_pq_multi` will return multiple.\n"},{"name":"reqPqMulti","id":3195965169,"returns":"ResPQ","arguments":[{"name":"nonce","type":"Int128","description":"Randomly generated number that will be used in the later steps"}],"description":"Request for the first step of Authorization key derivation process.\n"},{"name":"reqDHParams","id":3608339646,"returns":"Server_DH_Params","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"p","type":"Buffer","description":"Big endian encoded first factor. Note - `p < q`"},{"name":"q","type":"Buffer","description":"Big endian encoded second factor. Node - `p < q`"},{"name":"publicKeyFingerprint","type":"Long","description":"Fingerprint of the RSA key that the client has chosen"},{"name":"encryptedData","type":"Buffer","description":"Encrypted payload, obtained as follows:\n- Let `newNonce` be a random 32-bit number\n- Let `data` be a serialization of either {@link tl.mtproto.RawP_q_inner_data}\n or {@link tl.mtproto.RawP_q_inner_data_temp} with the generated `newNonce`\n- `dataWithHash = concat(sha1(data), data, random_bytes(235 - data.length))`\n- `encryptedData = dataWithHash ^ key.exponent % key.modulus`, where `key` is the\n server public key which was chosen\n"}],"description":"Request for the second step of Authorization key derivation process."},{"name":"setClientDHParams","id":4110704415,"returns":"Set_client_DH_params_answer","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"encryptedData","type":"Buffer","description":"Encrypted DH parameters, obtained as follows:\n - Let `B` be a random 2048-bit (256 bytes) integer\n - `gB = g ^ B % dhPrime` (Diffie-Hellman)\n - Let `data` be a serialization of {@link tl.mtproto.RawClient_DH_inner_data}\n - `dataWithHash = concat(sha1(data), data, padding))`, where `padding` is\n 0-15 random bytes, such that `dataWithHash.length` is divisible by 16\n - `encryptedData = aes256_ige_encrypt(dataWithHash, key, iv)`, where `key` and `iv`\n are the same as ones used in {@link tl.mtproto.RawServer_DH_params_ok}\n"}],"description":"Request containing encrypted client-side variables for Diffie-Hellman exchange"},{"name":"rpcDropAnswer","id":1491380032,"returns":"RpcDropAnswer","arguments":[{"name":"reqMsgId","type":"Long","description":"ID of a message containing an RPC query to be cancelled"}],"description":"Cancellation of an RPC query. In certain situations, the client does not want to receive a response to an already transmitted RPC query, for example because the response turns out to be long and the client has decided to do without it because of insufficient link capacity. Simply interrupting the connection will not have any effect because the server would re-send the missing response at the first opportunity. Therefore, the client needs a way to cancel receipt of the RPC response message, actually acknowledging its receipt prior to it being in fact received, which will settle the server down and prevent it from re-sending the response. However, the client does not know the RPC response's message ID prior to receiving the response; the only thing it knows is the requesting message ID, i.e. the message ID of the relevant RPC query. Therefore, this special query is used\n"},{"name":"getFutureSalts","id":3105996036,"returns":"FutureSalts","arguments":[{"name":"num","type":"number"}]},{"name":"ping","id":2059302892,"returns":"Pong","arguments":[{"name":"pingId","type":"Long","description":"Random ping ID"}],"description":"Ping a server to test connection"},{"name":"pingDelayDisconnect","id":4081220492,"returns":"Pong","arguments":[{"name":"pingId","type":"Long","description":"Random ping ID"},{"name":"disconnectDelay","type":"number","description":"Disconnect delay in seconds"}],"description":"Works like ping. In addition, after this is received, the server starts a timer which will close the current connection `disconnectDelay` seconds later unless it receives a new message of the same type which automatically resets all previous timers.\nIf the client sends these pings once every 60 seconds, for example, it may set `disconnect_delay` equal to 75 seconds.\n"},{"name":"destroyAuthKey","id":3510849888,"returns":"DestroyAuthKeyRes","arguments":[]},{"name":"destroySession","id":3880853798,"returns":"DestroySessionRes","arguments":[{"name":"sessionId","type":"RawLong"}]}],"unions":[{"type":"ResPQ","subtypes":["resPQ"]},{"type":"P_Q_inner_data","subtypes":["p_q_inner_data","p_q_inner_data_dc","p_q_inner_data_temp"]},{"type":"P_Q_inner_d","subtypes":["p_q_inner_data_temp_dc"]},{"type":"Server_DH_Params","subtypes":["server_DH_params_fail","server_DH_params_ok"]},{"type":"Server_DH_inner_data","subtypes":["server_DH_inner_data"]},{"type":"Client_DH_Inner_Data","subtypes":["client_DH_inner_data"]},{"type":"Set_client_DH_params_answer","subtypes":["dh_gen_ok","dh_gen_retry","dh_gen_fail"]},{"type":"RpcResult","subtypes":["rpc_result"]},{"type":"RpcError","subtypes":["rpc_error"]},{"type":"RpcDropAnswer","subtypes":["rpc_answer_unknown","rpc_answer_dropped_running","rpc_answer_dropped"]},{"type":"FutureSalt","subtypes":["future_salt"]},{"type":"FutureSalts","subtypes":["future_salts"]},{"type":"Pong","subtypes":["pong"]},{"type":"NewSession","subtypes":["new_session_created"]},{"type":"MessageContainer","subtypes":["msg_container"]},{"type":"Message","subtypes":["message"]},{"type":"MessageCopy","subtypes":["msg_copy"]},{"type":"Object","subtypes":["gzip_packed"]},{"type":"MsgsAck","subtypes":["msgs_ack"]},{"type":"BadMsgNotification","subtypes":["bad_msg_notification","bad_server_salt"]},{"type":"MsgResendReq","subtypes":["msg_resend_req","msg_resend_ans_req"]},{"type":"MsgsStateReq","subtypes":["msgs_state_req"]},{"type":"MsgsStateInfo","subtypes":["msgs_state_info"]},{"type":"MsgsAllInfo","subtypes":["msgs_all_info"]},{"type":"MsgDetailedInfo","subtypes":["msg_detailed_info","msg_new_detailed_info"]},{"type":"BindAuthKeyInner","subtypes":["bind_auth_key_inner"]},{"type":"DestroyAuthKeyRes","subtypes":["destroy_auth_key_ok","destroy_auth_key_none","destroy_auth_key_fail"]},{"type":"DestroySessionRes","subtypes":["destroy_session_ok","destroy_session_none"]},{"type":"HttpWait","subtypes":["http_wait"]}]}},"apiLayer":"131","api":{"$root":{"classes":[{"name":"error","id":3300522427,"type":"Error","arguments":[{"name":"code","type":"number","description":"Error code"},{"name":"text","type":"string","description":"Message"}],"description":"Error."},{"name":"ipPort","id":3560156531,"type":"IpPort","arguments":[{"name":"ipv4","type":"number"},{"name":"port","type":"number"}]},{"name":"ipPortSecret","id":932718150,"type":"IpPort","arguments":[{"name":"ipv4","type":"number"},{"name":"port","type":"number"},{"name":"secret","type":"Buffer"}]},{"name":"accessPointRule","id":1182381663,"type":"AccessPointRule","arguments":[{"name":"phonePrefixRules","type":"string"},{"name":"dcId","type":"number"},{"name":"ips","type":"IpPort[]"}]},{"name":"inputPeerPhotoFileLocationLegacy","id":668375447,"type":"InputFileLocation","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"big","type":"true","optional":true,"predicate":"flags.0"},{"name":"peer","type":"InputPeer"},{"name":"volumeId","type":"Long"},{"name":"localId","type":"number"}]},{"name":"inputStickerSetThumbLegacy","id":230353641,"type":"InputFileLocation","arguments":[{"name":"stickerset","type":"InputStickerSet"},{"name":"volumeId","type":"Long"},{"name":"localId","type":"number"}]},{"name":"inputPeerEmpty","id":2134579434,"type":"InputPeer","arguments":[],"description":"An empty constructor, no user or chat is defined."},{"name":"inputPeerSelf","id":2107670217,"type":"InputPeer","arguments":[],"description":"Defines the current user."},{"name":"inputPeerChat","id":396093539,"type":"InputPeer","arguments":[{"name":"chatId","type":"number","description":"Chat idientifier"}],"description":"Defines a chat for further interaction."},{"name":"inputPeerUser","id":2072935910,"type":"InputPeer","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"accessHash","type":"Long","description":"access_hash value from the {@link user} constructor"}],"description":"Defines a user for further interaction."},{"name":"inputPeerChannel","id":548253432,"type":"InputPeer","arguments":[{"name":"channelId","type":"number","description":"Channel identifier"},{"name":"accessHash","type":"Long","description":"access_hash value from the {@link channel} constructor"}],"description":"Defines a channel for further interaction."},{"name":"inputPeerUserFromMessage","id":398123750,"type":"InputPeer","arguments":[{"name":"peer","type":"InputPeer","description":"The chat where the user was seen"},{"name":"msgId","type":"number","description":"The message ID"},{"name":"userId","type":"number","description":"The identifier of the user that was seen"}],"description":"Defines a min user that was seen in a certain message of a certain chat."},{"name":"inputPeerChannelFromMessage","id":2627073979,"type":"InputPeer","arguments":[{"name":"peer","type":"InputPeer","description":"The chat where the channel's message was seen"},{"name":"msgId","type":"number","description":"The message ID"},{"name":"channelId","type":"number","description":"The identifier of the channel that was seen"}],"description":"Defines a min channel that was seen in a certain message of a certain chat."},{"name":"inputUserEmpty","id":3112732367,"type":"InputUser","arguments":[],"description":"Empty constructor, does not define a user."},{"name":"inputUserSelf","id":4156666175,"type":"InputUser","arguments":[],"description":"Defines the current user."},{"name":"inputUser","id":3626575894,"type":"InputUser","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"accessHash","type":"Long","description":"access_hash value from the {@link user} constructor"}],"description":"Defines a user for further interaction."},{"name":"inputUserFromMessage","id":756118935,"type":"InputUser","arguments":[{"name":"peer","type":"InputPeer","description":"The chat where the user was seen"},{"name":"msgId","type":"number","description":"The message ID"},{"name":"userId","type":"number","description":"The identifier of the user that was seen"}],"description":"Defines a min user that was seen in a certain message of a certain chat."},{"name":"inputPhoneContact","id":4086478836,"type":"InputContact","arguments":[{"name":"clientId","type":"Long","description":"User identifier on the client"},{"name":"phone","type":"string","description":"Phone number"},{"name":"firstName","type":"string","description":"Contact's first name"},{"name":"lastName","type":"string","description":"Contact's last name"}],"description":"Phone contact. The client_id is just an arbitrary contact ID: it should be set, for example, to an incremental number when using {@link contacts.importContacts}, in order to retry importing only the contacts that weren't imported successfully."},{"name":"inputFile","id":4113560191,"type":"InputFile","arguments":[{"name":"id","type":"Long","description":"Random file identifier created by the client"},{"name":"parts","type":"number","description":"Number of parts saved"},{"name":"name","type":"string","description":"Full name of the file"},{"name":"md5Checksum","type":"string","description":"In case the file's md5-hash was passed, contents of the file will be checked prior to use"}],"description":"Defines a file saved in parts using the method {@link upload.saveFilePart}."},{"name":"inputFileBig","id":4199484341,"type":"InputFile","arguments":[{"name":"id","type":"Long","description":"Random file id, created by the client"},{"name":"parts","type":"number","description":"Number of parts saved"},{"name":"name","type":"string","description":"Full file name"}],"description":"Assigns a big file (over 10Mb in size), saved in part using the method {@link upload.saveBigFilePart}."},{"name":"inputMediaEmpty","id":2523198847,"type":"InputMedia","arguments":[],"description":"Empty media content of a message."},{"name":"inputMediaUploadedPhoto","id":505969924,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"file","type":"InputFile","description":"The uploaded file"},{"name":"stickers","type":"InputDocument[]","optional":true,"predicate":"flags.0","description":"Attached mask stickers"},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.1","description":"Time to live in seconds of self-destructing photo"}],"description":"Photo"},{"name":"inputMediaPhoto","id":3015312949,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"InputPhoto","description":"Photo to be forwarded"},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.0","description":"Time to live in seconds of self-destructing photo"}],"description":"Forwarded photo"},{"name":"inputMediaGeoPoint","id":4190388548,"type":"InputMedia","arguments":[{"name":"geoPoint","type":"InputGeoPoint","description":"GeoPoint"}],"description":"Map."},{"name":"inputMediaContact","id":4171988475,"type":"InputMedia","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number"},{"name":"firstName","type":"string","description":"Contact's first name"},{"name":"lastName","type":"string","description":"Contact's last name"},{"name":"vcard","type":"string","description":"Contact vcard"}],"description":"Phonebook contact"},{"name":"inputMediaUploadedDocument","id":1530447553,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"nosoundVideo","type":"true","optional":true,"predicate":"flags.3","description":"Whether the specified document is a video file with no audio tracks (a GIF animation (even as MPEG4), for example)"},{"name":"forceFile","type":"true","optional":true,"predicate":"flags.4","description":"Force the media file to be uploaded as document"},{"name":"file","type":"InputFile","description":"The uploaded file"},{"name":"thumb","type":"InputFile","optional":true,"predicate":"flags.2","description":"Thumbnail of the document, uploaded as for the file"},{"name":"mimeType","type":"string","description":"MIME type of document"},{"name":"attributes","type":"DocumentAttribute[]","description":"Attributes that specify the type of the document (video, audio, voice, sticker, etc.)"},{"name":"stickers","type":"InputDocument[]","optional":true,"predicate":"flags.0","description":"Attached stickers"},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.1","description":"Time to live in seconds of self-destructing document"}],"description":"New document"},{"name":"inputMediaDocument","id":860303448,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"InputDocument","description":"The document to be forwarded."},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.0","description":"Time to live of self-destructing document"},{"name":"query","type":"string","optional":true,"predicate":"flags.1"}],"description":"Forwarded document"},{"name":"inputMediaVenue","id":3242007569,"type":"InputMedia","arguments":[{"name":"geoPoint","type":"InputGeoPoint","description":"Geolocation"},{"name":"title","type":"string","description":"Venue name"},{"name":"address","type":"string","description":"Physical address of the venue"},{"name":"provider","type":"string","description":"Venue provider: currently only \"foursquare\" and \"gplaces\" need to be supported"},{"name":"venueId","type":"string","description":"Venue ID in the provider's database"},{"name":"venueType","type":"string","description":"Venue type in the provider's database"}],"description":"Can be used to send a venue geolocation."},{"name":"inputMediaPhotoExternal","id":3854302746,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"url","type":"string","description":"URL of the photo"},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.0","description":"Self-destruct time to live of photo"}],"description":"New photo that will be uploaded by the server using the specified URL"},{"name":"inputMediaDocumentExternal","id":4216511641,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"url","type":"string","description":"URL of the document"},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.0","description":"Self-destruct time to live of document"}],"description":"Document that will be downloaded by the telegram servers"},{"name":"inputMediaGame","id":3544138739,"type":"InputMedia","arguments":[{"name":"id","type":"InputGame","description":"The game to forward"}],"description":"A game"},{"name":"inputMediaInvoice","id":3648624756,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"title","type":"string","description":"Product name, 1-32 characters"},{"name":"description","type":"string","description":"Product description, 1-255 characters"},{"name":"photo","type":"InputWebDocument","optional":true,"predicate":"flags.0","description":"URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for."},{"name":"invoice","type":"Invoice","description":"The actual invoice"},{"name":"payload","type":"Buffer","description":"Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes."},{"name":"provider","type":"string","description":"Payments provider token, obtained via Botfather"},{"name":"providerData","type":"DataJSON","description":"JSON-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider."},{"name":"startParam","type":"string","optional":true,"predicate":"flags.1","description":"Start parameter"}],"description":"Generated invoice of a bot payment"},{"name":"inputMediaGeoLive","id":2535434307,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"stopped","type":"true","optional":true,"predicate":"flags.0","description":"Whether sending of the geolocation was stopped"},{"name":"geoPoint","type":"InputGeoPoint","description":"Current geolocation"},{"name":"heading","type":"number","optional":true,"predicate":"flags.2","description":"For live locations, a direction in which the location moves, in degrees; 1-360."},{"name":"period","type":"number","optional":true,"predicate":"flags.1","description":"Validity period of the current location"},{"name":"proximityNotificationRadius","type":"number","optional":true,"predicate":"flags.3","description":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)"}],"description":"Live geolocation"},{"name":"inputMediaPoll","id":261416433,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"poll","type":"Poll","description":"The poll to send"},{"name":"correctAnswers","type":"Buffer[]","optional":true,"predicate":"flags.0","description":"Correct answer IDs (for quiz polls)"},{"name":"solution","type":"string","optional":true,"predicate":"flags.1","description":"Explanation of quiz solution"},{"name":"solutionEntities","type":"MessageEntity[]","optional":true,"predicate":"flags.1","description":"Message entities for styled text"}],"description":"A poll"},{"name":"inputMediaDice","id":3866083195,"type":"InputMedia","arguments":[{"name":"emoticon","type":"string","description":"The emoji, for now \"🏀\", \"🎲\" and \"🎯\" are supported"}],"description":"Send a dice-based animated sticker"},{"name":"inputChatPhotoEmpty","id":480546647,"type":"InputChatPhoto","arguments":[],"description":"Empty constructor, remove group photo."},{"name":"inputChatUploadedPhoto","id":3326243406,"type":"InputChatPhoto","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"file","type":"InputFile","optional":true,"predicate":"flags.0","description":"File saved in parts using the method {@link upload.saveFilePart}"},{"name":"video","type":"InputFile","optional":true,"predicate":"flags.1","description":"Square video for animated profile picture"},{"name":"videoStartTs","type":"Double","optional":true,"predicate":"flags.2","description":"Timestamp that should be shown as static preview to the user (seconds)"}],"description":"New photo to be set as group profile photo."},{"name":"inputChatPhoto","id":2303962423,"type":"InputChatPhoto","arguments":[{"name":"id","type":"InputPhoto","description":"Existing photo"}],"description":"Existing photo to be set as a chat profile photo."},{"name":"inputGeoPointEmpty","id":3837862870,"type":"InputGeoPoint","arguments":[],"description":"Empty GeoPoint constructor."},{"name":"inputGeoPoint","id":1210199983,"type":"InputGeoPoint","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"lat","type":"Double","description":"Latitide"},{"name":"long","type":"Double","description":"Longtitude"},{"name":"accuracyRadius","type":"number","optional":true,"predicate":"flags.0","description":"The estimated horizontal accuracy of the location, in meters; as defined by the sender."}],"description":"Defines a GeoPoint by its coordinates."},{"name":"inputPhotoEmpty","id":483901197,"type":"InputPhoto","arguments":[],"description":"Empty constructor."},{"name":"inputPhoto","id":1001634122,"type":"InputPhoto","arguments":[{"name":"id","type":"Long","description":"Photo identifier"},{"name":"accessHash","type":"Long","description":"access_hash value from the {@link photo} constructor"},{"name":"fileReference","type":"Buffer","description":"File reference"}],"description":"Defines a photo for further interaction."},{"name":"inputFileLocation","id":3755650017,"type":"InputFileLocation","arguments":[{"name":"volumeId","type":"Long","description":"Server volume"},{"name":"localId","type":"number","description":"File identifier"},{"name":"secret","type":"Long","description":"Check sum to access the file"},{"name":"fileReference","type":"Buffer","description":"File reference"}],"description":"DEPRECATED location of a photo"},{"name":"inputEncryptedFileLocation","id":4112735573,"type":"InputFileLocation","arguments":[{"name":"id","type":"Long","description":"File ID, id parameter value from {@link encryptedFile}"},{"name":"accessHash","type":"Long","description":"Checksum, access_hash parameter value from {@link encryptedFile}"}],"description":"Location of encrypted secret chat file."},{"name":"inputDocumentFileLocation","id":3134223748,"type":"InputFileLocation","arguments":[{"name":"id","type":"Long","description":"Document ID"},{"name":"accessHash","type":"Long","description":"access_hash parameter from the {@link document} constructor"},{"name":"fileReference","type":"Buffer","description":"File reference"},{"name":"thumbSize","type":"string","description":"Thumbnail size to download the thumbnail"}],"description":"Document location (video, voice, audio, basically every type except photo)"},{"name":"inputSecureFileLocation","id":3418877480,"type":"InputFileLocation","arguments":[{"name":"id","type":"Long","description":"File ID, id parameter value from {@link secureFile}"},{"name":"accessHash","type":"Long","description":"Checksum, access_hash parameter value from {@link secureFile}"}],"description":"Location of encrypted telegram passport file."},{"name":"inputTakeoutFileLocation","id":700340377,"type":"InputFileLocation","arguments":[],"description":"Empty constructor for takeout"},{"name":"inputPhotoFileLocation","id":1075322878,"type":"InputFileLocation","arguments":[{"name":"id","type":"Long","description":"Photo ID, obtained from the {@link photo} object"},{"name":"accessHash","type":"Long","description":"Photo's access hash, obtained from the {@link photo} object"},{"name":"fileReference","type":"Buffer","description":"File reference"},{"name":"thumbSize","type":"string","description":"The PhotoSize to download: must be set to the type field of the desired PhotoSize object of the {@link photo}"}],"description":"Use this object to download a photo with {@link upload.getFile} method"},{"name":"inputPhotoLegacyFileLocation","id":3627312883,"type":"InputFileLocation","arguments":[{"name":"id","type":"Long","description":"Photo ID"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"fileReference","type":"Buffer","description":"File reference"},{"name":"volumeId","type":"Long","description":"Volume ID"},{"name":"localId","type":"number","description":"Local ID"},{"name":"secret","type":"Long","description":"Secret"}],"description":"Legacy photo file location"},{"name":"inputPeerPhotoFileLocation","id":925204121,"type":"InputFileLocation","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"big","type":"true","optional":true,"predicate":"flags.0","description":"Whether to download the high-quality version of the picture"},{"name":"peer","type":"InputPeer","description":"The peer whose profile picture should be downloaded"},{"name":"photoId","type":"Long"}],"description":"Location of profile photo of channel/group/supergroup/user"},{"name":"inputStickerSetThumb","id":2642736091,"type":"InputFileLocation","arguments":[{"name":"stickerset","type":"InputStickerSet","description":"Sticker set"},{"name":"thumbVersion","type":"number"}],"description":"Location of stickerset thumbnail (see files)"},{"name":"inputGroupCallStream","id":3148158521,"type":"InputFileLocation","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"timeMs","type":"Long"},{"name":"scale","type":"number"}]},{"name":"peerUser","id":2645671021,"type":"Peer","arguments":[{"name":"userId","type":"number","description":"User identifier"}],"description":"Chat partner"},{"name":"peerChat","id":3134252475,"type":"Peer","arguments":[{"name":"chatId","type":"number","description":"Group identifier"}],"description":"Group."},{"name":"peerChannel","id":3185435954,"type":"Peer","arguments":[{"name":"channelId","type":"number","description":"Channel ID"}],"description":"Channel/supergroup"},{"name":"userEmpty","id":537022650,"type":"User","arguments":[{"name":"id","type":"number","description":"User identifier or 0"}],"description":"Empty constructor, non-existent user."},{"name":"user","id":2474924225,"type":"User","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"self","type":"true","optional":true,"predicate":"flags.10","description":"Whether this user indicates the currently logged in user"},{"name":"contact","type":"true","optional":true,"predicate":"flags.11","description":"Whether this user is a contact"},{"name":"mutualContact","type":"true","optional":true,"predicate":"flags.12","description":"Whether this user is a mutual contact"},{"name":"deleted","type":"true","optional":true,"predicate":"flags.13","description":"Whether the account of this user was deleted"},{"name":"bot","type":"true","optional":true,"predicate":"flags.14","description":"Is this user a bot?"},{"name":"botChatHistory","type":"true","optional":true,"predicate":"flags.15","description":"Can the bot see all messages in groups?"},{"name":"botNochats","type":"true","optional":true,"predicate":"flags.16","description":"Can the bot be added to groups?"},{"name":"verified","type":"true","optional":true,"predicate":"flags.17","description":"Whether this user is verified"},{"name":"restricted","type":"true","optional":true,"predicate":"flags.18","description":"Access to this user must be restricted for the reason specified in restriction_reason"},{"name":"min","type":"true","optional":true,"predicate":"flags.20","description":"See min"},{"name":"botInlineGeo","type":"true","optional":true,"predicate":"flags.21","description":"Whether the bot can request our geolocation in inline mode"},{"name":"support","type":"true","optional":true,"predicate":"flags.23","description":"Whether this is an official support user"},{"name":"scam","type":"true","optional":true,"predicate":"flags.24","description":"This may be a scam user"},{"name":"applyMinPhoto","type":"true","optional":true,"predicate":"flags.25","description":"If set, the profile picture for this user should be refetched"},{"name":"fake","type":"true","optional":true,"predicate":"flags.26"},{"name":"id","type":"number","description":"ID of the user"},{"name":"accessHash","type":"Long","optional":true,"predicate":"flags.0","description":"Access hash of the user"},{"name":"firstName","type":"string","optional":true,"predicate":"flags.1","description":"First name"},{"name":"lastName","type":"string","optional":true,"predicate":"flags.2","description":"Last name"},{"name":"username","type":"string","optional":true,"predicate":"flags.3","description":"Username"},{"name":"phone","type":"string","optional":true,"predicate":"flags.4","description":"Phone number"},{"name":"photo","type":"UserProfilePhoto","optional":true,"predicate":"flags.5","description":"Profile picture of user"},{"name":"status","type":"UserStatus","optional":true,"predicate":"flags.6","description":"Online status of user"},{"name":"botInfoVersion","type":"number","optional":true,"predicate":"flags.14","description":"Version of the {@link userFull}, incremented every time it changes"},{"name":"restrictionReason","type":"RestrictionReason[]","optional":true,"predicate":"flags.18","description":"Contains the reason why access to this user must be restricted."},{"name":"botInlinePlaceholder","type":"string","optional":true,"predicate":"flags.19","description":"Inline placeholder for this inline bot"},{"name":"langCode","type":"string","optional":true,"predicate":"flags.22","description":"Language code of the user"}],"description":"Indicates info about a certain user"},{"name":"userProfilePhotoEmpty","id":1326562017,"type":"UserProfilePhoto","arguments":[],"description":"Profile photo has not been set, or was hidden."},{"name":"userProfilePhoto","id":2194798342,"type":"UserProfilePhoto","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"hasVideo","type":"true","optional":true,"predicate":"flags.0","description":"Whether an animated profile picture is available for this user"},{"name":"photoId","type":"Long","description":"Identifier of the respective photo
Parameter added in Layer 2"},{"name":"strippedThumb","type":"Buffer","optional":true,"predicate":"flags.1"},{"name":"dcId","type":"number","description":"DC ID where the photo is stored"}],"description":"User profile photo."},{"name":"userStatusEmpty","id":164646985,"type":"UserStatus","arguments":[],"description":"User status has not been set yet."},{"name":"userStatusOnline","id":3988339017,"type":"UserStatus","arguments":[{"name":"expires","type":"number","description":"Time to expiration of the current online status"}],"description":"Online status of the user."},{"name":"userStatusOffline","id":9203775,"type":"UserStatus","arguments":[{"name":"wasOnline","type":"number","description":"Time the user was last seen online"}],"description":"The user's offline status."},{"name":"userStatusRecently","id":3798942449,"type":"UserStatus","arguments":[],"description":"Online status: last seen recently"},{"name":"userStatusLastWeek","id":129960444,"type":"UserStatus","arguments":[],"description":"Online status: last seen last week"},{"name":"userStatusLastMonth","id":2011940674,"type":"UserStatus","arguments":[],"description":"Online status: last seen last month"},{"name":"chatEmpty","id":2611140608,"type":"Chat","arguments":[{"name":"id","type":"number","description":"Group identifier"}],"description":"Empty constructor, group doesn't exist"},{"name":"chat","id":1004149726,"type":"Chat","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"creator","type":"true","optional":true,"predicate":"flags.0","description":"Whether the current user is the creator of the group"},{"name":"kicked","type":"true","optional":true,"predicate":"flags.1","description":"Whether the current user was kicked from the group"},{"name":"left","type":"true","optional":true,"predicate":"flags.2","description":"Whether the current user has left the group"},{"name":"deactivated","type":"true","optional":true,"predicate":"flags.5","description":"Whether the group was migrated"},{"name":"callActive","type":"true","optional":true,"predicate":"flags.23"},{"name":"callNotEmpty","type":"true","optional":true,"predicate":"flags.24"},{"name":"id","type":"number","description":"ID of the group"},{"name":"title","type":"string","description":"Title"},{"name":"photo","type":"ChatPhoto","description":"Chat photo"},{"name":"participantsCount","type":"number","description":"Participant count"},{"name":"date","type":"number","description":"Date of creation of the group"},{"name":"version","type":"number","description":"Used in basic groups to reorder updates and make sure that all of them were received."},{"name":"migratedTo","type":"InputChannel","optional":true,"predicate":"flags.6","description":"Means this chat was upgraded to a supergroup"},{"name":"adminRights","type":"ChatAdminRights","optional":true,"predicate":"flags.14","description":"Admin rights of the user in the group"},{"name":"defaultBannedRights","type":"ChatBannedRights","optional":true,"predicate":"flags.18","description":"Default banned rights of all users in the group"}],"description":"Info about a group"},{"name":"chatForbidden","id":120753115,"type":"Chat","arguments":[{"name":"id","type":"number","description":"User identifier"},{"name":"title","type":"string","description":"Group name"}],"description":"A group to which the user has no access. E.g., because the user was kicked from the group."},{"name":"channel","id":3541734942,"type":"Chat","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"creator","type":"true","optional":true,"predicate":"flags.0","description":"Whether the current user is the creator of this channel"},{"name":"left","type":"true","optional":true,"predicate":"flags.2","description":"Whether the current user has left this channel"},{"name":"broadcast","type":"true","optional":true,"predicate":"flags.5","description":"Is this a channel?"},{"name":"verified","type":"true","optional":true,"predicate":"flags.7","description":"Is this channel verified by telegram?"},{"name":"megagroup","type":"true","optional":true,"predicate":"flags.8","description":"Is this a supergroup?"},{"name":"restricted","type":"true","optional":true,"predicate":"flags.9","description":"Whether viewing/writing in this channel for a reason (see restriction_reason"},{"name":"signatures","type":"true","optional":true,"predicate":"flags.11","description":"Whether signatures are enabled (channels)"},{"name":"min","type":"true","optional":true,"predicate":"flags.12","description":"See min"},{"name":"scam","type":"true","optional":true,"predicate":"flags.19","description":"This channel/supergroup is probably a scam"},{"name":"hasLink","type":"true","optional":true,"predicate":"flags.20","description":"Whether this channel has a private join link"},{"name":"hasGeo","type":"true","optional":true,"predicate":"flags.21","description":"Whether this channel has a geo position"},{"name":"slowmodeEnabled","type":"true","optional":true,"predicate":"flags.22","description":"Whether slow mode is enabled for groups to prevent flood in chat"},{"name":"callActive","type":"true","optional":true,"predicate":"flags.23"},{"name":"callNotEmpty","type":"true","optional":true,"predicate":"flags.24"},{"name":"fake","type":"true","optional":true,"predicate":"flags.25"},{"name":"gigagroup","type":"true","optional":true,"predicate":"flags.26","description":"Is this a broadcast group?"},{"name":"id","type":"number","description":"ID of the channel"},{"name":"accessHash","type":"Long","optional":true,"predicate":"flags.13","description":"Access hash"},{"name":"title","type":"string","description":"Title"},{"name":"username","type":"string","optional":true,"predicate":"flags.6","description":"Username"},{"name":"photo","type":"ChatPhoto","description":"Profile photo"},{"name":"date","type":"number","description":"Date when the user joined the supergroup/channel, or if the user isn't a member, its creation date"},{"name":"version","type":"number","description":"Version of the channel (always 0)"},{"name":"restrictionReason","type":"RestrictionReason[]","optional":true,"predicate":"flags.9","description":"Contains the reason why access to this channel must be restricted."},{"name":"adminRights","type":"ChatAdminRights","optional":true,"predicate":"flags.14","description":"Admin rights of the user in this channel (see rights)"},{"name":"bannedRights","type":"ChatBannedRights","optional":true,"predicate":"flags.15","description":"Banned rights of the user in this channel (see rights)"},{"name":"defaultBannedRights","type":"ChatBannedRights","optional":true,"predicate":"flags.18","description":"Default chat rights (see rights)"},{"name":"participantsCount","type":"number","optional":true,"predicate":"flags.17","description":"Participant count"}],"description":"Channel/supergroup info"},{"name":"channelForbidden","id":681420594,"type":"Chat","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"broadcast","type":"true","optional":true,"predicate":"flags.5","description":"Is this a channel"},{"name":"megagroup","type":"true","optional":true,"predicate":"flags.8","description":"Is this a supergroup"},{"name":"id","type":"number","description":"Channel ID"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"title","type":"string","description":"Title"},{"name":"untilDate","type":"number","optional":true,"predicate":"flags.16","description":"The ban is valid until the specified date"}],"description":"Indicates a channel/supergroup we can't access because we were banned, or for some other reason."},{"name":"chatFull","id":2317232515,"type":"ChatFull","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"canSetUsername","type":"true","optional":true,"predicate":"flags.7","description":"Can we change the username of this chat"},{"name":"hasScheduled","type":"true","optional":true,"predicate":"flags.8","description":"Whether scheduled messages are available"},{"name":"id","type":"number","description":"ID of the chat"},{"name":"about","type":"string","description":"About string for this chat"},{"name":"participants","type":"ChatParticipants","description":"Participant list"},{"name":"chatPhoto","type":"Photo","optional":true,"predicate":"flags.2","description":"Chat photo"},{"name":"notifySettings","type":"PeerNotifySettings","description":"Notification settings"},{"name":"exportedInvite","type":"ExportedChatInvite","optional":true,"predicate":"flags.13","description":"Chat invite"},{"name":"botInfo","type":"BotInfo[]","optional":true,"predicate":"flags.3","description":"Info about bots that are in this chat"},{"name":"pinnedMsgId","type":"number","optional":true,"predicate":"flags.6","description":"Message ID of the last pinned message"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.11","description":"Peer folder ID, for more info click here"},{"name":"call","type":"InputGroupCall","optional":true,"predicate":"flags.12"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.14"},{"name":"groupcallDefaultJoinAs","type":"Peer","optional":true,"predicate":"flags.15"}],"description":"Detailed chat info"},{"name":"channelFull","id":1418477459,"type":"ChatFull","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"canViewParticipants","type":"true","optional":true,"predicate":"flags.3","description":"Can we vew the participant list?"},{"name":"canSetUsername","type":"true","optional":true,"predicate":"flags.6","description":"Can we set the channel's username?"},{"name":"canSetStickers","type":"true","optional":true,"predicate":"flags.7","description":"Can we {@link channels.setStickers} a stickerpack to the supergroup?"},{"name":"hiddenPrehistory","type":"true","optional":true,"predicate":"flags.10","description":"Is the history before we joined hidden to us?"},{"name":"canSetLocation","type":"true","optional":true,"predicate":"flags.16","description":"Can we set the geolocation of this group (for geogroups)"},{"name":"hasScheduled","type":"true","optional":true,"predicate":"flags.19","description":"Whether scheduled messages are available"},{"name":"canViewStats","type":"true","optional":true,"predicate":"flags.20","description":"Can the user view channel/supergroup statistics"},{"name":"blocked","type":"true","optional":true,"predicate":"flags.22","description":"Whether any anonymous admin of this supergroup was blocked: if set, you won't receive messages from anonymous group admins in discussion replies via @replies"},{"name":"id","type":"number","description":"ID of the channel"},{"name":"about","type":"string","description":"Info about the channel"},{"name":"participantsCount","type":"number","optional":true,"predicate":"flags.0","description":"Number of participants of the channel"},{"name":"adminsCount","type":"number","optional":true,"predicate":"flags.1","description":"Number of channel admins"},{"name":"kickedCount","type":"number","optional":true,"predicate":"flags.2","description":"Number of users kicked from the channel"},{"name":"bannedCount","type":"number","optional":true,"predicate":"flags.2","description":"Number of users banned from the channel"},{"name":"onlineCount","type":"number","optional":true,"predicate":"flags.13","description":"Number of users currently online"},{"name":"readInboxMaxId","type":"number","description":"Position up to which all incoming messages are read."},{"name":"readOutboxMaxId","type":"number","description":"Position up to which all outgoing messages are read."},{"name":"unreadCount","type":"number","description":"Count of unread messages"},{"name":"chatPhoto","type":"Photo","description":"Channel picture"},{"name":"notifySettings","type":"PeerNotifySettings","description":"Notification settings"},{"name":"exportedInvite","type":"ExportedChatInvite","optional":true,"predicate":"flags.23","description":"Invite link"},{"name":"botInfo","type":"BotInfo[]","description":"Info about bots in the channel/supergrup"},{"name":"migratedFromChatId","type":"number","optional":true,"predicate":"flags.4","description":"The chat ID from which this group was migrated"},{"name":"migratedFromMaxId","type":"number","optional":true,"predicate":"flags.4","description":"The message ID in the original chat at which this group was migrated"},{"name":"pinnedMsgId","type":"number","optional":true,"predicate":"flags.5","description":"Message ID of the last pinned message"},{"name":"stickerset","type":"StickerSet","optional":true,"predicate":"flags.8","description":"Associated stickerset"},{"name":"availableMinId","type":"number","optional":true,"predicate":"flags.9","description":"Identifier of a maximum unavailable message in a channel due to hidden history."},{"name":"folderId","type":"number","optional":true,"predicate":"flags.11","description":"Peer folder ID, for more info click here"},{"name":"linkedChatId","type":"number","optional":true,"predicate":"flags.14","description":"ID of the linked discussion chat for channels"},{"name":"location","type":"ChannelLocation","optional":true,"predicate":"flags.15","description":"Location of the geo group"},{"name":"slowmodeSeconds","type":"number","optional":true,"predicate":"flags.17","description":"If specified, users in supergroups will only be able to send one message every slowmode_seconds seconds"},{"name":"slowmodeNextSendDate","type":"number","optional":true,"predicate":"flags.18","description":"Indicates when the user will be allowed to send another message in the supergroup (UNIX timestamp in seconds)"},{"name":"statsDc","type":"number","optional":true,"predicate":"flags.12","description":"If set, specifies the DC to use for fetching channel statistics"},{"name":"pts","type":"number","description":"Latest PTS for this channel"},{"name":"call","type":"InputGroupCall","optional":true,"predicate":"flags.21"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.24"},{"name":"pendingSuggestions","type":"string[]","optional":true,"predicate":"flags.25"},{"name":"groupcallDefaultJoinAs","type":"Peer","optional":true,"predicate":"flags.26"}],"description":"Full info about a channel/supergroup"},{"name":"chatParticipant","id":3369552190,"type":"ChatParticipant","arguments":[{"name":"userId","type":"number","description":"Member user ID"},{"name":"inviterId","type":"number","description":"ID of the user that added the member to the group"},{"name":"date","type":"number","description":"Date added to the group"}],"description":"Group member."},{"name":"chatParticipantCreator","id":3658699658,"type":"ChatParticipant","arguments":[{"name":"userId","type":"number","description":"ID of the user that created the group"}],"description":"Represents the creator of the group"},{"name":"chatParticipantAdmin","id":3805733942,"type":"ChatParticipant","arguments":[{"name":"userId","type":"number","description":"ID of a group member that is admin"},{"name":"inviterId","type":"number","description":"ID of the user that added the member to the group"},{"name":"date","type":"number","description":"Date when the user was added"}],"description":"Chat admin"},{"name":"chatParticipantsForbidden","id":4237298731,"type":"ChatParticipants","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"chatId","type":"number","description":"Group ID"},{"name":"selfParticipant","type":"ChatParticipant","optional":true,"predicate":"flags.0","description":"Info about the group membership of the current user"}],"description":"Info on members is unavailable"},{"name":"chatParticipants","id":1061556205,"type":"ChatParticipants","arguments":[{"name":"chatId","type":"number","description":"Group identifier"},{"name":"participants","type":"ChatParticipant[]","description":"List of group members"},{"name":"version","type":"number","description":"Group version number"}],"description":"Group members."},{"name":"chatPhotoEmpty","id":935395612,"type":"ChatPhoto","arguments":[],"description":"Group photo is not set."},{"name":"chatPhoto","id":476978193,"type":"ChatPhoto","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"hasVideo","type":"true","optional":true,"predicate":"flags.0","description":"Whether the user has an animated profile picture"},{"name":"photoId","type":"Long"},{"name":"strippedThumb","type":"Buffer","optional":true,"predicate":"flags.1"},{"name":"dcId","type":"number","description":"DC where this photo is stored"}],"description":"Group profile photo."},{"name":"messageEmpty","id":2426849924,"type":"Message","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"id","type":"number","description":"Message identifier"},{"name":"peerId","type":"Peer","optional":true,"predicate":"flags.0"}],"description":"Empty constructor, non-existent message."},{"name":"message","id":3169027026,"type":"Message","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"out","type":"true","optional":true,"predicate":"flags.1","description":"Is this an outgoing message"},{"name":"mentioned","type":"true","optional":true,"predicate":"flags.4","description":"Whether we were mentioned in this message"},{"name":"mediaUnread","type":"true","optional":true,"predicate":"flags.5","description":"Whether there are unread media attachments in this message"},{"name":"silent","type":"true","optional":true,"predicate":"flags.13","description":"Whether this is a silent message (no notification triggered)"},{"name":"post","type":"true","optional":true,"predicate":"flags.14","description":"Whether this is a channel post"},{"name":"fromScheduled","type":"true","optional":true,"predicate":"flags.18","description":"Whether this is a scheduled message"},{"name":"legacy","type":"true","optional":true,"predicate":"flags.19","description":"This is a legacy message: it has to be refetched with the new layer"},{"name":"editHide","type":"true","optional":true,"predicate":"flags.21","description":"Whether the message should be shown as not modified to the user, even if an edit date is present"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.24","description":"Whether this message is pinned"},{"name":"id","type":"number","description":"ID of the message"},{"name":"fromId","type":"Peer","optional":true,"predicate":"flags.8","description":"ID of the sender of the message"},{"name":"peerId","type":"Peer","description":"Peer ID, the chat where this message was sent"},{"name":"fwdFrom","type":"MessageFwdHeader","optional":true,"predicate":"flags.2","description":"Info about forwarded messages"},{"name":"viaBotId","type":"number","optional":true,"predicate":"flags.11","description":"ID of the inline bot that generated the message"},{"name":"replyTo","type":"MessageReplyHeader","optional":true,"predicate":"flags.3","description":"Reply information"},{"name":"date","type":"number","description":"Date of the message"},{"name":"message","type":"string","description":"The message"},{"name":"media","type":"MessageMedia","optional":true,"predicate":"flags.9","description":"Media attachment"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.6","description":"Reply markup (bot/inline keyboards)"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.7","description":"Message entities for styled text"},{"name":"views","type":"number","optional":true,"predicate":"flags.10","description":"View count for channel posts"},{"name":"forwards","type":"number","optional":true,"predicate":"flags.10","description":"Forward counter"},{"name":"replies","type":"MessageReplies","optional":true,"predicate":"flags.23","description":"Info about post comments (for channels) or message replies (for groups)"},{"name":"editDate","type":"number","optional":true,"predicate":"flags.15","description":"Last edit date of this message"},{"name":"postAuthor","type":"string","optional":true,"predicate":"flags.16","description":"Name of the author of this message for channel posts (with signatures enabled)"},{"name":"groupedId","type":"Long","optional":true,"predicate":"flags.17","description":"Multiple media messages sent using {@link messages.sendMultiMedia} with the same grouped ID indicate an album or media group"},{"name":"restrictionReason","type":"RestrictionReason[]","optional":true,"predicate":"flags.22","description":"Contains the reason why access to this message must be restricted."},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.25"}],"description":"A message"},{"name":"messageService","id":721967202,"type":"Message","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"out","type":"true","optional":true,"predicate":"flags.1","description":"Whether the message is outgoing"},{"name":"mentioned","type":"true","optional":true,"predicate":"flags.4","description":"Whether we were mentioned in the message"},{"name":"mediaUnread","type":"true","optional":true,"predicate":"flags.5","description":"Whether the message contains unread media"},{"name":"silent","type":"true","optional":true,"predicate":"flags.13","description":"Whether the message is silent"},{"name":"post","type":"true","optional":true,"predicate":"flags.14","description":"Whether it's a channel post"},{"name":"legacy","type":"true","optional":true,"predicate":"flags.19","description":"This is a legacy message: it has to be refetched with the new layer"},{"name":"id","type":"number","description":"Message ID"},{"name":"fromId","type":"Peer","optional":true,"predicate":"flags.8","description":"ID of the sender of this message"},{"name":"peerId","type":"Peer","description":"Sender of service message"},{"name":"replyTo","type":"MessageReplyHeader","optional":true,"predicate":"flags.3","description":"Reply (thread) information"},{"name":"date","type":"number","description":"Message date"},{"name":"action","type":"MessageAction","description":"Event connected with the service message"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.25"}],"description":"Indicates a service message"},{"name":"messageMediaEmpty","id":1038967584,"type":"MessageMedia","arguments":[],"description":"Empty constructor."},{"name":"messageMediaPhoto","id":1766936791,"type":"MessageMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"photo","type":"Photo","optional":true,"predicate":"flags.0","description":"Photo"},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.2","description":"Time to live in seconds of self-destructing photo"}],"description":"Attached photo."},{"name":"messageMediaGeo","id":1457575028,"type":"MessageMedia","arguments":[{"name":"geo","type":"GeoPoint","description":"GeoPoint"}],"description":"Attached map."},{"name":"messageMediaContact","id":3421653312,"type":"MessageMedia","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number"},{"name":"firstName","type":"string","description":"Contact's first name"},{"name":"lastName","type":"string","description":"Contact's last name"},{"name":"vcard","type":"string","description":"VCARD of contact"},{"name":"userId","type":"number","description":"User identifier or 0, if the user with the given phone number is not registered"}],"description":"Attached contact."},{"name":"messageMediaUnsupported","id":2676290718,"type":"MessageMedia","arguments":[],"description":"Current version of the client does not support this media type."},{"name":"messageMediaDocument","id":2628808919,"type":"MessageMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"document","type":"Document","optional":true,"predicate":"flags.0","description":"Attached document"},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.2","description":"Time to live of self-destructing document"}],"description":"Document (video, audio, voice, sticker, any media type except photo)"},{"name":"messageMediaWebPage","id":2737690112,"type":"MessageMedia","arguments":[{"name":"webpage","type":"WebPage","description":"Webpage preview"}],"description":"Preview of webpage"},{"name":"messageMediaVenue","id":784356159,"type":"MessageMedia","arguments":[{"name":"geo","type":"GeoPoint","description":"Geolocation of venue"},{"name":"title","type":"string","description":"Venue name"},{"name":"address","type":"string","description":"Address"},{"name":"provider","type":"string","description":"Venue provider: currently only \"foursquare\" and \"gplaces\" need to be supported"},{"name":"venueId","type":"string","description":"Venue ID in the provider's database"},{"name":"venueType","type":"string","description":"Venue type in the provider's database"}],"description":"Venue"},{"name":"messageMediaGame","id":4256272392,"type":"MessageMedia","arguments":[{"name":"game","type":"Game","description":"Game"}],"description":"Telegram game"},{"name":"messageMediaInvoice","id":2220168007,"type":"MessageMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"shippingAddressRequested","type":"true","optional":true,"predicate":"flags.1","description":"Whether the shipping address was requested"},{"name":"test","type":"true","optional":true,"predicate":"flags.3","description":"Whether this is an example invoice"},{"name":"title","type":"string","description":"Product name, 1-32 characters"},{"name":"description","type":"string","description":"Product description, 1-255 characters"},{"name":"photo","type":"WebDocument","optional":true,"predicate":"flags.0","description":"URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for."},{"name":"receiptMsgId","type":"number","optional":true,"predicate":"flags.2","description":"Message ID of receipt: if set, clients should change the text of the first {@link keyboardButtonBuy} button always attached to the {@link message} to a localized version of the word Receipt"},{"name":"currency","type":"string","description":"Three-letter ISO 4217 currency code"},{"name":"totalAmount","type":"Long","description":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"startParam","type":"string","description":"Unique bot deep-linking parameter that can be used to generate this invoice"}],"description":"Invoice"},{"name":"messageMediaGeoLive","id":3108030054,"type":"MessageMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"geo","type":"GeoPoint","description":"Geolocation"},{"name":"heading","type":"number","optional":true,"predicate":"flags.0","description":"For live locations, a direction in which the location moves, in degrees; 1-360"},{"name":"period","type":"number","description":"Validity period of provided geolocation"},{"name":"proximityNotificationRadius","type":"number","optional":true,"predicate":"flags.1","description":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)."}],"description":"Indicates a live geolocation"},{"name":"messageMediaPoll","id":1272375192,"type":"MessageMedia","arguments":[{"name":"poll","type":"Poll","description":"The poll"},{"name":"results","type":"PollResults","description":"The results of the poll"}],"description":"Poll"},{"name":"messageMediaDice","id":1065280907,"type":"MessageMedia","arguments":[{"name":"value","type":"number","description":"Dice value"},{"name":"emoticon","type":"string","description":"The emoji, for now \"🏀\", \"🎲\" and \"🎯\" are supported"}],"description":"Dice-based animated sticker"},{"name":"messageActionEmpty","id":3064919984,"type":"MessageAction","arguments":[],"description":"Empty constructor."},{"name":"messageActionChatCreate","id":2791541658,"type":"MessageAction","arguments":[{"name":"title","type":"string","description":"Group name"},{"name":"users","type":"number[]","description":"List of group members"}],"description":"Group created"},{"name":"messageActionChatEditTitle","id":3047280218,"type":"MessageAction","arguments":[{"name":"title","type":"string","description":"New group name"}],"description":"Group name changed."},{"name":"messageActionChatEditPhoto","id":2144015272,"type":"MessageAction","arguments":[{"name":"photo","type":"Photo","description":"New group pofile photo"}],"description":"Group profile changed"},{"name":"messageActionChatDeletePhoto","id":2514746351,"type":"MessageAction","arguments":[],"description":"Group profile photo removed."},{"name":"messageActionChatAddUser","id":1217033015,"type":"MessageAction","arguments":[{"name":"users","type":"number[]","description":"Users that were invited to the chat"}],"description":"New member in the group"},{"name":"messageActionChatDeleteUser","id":2997787404,"type":"MessageAction","arguments":[{"name":"userId","type":"number","description":"Leaving user ID"}],"description":"User left the group."},{"name":"messageActionChatJoinedByLink","id":4171036136,"type":"MessageAction","arguments":[{"name":"inviterId","type":"number","description":"ID of the user that created the invite link"}],"description":"A user joined the chat via an invite link"},{"name":"messageActionChannelCreate","id":2513611922,"type":"MessageAction","arguments":[{"name":"title","type":"string","description":"Original channel/supergroup title"}],"description":"The channel was created"},{"name":"messageActionChatMigrateTo","id":1371385889,"type":"MessageAction","arguments":[{"name":"channelId","type":"number","description":"The supergroup it was migrated to"}],"description":"Indicates the chat was migrated to the specified supergroup"},{"name":"messageActionChannelMigrateFrom","id":2958420718,"type":"MessageAction","arguments":[{"name":"title","type":"string","description":"The old chat tite"},{"name":"chatId","type":"number","description":"The old chat ID"}],"description":"Indicates the channel was migrated from the specified chat"},{"name":"messageActionPinMessage","id":2495428845,"type":"MessageAction","arguments":[],"description":"A message was pinned"},{"name":"messageActionHistoryClear","id":2679813636,"type":"MessageAction","arguments":[],"description":"Chat history was cleared"},{"name":"messageActionGameScore","id":2460428406,"type":"MessageAction","arguments":[{"name":"gameId","type":"Long","description":"Game ID"},{"name":"score","type":"number","description":"Score"}],"description":"Someone scored in a game"},{"name":"messageActionPaymentSentMe","id":2402399015,"type":"MessageAction","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"currency","type":"string","description":"Three-letter ISO 4217 currency code"},{"name":"totalAmount","type":"Long","description":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"payload","type":"Buffer","description":"Bot specified invoice payload"},{"name":"info","type":"PaymentRequestedInfo","optional":true,"predicate":"flags.0","description":"Order info provided by the user"},{"name":"shippingOptionId","type":"string","optional":true,"predicate":"flags.1","description":"Identifier of the shipping option chosen by the user"},{"name":"charge","type":"PaymentCharge","description":"Provider payment identifier"}],"description":"A user just sent a payment to me (a bot)"},{"name":"messageActionPaymentSent","id":1080663248,"type":"MessageAction","arguments":[{"name":"currency","type":"string","description":"Three-letter ISO 4217 currency code"},{"name":"totalAmount","type":"Long","description":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}],"description":"A payment was sent"},{"name":"messageActionPhoneCall","id":2162236031,"type":"MessageAction","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"video","type":"true","optional":true,"predicate":"flags.2","description":"Is this a video call?"},{"name":"callId","type":"Long","description":"Call ID"},{"name":"reason","type":"PhoneCallDiscardReason","optional":true,"predicate":"flags.0","description":"If the call has ended, the reason why it ended"},{"name":"duration","type":"number","optional":true,"predicate":"flags.1","description":"Duration of the call in seconds"}],"description":"A phone call"},{"name":"messageActionScreenshotTaken","id":1200788123,"type":"MessageAction","arguments":[],"description":"A screenshot of the chat was taken"},{"name":"messageActionCustomAction","id":4209418070,"type":"MessageAction","arguments":[{"name":"message","type":"string","description":"Action message"}],"description":"Custom action (most likely not supported by the current layer, an upgrade might be needed)"},{"name":"messageActionBotAllowed","id":2884218878,"type":"MessageAction","arguments":[{"name":"domain","type":"string","description":"The domain name of the website on which the user has logged in."}],"description":"The domain name of the website on which the user has logged in. More about Telegram Login »"},{"name":"messageActionSecureValuesSentMe","id":455635795,"type":"MessageAction","arguments":[{"name":"values","type":"SecureValue[]","description":"Vector with information about documents and other Telegram Passport elements that were shared with the bot"},{"name":"credentials","type":"SecureCredentialsEncrypted","description":"Encrypted credentials required to decrypt the data"}],"description":"Secure telegram passport values were received"},{"name":"messageActionSecureValuesSent","id":3646710100,"type":"MessageAction","arguments":[{"name":"types","type":"SecureValueType[]","description":"Secure value types"}],"description":"Request for secure telegram passport values was sent"},{"name":"messageActionContactSignUp","id":4092747638,"type":"MessageAction","arguments":[],"description":"A contact just signed up to telegram"},{"name":"messageActionGeoProximityReached","id":2564871831,"type":"MessageAction","arguments":[{"name":"fromId","type":"Peer","description":"The user or chat that is now in proximity of to_id"},{"name":"toId","type":"Peer","description":"The user or chat that subscribed to live geolocation proximity alerts"},{"name":"distance","type":"number","description":"Distance, in meters (0-100000)"}],"description":"A user of the chat is now in proximity of another user"},{"name":"messageActionGroupCall","id":2047704898,"type":"MessageAction","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"call","type":"InputGroupCall"},{"name":"duration","type":"number","optional":true,"predicate":"flags.0"}]},{"name":"messageActionInviteToGroupCall","id":1991897370,"type":"MessageAction","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"users","type":"number[]"}]},{"name":"messageActionSetMessagesTTL","id":2853895165,"type":"MessageAction","arguments":[{"name":"period","type":"number"}]},{"name":"messageActionGroupCallScheduled","id":3013637729,"type":"MessageAction","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"scheduleDate","type":"number"}]},{"name":"dialog","id":739712882,"type":"Dialog","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.2","description":"Is the dialog pinned"},{"name":"unreadMark","type":"true","optional":true,"predicate":"flags.3","description":"Whether the chat was manually marked as unread"},{"name":"peer","type":"Peer","description":"The chat"},{"name":"topMessage","type":"number","description":"The latest message ID"},{"name":"readInboxMaxId","type":"number","description":"Position up to which all incoming messages are read."},{"name":"readOutboxMaxId","type":"number","description":"Position up to which all outgoing messages are read."},{"name":"unreadCount","type":"number","description":"Number of unread messages"},{"name":"unreadMentionsCount","type":"number","description":"Number of unread mentions"},{"name":"notifySettings","type":"PeerNotifySettings","description":"Notification settings"},{"name":"pts","type":"number","optional":true,"predicate":"flags.0","description":"PTS"},{"name":"draft","type":"DraftMessage","optional":true,"predicate":"flags.1","description":"Message draft"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.4","description":"Peer folder ID, for more info click here"}],"description":"Chat"},{"name":"dialogFolder","id":1908216652,"type":"Dialog","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.2","description":"Is this folder pinned"},{"name":"folder","type":"Folder","description":"The folder"},{"name":"peer","type":"Peer","description":"Peer in folder"},{"name":"topMessage","type":"number","description":"Latest message ID of dialog"},{"name":"unreadMutedPeersCount","type":"number","description":"Number of unread muted peers in folder"},{"name":"unreadUnmutedPeersCount","type":"number","description":"Number of unread unmuted peers in folder"},{"name":"unreadMutedMessagesCount","type":"number","description":"Number of unread messages from muted peers in folder"},{"name":"unreadUnmutedMessagesCount","type":"number","description":"Number of unread messages from unmuted peers in folder"}],"description":"Dialog in folder"},{"name":"photoEmpty","id":590459437,"type":"Photo","arguments":[{"name":"id","type":"Long","description":"Photo identifier"}],"description":"Empty constructor, non-existent photo"},{"name":"photo","id":4212750949,"type":"Photo","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"hasStickers","type":"true","optional":true,"predicate":"flags.0","description":"Whether the photo has mask stickers attached to it"},{"name":"id","type":"Long","description":"ID"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"fileReference","type":"Buffer","description":"file reference"},{"name":"date","type":"number","description":"Date of upload"},{"name":"sizes","type":"PhotoSize[]","description":"Available sizes for download"},{"name":"videoSizes","type":"VideoSize[]","optional":true,"predicate":"flags.1","description":"For animated profiles, the MPEG4 videos"},{"name":"dcId","type":"number","description":"DC ID to use for download"}],"description":"Photo"},{"name":"photoSizeEmpty","id":236446268,"type":"PhotoSize","arguments":[{"name":"type","type":"string","description":"Thumbnail type (see. {@link photoSize})"}],"description":"Empty constructor. Image with this thumbnail is unavailable."},{"name":"photoSize","id":1976012384,"type":"PhotoSize","arguments":[{"name":"type","type":"string","description":"Thumbnail type"},{"name":"w","type":"number","description":"Image width"},{"name":"h","type":"number","description":"Image height"},{"name":"size","type":"number","description":"File size"}],"description":"Image description."},{"name":"photoCachedSize","id":35527382,"type":"PhotoSize","arguments":[{"name":"type","type":"string","description":"Thumbnail type"},{"name":"w","type":"number","description":"Image width"},{"name":"h","type":"number","description":"Image height"},{"name":"bytes","type":"Buffer","description":"Binary data, file content"}],"description":"Description of an image and its content."},{"name":"photoStrippedSize","id":3769678894,"type":"PhotoSize","arguments":[{"name":"type","type":"string","description":"Thumbnail type"},{"name":"bytes","type":"Buffer","description":"Thumbnail data, see here for more info on decompression »"}],"description":"A low-resolution compressed JPG payload"},{"name":"photoSizeProgressive","id":4198431637,"type":"PhotoSize","arguments":[{"name":"type","type":"string","description":"Photosize type"},{"name":"w","type":"number","description":"Photo width"},{"name":"h","type":"number","description":"Photo height"},{"name":"sizes","type":"number[]","description":"Sizes of progressive JPEG file prefixes, which can be used to preliminarily show the image."}],"description":"Progressively encoded photosize"},{"name":"photoPathSize","id":3626061121,"type":"PhotoSize","arguments":[{"name":"type","type":"string","description":"Always j"},{"name":"bytes","type":"Buffer","description":"Compressed SVG path payload, see here for decompression instructions"}],"description":"Messages with animated stickers can have a compressed svg (< 300 bytes) to show the outline of the sticker before fetching the actual lottie animation."},{"name":"geoPointEmpty","id":286776671,"type":"GeoPoint","arguments":[],"description":"Empty constructor."},{"name":"geoPoint","id":2997024355,"type":"GeoPoint","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"long","type":"Double","description":"Longtitude"},{"name":"lat","type":"Double","description":"Latitude"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"accuracyRadius","type":"number","optional":true,"predicate":"flags.0","description":"The estimated horizontal accuracy of the location, in meters; as defined by the sender."}],"description":"GeoPoint."},{"name":"inputNotifyPeer","id":3099351820,"type":"InputNotifyPeer","arguments":[{"name":"peer","type":"InputPeer","description":"User or group"}],"description":"Notifications generated by a certain user or group."},{"name":"inputNotifyUsers","id":423314455,"type":"InputNotifyPeer","arguments":[],"description":"Notifications generated by all users."},{"name":"inputNotifyChats","id":1251338318,"type":"InputNotifyPeer","arguments":[],"description":"Notifications generated by all groups."},{"name":"inputNotifyBroadcasts","id":2983951486,"type":"InputNotifyPeer","arguments":[],"description":"All channels"},{"name":"inputPeerNotifySettings","id":2621249934,"type":"InputPeerNotifySettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"showPreviews","type":"boolean","optional":true,"predicate":"flags.0","description":"If the text of the message shall be displayed in notification"},{"name":"silent","type":"boolean","optional":true,"predicate":"flags.1","description":"Peer was muted?"},{"name":"muteUntil","type":"number","optional":true,"predicate":"flags.2","description":"Date until which all notifications shall be switched off"},{"name":"sound","type":"string","optional":true,"predicate":"flags.3","description":"Name of an audio file for notification"}],"description":"Notification settings."},{"name":"peerNotifySettings","id":2941295904,"type":"PeerNotifySettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"showPreviews","type":"boolean","optional":true,"predicate":"flags.0","description":"Display text in notifications"},{"name":"silent","type":"boolean","optional":true,"predicate":"flags.1","description":"Mute peer?"},{"name":"muteUntil","type":"number","optional":true,"predicate":"flags.2","description":"Mute all notifications until this date"},{"name":"sound","type":"string","optional":true,"predicate":"flags.3","description":"Audio file name for notifications"}],"description":"Notification settings."},{"name":"peerSettings","id":1933519201,"type":"PeerSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"reportSpam","type":"true","optional":true,"predicate":"flags.0","description":"Whether we can still report the user for spam"},{"name":"addContact","type":"true","optional":true,"predicate":"flags.1","description":"Whether we can add the user as contact"},{"name":"blockContact","type":"true","optional":true,"predicate":"flags.2","description":"Whether we can block the user"},{"name":"shareContact","type":"true","optional":true,"predicate":"flags.3","description":"Whether we can share the user's contact"},{"name":"needContactsException","type":"true","optional":true,"predicate":"flags.4","description":"Whether a special exception for contacts is needed"},{"name":"reportGeo","type":"true","optional":true,"predicate":"flags.5","description":"Whether we can report a geo group is irrelevant for this location"},{"name":"autoarchived","type":"true","optional":true,"predicate":"flags.7","description":"Whether this peer was automatically archived according to {@link globalPrivacySettings}"},{"name":"inviteMembers","type":"true","optional":true,"predicate":"flags.8"},{"name":"geoDistance","type":"number","optional":true,"predicate":"flags.6","description":"Distance in meters between us and this peer"}],"description":"Peer settings"},{"name":"wallPaper","id":2755118061,"type":"WallPaper","arguments":[{"name":"id","type":"Long","description":"Identifier"},{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"creator","type":"true","optional":true,"predicate":"flags.0","description":"Creator of the wallpaper"},{"name":"default","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is the default wallpaper"},{"name":"pattern","type":"true","optional":true,"predicate":"flags.3","description":"Pattern"},{"name":"dark","type":"true","optional":true,"predicate":"flags.4","description":"Dark mode"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"slug","type":"string","description":"Unique wallpaper ID"},{"name":"document","type":"Document","description":"The actual wallpaper"},{"name":"settings","type":"WallPaperSettings","optional":true,"predicate":"flags.2","description":"Wallpaper settings"}],"description":"Wallpaper settings."},{"name":"wallPaperNoFile","id":3766501654,"type":"WallPaper","arguments":[{"name":"id","type":"Long"},{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"default","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is the default wallpaper"},{"name":"dark","type":"true","optional":true,"predicate":"flags.4","description":"Dark mode"},{"name":"settings","type":"WallPaperSettings","optional":true,"predicate":"flags.2","description":"Wallpaper settings"}],"description":"No file wallpaper"},{"name":"inputReportReasonSpam","id":1490799288,"type":"ReportReason","arguments":[],"description":"Report for spam"},{"name":"inputReportReasonViolence","id":505595789,"type":"ReportReason","arguments":[],"description":"Report for violence"},{"name":"inputReportReasonPornography","id":777640226,"type":"ReportReason","arguments":[],"description":"Report for pornography"},{"name":"inputReportReasonChildAbuse","id":2918469347,"type":"ReportReason","arguments":[],"description":"Report for child abuse"},{"name":"inputReportReasonOther","id":3252986545,"type":"ReportReason","arguments":[],"description":"Other"},{"name":"inputReportReasonCopyright","id":2609510714,"type":"ReportReason","arguments":[],"description":"Report for copyrighted content"},{"name":"inputReportReasonGeoIrrelevant","id":3688169197,"type":"ReportReason","arguments":[],"description":"Report an irrelevant geo group"},{"name":"inputReportReasonFake","id":4124956391,"type":"ReportReason","arguments":[]},{"name":"userFull","id":328899191,"type":"UserFull","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"blocked","type":"true","optional":true,"predicate":"flags.0","description":"Whether you have blocked this user"},{"name":"phoneCallsAvailable","type":"true","optional":true,"predicate":"flags.4","description":"Whether this user can make VoIP calls"},{"name":"phoneCallsPrivate","type":"true","optional":true,"predicate":"flags.5","description":"Whether this user's privacy settings allow you to call them"},{"name":"canPinMessage","type":"true","optional":true,"predicate":"flags.7","description":"Whether you can pin messages in the chat with this user, you can do this only for a chat with yourself"},{"name":"hasScheduled","type":"true","optional":true,"predicate":"flags.12","description":"Whether scheduled messages are available"},{"name":"videoCallsAvailable","type":"true","optional":true,"predicate":"flags.13","description":"Whether the user can receive video calls"},{"name":"user","type":"User","description":"Remaining user info"},{"name":"about","type":"string","optional":true,"predicate":"flags.1","description":"Bio of the user"},{"name":"settings","type":"PeerSettings","description":"Peer settings"},{"name":"profilePhoto","type":"Photo","optional":true,"predicate":"flags.2","description":"Profile photo"},{"name":"notifySettings","type":"PeerNotifySettings","description":"Notification settings"},{"name":"botInfo","type":"BotInfo","optional":true,"predicate":"flags.3","description":"For bots, info about the bot (bot commands, etc)"},{"name":"pinnedMsgId","type":"number","optional":true,"predicate":"flags.6","description":"Message ID of the last pinned message"},{"name":"commonChatsCount","type":"number","description":"Chats in common with this user"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.11","description":"Peer folder ID, for more info click here"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.14"}],"description":"Extended user info"},{"name":"contact","id":4178692500,"type":"Contact","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"mutual","type":"boolean","description":"Current user is in the user's contact list"}],"description":"A contact of the current user that is registered in the system."},{"name":"importedContact","id":3489825848,"type":"ImportedContact","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"clientId","type":"Long","description":"The contact's client identifier (passed to one of the InputContact constructors)"}],"description":"Successfully imported contact."},{"name":"contactStatus","id":3546811489,"type":"ContactStatus","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"status","type":"UserStatus","description":"Online status"}],"description":"Contact status: online / offline."},{"name":"inputMessagesFilterEmpty","id":1474492012,"type":"MessagesFilter","arguments":[],"description":"Filter is absent."},{"name":"inputMessagesFilterPhotos","id":2517214492,"type":"MessagesFilter","arguments":[],"description":"Filter for messages containing photos."},{"name":"inputMessagesFilterVideo","id":2680163941,"type":"MessagesFilter","arguments":[],"description":"Filter for messages containing videos."},{"name":"inputMessagesFilterPhotoVideo","id":1458172132,"type":"MessagesFilter","arguments":[],"description":"Filter for messages containing photos or videos."},{"name":"inputMessagesFilterDocument","id":2665345416,"type":"MessagesFilter","arguments":[],"description":"Filter for messages containing documents."},{"name":"inputMessagesFilterUrl","id":2129714567,"type":"MessagesFilter","arguments":[],"description":"Return only messages containing URLs"},{"name":"inputMessagesFilterGif","id":4291323271,"type":"MessagesFilter","arguments":[],"description":"Return only messages containing gifs"},{"name":"inputMessagesFilterVoice","id":1358283666,"type":"MessagesFilter","arguments":[],"description":"Return only messages containing voice notes"},{"name":"inputMessagesFilterMusic","id":928101534,"type":"MessagesFilter","arguments":[],"description":"Return only messages containing audio files"},{"name":"inputMessagesFilterChatPhotos","id":975236280,"type":"MessagesFilter","arguments":[],"description":"Return only chat photo changes"},{"name":"inputMessagesFilterPhoneCalls","id":2160695144,"type":"MessagesFilter","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"missed","type":"true","optional":true,"predicate":"flags.0","description":"Return only missed phone calls"}],"description":"Return only phone calls"},{"name":"inputMessagesFilterRoundVoice","id":2054952868,"type":"MessagesFilter","arguments":[],"description":"Return only round videos and voice notes"},{"name":"inputMessagesFilterRoundVideo","id":3041516115,"type":"MessagesFilter","arguments":[],"description":"Return only round videos"},{"name":"inputMessagesFilterMyMentions","id":3254314650,"type":"MessagesFilter","arguments":[],"description":"Return only messages where the current user was mentioned."},{"name":"inputMessagesFilterGeo","id":3875695885,"type":"MessagesFilter","arguments":[],"description":"Return only messages containing geolocations"},{"name":"inputMessagesFilterContacts","id":3764575107,"type":"MessagesFilter","arguments":[],"description":"Return only messages containing contacts"},{"name":"inputMessagesFilterPinned","id":464520273,"type":"MessagesFilter","arguments":[],"description":"Fetch only pinned messages"},{"name":"updateNewMessage","id":522914557,"type":"Update","arguments":[{"name":"message","type":"Message","description":"Message"},{"name":"pts","type":"number","description":"New quantity of actions in a message box"},{"name":"ptsCount","type":"number","description":"Number of generated events"}],"description":"New message in a private chat or in a legacy group."},{"name":"updateMessageID","id":1318109142,"type":"Update","arguments":[{"name":"id","type":"number","description":"id identifier of a respective Message"},{"name":"randomId","type":"Long","description":"Previuosly transferred client random_id identifier"}],"description":"Sent message with random_id client identifier was assigned an identifier."},{"name":"updateDeleteMessages","id":2718806245,"type":"Update","arguments":[{"name":"messages","type":"number[]","description":"List of identifiers of deleted messages"},{"name":"pts","type":"number","description":"New quality of actions in a message box"},{"name":"ptsCount","type":"number","description":"Number of generated events"}],"description":"Messages were deleted."},{"name":"updateUserTyping","id":1548249383,"type":"Update","arguments":[{"name":"userId","type":"number","description":"User id"},{"name":"action","type":"SendMessageAction","description":"Action type
Param added in Layer 17."}],"description":"The user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 seconds. If no repeated update received after 6 seconds, it should be considered that the user stopped doing whatever he's been doing."},{"name":"updateChatUserTyping","id":2261441388,"type":"Update","arguments":[{"name":"chatId","type":"number","description":"Group id"},{"name":"fromId","type":"Peer"},{"name":"action","type":"SendMessageAction","description":"Type of action
Parameter added in Layer 17."}],"description":"The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no repeated update received after 6 seconds, it should be considered that the user stopped doing whatever he's been doing."},{"name":"updateChatParticipants","id":125178264,"type":"Update","arguments":[{"name":"participants","type":"ChatParticipants","description":"Updated chat participants"}],"description":"Composition of chat participants changed."},{"name":"updateUserStatus","id":469489699,"type":"Update","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"status","type":"UserStatus","description":"New status"}],"description":"Contact status update."},{"name":"updateUserName","id":2805148531,"type":"Update","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"firstName","type":"string","description":"New first name. Corresponds to the new value of real_first_name field of the {@link userFull} constructor."},{"name":"lastName","type":"string","description":"New last name. Corresponds to the new value of real_last_name field of the {@link userFull} constructor."},{"name":"username","type":"string","description":"New username.
Parameter added in Layer 18."}],"description":"Changes the user's first name, last name and username."},{"name":"updateUserPhoto","id":2503031564,"type":"Update","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"date","type":"number","description":"Date of photo update."},{"name":"photo","type":"UserProfilePhoto","description":"New profile photo"},{"name":"previous","type":"boolean","description":"({@link boolTrue}), if one of the previously used photos is set a profile photo."}],"description":"Change of contact's profile photo."},{"name":"updateNewEncryptedMessage","id":314359194,"type":"Update","arguments":[{"name":"message","type":"EncryptedMessage","description":"Message"},{"name":"qts","type":"number","description":"New qts value"}],"description":"New encrypted message."},{"name":"updateEncryptedChatTyping","id":386986326,"type":"Update","arguments":[{"name":"chatId","type":"number","description":"Chat ID"}],"description":"Interlocutor is typing a message in an encrypted chat. Update period is 6 second. If upon this time there is no repeated update, it shall be considered that the interlocutor stopped typing."},{"name":"updateEncryption","id":3030575245,"type":"Update","arguments":[{"name":"chat","type":"EncryptedChat","description":"Encrypted chat"},{"name":"date","type":"number","description":"Date of change"}],"description":"Change of state in an encrypted chat."},{"name":"updateEncryptedMessagesRead","id":956179895,"type":"Update","arguments":[{"name":"chatId","type":"number","description":"Chat ID"},{"name":"maxDate","type":"number","description":"Maximum value of data for read messages"},{"name":"date","type":"number","description":"Time when messages were read"}],"description":"Communication history in an encrypted chat was marked as read."},{"name":"updateChatParticipantAdd","id":3930787420,"type":"Update","arguments":[{"name":"chatId","type":"number","description":"Group ID"},{"name":"userId","type":"number","description":"ID of the new member"},{"name":"inviterId","type":"number","description":"ID of the user, who added member to the group"},{"name":"date","type":"number","description":"When was the participant added"},{"name":"version","type":"number","description":"Chat version number"}],"description":"New group member."},{"name":"updateChatParticipantDelete","id":1851755554,"type":"Update","arguments":[{"name":"chatId","type":"number","description":"Group ID"},{"name":"userId","type":"number","description":"ID of the user"},{"name":"version","type":"number","description":"Used in basic groups to reorder updates and make sure that all of them was received."}],"description":"A member has left the group."},{"name":"updateDcOptions","id":2388564083,"type":"Update","arguments":[{"name":"dcOptions","type":"DcOption[]","description":"New connection options"}],"description":"Changes in the data center configuration options."},{"name":"updateNotifySettings","id":3200411887,"type":"Update","arguments":[{"name":"peer","type":"NotifyPeer","description":"Nofication source"},{"name":"notifySettings","type":"PeerNotifySettings","description":"New notification settings"}],"description":"Changes in notification settings."},{"name":"updateServiceNotification","id":3957614617,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"popup","type":"true","optional":true,"predicate":"flags.0","description":"(boolTrue) if the message must be displayed in a popup."},{"name":"inboxDate","type":"number","optional":true,"predicate":"flags.1","description":"When was the notification received
The message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications)."},{"name":"type","type":"string","description":"String, identical in format and contents to the type field in API errors. Describes type of service message. It is acceptable to ignore repeated messages of the same type within a short period of time (15 minutes)."},{"name":"message","type":"string","description":"Message text"},{"name":"media","type":"MessageMedia","description":"Media content (optional)"},{"name":"entities","type":"MessageEntity[]","description":"Message entities for styled text"}],"description":"A service message for the user."},{"name":"updatePrivacy","id":3996854058,"type":"Update","arguments":[{"name":"key","type":"PrivacyKey","description":"Peers to which the privacy rules apply"},{"name":"rules","type":"PrivacyRule[]","description":"New privacy rules"}],"description":"Privacy rules were changed"},{"name":"updateUserPhone","id":314130811,"type":"Update","arguments":[{"name":"userId","type":"number","description":"User ID"},{"name":"phone","type":"string","description":"New phone number"}],"description":"A user's phone number was changed"},{"name":"updateReadHistoryInbox","id":2627162079,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.0","description":"Peer folder ID, for more info click here"},{"name":"peer","type":"Peer","description":"Peer"},{"name":"maxId","type":"number","description":"Maximum ID of messages read"},{"name":"stillUnreadCount","type":"number","description":"Number of messages that are still unread"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"Incoming messages were read"},{"name":"updateReadHistoryOutbox","id":791617983,"type":"Update","arguments":[{"name":"peer","type":"Peer","description":"Peer"},{"name":"maxId","type":"number","description":"Maximum ID of read outgoing messages"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"Outgoing messages were read"},{"name":"updateWebPage","id":2139689491,"type":"Update","arguments":[{"name":"webpage","type":"WebPage","description":"Webpage preview"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"An instant view webpage preview was generated"},{"name":"updateReadMessagesContents","id":1757493555,"type":"Update","arguments":[{"name":"messages","type":"number[]","description":"IDs of read messages"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"Contents of messages in the common message box were read"},{"name":"updateChannelTooLong","id":3942934523,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"channelId","type":"number","description":"The channel"},{"name":"pts","type":"number","optional":true,"predicate":"flags.0","description":"The PTS."}],"description":"There are new updates in the specified channel, the client must fetch them.
\nIf the difference is too long or if the channel isn't currently in the states, start fetching from the specified pts."},{"name":"updateChannel","id":3067369046,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel ID"}],"description":"A new channel is available"},{"name":"updateNewChannelMessage","id":1656358105,"type":"Update","arguments":[{"name":"message","type":"Message","description":"New message"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"A new message was sent in a channel/supergroup"},{"name":"updateReadChannelInbox","id":856380452,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.0","description":"Peer folder ID, for more info click here"},{"name":"channelId","type":"number","description":"Channel/supergroup ID"},{"name":"maxId","type":"number","description":"Position up to which all incoming messages are read."},{"name":"stillUnreadCount","type":"number","description":"Count of messages weren't read yet"},{"name":"pts","type":"number","description":"Event count after generation"}],"description":"Incoming messages in a channel/supergroup were read"},{"name":"updateDeleteChannelMessages","id":3279233481,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel ID"},{"name":"messages","type":"number[]","description":"IDs of messages that were deleted"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"Some messages in a supergroup/channel were deleted"},{"name":"updateChannelMessageViews","id":2560699211,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel ID"},{"name":"id","type":"number","description":"ID of the message"},{"name":"views","type":"number","description":"New view counter"}],"description":"The view counter of a message in a channel has changed"},{"name":"updateChatParticipantAdmin","id":3062896985,"type":"Update","arguments":[{"name":"chatId","type":"number","description":"Chat ID"},{"name":"userId","type":"number","description":"ID of the (de)admined user"},{"name":"isAdmin","type":"boolean","description":"Whether the user was rendered admin"},{"name":"version","type":"number","description":"Used in basic groups to reorder updates and make sure that all of them was received."}],"description":"Admin permissions of a user in a legacy group were changed"},{"name":"updateNewStickerSet","id":1753886890,"type":"Update","arguments":[{"name":"stickerset","type":"messages.StickerSet","description":"The installed stickerset"}],"description":"A new stickerset was installed"},{"name":"updateStickerSetsOrder","id":196268545,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"masks","type":"true","optional":true,"predicate":"flags.0","description":"Whether the updated stickers are mask stickers"},{"name":"order","type":"Long[]","description":"New sticker order by sticker ID"}],"description":"The order of stickersets was changed"},{"name":"updateStickerSets","id":1135492588,"type":"Update","arguments":[],"description":"Installed stickersets have changed, the client should refetch them using {@link messages.getAllStickers}"},{"name":"updateSavedGifs","id":2473931806,"type":"Update","arguments":[],"description":"The saved gif list has changed, the client should refetch it using {@link messages.getSavedGifs}"},{"name":"updateBotInlineQuery","id":1059076315,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"queryId","type":"Long","description":"Query ID"},{"name":"userId","type":"number","description":"User that sent the query"},{"name":"query","type":"string","description":"Text of query"},{"name":"geo","type":"GeoPoint","optional":true,"predicate":"flags.0","description":"Attached geolocation"},{"name":"peerType","type":"InlineQueryPeerType","optional":true,"predicate":"flags.1"},{"name":"offset","type":"string","description":"Offset to navigate through results"}],"description":"An incoming inline query"},{"name":"updateBotInlineSend","id":239663460,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"userId","type":"number","description":"The user that chose the result"},{"name":"query","type":"string","description":"The query that was used to obtain the result"},{"name":"geo","type":"GeoPoint","optional":true,"predicate":"flags.0","description":"Optional. Sender location, only for bots that require user location"},{"name":"id","type":"string","description":"The unique identifier for the result that was chosen"},{"name":"msgId","type":"InputBotInlineMessageID","optional":true,"predicate":"flags.1","description":"Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message."}],"description":"The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot."},{"name":"updateEditChannelMessage","id":457133559,"type":"Update","arguments":[{"name":"message","type":"Message","description":"The new message"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"A message was edited in a channel/supergroup"},{"name":"updateBotCallbackQuery","id":3879028705,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"queryId","type":"Long","description":"Query ID"},{"name":"userId","type":"number","description":"ID of the user that pressed the button"},{"name":"peer","type":"Peer","description":"Chat where the inline keyboard was sent"},{"name":"msgId","type":"number","description":"Message ID"},{"name":"chatInstance","type":"Long","description":"Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games."},{"name":"data","type":"Buffer","optional":true,"predicate":"flags.0","description":"Callback data"},{"name":"gameShortName","type":"string","optional":true,"predicate":"flags.1","description":"Short name of a Game to be returned, serves as the unique identifier for the game"}],"description":"A callback button was pressed, and the button data was sent to the bot that created the button"},{"name":"updateEditMessage","id":3825430691,"type":"Update","arguments":[{"name":"message","type":"Message","description":"The new edited message"},{"name":"pts","type":"number","description":"PTS"},{"name":"ptsCount","type":"number","description":"PTS count"}],"description":"A message was edited"},{"name":"updateInlineBotCallbackQuery","id":4191320666,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"queryId","type":"Long","description":"Query ID"},{"name":"userId","type":"number","description":"ID of the user that pressed the button"},{"name":"msgId","type":"InputBotInlineMessageID","description":"ID of the inline message with the button"},{"name":"chatInstance","type":"Long","description":"Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games."},{"name":"data","type":"Buffer","optional":true,"predicate":"flags.0","description":"Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field."},{"name":"gameShortName","type":"string","optional":true,"predicate":"flags.1","description":"Short name of a Game to be returned, serves as the unique identifier for the game"}],"description":"This notification is received by bots when a button is pressed"},{"name":"updateReadChannelOutbox","id":634833351,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel/supergroup ID"},{"name":"maxId","type":"number","description":"Position up to which all outgoing messages are read."}],"description":"Outgoing messages in a channel/supergroup were read"},{"name":"updateDraftMessage","id":3995842921,"type":"Update","arguments":[{"name":"peer","type":"Peer","description":"The peer to which the draft is associated"},{"name":"draft","type":"DraftMessage","description":"The draft"}],"description":"Notifies a change of a message draft."},{"name":"updateReadFeaturedStickers","id":1461528386,"type":"Update","arguments":[],"description":"Some featured stickers were marked as read"},{"name":"updateRecentStickers","id":2588027936,"type":"Update","arguments":[],"description":"The recent sticker list was updated"},{"name":"updateConfig","id":2720652550,"type":"Update","arguments":[],"description":"The server-side configuration has changed; the client should re-fetch the config using {@link help.getConfig}"},{"name":"updatePtsChanged","id":861169551,"type":"Update","arguments":[],"description":"Common message box sequence PTS has changed, state has to be refetched using updates.getState"},{"name":"updateChannelWebPage","id":1081547008,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel/supergroup ID"},{"name":"webpage","type":"WebPage","description":"Generated webpage preview"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"A webpage preview of a link in a channel/supergroup message was generated"},{"name":"updateDialogPinned","id":1852826908,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.0","description":"Whether the dialog was pinned"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.1","description":"Peer folder ID, for more info click here"},{"name":"peer","type":"DialogPeer","description":"The dialog"}],"description":"A dialog was pinned/unpinned"},{"name":"updatePinnedDialogs","id":4195302562,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.1","description":"Peer folder ID, for more info click here"},{"name":"order","type":"DialogPeer[]","optional":true,"predicate":"flags.0","description":"New order of pinned dialogs"}],"description":"Pinned dialogs were updated"},{"name":"updateBotWebhookJSON","id":2199371971,"type":"Update","arguments":[{"name":"data","type":"DataJSON","description":"The event"}],"description":"A new incoming event; for bots only"},{"name":"updateBotWebhookJSONQuery","id":2610053286,"type":"Update","arguments":[{"name":"queryId","type":"Long","description":"Query identifier"},{"name":"data","type":"DataJSON","description":"Query data"},{"name":"timeout","type":"number","description":"Query timeout"}],"description":"A new incoming query; for bots only"},{"name":"updateBotShippingQuery","id":3771582784,"type":"Update","arguments":[{"name":"queryId","type":"Long","description":"Unique query identifier"},{"name":"userId","type":"number","description":"User who sent the query"},{"name":"payload","type":"Buffer","description":"Bot specified invoice payload"},{"name":"shippingAddress","type":"PostAddress","description":"User specified shipping address"}],"description":"This object contains information about an incoming shipping query."},{"name":"updateBotPrecheckoutQuery","id":1563376297,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"queryId","type":"Long","description":"Unique query identifier"},{"name":"userId","type":"number","description":"User who sent the query"},{"name":"payload","type":"Buffer","description":"Bot specified invoice payload"},{"name":"info","type":"PaymentRequestedInfo","optional":true,"predicate":"flags.0","description":"Order info provided by the user"},{"name":"shippingOptionId","type":"string","optional":true,"predicate":"flags.1","description":"Identifier of the shipping option chosen by the user"},{"name":"currency","type":"string","description":"Three-letter ISO 4217 currency code"},{"name":"totalAmount","type":"Long","description":"Total amount in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}],"description":"This object contains information about an incoming pre-checkout query."},{"name":"updatePhoneCall","id":2869914398,"type":"Update","arguments":[{"name":"phoneCall","type":"PhoneCall","description":"Phone call"}],"description":"An incoming phone call"},{"name":"updateLangPackTooLong","id":1180041828,"type":"Update","arguments":[{"name":"langCode","type":"string","description":"Language code"}],"description":"A language pack has changed, the client should manually fetch the changed strings using {@link langpack.getDifference}"},{"name":"updateLangPack","id":1442983757,"type":"Update","arguments":[{"name":"difference","type":"LangPackDifference","description":"Changed strings"}],"description":"Language pack updated"},{"name":"updateFavedStickers","id":3843135853,"type":"Update","arguments":[],"description":"The list of favorited stickers was changed, the client should call {@link messages.getFavedStickers} to refetch the new list"},{"name":"updateChannelReadMessagesContents","id":2307472197,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel/supergroup ID"},{"name":"messages","type":"number[]","description":"IDs of messages that were read"}],"description":"The specified channel/supergroup messages were read"},{"name":"updateContactsReset","id":1887741886,"type":"Update","arguments":[],"description":"All contacts were deleted"},{"name":"updateChannelAvailableMessages","id":1893427255,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel/supergroup ID"},{"name":"availableMinId","type":"number","description":"Identifier of a maximum unavailable message in a channel due to hidden history."}],"description":"The history of a channel/supergroup was hidden."},{"name":"updateDialogUnreadMark","id":3781450179,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"unread","type":"true","optional":true,"predicate":"flags.0","description":"Was the chat marked or unmarked as read"},{"name":"peer","type":"DialogPeer","description":"The dialog"}],"description":"The manual unread mark of a chat was changed"},{"name":"updateMessagePoll","id":2896258427,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pollId","type":"Long","description":"Poll ID"},{"name":"poll","type":"Poll","optional":true,"predicate":"flags.0","description":"If the server knows the client hasn't cached this poll yet, the poll itself"},{"name":"results","type":"PollResults","description":"New poll results"}],"description":"The results of a poll have changed"},{"name":"updateChatDefaultBannedRights","id":1421875280,"type":"Update","arguments":[{"name":"peer","type":"Peer","description":"The chat"},{"name":"defaultBannedRights","type":"ChatBannedRights","description":"New default banned rights"},{"name":"version","type":"number","description":"Version"}],"description":"Default banned rights in a normal chat were updated"},{"name":"updateFolderPeers","id":422972864,"type":"Update","arguments":[{"name":"folderPeers","type":"FolderPeer[]","description":"New peer list"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"The peer list of a peer folder was updated"},{"name":"updatePeerSettings","id":1786671974,"type":"Update","arguments":[{"name":"peer","type":"Peer","description":"The peer"},{"name":"settings","type":"PeerSettings","description":"Associated peer settings"}],"description":"Settings of a certain peer have changed"},{"name":"updatePeerLocated","id":3031420848,"type":"Update","arguments":[{"name":"peers","type":"PeerLocated[]","description":"Geolocated peer list update"}],"description":"List of peers near you was updated"},{"name":"updateNewScheduledMessage","id":967122427,"type":"Update","arguments":[{"name":"message","type":"Message","description":"Message"}],"description":"A message was added to the schedule queue of a chat"},{"name":"updateDeleteScheduledMessages","id":2424728814,"type":"Update","arguments":[{"name":"peer","type":"Peer","description":"Peer"},{"name":"messages","type":"number[]","description":"Deleted scheduled messages"}],"description":"Some scheduled messages were deleted from the schedule queue of a chat"},{"name":"updateTheme","id":2182544291,"type":"Update","arguments":[{"name":"theme","type":"Theme","description":"Theme"}],"description":"A cloud theme was updated"},{"name":"updateGeoLiveViewed","id":2267003193,"type":"Update","arguments":[{"name":"peer","type":"Peer","description":"The user that viewed the live geo position"},{"name":"msgId","type":"number","description":"Message ID of geo position message"}],"description":"Live geo position message was viewed"},{"name":"updateLoginToken","id":1448076945,"type":"Update","arguments":[],"description":"A login token (for login via QR code) was accepted."},{"name":"updateMessagePollVote","id":938909451,"type":"Update","arguments":[{"name":"pollId","type":"Long","description":"Poll ID"},{"name":"userId","type":"number","description":"User ID"},{"name":"options","type":"Buffer[]","description":"Chosen option(s)"},{"name":"qts","type":"number"}],"description":"A specific user has voted in a poll"},{"name":"updateDialogFilter","id":654302845,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"number","description":"Folder ID"},{"name":"filter","type":"DialogFilter","optional":true,"predicate":"flags.0","description":"Folder info"}],"description":"A new folder was added"},{"name":"updateDialogFilterOrder","id":2782339333,"type":"Update","arguments":[{"name":"order","type":"number[]","description":"Ordered folder IDs"}],"description":"New folder order"},{"name":"updateDialogFilters","id":889491791,"type":"Update","arguments":[],"description":"Clients should update folder info"},{"name":"updatePhoneCallSignalingData","id":643940105,"type":"Update","arguments":[{"name":"phoneCallId","type":"Long","description":"Phone call ID"},{"name":"data","type":"Buffer","description":"Signaling payload"}],"description":"Incoming phone call signaling payload"},{"name":"updateChannelMessageForwards","id":1854571743,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel ID"},{"name":"id","type":"number","description":"ID of the message"},{"name":"forwards","type":"number","description":"New forward counter"}],"description":"The forward counter of a message in a channel has changed"},{"name":"updateReadChannelDiscussionInbox","id":482860628,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"channelId","type":"number","description":"Discussion group ID"},{"name":"topMsgId","type":"number","description":"ID of the group message that started the thread (message in linked discussion group)"},{"name":"readMaxId","type":"number","description":"Message ID of latest read incoming message for this thread"},{"name":"broadcastId","type":"number","optional":true,"predicate":"flags.0","description":"If set, contains the ID of the channel that contains the post that started the comment thread in the discussion group (channel_id)"},{"name":"broadcastPost","type":"number","optional":true,"predicate":"flags.0","description":"If set, contains the ID of the channel post that started the the comment thread"}],"description":"Incoming comments in a discussion thread were marked as read"},{"name":"updateReadChannelDiscussionOutbox","id":1178116716,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Supergroup ID"},{"name":"topMsgId","type":"number","description":"ID of the group message that started the thread"},{"name":"readMaxId","type":"number","description":"Message ID of latest read outgoing message for this thread"}],"description":"Outgoing comments in a discussion thread were marked as read"},{"name":"updatePeerBlocked","id":610945826,"type":"Update","arguments":[{"name":"peerId","type":"Peer","description":"The blocked peer"},{"name":"blocked","type":"boolean","description":"Whether the peer was blocked or unblocked"}],"description":"A peer was blocked"},{"name":"updateChannelUserTyping","id":1796675352,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"channelId","type":"number","description":"Channel ID"},{"name":"topMsgId","type":"number","optional":true,"predicate":"flags.0","description":"Thread ID"},{"name":"fromId","type":"Peer"},{"name":"action","type":"SendMessageAction","description":"Whether the user is typing, sending a media or doing something else"}],"description":"A user is typing in a supergroup, channel or message thread"},{"name":"updatePinnedMessages","id":3984976565,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.0","description":"Whether the messages were pinned or unpinned"},{"name":"peer","type":"Peer","description":"Peer"},{"name":"messages","type":"number[]","description":"Message IDs"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"Some messages were pinned in a chat"},{"name":"updatePinnedChannelMessages","id":2240317323,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.0","description":"Whether the messages were pinned or unpinned"},{"name":"channelId","type":"number","description":"Channel ID"},{"name":"messages","type":"number[]","description":"Messages"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"Messages were pinned/unpinned in a channel/supergroup"},{"name":"updateChat","id":321954198,"type":"Update","arguments":[{"name":"chatId","type":"number"}]},{"name":"updateGroupCallParticipants","id":4075543374,"type":"Update","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"participants","type":"GroupCallParticipant[]"},{"name":"version","type":"number"}]},{"name":"updateGroupCall","id":2757671323,"type":"Update","arguments":[{"name":"chatId","type":"number"},{"name":"call","type":"GroupCall"}]},{"name":"updatePeerHistoryTTL","id":3147544997,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"peer","type":"Peer"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.0"}]},{"name":"updateChatParticipant","id":4088625183,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"chatId","type":"number"},{"name":"date","type":"number"},{"name":"actorId","type":"number"},{"name":"userId","type":"number"},{"name":"prevParticipant","type":"ChatParticipant","optional":true,"predicate":"flags.0"},{"name":"newParticipant","type":"ChatParticipant","optional":true,"predicate":"flags.1"},{"name":"invite","type":"ExportedChatInvite","optional":true,"predicate":"flags.2"},{"name":"qts","type":"number"}]},{"name":"updateChannelParticipant","id":2146218476,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"channelId","type":"number","description":"Channel ID"},{"name":"date","type":"number","description":"Date of the event"},{"name":"actorId","type":"number"},{"name":"userId","type":"number","description":"User in question"},{"name":"prevParticipant","type":"ChannelParticipant","optional":true,"predicate":"flags.0","description":"Previous participant status"},{"name":"newParticipant","type":"ChannelParticipant","optional":true,"predicate":"flags.1","description":"New participant status"},{"name":"invite","type":"ExportedChatInvite","optional":true,"predicate":"flags.2"},{"name":"qts","type":"number","description":"PTS"}],"description":"A participant has left, joined, was banned or admined in a channel or supergroup."},{"name":"updateBotStopped","id":133777546,"type":"Update","arguments":[{"name":"userId","type":"number"},{"name":"date","type":"number"},{"name":"stopped","type":"boolean"},{"name":"qts","type":"number"}]},{"name":"updateGroupCallConnection","id":192428418,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"presentation","type":"true","optional":true,"predicate":"flags.0"},{"name":"params","type":"DataJSON"}]},{"name":"updateBotCommands","id":3481143411,"type":"Update","arguments":[{"name":"peer","type":"Peer"},{"name":"botId","type":"number"},{"name":"commands","type":"BotCommand[]"}]},{"name":"updatesTooLong","id":3809980286,"type":"Updates","arguments":[],"description":"Too many updates, it is necessary to execute {@link updates.getDifference}."},{"name":"updateShortMessage","id":4210030643,"type":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"out","type":"true","optional":true,"predicate":"flags.1","description":"Whether the message is outgoing"},{"name":"mentioned","type":"true","optional":true,"predicate":"flags.4","description":"Whether we were mentioned in the message"},{"name":"mediaUnread","type":"true","optional":true,"predicate":"flags.5","description":"Whether there are some unread mentions in this message"},{"name":"silent","type":"true","optional":true,"predicate":"flags.13","description":"If true, the message is a silent message, no notifications should be triggered"},{"name":"id","type":"number","description":"The message ID"},{"name":"userId","type":"number","description":"The ID of the sender (if outgoing will be the ID of the destination) of the message"},{"name":"message","type":"string","description":"The message"},{"name":"pts","type":"number","description":"PTS"},{"name":"ptsCount","type":"number","description":"PTS count"},{"name":"date","type":"number","description":"date"},{"name":"fwdFrom","type":"MessageFwdHeader","optional":true,"predicate":"flags.2","description":"Info about a forwarded message"},{"name":"viaBotId","type":"number","optional":true,"predicate":"flags.11","description":"Info about the inline bot used to generate this message"},{"name":"replyTo","type":"MessageReplyHeader","optional":true,"predicate":"flags.3","description":"Reply and thread information"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.7","description":"Entities for styled text"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.25"}],"description":"Info about a message sent to (received from) another user"},{"name":"updateShortChatMessage","id":290961496,"type":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"out","type":"true","optional":true,"predicate":"flags.1","description":"Whether the message is outgoing"},{"name":"mentioned","type":"true","optional":true,"predicate":"flags.4","description":"Whether we were mentioned in this message"},{"name":"mediaUnread","type":"true","optional":true,"predicate":"flags.5","description":"Whether the message contains some unread mentions"},{"name":"silent","type":"true","optional":true,"predicate":"flags.13","description":"If true, the message is a silent message, no notifications should be triggered"},{"name":"id","type":"number","description":"ID of the message"},{"name":"fromId","type":"number","description":"ID of the sender of the message"},{"name":"chatId","type":"number","description":"ID of the chat where the message was sent"},{"name":"message","type":"string","description":"Message"},{"name":"pts","type":"number","description":"PTS"},{"name":"ptsCount","type":"number","description":"PTS count"},{"name":"date","type":"number","description":"date"},{"name":"fwdFrom","type":"MessageFwdHeader","optional":true,"predicate":"flags.2","description":"Info about a forwarded message"},{"name":"viaBotId","type":"number","optional":true,"predicate":"flags.11","description":"Info about the inline bot used to generate this message"},{"name":"replyTo","type":"MessageReplyHeader","optional":true,"predicate":"flags.3","description":"Reply (thread) information"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.7","description":"Entities for styled text"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.25"}],"description":"Shortened constructor containing info on one new incoming text message from a chat"},{"name":"updateShort","id":2027216577,"type":"Updates","arguments":[{"name":"update","type":"Update","description":"Update"},{"name":"date","type":"number","description":"Date of event"}],"description":"Shortened constructor containing info on one update not requiring auxiliary data"},{"name":"updatesCombined","id":1918567619,"type":"Updates","arguments":[{"name":"updates","type":"Update[]","description":"List of updates"},{"name":"users","type":"User[]","description":"List of users mentioned in updates"},{"name":"chats","type":"Chat[]","description":"List of chats mentioned in updates"},{"name":"date","type":"number","description":"Current date"},{"name":"seqStart","type":"number","description":"Value seq for the earliest update in a group"},{"name":"seq","type":"number","description":"Value seq for the latest update in a group"}],"description":"Constructor for a group of updates."},{"name":"updates","id":1957577280,"type":"Updates","arguments":[{"name":"updates","type":"Update[]","description":"List of updates"},{"name":"users","type":"User[]","description":"List of users mentioned in updates"},{"name":"chats","type":"Chat[]","description":"List of chats mentioned in updates"},{"name":"date","type":"number","description":"Current date"},{"name":"seq","type":"number","description":"Total number of sent updates"}],"description":"Full constructor of updates"},{"name":"updateShortSentMessage","id":2417352961,"type":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"out","type":"true","optional":true,"predicate":"flags.1","description":"Whether the message is outgoing"},{"name":"id","type":"number","description":"ID of the sent message"},{"name":"pts","type":"number","description":"PTS"},{"name":"ptsCount","type":"number","description":"PTS count"},{"name":"date","type":"number","description":"date"},{"name":"media","type":"MessageMedia","optional":true,"predicate":"flags.9","description":"Attached media"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.7","description":"Entities for styled text"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.25"}],"description":"Shortened constructor containing info on one outgoing message to a contact (the destination chat has to be extracted from the method call that returned this object)."},{"name":"dcOption","id":414687501,"type":"DcOption","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"ipv6","type":"true","optional":true,"predicate":"flags.0","description":"Whether the specified IP is an IPv6 address"},{"name":"mediaOnly","type":"true","optional":true,"predicate":"flags.1","description":"Whether this DC should only be used to download or upload files"},{"name":"tcpoOnly","type":"true","optional":true,"predicate":"flags.2","description":"Whether this DC only supports connection with transport obfuscation"},{"name":"cdn","type":"true","optional":true,"predicate":"flags.3","description":"Whether this is a CDN DC."},{"name":"static","type":"true","optional":true,"predicate":"flags.4","description":"If set, this IP should be used when connecting through a proxy"},{"name":"id","type":"number","description":"DC ID"},{"name":"ipAddress","type":"string","description":"IP address of DC"},{"name":"port","type":"number","description":"Port"},{"name":"secret","type":"Buffer","optional":true,"predicate":"flags.10","description":"If the tcpo_only flag is set, specifies the secret to use when connecting using transport obfuscation"}],"description":"Data centre"},{"name":"config","id":856375399,"type":"Config","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"phonecallsEnabled","type":"true","optional":true,"predicate":"flags.1","description":"Whether phone calls can be used"},{"name":"defaultP2pContacts","type":"true","optional":true,"predicate":"flags.3","description":"Whether the client should use P2P by default for phone calls with contacts"},{"name":"preloadFeaturedStickers","type":"true","optional":true,"predicate":"flags.4","description":"Whether the client should preload featured stickers"},{"name":"ignorePhoneEntities","type":"true","optional":true,"predicate":"flags.5","description":"Whether the client should ignore phone entities"},{"name":"revokePmInbox","type":"true","optional":true,"predicate":"flags.6","description":"Whether incoming private messages can be deleted for both participants"},{"name":"blockedMode","type":"true","optional":true,"predicate":"flags.8","description":"Indicates that telegram is probably censored by governments/ISPs in the current region"},{"name":"pfsEnabled","type":"true","optional":true,"predicate":"flags.13","description":"Whether pfs was used"},{"name":"date","type":"number","description":"Current date at the server"},{"name":"expires","type":"number","description":"Expiration date of this config: when it expires it'll have to be refetched using {@link help.getConfig}"},{"name":"testMode","type":"boolean","description":"Whether we're connected to the test DCs"},{"name":"thisDc","type":"number","description":"ID of the DC that returned the reply"},{"name":"dcOptions","type":"DcOption[]","description":"DC IP list"},{"name":"dcTxtDomainName","type":"string","description":"Domain name for fetching encrypted DC list from DNS TXT record"},{"name":"chatSizeMax","type":"number","description":"Maximum member count for normal groups"},{"name":"megagroupSizeMax","type":"number","description":"Maximum member count for supergroups"},{"name":"forwardedCountMax","type":"number","description":"Maximum number of messages that can be forwarded at once using {@link messages.forwardMessages}."},{"name":"onlineUpdatePeriodMs","type":"number","description":"The client should {@link account.updateStatus} every N milliseconds"},{"name":"offlineBlurTimeoutMs","type":"number","description":"Delay before offline status needs to be sent to the server"},{"name":"offlineIdleTimeoutMs","type":"number","description":"Time without any user activity after which it should be treated offline"},{"name":"onlineCloudTimeoutMs","type":"number","description":"If we are offline, but were online from some other client in last online_cloud_timeout_ms milliseconds after we had gone offline, then delay offline notification for notify_cloud_delay_ms milliseconds."},{"name":"notifyCloudDelayMs","type":"number","description":"If we are offline, but online from some other client then delay sending the offline notification for notify_cloud_delay_ms milliseconds."},{"name":"notifyDefaultDelayMs","type":"number","description":"If some other client is online, then delay notification for notification_default_delay_ms milliseconds"},{"name":"pushChatPeriodMs","type":"number","description":"Not for client use"},{"name":"pushChatLimit","type":"number","description":"Not for client use"},{"name":"savedGifsLimit","type":"number","description":"Maximum count of saved gifs"},{"name":"editTimeLimit","type":"number","description":"Only messages with age smaller than the one specified can be edited"},{"name":"revokeTimeLimit","type":"number","description":"Only channel/supergroup messages with age smaller than the specified can be deleted"},{"name":"revokePmTimeLimit","type":"number","description":"Only private messages with age smaller than the specified can be deleted"},{"name":"ratingEDecay","type":"number","description":"Exponential decay rate for computing top peer rating"},{"name":"stickersRecentLimit","type":"number","description":"Maximum number of recent stickers"},{"name":"stickersFavedLimit","type":"number","description":"Maximum number of faved stickers"},{"name":"channelsReadMediaPeriod","type":"number","description":"Indicates that round videos (video notes) and voice messages sent in channels and older than the specified period must be marked as read"},{"name":"tmpSessions","type":"number","optional":true,"predicate":"flags.0","description":"Temporary passport sessions"},{"name":"pinnedDialogsCountMax","type":"number","description":"Maximum count of pinned dialogs"},{"name":"pinnedInfolderCountMax","type":"number","description":"Maximum count of dialogs per folder"},{"name":"callReceiveTimeoutMs","type":"number","description":"Maximum allowed outgoing ring time in VoIP calls: if the user we're calling doesn't reply within the specified time (in milliseconds), we should hang up the call"},{"name":"callRingTimeoutMs","type":"number","description":"Maximum allowed incoming ring time in VoIP calls: if the current user doesn't reply within the specified time (in milliseconds), the call will be automatically refused"},{"name":"callConnectTimeoutMs","type":"number","description":"VoIP connection timeout: if the instance of libtgvoip on the other side of the call doesn't connect to our instance of libtgvoip within the specified time (in milliseconds), the call must be aborted"},{"name":"callPacketTimeoutMs","type":"number","description":"If during a VoIP call a packet isn't received for the specified period of time, the call must be aborted"},{"name":"meUrlPrefix","type":"string","description":"The domain to use to parse in-app links.
For example t.me indicates that t.me/username links should parsed to @username, t.me/addsticker/name should be parsed to the appropriate stickerset and so on..."},{"name":"autoupdateUrlPrefix","type":"string","optional":true,"predicate":"flags.7","description":"URL to use to auto-update the current app"},{"name":"gifSearchUsername","type":"string","optional":true,"predicate":"flags.9","description":"Username of the bot to use to search for GIFs"},{"name":"venueSearchUsername","type":"string","optional":true,"predicate":"flags.10","description":"Username of the bot to use to search for venues"},{"name":"imgSearchUsername","type":"string","optional":true,"predicate":"flags.11","description":"Username of the bot to use for image search"},{"name":"staticMapsProvider","type":"string","optional":true,"predicate":"flags.12","description":"ID of the map provider to use for venues"},{"name":"captionLengthMax","type":"number","description":"Maximum length of caption (length in utf8 codepoints)"},{"name":"messageLengthMax","type":"number","description":"Maximum length of messages (length in utf8 codepoints)"},{"name":"webfileDcId","type":"number","description":"DC ID to use to download webfiles"},{"name":"suggestedLangCode","type":"string","optional":true,"predicate":"flags.2","description":"Suggested language code"},{"name":"langPackVersion","type":"number","optional":true,"predicate":"flags.2","description":"Language pack version"},{"name":"baseLangPackVersion","type":"number","optional":true,"predicate":"flags.2","description":"Basic language pack version"}],"description":"Current configuration"},{"name":"nearestDc","id":2384074613,"type":"NearestDc","arguments":[{"name":"country","type":"string","description":"Country code determined by geo-ip"},{"name":"thisDc","type":"number","description":"Number of current data centre"},{"name":"nearestDc","type":"number","description":"Number of nearest data centre"}],"description":"Nearest data centre, according to geo-ip."},{"name":"encryptedChatEmpty","id":2877210784,"type":"EncryptedChat","arguments":[{"name":"id","type":"number","description":"Chat ID"}],"description":"Empty constructor."},{"name":"encryptedChatWaiting","id":1006044124,"type":"EncryptedChat","arguments":[{"name":"id","type":"number","description":"Chat ID"},{"name":"accessHash","type":"Long","description":"Checking sum depending on user ID"},{"name":"date","type":"number","description":"Date of chat creation"},{"name":"adminId","type":"number","description":"Chat creator ID"},{"name":"participantId","type":"number","description":"ID of second chat participant"}],"description":"Chat waiting for approval of second participant."},{"name":"encryptedChatRequested","id":1651608194,"type":"EncryptedChat","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.0","description":"Peer folder ID, for more info click here"},{"name":"id","type":"number","description":"Chat ID"},{"name":"accessHash","type":"Long","description":"Check sum depending on user ID"},{"name":"date","type":"number","description":"Chat creation date"},{"name":"adminId","type":"number","description":"Chat creator ID"},{"name":"participantId","type":"number","description":"ID of second chat participant"},{"name":"gA","type":"Buffer","description":"A = g ^ a mod p, see Wikipedia"}],"description":"Request to create an encrypted chat."},{"name":"encryptedChat","id":4199992886,"type":"EncryptedChat","arguments":[{"name":"id","type":"number","description":"Chat ID"},{"name":"accessHash","type":"Long","description":"Check sum dependant on the user ID"},{"name":"date","type":"number","description":"Date chat was created"},{"name":"adminId","type":"number","description":"Chat creator ID"},{"name":"participantId","type":"number","description":"ID of the second chat participant"},{"name":"gAOrB","type":"Buffer","description":"B = g ^ b mod p, if the currently authorized user is the chat's creator,
or A = g ^ a mod p otherwise
See Wikipedia for more info"},{"name":"keyFingerprint","type":"Long","description":"64-bit fingerprint of received key"}],"description":"Encrypted chat"},{"name":"encryptedChatDiscarded","id":505183301,"type":"EncryptedChat","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"historyDeleted","type":"true","optional":true,"predicate":"flags.0"},{"name":"id","type":"number","description":"Chat ID"}],"description":"Discarded or deleted chat."},{"name":"inputEncryptedChat","id":4047615457,"type":"InputEncryptedChat","arguments":[{"name":"chatId","type":"number","description":"Chat ID"},{"name":"accessHash","type":"Long","description":"Checking sum from constructor {@link encryptedChat}, {@link encryptedChatWaiting} or {@link encryptedChatRequested}"}],"description":"Creates an encrypted chat."},{"name":"encryptedFileEmpty","id":3256830334,"type":"EncryptedFile","arguments":[],"description":"Empty constructor, unexisitng file."},{"name":"encryptedFile","id":1248893260,"type":"EncryptedFile","arguments":[{"name":"id","type":"Long","description":"File ID"},{"name":"accessHash","type":"Long","description":"Checking sum depending on user ID"},{"name":"size","type":"number","description":"File size in bytes"},{"name":"dcId","type":"number","description":"Number of data centre"},{"name":"keyFingerprint","type":"number","description":"32-bit fingerprint of key used for file encryption"}],"description":"Encrypted file."},{"name":"inputEncryptedFileEmpty","id":406307684,"type":"InputEncryptedFile","arguments":[],"description":"Empty constructor."},{"name":"inputEncryptedFileUploaded","id":1690108678,"type":"InputEncryptedFile","arguments":[{"name":"id","type":"Long","description":"Random file ID created by clien"},{"name":"parts","type":"number","description":"Number of saved parts"},{"name":"md5Checksum","type":"string","description":"In case md5-HASH of the (already encrypted) file was transmitted, file content will be checked prior to use"},{"name":"keyFingerprint","type":"number","description":"32-bit fingerprint of the key used to encrypt a file"}],"description":"Sets new encrypted file saved by parts using upload.saveFilePart method."},{"name":"inputEncryptedFile","id":1511503333,"type":"InputEncryptedFile","arguments":[{"name":"id","type":"Long","description":"File ID, value of id parameter from {@link encryptedFile}"},{"name":"accessHash","type":"Long","description":"Checking sum, value of access_hash parameter from {@link encryptedFile}"}],"description":"Sets forwarded encrypted file for attachment."},{"name":"inputEncryptedFileBigUploaded","id":767652808,"type":"InputEncryptedFile","arguments":[{"name":"id","type":"Long","description":"Random file id, created by the client"},{"name":"parts","type":"number","description":"Number of saved parts"},{"name":"keyFingerprint","type":"number","description":"32-bit imprint of the key used to encrypt the file"}],"description":"Assigns a new big encrypted file (over 10Mb in size), saved in parts using the method {@link upload.saveBigFilePart}."},{"name":"encryptedMessage","id":3977822488,"type":"EncryptedMessage","arguments":[{"name":"randomId","type":"Long","description":"Random message ID, assigned by the author of message"},{"name":"chatId","type":"number","description":"ID of encrypted chat"},{"name":"date","type":"number","description":"Date of sending"},{"name":"bytes","type":"Buffer","description":"TL-serialising of DecryptedMessage type, encrypted with the key creatied at stage of chat initialization"},{"name":"file","type":"EncryptedFile","description":"Attached encrypted file"}],"description":"Encrypted message."},{"name":"encryptedMessageService","id":594758406,"type":"EncryptedMessage","arguments":[{"name":"randomId","type":"Long","description":"Random message ID, assigned by the author of message"},{"name":"chatId","type":"number","description":"ID of encrypted chat"},{"name":"date","type":"number","description":"Date of sending"},{"name":"bytes","type":"Buffer","description":"TL-serialising of DecryptedMessage type, encrypted with the key creatied at stage of chat initialization"}],"description":"Encrypted service message"},{"name":"inputDocumentEmpty","id":1928391342,"type":"InputDocument","arguments":[],"description":"Empty constructor."},{"name":"inputDocument","id":448771445,"type":"InputDocument","arguments":[{"name":"id","type":"Long","description":"Document ID"},{"name":"accessHash","type":"Long","description":"access_hash parameter from the {@link document} constructor"},{"name":"fileReference","type":"Buffer","description":"File reference"}],"description":"Defines a video for subsequent interaction."},{"name":"documentEmpty","id":922273905,"type":"Document","arguments":[{"name":"id","type":"Long","description":"Document ID or 0"}],"description":"Empty constructor, document doesn't exist."},{"name":"document","id":512177195,"type":"Document","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"Long","description":"Document ID"},{"name":"accessHash","type":"Long","description":"Check sum, dependant on document ID"},{"name":"fileReference","type":"Buffer","description":"File reference"},{"name":"date","type":"number","description":"Creation date"},{"name":"mimeType","type":"string","description":"MIME type"},{"name":"size","type":"number","description":"Size"},{"name":"thumbs","type":"PhotoSize[]","optional":true,"predicate":"flags.0","description":"Thumbnails"},{"name":"videoThumbs","type":"VideoSize[]","optional":true,"predicate":"flags.1","description":"Video thumbnails"},{"name":"dcId","type":"number","description":"DC ID"},{"name":"attributes","type":"DocumentAttribute[]","description":"Attributes"}],"description":"Document"},{"name":"notifyPeer","id":2681474008,"type":"NotifyPeer","arguments":[{"name":"peer","type":"Peer","description":"user or group"}],"description":"Notifications generated by a certain user or group."},{"name":"notifyUsers","id":3033021260,"type":"NotifyPeer","arguments":[],"description":"Notifications generated by all users."},{"name":"notifyChats","id":3221737155,"type":"NotifyPeer","arguments":[],"description":"Notifications generated by all groups."},{"name":"notifyBroadcasts","id":3591563503,"type":"NotifyPeer","arguments":[],"description":"Channel notification settings"},{"name":"sendMessageTypingAction","id":381645902,"type":"SendMessageAction","arguments":[],"description":"User is typing."},{"name":"sendMessageCancelAction","id":4250847477,"type":"SendMessageAction","arguments":[],"description":"Invalidate all previous action updates. E.g. when user deletes entered text or aborts a video upload."},{"name":"sendMessageRecordVideoAction","id":2710034031,"type":"SendMessageAction","arguments":[],"description":"User is recording a video."},{"name":"sendMessageUploadVideoAction","id":3916839660,"type":"SendMessageAction","arguments":[{"name":"progress","type":"number","description":"Progress percentage"}],"description":"User is uploading a video."},{"name":"sendMessageRecordAudioAction","id":3576656887,"type":"SendMessageAction","arguments":[],"description":"User is recording a voice message."},{"name":"sendMessageUploadAudioAction","id":4082227115,"type":"SendMessageAction","arguments":[{"name":"progress","type":"number","description":"Progress percentage"}],"description":"User is uploading a voice message."},{"name":"sendMessageUploadPhotoAction","id":3520285222,"type":"SendMessageAction","arguments":[{"name":"progress","type":"number","description":"Progress percentage"}],"description":"User is uploading a photo."},{"name":"sendMessageUploadDocumentAction","id":2852968932,"type":"SendMessageAction","arguments":[{"name":"progress","type":"number","description":"Progress percentage"}],"description":"User is uploading a file."},{"name":"sendMessageGeoLocationAction","id":393186209,"type":"SendMessageAction","arguments":[],"description":"User is selecting a location to share."},{"name":"sendMessageChooseContactAction","id":1653390447,"type":"SendMessageAction","arguments":[],"description":"User is selecting a contact to share."},{"name":"sendMessageGamePlayAction","id":3714748232,"type":"SendMessageAction","arguments":[],"description":"User is playing a game"},{"name":"sendMessageRecordRoundAction","id":2297593788,"type":"SendMessageAction","arguments":[],"description":"User is recording a round video to share"},{"name":"sendMessageUploadRoundAction","id":608050278,"type":"SendMessageAction","arguments":[{"name":"progress","type":"number","description":"Progress percentage"}],"description":"User is uploading a round video"},{"name":"speakingInGroupCallAction","id":3643548293,"type":"SendMessageAction","arguments":[]},{"name":"sendMessageHistoryImportAction","id":3688534598,"type":"SendMessageAction","arguments":[{"name":"progress","type":"number"}]},{"name":"inputPrivacyKeyStatusTimestamp","id":1335282456,"type":"InputPrivacyKey","arguments":[],"description":"Whether we can see the exact last online timestamp of the user"},{"name":"inputPrivacyKeyChatInvite","id":3187344422,"type":"InputPrivacyKey","arguments":[],"description":"Whether the user can be invited to chats"},{"name":"inputPrivacyKeyPhoneCall","id":4206550111,"type":"InputPrivacyKey","arguments":[],"description":"Whether the user will accept phone calls"},{"name":"inputPrivacyKeyPhoneP2P","id":3684593874,"type":"InputPrivacyKey","arguments":[],"description":"Whether the user allows P2P communication during VoIP calls"},{"name":"inputPrivacyKeyForwards","id":2765966344,"type":"InputPrivacyKey","arguments":[],"description":"Whether messages forwarded from this user will be anonymous"},{"name":"inputPrivacyKeyProfilePhoto","id":1461304012,"type":"InputPrivacyKey","arguments":[],"description":"Whether people will be able to see the user's profile picture"},{"name":"inputPrivacyKeyPhoneNumber","id":55761658,"type":"InputPrivacyKey","arguments":[],"description":"Whether people will be able to see the user's phone number"},{"name":"inputPrivacyKeyAddedByPhone","id":3508640733,"type":"InputPrivacyKey","arguments":[],"description":"Whether people can add you to their contact list by your phone number"},{"name":"privacyKeyStatusTimestamp","id":3157175088,"type":"PrivacyKey","arguments":[],"description":"Whether we can see the last online timestamp"},{"name":"privacyKeyChatInvite","id":1343122938,"type":"PrivacyKey","arguments":[],"description":"Whether the user can be invited to chats"},{"name":"privacyKeyPhoneCall","id":1030105979,"type":"PrivacyKey","arguments":[],"description":"Whether the user accepts phone calls"},{"name":"privacyKeyPhoneP2P","id":961092808,"type":"PrivacyKey","arguments":[],"description":"Whether P2P connections in phone calls are allowed"},{"name":"privacyKeyForwards","id":1777096355,"type":"PrivacyKey","arguments":[],"description":"Whether messages forwarded from the user will be anonymously forwarded"},{"name":"privacyKeyProfilePhoto","id":2517966829,"type":"PrivacyKey","arguments":[],"description":"Whether the profile picture of the user is visible"},{"name":"privacyKeyPhoneNumber","id":3516589165,"type":"PrivacyKey","arguments":[],"description":"Whether the user allows us to see their phone number"},{"name":"privacyKeyAddedByPhone","id":1124062251,"type":"PrivacyKey","arguments":[],"description":"Whether people can add you to their contact list by your phone number"},{"name":"inputPrivacyValueAllowContacts","id":218751099,"type":"InputPrivacyRule","arguments":[],"description":"Allow only contacts"},{"name":"inputPrivacyValueAllowAll","id":407582158,"type":"InputPrivacyRule","arguments":[],"description":"Allow all users"},{"name":"inputPrivacyValueAllowUsers","id":320652927,"type":"InputPrivacyRule","arguments":[{"name":"users","type":"InputUser[]","description":"Allowed users"}],"description":"Allow only certain users"},{"name":"inputPrivacyValueDisallowContacts","id":195371015,"type":"InputPrivacyRule","arguments":[],"description":"Disallow only contacts"},{"name":"inputPrivacyValueDisallowAll","id":3597362889,"type":"InputPrivacyRule","arguments":[],"description":"Disallow all"},{"name":"inputPrivacyValueDisallowUsers","id":2417034343,"type":"InputPrivacyRule","arguments":[{"name":"users","type":"InputUser[]","description":"Users to disallow"}],"description":"Disallow only certain users"},{"name":"inputPrivacyValueAllowChatParticipants","id":1283572154,"type":"InputPrivacyRule","arguments":[{"name":"chats","type":"number[]","description":"Allowed chat IDs"}],"description":"Allow only participants of certain chats"},{"name":"inputPrivacyValueDisallowChatParticipants","id":3626197935,"type":"InputPrivacyRule","arguments":[{"name":"chats","type":"number[]","description":"Disallowed chat IDs"}],"description":"Disallow only participants of certain chats"},{"name":"privacyValueAllowContacts","id":4294843308,"type":"PrivacyRule","arguments":[],"description":"Allow all contacts"},{"name":"privacyValueAllowAll","id":1698855810,"type":"PrivacyRule","arguments":[],"description":"Allow all users"},{"name":"privacyValueAllowUsers","id":1297858060,"type":"PrivacyRule","arguments":[{"name":"users","type":"number[]","description":"Allowed users"}],"description":"Allow only certain users"},{"name":"privacyValueDisallowContacts","id":4169726490,"type":"PrivacyRule","arguments":[],"description":"Disallow only contacts"},{"name":"privacyValueDisallowAll","id":2339628899,"type":"PrivacyRule","arguments":[],"description":"Disallow all users"},{"name":"privacyValueDisallowUsers","id":209668535,"type":"PrivacyRule","arguments":[{"name":"users","type":"number[]","description":"Disallowed users"}],"description":"Disallow only certain users"},{"name":"privacyValueAllowChatParticipants","id":415136107,"type":"PrivacyRule","arguments":[{"name":"chats","type":"number[]","description":"Allowed chats"}],"description":"Allow all participants of certain chats"},{"name":"privacyValueDisallowChatParticipants","id":2897086096,"type":"PrivacyRule","arguments":[{"name":"chats","type":"number[]","description":"Disallowed chats"}],"description":"Disallow only participants of certain chats"},{"name":"accountDaysTTL","id":3100684255,"type":"AccountDaysTTL","arguments":[{"name":"days","type":"number","description":"This account will self-destruct in the specified number of days"}],"description":"Time to live in days of the current account"},{"name":"documentAttributeImageSize","id":1815593308,"type":"DocumentAttribute","arguments":[{"name":"w","type":"number","description":"Width of image"},{"name":"h","type":"number","description":"Height of image"}],"description":"Defines the width and height of an image uploaded as document"},{"name":"documentAttributeAnimated","id":297109817,"type":"DocumentAttribute","arguments":[],"description":"Defines an animated GIF"},{"name":"documentAttributeSticker","id":1662637586,"type":"DocumentAttribute","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"mask","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is a mask sticker"},{"name":"alt","type":"string","description":"Alternative emoji representation of sticker"},{"name":"stickerset","type":"InputStickerSet","description":"Associated stickerset"},{"name":"maskCoords","type":"MaskCoords","optional":true,"predicate":"flags.0","description":"Mask coordinates (if this is a mask sticker, attached to a photo)"}],"description":"Defines a sticker"},{"name":"documentAttributeVideo","id":250621158,"type":"DocumentAttribute","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"roundMessage","type":"true","optional":true,"predicate":"flags.0","description":"Whether this is a round video"},{"name":"supportsStreaming","type":"true","optional":true,"predicate":"flags.1","description":"Whether the video supports streaming"},{"name":"duration","type":"number","description":"Duration in seconds"},{"name":"w","type":"number","description":"Video width"},{"name":"h","type":"number","description":"Video height"}],"description":"Defines a video"},{"name":"documentAttributeAudio","id":2555574726,"type":"DocumentAttribute","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"voice","type":"true","optional":true,"predicate":"flags.10","description":"Whether this is a voice message"},{"name":"duration","type":"number","description":"Duration in seconds"},{"name":"title","type":"string","optional":true,"predicate":"flags.0","description":"Name of song"},{"name":"performer","type":"string","optional":true,"predicate":"flags.1","description":"Performer"},{"name":"waveform","type":"Buffer","optional":true,"predicate":"flags.2","description":"Waveform"}],"description":"Represents an audio file"},{"name":"documentAttributeFilename","id":358154344,"type":"DocumentAttribute","arguments":[{"name":"fileName","type":"string","description":"The file name"}],"description":"A simple document with a file name"},{"name":"documentAttributeHasStickers","id":2550256375,"type":"DocumentAttribute","arguments":[],"description":"Whether the current document has stickers attached"},{"name":"stickerPack","id":313694676,"type":"StickerPack","arguments":[{"name":"emoticon","type":"string","description":"Emoji"},{"name":"documents","type":"Long[]","description":"Stickers"}],"description":"A stickerpack is a group of stickers associated to the same emoji.
\nIt is not a sticker pack the way it is usually intended, you may be looking for a StickerSet."},{"name":"webPageEmpty","id":3943987176,"type":"WebPage","arguments":[{"name":"id","type":"Long","description":"Preview ID"}],"description":"No preview is available for the webpage"},{"name":"webPagePending","id":3313949212,"type":"WebPage","arguments":[{"name":"id","type":"Long","description":"ID of preview"},{"name":"date","type":"number","description":"When was the processing started"}],"description":"A preview of the webpage is currently being generated"},{"name":"webPage","id":3902555570,"type":"WebPage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"Long","description":"Preview ID"},{"name":"url","type":"string","description":"URL of previewed webpage"},{"name":"displayUrl","type":"string","description":"Webpage URL to be displayed to the user"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"type","type":"string","optional":true,"predicate":"flags.0","description":"Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else"},{"name":"siteName","type":"string","optional":true,"predicate":"flags.1","description":"Short name of the site (e.g., Google Docs, App Store)"},{"name":"title","type":"string","optional":true,"predicate":"flags.2","description":"Title of the content"},{"name":"description","type":"string","optional":true,"predicate":"flags.3","description":"Content description"},{"name":"photo","type":"Photo","optional":true,"predicate":"flags.4","description":"Image representing the content"},{"name":"embedUrl","type":"string","optional":true,"predicate":"flags.5","description":"URL to show in the embedded preview"},{"name":"embedType","type":"string","optional":true,"predicate":"flags.5","description":"MIME type of the embedded preview, (e.g., text/html or video/mp4)"},{"name":"embedWidth","type":"number","optional":true,"predicate":"flags.6","description":"Width of the embedded preview"},{"name":"embedHeight","type":"number","optional":true,"predicate":"flags.6","description":"Height of the embedded preview"},{"name":"duration","type":"number","optional":true,"predicate":"flags.7","description":"Duration of the content, in seconds"},{"name":"author","type":"string","optional":true,"predicate":"flags.8","description":"Author of the content"},{"name":"document","type":"Document","optional":true,"predicate":"flags.9","description":"Preview of the content as a media file"},{"name":"cachedPage","type":"Page","optional":true,"predicate":"flags.10","description":"Page contents in instant view format"},{"name":"attributes","type":"WebPageAttribute[]","optional":true,"predicate":"flags.12","description":"Webpage attributes"}],"description":"Webpage preview"},{"name":"webPageNotModified","id":1930545681,"type":"WebPage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"cachedPageViews","type":"number","optional":true,"predicate":"flags.0","description":"Page view count"}],"description":"The preview of the webpage hasn't changed"},{"name":"authorization","id":2902578717,"type":"Authorization","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"current","type":"true","optional":true,"predicate":"flags.0","description":"Whether this is the current session"},{"name":"officialApp","type":"true","optional":true,"predicate":"flags.1","description":"Whether the session is from an official app"},{"name":"passwordPending","type":"true","optional":true,"predicate":"flags.2","description":"Whether the session is still waiting for a 2FA password"},{"name":"hash","type":"Long","description":"Identifier"},{"name":"deviceModel","type":"string","description":"Device model"},{"name":"platform","type":"string","description":"Platform"},{"name":"systemVersion","type":"string","description":"System version"},{"name":"apiId","type":"number","description":"API ID"},{"name":"appName","type":"string","description":"App name"},{"name":"appVersion","type":"string","description":"App version"},{"name":"dateCreated","type":"number","description":"When was the session created"},{"name":"dateActive","type":"number","description":"When was the session last active"},{"name":"ip","type":"string","description":"Last known IP"},{"name":"country","type":"string","description":"Country determined from IP"},{"name":"region","type":"string","description":"Region determined from IP"}],"description":"Logged-in session"},{"name":"receivedNotifyMessage","id":2743383929,"type":"ReceivedNotifyMessage","arguments":[{"name":"id","type":"number","description":"Message ID, for which PUSH-notifications were canceled"},{"name":"flags","type":"number","description":"Reserved for future use"}],"description":"Message ID, for which PUSH-notifications were cancelled."},{"name":"chatInviteExported","id":1847917725,"type":"ExportedChatInvite","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"revoked","type":"true","optional":true,"predicate":"flags.0"},{"name":"permanent","type":"true","optional":true,"predicate":"flags.5"},{"name":"link","type":"string","description":"Chat invitation link"},{"name":"adminId","type":"number"},{"name":"date","type":"number"},{"name":"startDate","type":"number","optional":true,"predicate":"flags.4"},{"name":"expireDate","type":"number","optional":true,"predicate":"flags.1"},{"name":"usageLimit","type":"number","optional":true,"predicate":"flags.2"},{"name":"usage","type":"number","optional":true,"predicate":"flags.3"}],"description":"Exported chat invite"},{"name":"chatInviteAlready","id":1516793212,"type":"ChatInvite","arguments":[{"name":"chat","type":"Chat","description":"The chat connected to the invite"}],"description":"The user has already joined this chat"},{"name":"chatInvite","id":3754096014,"type":"ChatInvite","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"channel","type":"true","optional":true,"predicate":"flags.0","description":"Whether this is a channel/supergroup or a normal group"},{"name":"broadcast","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is a channel"},{"name":"public","type":"true","optional":true,"predicate":"flags.2","description":"Whether this is a public channel/supergroup"},{"name":"megagroup","type":"true","optional":true,"predicate":"flags.3","description":"Whether this is a supergroup"},{"name":"title","type":"string","description":"Chat/supergroup/channel title"},{"name":"photo","type":"Photo","description":"Chat/supergroup/channel photo"},{"name":"participantsCount","type":"number","description":"Participant count"},{"name":"participants","type":"User[]","optional":true,"predicate":"flags.4","description":"A few of the participants that are in the group"}],"description":"Chat invite info"},{"name":"chatInvitePeek","id":1634294960,"type":"ChatInvite","arguments":[{"name":"chat","type":"Chat","description":"Chat information"},{"name":"expires","type":"number","description":"Read-only anonymous access to this group will be revoked at this date"}],"description":"A chat invitation that also allows peeking into the group to read messages without joining it."},{"name":"inputStickerSetEmpty","id":4290128789,"type":"InputStickerSet","arguments":[],"description":"Empty constructor"},{"name":"inputStickerSetID","id":2649203305,"type":"InputStickerSet","arguments":[{"name":"id","type":"Long","description":"ID"},{"name":"accessHash","type":"Long","description":"Access hash"}],"description":"Stickerset by ID"},{"name":"inputStickerSetShortName","id":2250033312,"type":"InputStickerSet","arguments":[{"name":"shortName","type":"string","description":"From tg://addstickers?set=short_name"}],"description":"Stickerset by short name, from tg://addstickers?set=short_name"},{"name":"inputStickerSetAnimatedEmoji","id":42402760,"type":"InputStickerSet","arguments":[],"description":"Animated emojis stickerset"},{"name":"inputStickerSetDice","id":3867103758,"type":"InputStickerSet","arguments":[{"name":"emoticon","type":"string","description":"The emoji, for now \"🏀\", \"🎲\" and \"🎯\" are supported"}],"description":"Used for fetching animated dice stickers"},{"name":"stickerSet","id":3621724538,"type":"StickerSet","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"archived","type":"true","optional":true,"predicate":"flags.1","description":"Whether this stickerset was archived (due to too many saved stickers in the current account)"},{"name":"official","type":"true","optional":true,"predicate":"flags.2","description":"Is this stickerset official"},{"name":"masks","type":"true","optional":true,"predicate":"flags.3","description":"Is this a mask stickerset"},{"name":"animated","type":"true","optional":true,"predicate":"flags.5","description":"Is this an animated stickerpack"},{"name":"installedDate","type":"number","optional":true,"predicate":"flags.0","description":"When was this stickerset installed"},{"name":"id","type":"Long","description":"ID of the stickerset"},{"name":"accessHash","type":"Long","description":"Access hash of stickerset"},{"name":"title","type":"string","description":"Title of stickerset"},{"name":"shortName","type":"string","description":"Short name of stickerset to use in tg://addstickers?set=short_name"},{"name":"thumbs","type":"PhotoSize[]","optional":true,"predicate":"flags.4"},{"name":"thumbDcId","type":"number","optional":true,"predicate":"flags.4","description":"DC ID of thumbnail"},{"name":"thumbVersion","type":"number","optional":true,"predicate":"flags.4"},{"name":"count","type":"number","description":"Number of stickers in pack"},{"name":"hash","type":"number","description":"Hash"}],"description":"Represents a stickerset (stickerpack)"},{"name":"botCommand","id":3262826695,"type":"BotCommand","arguments":[{"name":"command","type":"string","description":"/command name"},{"name":"description","type":"string","description":"Description of the command"}],"description":"Describes a bot command that can be used in a chat"},{"name":"botInfo","id":2565348666,"type":"BotInfo","arguments":[{"name":"userId","type":"number","description":"ID of the bot"},{"name":"description","type":"string","description":"Description of the bot"},{"name":"commands","type":"BotCommand[]","description":"Bot commands that can be used in the chat"}],"description":"Info about bots (available bot commands, etc)"},{"name":"keyboardButton","id":2734311552,"type":"KeyboardButton","arguments":[{"name":"text","type":"string","description":"Button text"}],"description":"Bot keyboard button"},{"name":"keyboardButtonUrl","id":629866245,"type":"KeyboardButton","arguments":[{"name":"text","type":"string","description":"Button label"},{"name":"url","type":"string","description":"URL"}],"description":"URL button"},{"name":"keyboardButtonCallback","id":901503851,"type":"KeyboardButton","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"requiresPassword","type":"true","optional":true,"predicate":"flags.0","description":"Whether the user should verify their identity by entering their 2FA SRP parameters to the {@link messages.getBotCallbackAnswer} method. NOTE: telegram and the bot WILL NOT have access to the plaintext password, thanks to SRP. This button is mainly used by the official @botfather bot, for verifying the user's identity before transferring ownership of a bot to another user."},{"name":"text","type":"string","description":"Button text"},{"name":"data","type":"Buffer","description":"Callback data"}],"description":"Callback button"},{"name":"keyboardButtonRequestPhone","id":2976541737,"type":"KeyboardButton","arguments":[{"name":"text","type":"string","description":"Button text"}],"description":"Button to request a user's phone number"},{"name":"keyboardButtonRequestGeoLocation","id":4235815743,"type":"KeyboardButton","arguments":[{"name":"text","type":"string","description":"Button text"}],"description":"Button to request a user's geolocation"},{"name":"keyboardButtonSwitchInline","id":90744648,"type":"KeyboardButton","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"samePeer","type":"true","optional":true,"predicate":"flags.0","description":"If set, pressing the button will insert the bot‘s username and the specified inline query in the current chat's input field."},{"name":"text","type":"string","description":"Button label"},{"name":"query","type":"string","description":"The inline query to use"}],"description":"Button to force a user to switch to inline mode Pressing the button will prompt the user to select one of their chats, open that chat and insert the bot‘s username and the specified inline query in the input field."},{"name":"keyboardButtonGame","id":1358175439,"type":"KeyboardButton","arguments":[{"name":"text","type":"string","description":"Button text"}],"description":"Button to start a game"},{"name":"keyboardButtonBuy","id":2950250427,"type":"KeyboardButton","arguments":[{"name":"text","type":"string","description":"Button text"}],"description":"Button to buy a product"},{"name":"keyboardButtonUrlAuth","id":280464681,"type":"KeyboardButton","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"text","type":"string","description":"Button label"},{"name":"fwdText","type":"string","optional":true,"predicate":"flags.0","description":"New text of the button in forwarded messages."},{"name":"url","type":"string","description":"An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.

NOTE: Services must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization."},{"name":"buttonId","type":"number","description":"ID of the button to pass to {@link messages.requestUrlAuth}"}],"description":"Button to request a user to authorize via URL using Seamless Telegram Login. When the user clicks on such a button, {@link messages.requestUrlAuth} should be called, providing the button_id and the ID of the container message. The returned {@link urlAuthResultRequest} object will contain more details about the authorization request (request_write_access if the bot would like to send messages to the user along with the username of the bot which will be used for user authorization). Finally, the user can choose to call {@link messages.acceptUrlAuth} to get a {@link urlAuthResultAccepted} with the URL to open instead of the url of this constructor, or a {@link urlAuthResultDefault}, in which case the url of this constructor must be opened, instead. If the user refuses the authorization request but still wants to open the link, the url of this constructor must be used."},{"name":"inputKeyboardButtonUrlAuth","id":3492708308,"type":"KeyboardButton","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"requestWriteAccess","type":"true","optional":true,"predicate":"flags.0","description":"Set this flag to request the permission for your bot to send messages to the user."},{"name":"text","type":"string","description":"Button text"},{"name":"fwdText","type":"string","optional":true,"predicate":"flags.1","description":"New text of the button in forwarded messages."},{"name":"url","type":"string","description":"An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.
NOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization."},{"name":"bot","type":"InputUser","description":"Username of a bot, which will be used for user authorization. See Setting up a bot for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details."}],"description":"Button to request a user to {@link messages.acceptUrlAuth} via URL using Seamless Telegram Login."},{"name":"keyboardButtonRequestPoll","id":3150401885,"type":"KeyboardButton","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"quiz","type":"boolean","optional":true,"predicate":"flags.0","description":"If set, only quiz polls can be sent"},{"name":"text","type":"string","description":"Button text"}],"description":"A button that allows the user to create and send a poll when pressed; available only in private"},{"name":"keyboardButtonRow","id":2002815875,"type":"KeyboardButtonRow","arguments":[{"name":"buttons","type":"KeyboardButton[]","description":"Bot or inline keyboard buttons"}],"description":"Inline keyboard row"},{"name":"replyKeyboardHide","id":2688441221,"type":"ReplyMarkup","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"selective","type":"true","optional":true,"predicate":"flags.2","description":"Use this flag if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.

Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet"}],"description":"Hide sent bot keyboard"},{"name":"replyKeyboardForceReply","id":2259946248,"type":"ReplyMarkup","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"singleUse","type":"true","optional":true,"predicate":"flags.1","description":"Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again."},{"name":"selective","type":"true","optional":true,"predicate":"flags.2","description":"Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
Example: A user requests to change the bot‘s language, bot replies to the request with a keyboard to select the new language. Other users in the group don’t see the keyboard."},{"name":"placeholder","type":"string","optional":true,"predicate":"flags.3"}],"description":"Force the user to send a reply"},{"name":"replyKeyboardMarkup","id":2245892561,"type":"ReplyMarkup","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"resize","type":"true","optional":true,"predicate":"flags.0","description":"Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). If not set, the custom keyboard is always of the same height as the app's standard keyboard."},{"name":"singleUse","type":"true","optional":true,"predicate":"flags.1","description":"Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again."},{"name":"selective","type":"true","optional":true,"predicate":"flags.2","description":"Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.

Example: A user requests to change the bot‘s language, bot replies to the request with a keyboard to select the new language. Other users in the group don’t see the keyboard."},{"name":"rows","type":"KeyboardButtonRow[]","description":"Button row"},{"name":"placeholder","type":"string","optional":true,"predicate":"flags.3"}],"description":"Bot keyboard"},{"name":"replyInlineMarkup","id":1218642516,"type":"ReplyMarkup","arguments":[{"name":"rows","type":"KeyboardButtonRow[]","description":"Bot or inline keyboard rows"}],"description":"Bot or inline keyboard"},{"name":"messageEntityUnknown","id":3146955413,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Unknown message entity"},{"name":"messageEntityMention","id":4194588573,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity mentioning the current user"},{"name":"messageEntityHashtag","id":1868782349,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"#hashtag message entity"},{"name":"messageEntityBotCommand","id":1827637959,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing a bot /command"},{"name":"messageEntityUrl","id":1859134776,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing an in-text url: https://google.com; for text urls, use {@link messageEntityTextUrl}."},{"name":"messageEntityEmail","id":1692693954,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing an email@example.com."},{"name":"messageEntityBold","id":3177253833,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing bold text."},{"name":"messageEntityItalic","id":2188348256,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing italic text."},{"name":"messageEntityCode","id":681706865,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing a codeblock."},{"name":"messageEntityPre","id":1938967520,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"},{"name":"language","type":"string","description":"Programming language of the code"}],"description":"Message entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock."},{"name":"messageEntityTextUrl","id":1990644519,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"},{"name":"url","type":"string","description":"The actual URL"}],"description":"Message entity representing a text url: for in-text urls like https://google.com use {@link messageEntityUrl}."},{"name":"messageEntityMentionName","id":892193368,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"},{"name":"userId","type":"number","description":"Identifier of the user that was mentioned"}],"description":"Message entity representing a user mention: for creating a mention use {@link inputMessageEntityMentionName}."},{"name":"inputMessageEntityMentionName","id":546203849,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"},{"name":"userId","type":"InputUser","description":"Identifier of the user that was mentioned"}],"description":"Message entity that can be used to create a user user mention: received mentions use the {@link messageEntityMentionName} constructor, instead."},{"name":"messageEntityPhone","id":2607407947,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing a phone number."},{"name":"messageEntityCashtag","id":1280209983,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing a $cashtag."},{"name":"messageEntityUnderline","id":2622389899,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing underlined text."},{"name":"messageEntityStrike","id":3204879316,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing strikethrough text."},{"name":"messageEntityBlockquote","id":34469328,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing a block quote."},{"name":"messageEntityBankCard","id":1981704948,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Indicates a credit card number"},{"name":"inputChannelEmpty","id":4002160262,"type":"InputChannel","arguments":[],"description":"Represents the absence of a channel"},{"name":"inputChannel","id":2951442734,"type":"InputChannel","arguments":[{"name":"channelId","type":"number","description":"Channel ID"},{"name":"accessHash","type":"Long","description":"Access hash taken from the {@link channel} constructor"}],"description":"Represents a channel"},{"name":"inputChannelFromMessage","id":707290417,"type":"InputChannel","arguments":[{"name":"peer","type":"InputPeer","description":"The chat where the channel was seen"},{"name":"msgId","type":"number","description":"The message ID in the chat where the channel was seen"},{"name":"channelId","type":"number","description":"The channel ID"}],"description":"Defines a min channel that was seen in a certain message of a certain chat."},{"name":"messageRange","id":182649427,"type":"MessageRange","arguments":[{"name":"minId","type":"number","description":"Start of range (message ID)"},{"name":"maxId","type":"number","description":"End of range (message ID)"}],"description":"Indicates a range of chat messages"},{"name":"channelMessagesFilterEmpty","id":2496933607,"type":"ChannelMessagesFilter","arguments":[],"description":"No filter"},{"name":"channelMessagesFilter","id":3447183703,"type":"ChannelMessagesFilter","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"excludeNewMessages","type":"true","optional":true,"predicate":"flags.1","description":"Whether to exclude new messages from the search"},{"name":"ranges","type":"MessageRange[]","description":"A range of messages to fetch"}],"description":"Filter for getting only certain types of channel messages"},{"name":"channelParticipant","id":367766557,"type":"ChannelParticipant","arguments":[{"name":"userId","type":"number","description":"Pariticipant user ID"},{"name":"date","type":"number","description":"Date joined"}],"description":"Channel/supergroup participant"},{"name":"channelParticipantSelf","id":2737347181,"type":"ChannelParticipant","arguments":[{"name":"userId","type":"number","description":"User ID"},{"name":"inviterId","type":"number","description":"User that invited me to the channel/supergroup"},{"name":"date","type":"number","description":"When did I join the channel/supergroup"}],"description":"Myself"},{"name":"channelParticipantCreator","id":1149094475,"type":"ChannelParticipant","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"userId","type":"number","description":"User ID"},{"name":"adminRights","type":"ChatAdminRights","description":"Creator admin rights"},{"name":"rank","type":"string","optional":true,"predicate":"flags.0","description":"The role (rank) of the group creator in the group: just an arbitrary string, admin by default"}],"description":"Channel/supergroup creator"},{"name":"channelParticipantAdmin","id":3435051951,"type":"ChannelParticipant","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"canEdit","type":"true","optional":true,"predicate":"flags.0","description":"Can this admin promote other admins with the same permissions?"},{"name":"self","type":"true","optional":true,"predicate":"flags.1","description":"Is this the current user"},{"name":"userId","type":"number","description":"Admin user ID"},{"name":"inviterId","type":"number","optional":true,"predicate":"flags.1","description":"User that invited the admin to the channel/group"},{"name":"promotedBy","type":"number","description":"User that promoted the user to admin"},{"name":"date","type":"number","description":"When did the user join"},{"name":"adminRights","type":"ChatAdminRights","description":"Admin rights"},{"name":"rank","type":"string","optional":true,"predicate":"flags.2","description":"The role (rank) of the admin in the group: just an arbitrary string, admin by default"}],"description":"Admin"},{"name":"channelParticipantBanned","id":1352785878,"type":"ChannelParticipant","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"left","type":"true","optional":true,"predicate":"flags.0","description":"Whether the user has left the group"},{"name":"peer","type":"Peer"},{"name":"kickedBy","type":"number","description":"User was kicked by the specified admin"},{"name":"date","type":"number","description":"When did the user join the group"},{"name":"bannedRights","type":"ChatBannedRights","description":"Banned rights"}],"description":"Banned/kicked user"},{"name":"channelParticipantLeft","id":453242886,"type":"ChannelParticipant","arguments":[{"name":"peer","type":"Peer"}],"description":"A participant that left the channel/supergroup"},{"name":"channelParticipantsRecent","id":3728686201,"type":"ChannelParticipantsFilter","arguments":[],"description":"Fetch only recent participants"},{"name":"channelParticipantsAdmins","id":3026225513,"type":"ChannelParticipantsFilter","arguments":[],"description":"Fetch only admin participants"},{"name":"channelParticipantsKicked","id":2746567045,"type":"ChannelParticipantsFilter","arguments":[{"name":"q","type":"string","description":"Optional filter for searching kicked participants by name (otherwise empty)"}],"description":"Fetch only kicked participants"},{"name":"channelParticipantsBots","id":2966521435,"type":"ChannelParticipantsFilter","arguments":[],"description":"Fetch only bot participants"},{"name":"channelParticipantsBanned","id":338142689,"type":"ChannelParticipantsFilter","arguments":[{"name":"q","type":"string","description":"Optional filter for searching banned participants by name (otherwise empty)"}],"description":"Fetch only banned participants"},{"name":"channelParticipantsSearch","id":106343499,"type":"ChannelParticipantsFilter","arguments":[{"name":"q","type":"string","description":"Search query"}],"description":"Query participants by name"},{"name":"channelParticipantsContacts","id":3144345741,"type":"ChannelParticipantsFilter","arguments":[{"name":"q","type":"string","description":"Optional search query for searching contact participants by name"}],"description":"Fetch only participants that are also contacts"},{"name":"channelParticipantsMentions","id":3763035371,"type":"ChannelParticipantsFilter","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"q","type":"string","optional":true,"predicate":"flags.0","description":"Filter by user name or username"},{"name":"topMsgId","type":"number","optional":true,"predicate":"flags.1","description":"Look only for users that posted in this thread"}],"description":"This filter is used when looking for supergroup members to mention.
\nThis filter will automatically remove anonymous admins, and return even non-participant users that replied to a specific thread through the comment section of a channel."},{"name":"inputBotInlineMessageMediaAuto","id":864077702,"type":"InputBotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"message","type":"string","description":"Caption"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.1","description":"Message entities for styled text"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"A media"},{"name":"inputBotInlineMessageText","id":1036876423,"type":"InputBotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noWebpage","type":"true","optional":true,"predicate":"flags.0","description":"Disable webpage preview"},{"name":"message","type":"string","description":"Message"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.1","description":"Message entities for styled text"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"Simple text message"},{"name":"inputBotInlineMessageMediaGeo","id":2526190213,"type":"InputBotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"geoPoint","type":"InputGeoPoint","description":"Geolocation"},{"name":"heading","type":"number","optional":true,"predicate":"flags.0","description":"For live locations, a direction in which the location moves, in degrees; 1-360"},{"name":"period","type":"number","optional":true,"predicate":"flags.1","description":"Validity period"},{"name":"proximityNotificationRadius","type":"number","optional":true,"predicate":"flags.3","description":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Reply markup for bot/inline keyboards"}],"description":"Geolocation"},{"name":"inputBotInlineMessageMediaVenue","id":1098628881,"type":"InputBotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"geoPoint","type":"InputGeoPoint","description":"Geolocation"},{"name":"title","type":"string","description":"Venue name"},{"name":"address","type":"string","description":"Address"},{"name":"provider","type":"string","description":"Venue provider: currently only \"foursquare\" and \"gplaces\" need to be supported"},{"name":"venueId","type":"string","description":"Venue ID in the provider's database"},{"name":"venueType","type":"string","description":"Venue type in the provider's database"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"Venue"},{"name":"inputBotInlineMessageMediaContact","id":2800599037,"type":"InputBotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"phoneNumber","type":"string","description":"Phone number"},{"name":"firstName","type":"string","description":"First name"},{"name":"lastName","type":"string","description":"Last name"},{"name":"vcard","type":"string","description":"VCard info"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"A contact"},{"name":"inputBotInlineMessageGame","id":1262639204,"type":"InputBotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"A game"},{"name":"inputBotInlineMessageMediaInvoice","id":3622273573,"type":"InputBotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"InputWebDocument","optional":true,"predicate":"flags.0"},{"name":"invoice","type":"Invoice"},{"name":"payload","type":"Buffer"},{"name":"provider","type":"string"},{"name":"providerData","type":"DataJSON"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2"}]},{"name":"inputBotInlineResult","id":2294256409,"type":"InputBotInlineResult","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"string","description":"ID of result"},{"name":"type","type":"string","description":"Result type (see bot API docs)"},{"name":"title","type":"string","optional":true,"predicate":"flags.1","description":"Result title"},{"name":"description","type":"string","optional":true,"predicate":"flags.2","description":"Result description"},{"name":"url","type":"string","optional":true,"predicate":"flags.3","description":"URL of result"},{"name":"thumb","type":"InputWebDocument","optional":true,"predicate":"flags.4","description":"Thumbnail for result"},{"name":"content","type":"InputWebDocument","optional":true,"predicate":"flags.5","description":"Result contents"},{"name":"sendMessage","type":"InputBotInlineMessage","description":"Message to send when the result is selected"}],"description":"An inline bot result"},{"name":"inputBotInlineResultPhoto","id":2832753831,"type":"InputBotInlineResult","arguments":[{"name":"id","type":"string","description":"Result ID"},{"name":"type","type":"string","description":"Result type (see bot API docs)"},{"name":"photo","type":"InputPhoto","description":"Photo to send"},{"name":"sendMessage","type":"InputBotInlineMessage","description":"Message to send when the result is selected"}],"description":"Photo"},{"name":"inputBotInlineResultDocument","id":4294507972,"type":"InputBotInlineResult","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"string","description":"Result ID"},{"name":"type","type":"string","description":"Result type (see bot API docs)"},{"name":"title","type":"string","optional":true,"predicate":"flags.1","description":"Result title"},{"name":"description","type":"string","optional":true,"predicate":"flags.2","description":"Result description"},{"name":"document","type":"InputDocument","description":"Document to send"},{"name":"sendMessage","type":"InputBotInlineMessage","description":"Message to send when the result is selected"}],"description":"Document (media of any type except for photos)"},{"name":"inputBotInlineResultGame","id":1336154098,"type":"InputBotInlineResult","arguments":[{"name":"id","type":"string","description":"Result ID"},{"name":"shortName","type":"string","description":"Game short name"},{"name":"sendMessage","type":"InputBotInlineMessage","description":"Message to send when the result is selected"}],"description":"Game"},{"name":"botInlineMessageMediaAuto","id":1984755728,"type":"BotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"message","type":"string","description":"Caption"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.1","description":"Message entities for styled text"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"Send whatever media is attached to the {@link botInlineMediaResult}"},{"name":"botInlineMessageText","id":2357159394,"type":"BotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noWebpage","type":"true","optional":true,"predicate":"flags.0","description":"Disable webpage preview"},{"name":"message","type":"string","description":"The message"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.1","description":"Message entities for styled text"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"Send a simple text message"},{"name":"botInlineMessageMediaGeo","id":85477117,"type":"BotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"geo","type":"GeoPoint","description":"Geolocation"},{"name":"heading","type":"number","optional":true,"predicate":"flags.0","description":"For live locations, a direction in which the location moves, in degrees; 1-360."},{"name":"period","type":"number","optional":true,"predicate":"flags.1","description":"Validity period"},{"name":"proximityNotificationRadius","type":"number","optional":true,"predicate":"flags.3","description":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)."},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"Send a geolocation"},{"name":"botInlineMessageMediaVenue","id":2324063644,"type":"BotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"geo","type":"GeoPoint","description":"Geolocation of venue"},{"name":"title","type":"string","description":"Venue name"},{"name":"address","type":"string","description":"Address"},{"name":"provider","type":"string","description":"Venue provider: currently only \"foursquare\" and \"gplaces\" need to be supported"},{"name":"venueId","type":"string","description":"Venue ID in the provider's database"},{"name":"venueType","type":"string","description":"Venue type in the provider's database"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"Send a venue"},{"name":"botInlineMessageMediaContact","id":416402882,"type":"BotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"phoneNumber","type":"string","description":"Phone number"},{"name":"firstName","type":"string","description":"First name"},{"name":"lastName","type":"string","description":"Last name"},{"name":"vcard","type":"string","description":"VCard info"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"Send a contact"},{"name":"botInlineMessageMediaInvoice","id":894081801,"type":"BotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"shippingAddressRequested","type":"true","optional":true,"predicate":"flags.1"},{"name":"test","type":"true","optional":true,"predicate":"flags.3"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"WebDocument","optional":true,"predicate":"flags.0"},{"name":"currency","type":"string"},{"name":"totalAmount","type":"Long"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2"}]},{"name":"botInlineResult","id":295067450,"type":"BotInlineResult","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"string","description":"Result ID"},{"name":"type","type":"string","description":"Result type (see bot API docs)"},{"name":"title","type":"string","optional":true,"predicate":"flags.1","description":"Result title"},{"name":"description","type":"string","optional":true,"predicate":"flags.2","description":"Result description"},{"name":"url","type":"string","optional":true,"predicate":"flags.3","description":"URL of article or webpage"},{"name":"thumb","type":"WebDocument","optional":true,"predicate":"flags.4","description":"Thumbnail for the result"},{"name":"content","type":"WebDocument","optional":true,"predicate":"flags.5","description":"Content of the result"},{"name":"sendMessage","type":"BotInlineMessage","description":"Message to send"}],"description":"Generic result"},{"name":"botInlineMediaResult","id":400266251,"type":"BotInlineResult","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"string","description":"Result ID"},{"name":"type","type":"string","description":"Result type (see bot API docs)"},{"name":"photo","type":"Photo","optional":true,"predicate":"flags.0","description":"If type is photo, the photo to send"},{"name":"document","type":"Document","optional":true,"predicate":"flags.1","description":"If type is document, the document to send"},{"name":"title","type":"string","optional":true,"predicate":"flags.2","description":"Result title"},{"name":"description","type":"string","optional":true,"predicate":"flags.3","description":"Description"},{"name":"sendMessage","type":"BotInlineMessage","description":"Depending on the type and on the constructor, contains the caption of the media or the content of the message to be sent instead of the media"}],"description":"Media result"},{"name":"exportedMessageLink","id":1571494644,"type":"ExportedMessageLink","arguments":[{"name":"link","type":"string","description":"URL"},{"name":"html","type":"string","description":"Embed code"}],"description":"Link to a message in a supergroup/channel"},{"name":"messageFwdHeader","id":1601666510,"type":"MessageFwdHeader","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"imported","type":"true","optional":true,"predicate":"flags.7"},{"name":"fromId","type":"Peer","optional":true,"predicate":"flags.0","description":"The ID of the user that originally sent the message"},{"name":"fromName","type":"string","optional":true,"predicate":"flags.5","description":"The name of the user that originally sent the message"},{"name":"date","type":"number","description":"When was the message originally sent"},{"name":"channelPost","type":"number","optional":true,"predicate":"flags.2","description":"ID of the channel message that was forwarded"},{"name":"postAuthor","type":"string","optional":true,"predicate":"flags.3","description":"For channels and if signatures are enabled, author of the channel message"},{"name":"savedFromPeer","type":"Peer","optional":true,"predicate":"flags.4","description":"Only for messages forwarded to the current user (inputPeerSelf), full info about the user/channel that originally sent the message"},{"name":"savedFromMsgId","type":"number","optional":true,"predicate":"flags.4","description":"Only for messages forwarded to the current user (inputPeerSelf), ID of the message that was forwarded from the original user/channel"},{"name":"psaType","type":"string","optional":true,"predicate":"flags.6","description":"PSA type"}],"description":"Info about a forwarded message"},{"name":"inputBotInlineMessageID","id":2299280777,"type":"InputBotInlineMessageID","arguments":[{"name":"dcId","type":"number","description":"DC ID to use when working with this inline message"},{"name":"id","type":"Long","description":"ID of message"},{"name":"accessHash","type":"Long","description":"Access hash of message"}],"description":"Represents a sent inline message from the perspective of a bot"},{"name":"inlineBotSwitchPM","id":1008755359,"type":"InlineBotSwitchPM","arguments":[{"name":"text","type":"string","description":"Text for the button that switches the user to a private chat with the bot and sends the bot a start message with the parameter start_parameter (can be empty)"},{"name":"startParam","type":"string","description":"The parameter for the /start parameter"}],"description":"The bot requested the user to message them in private"},{"name":"topPeer","id":3989684315,"type":"TopPeer","arguments":[{"name":"peer","type":"Peer","description":"Peer"},{"name":"rating","type":"Double","description":"Rating as computed in top peer rating »"}],"description":"Top peer"},{"name":"topPeerCategoryBotsPM","id":2875595611,"type":"TopPeerCategory","arguments":[],"description":"Most used bots"},{"name":"topPeerCategoryBotsInline","id":344356834,"type":"TopPeerCategory","arguments":[],"description":"Most used inline bots"},{"name":"topPeerCategoryCorrespondents","id":104314861,"type":"TopPeerCategory","arguments":[],"description":"Users we've chatted most frequently with"},{"name":"topPeerCategoryGroups","id":3172442442,"type":"TopPeerCategory","arguments":[],"description":"Often-opened groups and supergroups"},{"name":"topPeerCategoryChannels","id":371037736,"type":"TopPeerCategory","arguments":[],"description":"Most frequently visited channels"},{"name":"topPeerCategoryPhoneCalls","id":511092620,"type":"TopPeerCategory","arguments":[],"description":"Most frequently called users"},{"name":"topPeerCategoryForwardUsers","id":2822794409,"type":"TopPeerCategory","arguments":[],"description":"Users to which the users often forwards messages to"},{"name":"topPeerCategoryForwardChats","id":4226728176,"type":"TopPeerCategory","arguments":[],"description":"Chats to which the users often forwards messages to"},{"name":"topPeerCategoryPeers","id":4219683473,"type":"TopPeerCategoryPeers","arguments":[{"name":"category","type":"TopPeerCategory","description":"Top peer category of peers"},{"name":"count","type":"number","description":"Count of peers"},{"name":"peers","type":"TopPeer[]","description":"Peers"}],"description":"Top peer category"},{"name":"draftMessageEmpty","id":453805082,"type":"DraftMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"date","type":"number","optional":true,"predicate":"flags.0","description":"When was the draft last updated"}],"description":"Empty draft"},{"name":"draftMessage","id":4253970719,"type":"DraftMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noWebpage","type":"true","optional":true,"predicate":"flags.1","description":"Whether no webpage preview will be generated"},{"name":"replyToMsgId","type":"number","optional":true,"predicate":"flags.0","description":"The message this message will reply to"},{"name":"message","type":"string","description":"The draft"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.3","description":"Message entities for styled text."},{"name":"date","type":"number","description":"Date of last update of the draft."}],"description":"Represents a message draft."},{"name":"stickerSetCovered","id":1678812626,"type":"StickerSetCovered","arguments":[{"name":"set","type":"StickerSet","description":"Stickerset"},{"name":"cover","type":"Document","description":"Preview"}],"description":"Stickerset, with a specific sticker as preview"},{"name":"stickerSetMultiCovered","id":872932635,"type":"StickerSetCovered","arguments":[{"name":"set","type":"StickerSet","description":"Stickerset"},{"name":"covers","type":"Document[]","description":"Preview stickers"}],"description":"Stickerset, with a specific stickers as preview"},{"name":"maskCoords","id":2933316530,"type":"MaskCoords","arguments":[{"name":"n","type":"number","description":"Part of the face, relative to which the mask should be placed"},{"name":"x","type":"Double","description":"Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position)"},{"name":"y","type":"Double","description":"Shift by Y-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position)"},{"name":"zoom","type":"Double","description":"Mask scaling coefficient. (For example, 2.0 means a doubled size)"}],"description":"Position on a photo where a mask should be placed"},{"name":"inputStickeredMediaPhoto","id":1251549527,"type":"InputStickeredMedia","arguments":[{"name":"id","type":"InputPhoto","description":"The photo"}],"description":"A photo with stickers attached"},{"name":"inputStickeredMediaDocument","id":70813275,"type":"InputStickeredMedia","arguments":[{"name":"id","type":"InputDocument","description":"The document"}],"description":"A document with stickers attached"},{"name":"game","id":3187238203,"type":"Game","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"Long","description":"ID of the game"},{"name":"accessHash","type":"Long","description":"Access hash of the game"},{"name":"shortName","type":"string","description":"Short name for the game"},{"name":"title","type":"string","description":"Title of the game"},{"name":"description","type":"string","description":"Game description"},{"name":"photo","type":"Photo","description":"Game preview"},{"name":"document","type":"Document","optional":true,"predicate":"flags.0","description":"Optional attached document"}],"description":"Indicates an already sent game"},{"name":"inputGameID","id":53231223,"type":"InputGame","arguments":[{"name":"id","type":"Long","description":"game ID from Game constructor"},{"name":"accessHash","type":"Long","description":"access hash from Game constructor"}],"description":"Indicates an already sent game"},{"name":"inputGameShortName","id":3274827786,"type":"InputGame","arguments":[{"name":"botId","type":"InputUser","description":"The bot that provides the game"},{"name":"shortName","type":"string","description":"The game's short name"}],"description":"Game by short name"},{"name":"highScore","id":1493171408,"type":"HighScore","arguments":[{"name":"pos","type":"number","description":"Position in highscore list"},{"name":"userId","type":"number","description":"User ID"},{"name":"score","type":"number","description":"Score"}],"description":"Game highscore"},{"name":"textEmpty","id":3695018575,"type":"RichText","arguments":[],"description":"Empty rich text element"},{"name":"textPlain","id":1950782688,"type":"RichText","arguments":[{"name":"text","type":"string","description":"Text"}],"description":"Plain text"},{"name":"textBold","id":1730456516,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Bold text"},{"name":"textItalic","id":3641877916,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Italic text"},{"name":"textUnderline","id":3240501956,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Underlined text"},{"name":"textStrike","id":2616769429,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Strikethrough text"},{"name":"textFixed","id":1816074681,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"fixed-width rich text"},{"name":"textUrl","id":1009288385,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text of link"},{"name":"url","type":"string","description":"Webpage HTTP URL"},{"name":"webpageId","type":"Long","description":"If a preview was already generated for the page, the page ID"}],"description":"Link"},{"name":"textEmail","id":3730443734,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Link text"},{"name":"email","type":"string","description":"Email address"}],"description":"Rich text email link"},{"name":"textConcat","id":2120376535,"type":"RichText","arguments":[{"name":"texts","type":"RichText[]","description":"Concatenated rich texts"}],"description":"Concatenation of rich texts"},{"name":"textSubscript","id":3983181060,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Subscript text"},{"name":"textSuperscript","id":3355139585,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Superscript text"},{"name":"textMarked","id":55281185,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Highlighted text"},{"name":"textPhone","id":483104362,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"},{"name":"phone","type":"string","description":"Phone number"}],"description":"Rich text linked to a phone number"},{"name":"textImage","id":136105807,"type":"RichText","arguments":[{"name":"documentId","type":"Long","description":"Document ID"},{"name":"w","type":"number","description":"Width"},{"name":"h","type":"number","description":"Height"}],"description":"Inline image"},{"name":"textAnchor","id":894777186,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"},{"name":"name","type":"string","description":"Section name"}],"description":"Text linking to another section of the page"},{"name":"pageBlockUnsupported","id":324435594,"type":"PageBlock","arguments":[],"description":"Unsupported IV element"},{"name":"pageBlockTitle","id":1890305021,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Title"}],"description":"Title"},{"name":"pageBlockSubtitle","id":2415565343,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Subtitle"},{"name":"pageBlockAuthorDate","id":3132089824,"type":"PageBlock","arguments":[{"name":"author","type":"RichText","description":"Author name"},{"name":"publishedDate","type":"number","description":"Date of pubblication"}],"description":"Author and date of creation of article"},{"name":"pageBlockHeader","id":3218105580,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Contents"}],"description":"Page header"},{"name":"pageBlockSubheader","id":4046173921,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Subheader"}],"description":"Subheader"},{"name":"pageBlockParagraph","id":1182402406,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"A paragraph"},{"name":"pageBlockPreformatted","id":3228621118,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Text"},{"name":"language","type":"string","description":"Programming language of preformatted text"}],"description":"Preformatted (<pre> text)"},{"name":"pageBlockFooter","id":1216809369,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Contents"}],"description":"Page footer"},{"name":"pageBlockDivider","id":3676352904,"type":"PageBlock","arguments":[],"description":"An empty block separating a page"},{"name":"pageBlockAnchor","id":3456972720,"type":"PageBlock","arguments":[{"name":"name","type":"string","description":"Name of target section"}],"description":"Link to section within the page itself (like <a href=\"#target\">anchor</a>)"},{"name":"pageBlockList","id":3840442385,"type":"PageBlock","arguments":[{"name":"items","type":"PageListItem[]","description":"List of blocks in an IV page"}],"description":"Unordered list of IV blocks"},{"name":"pageBlockBlockquote","id":641563686,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Quote contents"},{"name":"caption","type":"RichText","description":"Caption"}],"description":"Quote (equivalent to the HTML <blockquote>)"},{"name":"pageBlockPullquote","id":1329878739,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Text"},{"name":"caption","type":"RichText","description":"Caption"}],"description":"Pullquote"},{"name":"pageBlockPhoto","id":391759200,"type":"PageBlock","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"photoId","type":"Long","description":"Photo ID"},{"name":"caption","type":"PageCaption","description":"Caption"},{"name":"url","type":"string","optional":true,"predicate":"flags.0","description":"HTTP URL of page the photo leads to when clicked"},{"name":"webpageId","type":"Long","optional":true,"predicate":"flags.0","description":"ID of preview of the page the photo leads to when clicked"}],"description":"A photo"},{"name":"pageBlockVideo","id":2089805750,"type":"PageBlock","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"autoplay","type":"true","optional":true,"predicate":"flags.0","description":"Whether the video is set to autoplay"},{"name":"loop","type":"true","optional":true,"predicate":"flags.1","description":"Whether the video is set to loop"},{"name":"videoId","type":"Long","description":"Video ID"},{"name":"caption","type":"PageCaption","description":"Caption"}],"description":"Video"},{"name":"pageBlockCover","id":972174080,"type":"PageBlock","arguments":[{"name":"cover","type":"PageBlock","description":"Cover"}],"description":"A page cover"},{"name":"pageBlockEmbed","id":2826014149,"type":"PageBlock","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"fullWidth","type":"true","optional":true,"predicate":"flags.0","description":"Whether the block should be full width"},{"name":"allowScrolling","type":"true","optional":true,"predicate":"flags.3","description":"Whether scrolling should be allowed"},{"name":"url","type":"string","optional":true,"predicate":"flags.1","description":"Web page URL, if available"},{"name":"html","type":"string","optional":true,"predicate":"flags.2","description":"HTML-markup of the embedded page"},{"name":"posterPhotoId","type":"Long","optional":true,"predicate":"flags.4","description":"Poster photo, if available"},{"name":"w","type":"number","optional":true,"predicate":"flags.5","description":"Block width, if known"},{"name":"h","type":"number","optional":true,"predicate":"flags.5","description":"Block height, if known"},{"name":"caption","type":"PageCaption","description":"Caption"}],"description":"An embedded webpage"},{"name":"pageBlockEmbedPost","id":4065961995,"type":"PageBlock","arguments":[{"name":"url","type":"string","description":"Web page URL"},{"name":"webpageId","type":"Long","description":"ID of generated webpage preview"},{"name":"authorPhotoId","type":"Long","description":"ID of the author's photo"},{"name":"author","type":"string","description":"Author name"},{"name":"date","type":"number","description":"Creation date"},{"name":"blocks","type":"PageBlock[]","description":"Post contents"},{"name":"caption","type":"PageCaption","description":"Caption"}],"description":"An embedded post"},{"name":"pageBlockCollage","id":1705048653,"type":"PageBlock","arguments":[{"name":"items","type":"PageBlock[]","description":"Media elements"},{"name":"caption","type":"PageCaption","description":"Caption"}],"description":"Collage of media"},{"name":"pageBlockSlideshow","id":52401552,"type":"PageBlock","arguments":[{"name":"items","type":"PageBlock[]","description":"Slideshow items"},{"name":"caption","type":"PageCaption","description":"Caption"}],"description":"Slideshow"},{"name":"pageBlockChannel","id":4011282869,"type":"PageBlock","arguments":[{"name":"channel","type":"Chat","description":"The channel/supergroup/chat"}],"description":"Reference to a telegram channel"},{"name":"pageBlockAudio","id":2151899626,"type":"PageBlock","arguments":[{"name":"audioId","type":"Long","description":"Audio ID (to be fetched from the container {@link page} constructor"},{"name":"caption","type":"PageCaption","description":"Audio caption"}],"description":"Audio"},{"name":"pageBlockKicker","id":504660880,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Contents"}],"description":"Kicker"},{"name":"pageBlockTable","id":3209554562,"type":"PageBlock","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"bordered","type":"true","optional":true,"predicate":"flags.0","description":"Does the table have a visible border?"},{"name":"striped","type":"true","optional":true,"predicate":"flags.1","description":"Is the table striped?"},{"name":"title","type":"RichText","description":"Title"},{"name":"rows","type":"PageTableRow[]","description":"Table rows"}],"description":"Table"},{"name":"pageBlockOrderedList","id":2592793057,"type":"PageBlock","arguments":[{"name":"items","type":"PageListOrderedItem[]","description":"List items"}],"description":"Ordered list of IV blocks"},{"name":"pageBlockDetails","id":1987480557,"type":"PageBlock","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"open","type":"true","optional":true,"predicate":"flags.0","description":"Whether the block is open by default"},{"name":"blocks","type":"PageBlock[]","description":"Block contents"},{"name":"title","type":"RichText","description":"Always visible heading for the block"}],"description":"A collapsible details block"},{"name":"pageBlockRelatedArticles","id":370236054,"type":"PageBlock","arguments":[{"name":"title","type":"RichText","description":"Title"},{"name":"articles","type":"PageRelatedArticle[]","description":"Related articles"}],"description":"Related articles"},{"name":"pageBlockMap","id":2756656886,"type":"PageBlock","arguments":[{"name":"geo","type":"GeoPoint","description":"Location of the map center"},{"name":"zoom","type":"number","description":"Map zoom level; 13-20"},{"name":"w","type":"number","description":"Map width in pixels before applying scale; 16-102"},{"name":"h","type":"number","description":"Map height in pixels before applying scale; 16-1024"},{"name":"caption","type":"PageCaption","description":"Caption"}],"description":"A map"},{"name":"phoneCallDiscardReasonMissed","id":2246320897,"type":"PhoneCallDiscardReason","arguments":[],"description":"The phone call was missed"},{"name":"phoneCallDiscardReasonDisconnect","id":3767910816,"type":"PhoneCallDiscardReason","arguments":[],"description":"The phone call was disconnected"},{"name":"phoneCallDiscardReasonHangup","id":1471006352,"type":"PhoneCallDiscardReason","arguments":[],"description":"The phone call was ended normally"},{"name":"phoneCallDiscardReasonBusy","id":4210550985,"type":"PhoneCallDiscardReason","arguments":[],"description":"The phone call was discared because the user is busy in another call"},{"name":"dataJSON","id":2104790276,"type":"DataJSON","arguments":[{"name":"data","type":"string","description":"JSON-encoded object"}],"description":"Represents a json-encoded object"},{"name":"labeledPrice","id":3408489464,"type":"LabeledPrice","arguments":[{"name":"label","type":"string","description":"Portion label"},{"name":"amount","type":"Long","description":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}],"description":"This object represents a portion of the price for goods or services."},{"name":"invoice","id":215516896,"type":"Invoice","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"test","type":"true","optional":true,"predicate":"flags.0","description":"Test invoice"},{"name":"nameRequested","type":"true","optional":true,"predicate":"flags.1","description":"Set this flag if you require the user's full name to complete the order"},{"name":"phoneRequested","type":"true","optional":true,"predicate":"flags.2","description":"Set this flag if you require the user's phone number to complete the order"},{"name":"emailRequested","type":"true","optional":true,"predicate":"flags.3","description":"Set this flag if you require the user's email address to complete the order"},{"name":"shippingAddressRequested","type":"true","optional":true,"predicate":"flags.4","description":"Set this flag if you require the user's shipping address to complete the order"},{"name":"flexible","type":"true","optional":true,"predicate":"flags.5","description":"Set this flag if the final price depends on the shipping method"},{"name":"phoneToProvider","type":"true","optional":true,"predicate":"flags.6","description":"Set this flag if user's phone number should be sent to provider"},{"name":"emailToProvider","type":"true","optional":true,"predicate":"flags.7","description":"Set this flag if user's email address should be sent to provider"},{"name":"currency","type":"string","description":"Three-letter ISO 4217 currency code"},{"name":"prices","type":"LabeledPrice[]","description":"Price breakdown, a list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)"},{"name":"maxTipAmount","type":"Long","optional":true,"predicate":"flags.8"},{"name":"suggestedTipAmounts","type":"Long[]","optional":true,"predicate":"flags.8"}],"description":"Invoice"},{"name":"paymentCharge","id":3926049406,"type":"PaymentCharge","arguments":[{"name":"id","type":"string","description":"Telegram payment identifier"},{"name":"providerChargeId","type":"string","description":"Provider payment identifier"}],"description":"Payment identifier"},{"name":"postAddress","id":512535275,"type":"PostAddress","arguments":[{"name":"streetLine1","type":"string","description":"First line for the address"},{"name":"streetLine2","type":"string","description":"Second line for the address"},{"name":"city","type":"string","description":"City"},{"name":"state","type":"string","description":"State, if applicable (empty otherwise)"},{"name":"countryIso2","type":"string","description":"ISO 3166-1 alpha-2 country code"},{"name":"postCode","type":"string","description":"Address post code"}],"description":"Shipping address"},{"name":"paymentRequestedInfo","id":2426158996,"type":"PaymentRequestedInfo","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"name","type":"string","optional":true,"predicate":"flags.0","description":"User's full name"},{"name":"phone","type":"string","optional":true,"predicate":"flags.1","description":"User's phone number"},{"name":"email","type":"string","optional":true,"predicate":"flags.2","description":"User's email address"},{"name":"shippingAddress","type":"PostAddress","optional":true,"predicate":"flags.3","description":"User's shipping address"}],"description":"Order info provided by the user"},{"name":"paymentSavedCredentialsCard","id":3452074527,"type":"PaymentSavedCredentials","arguments":[{"name":"id","type":"string","description":"Card ID"},{"name":"title","type":"string","description":"Title"}],"description":"Saved credit card"},{"name":"webDocument","id":475467473,"type":"WebDocument","arguments":[{"name":"url","type":"string","description":"Document URL"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"size","type":"number","description":"File size"},{"name":"mimeType","type":"string","description":"MIME type"},{"name":"attributes","type":"DocumentAttribute[]","description":"Attributes for media types"}],"description":"Remote document"},{"name":"webDocumentNoProxy","id":4190682310,"type":"WebDocument","arguments":[{"name":"url","type":"string","description":"Document URL"},{"name":"size","type":"number","description":"File size"},{"name":"mimeType","type":"string","description":"MIME type"},{"name":"attributes","type":"DocumentAttribute[]","description":"Attributes for media types"}],"description":"Remote document that can be downloaded without proxying through telegram"},{"name":"inputWebDocument","id":2616017741,"type":"InputWebDocument","arguments":[{"name":"url","type":"string","description":"Remote document URL to be downloaded using the appropriate method"},{"name":"size","type":"number","description":"Remote file size"},{"name":"mimeType","type":"string","description":"Mime type"},{"name":"attributes","type":"DocumentAttribute[]","description":"Attributes for media types"}],"description":"The document"},{"name":"inputWebFileLocation","id":3258570374,"type":"InputWebFileLocation","arguments":[{"name":"url","type":"string","description":"HTTP URL of file"},{"name":"accessHash","type":"Long","description":"Access hash"}],"description":"Location of a remote HTTP(s) file"},{"name":"inputWebFileGeoPointLocation","id":2669814217,"type":"InputWebFileLocation","arguments":[{"name":"geoPoint","type":"InputGeoPoint","description":"Geolocation"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"w","type":"number","description":"Map width in pixels before applying scale; 16-1024"},{"name":"h","type":"number","description":"Map height in pixels before applying scale; 16-1024"},{"name":"zoom","type":"number","description":"Map zoom level; 13-20"},{"name":"scale","type":"number","description":"Map scale; 1-3"}],"description":"Geolocation"},{"name":"inputPaymentCredentialsSaved","id":3238965967,"type":"InputPaymentCredentials","arguments":[{"name":"id","type":"string","description":"Credential ID"},{"name":"tmpPassword","type":"Buffer","description":"Temporary password"}],"description":"Saved payment credentials"},{"name":"inputPaymentCredentials","id":873977640,"type":"InputPaymentCredentials","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"save","type":"true","optional":true,"predicate":"flags.0","description":"Save payment credential for future use"},{"name":"data","type":"DataJSON","description":"Payment credentials"}],"description":"Payment credentials"},{"name":"inputPaymentCredentialsApplePay","id":178373535,"type":"InputPaymentCredentials","arguments":[{"name":"paymentData","type":"DataJSON","description":"Payment data"}],"description":"Apple pay payment credentials"},{"name":"inputPaymentCredentialsGooglePay","id":2328045569,"type":"InputPaymentCredentials","arguments":[{"name":"paymentToken","type":"DataJSON"}]},{"name":"shippingOption","id":3055631583,"type":"ShippingOption","arguments":[{"name":"id","type":"string","description":"Option ID"},{"name":"title","type":"string","description":"Title"},{"name":"prices","type":"LabeledPrice[]","description":"List of price portions"}],"description":"Shipping option"},{"name":"inputStickerSetItem","id":4288717974,"type":"InputStickerSetItem","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"document","type":"InputDocument","description":"The sticker"},{"name":"emoji","type":"string","description":"Associated emoji"},{"name":"maskCoords","type":"MaskCoords","optional":true,"predicate":"flags.0","description":"Coordinates for mask sticker"}],"description":"Sticker in a stickerset"},{"name":"inputPhoneCall","id":506920429,"type":"InputPhoneCall","arguments":[{"name":"id","type":"Long","description":"Call ID"},{"name":"accessHash","type":"Long","description":"Access hash"}],"description":"Phone call"},{"name":"phoneCallEmpty","id":1399245077,"type":"PhoneCall","arguments":[{"name":"id","type":"Long","description":"Call ID"}],"description":"Empty constructor"},{"name":"phoneCallWaiting","id":462375633,"type":"PhoneCall","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"video","type":"true","optional":true,"predicate":"flags.6","description":"Is this a video call"},{"name":"id","type":"Long","description":"Call ID"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"date","type":"number","description":"Date"},{"name":"adminId","type":"number","description":"Admin ID"},{"name":"participantId","type":"number","description":"Participant ID"},{"name":"protocol","type":"PhoneCallProtocol","description":"Phone call protocol info"},{"name":"receiveDate","type":"number","optional":true,"predicate":"flags.0","description":"When was the phone call received"}],"description":"Incoming phone call"},{"name":"phoneCallRequested","id":2280307539,"type":"PhoneCall","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"video","type":"true","optional":true,"predicate":"flags.6","description":"Whether this is a video call"},{"name":"id","type":"Long","description":"Phone call ID"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"date","type":"number","description":"When was the phone call created"},{"name":"adminId","type":"number","description":"ID of the creator of the phone call"},{"name":"participantId","type":"number","description":"ID of the other participant of the phone call"},{"name":"gAHash","type":"Buffer","description":"Parameter for key exchange"},{"name":"protocol","type":"PhoneCallProtocol","description":"Call protocol info to be passed to libtgvoip"}],"description":"Requested phone call"},{"name":"phoneCallAccepted","id":2575058250,"type":"PhoneCall","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"video","type":"true","optional":true,"predicate":"flags.6","description":"Whether this is a video call"},{"name":"id","type":"Long","description":"ID of accepted phone call"},{"name":"accessHash","type":"Long","description":"Access hash of phone call"},{"name":"date","type":"number","description":"When was the call accepted"},{"name":"adminId","type":"number","description":"ID of the call creator"},{"name":"participantId","type":"number","description":"ID of the other user in the call"},{"name":"gB","type":"Buffer","description":"B parameter for secure E2E phone call key exchange"},{"name":"protocol","type":"PhoneCallProtocol","description":"Protocol to use for phone call"}],"description":"An accepted phone call"},{"name":"phoneCall","id":2269294207,"type":"PhoneCall","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"p2pAllowed","type":"true","optional":true,"predicate":"flags.5","description":"Whether P2P connection to the other peer is allowed"},{"name":"video","type":"true","optional":true,"predicate":"flags.6","description":"Whether this is a video call"},{"name":"id","type":"Long","description":"Call ID"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"date","type":"number","description":"Date of creation of the call"},{"name":"adminId","type":"number","description":"User ID of the creator of the call"},{"name":"participantId","type":"number","description":"User ID of the other participant in the call"},{"name":"gAOrB","type":"Buffer","description":"Parameter for key exchange"},{"name":"keyFingerprint","type":"Long","description":"Key fingerprint"},{"name":"protocol","type":"PhoneCallProtocol","description":"Call protocol info to be passed to libtgvoip"},{"name":"connections","type":"PhoneConnection[]","description":"List of endpoints the user can connect to to exchange call data"},{"name":"startDate","type":"number","description":"When was the call actually started"}],"description":"Phone call"},{"name":"phoneCallDiscarded","id":1355435489,"type":"PhoneCall","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"needRating","type":"true","optional":true,"predicate":"flags.2","description":"Whether the server required the user to {@link phone.setCallRating} the call"},{"name":"needDebug","type":"true","optional":true,"predicate":"flags.3","description":"Whether the server required the client to {@link phone.saveCallDebug} the libtgvoip call debug data"},{"name":"video","type":"true","optional":true,"predicate":"flags.6","description":"Whether the call was a video call"},{"name":"id","type":"Long","description":"Call ID"},{"name":"reason","type":"PhoneCallDiscardReason","optional":true,"predicate":"flags.0","description":"Why was the phone call discarded"},{"name":"duration","type":"number","optional":true,"predicate":"flags.1","description":"Duration of the phone call in seconds"}],"description":"Indicates a discarded phone call"},{"name":"phoneConnection","id":2639009728,"type":"PhoneConnection","arguments":[{"name":"id","type":"Long","description":"Endpoint ID"},{"name":"ip","type":"string","description":"IP address of endpoint"},{"name":"ipv6","type":"string","description":"IPv6 address of endpoint"},{"name":"port","type":"number","description":"Port ID"},{"name":"peerTag","type":"Buffer","description":"Our peer tag"}],"description":"Identifies an endpoint that can be used to connect to the other user in a phone call"},{"name":"phoneConnectionWebrtc","id":1667228533,"type":"PhoneConnection","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"turn","type":"true","optional":true,"predicate":"flags.0","description":"Whether this is a TURN endpoint"},{"name":"stun","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is a STUN endpoint"},{"name":"id","type":"Long","description":"Endpoint ID"},{"name":"ip","type":"string","description":"IP address"},{"name":"ipv6","type":"string","description":"IPv6 address"},{"name":"port","type":"number","description":"Port"},{"name":"username","type":"string","description":"Username"},{"name":"password","type":"string","description":"Password"}],"description":"WebRTC connection parameters"},{"name":"phoneCallProtocol","id":4236742600,"type":"PhoneCallProtocol","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"udpP2p","type":"true","optional":true,"predicate":"flags.0","description":"Whether to allow P2P connection to the other participant"},{"name":"udpReflector","type":"true","optional":true,"predicate":"flags.1","description":"Whether to allow connection to the other participants through the reflector servers"},{"name":"minLayer","type":"number","description":"Minimum layer for remote libtgvoip"},{"name":"maxLayer","type":"number","description":"Maximum layer for remote libtgvoip"},{"name":"libraryVersions","type":"string[]","description":"When using {@link phone.requestCall} and {@link phone.acceptCall}, specify all library versions supported by the client.
The server will merge and choose the best library version supported by both peers, returning only the best value in the result of the callee's {@link phone.acceptCall} and in the {@link phoneCallAccepted} update received by the caller."}],"description":"Protocol info for libtgvoip"},{"name":"cdnPublicKey","id":3380800186,"type":"CdnPublicKey","arguments":[{"name":"dcId","type":"number","description":"CDN DC ID"},{"name":"publicKey","type":"string","description":"RSA public key"}],"description":"Public key to use only during handshakes to CDN DCs."},{"name":"cdnConfig","id":1462101002,"type":"CdnConfig","arguments":[{"name":"publicKeys","type":"CdnPublicKey[]","description":"Vector of public keys to use only during handshakes to CDN DCs."}],"description":"Configuration for CDN file downloads."},{"name":"langPackString","id":3402727926,"type":"LangPackString","arguments":[{"name":"key","type":"string","description":"Language key"},{"name":"value","type":"string","description":"Value"}],"description":"Translated localization string"},{"name":"langPackStringPluralized","id":1816636575,"type":"LangPackString","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"key","type":"string","description":"Localization key"},{"name":"zeroValue","type":"string","optional":true,"predicate":"flags.0","description":"Value for zero objects"},{"name":"oneValue","type":"string","optional":true,"predicate":"flags.1","description":"Value for one object"},{"name":"twoValue","type":"string","optional":true,"predicate":"flags.2","description":"Value for two objects"},{"name":"fewValue","type":"string","optional":true,"predicate":"flags.3","description":"Value for a few objects"},{"name":"manyValue","type":"string","optional":true,"predicate":"flags.4","description":"Value for many objects"},{"name":"otherValue","type":"string","description":"Default value"}],"description":"A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info"},{"name":"langPackStringDeleted","id":695856818,"type":"LangPackString","arguments":[{"name":"key","type":"string","description":"Localization key"}],"description":"Deleted localization string"},{"name":"langPackDifference","id":4085629430,"type":"LangPackDifference","arguments":[{"name":"langCode","type":"string","description":"Language code"},{"name":"fromVersion","type":"number","description":"Previous version number"},{"name":"version","type":"number","description":"New version number"},{"name":"strings","type":"LangPackString[]","description":"Localized strings"}],"description":"Changes to the app's localization pack"},{"name":"langPackLanguage","id":4006239459,"type":"LangPackLanguage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"official","type":"true","optional":true,"predicate":"flags.0","description":"Whether the language pack is official"},{"name":"rtl","type":"true","optional":true,"predicate":"flags.2","description":"Is this a localization pack for an RTL language"},{"name":"beta","type":"true","optional":true,"predicate":"flags.3","description":"Is this a beta localization pack?"},{"name":"name","type":"string","description":"Language name"},{"name":"nativeName","type":"string","description":"Language name in the language itself"},{"name":"langCode","type":"string","description":"Language code (pack identifier)"},{"name":"baseLangCode","type":"string","optional":true,"predicate":"flags.1","description":"Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it should be fetched from base language pack. Unsupported in custom language packs"},{"name":"pluralCode","type":"string","description":"A language code to be used to apply plural forms. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info"},{"name":"stringsCount","type":"number","description":"Total number of non-deleted strings from the language pack"},{"name":"translatedCount","type":"number","description":"Total number of translated strings from the language pack"},{"name":"translationsUrl","type":"string","description":"Link to language translation interface; empty for custom local language packs"}],"description":"Identifies a localization pack"},{"name":"channelAdminLogEventActionChangeTitle","id":3873421349,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevValue","type":"string","description":"Previous title"},{"name":"newValue","type":"string","description":"New title"}],"description":"Channel/supergroup title was changed"},{"name":"channelAdminLogEventActionChangeAbout","id":1427671598,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevValue","type":"string","description":"Previous description"},{"name":"newValue","type":"string","description":"New description"}],"description":"The description was changed"},{"name":"channelAdminLogEventActionChangeUsername","id":1783299128,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevValue","type":"string","description":"Old username"},{"name":"newValue","type":"string","description":"New username"}],"description":"Channel/supergroup username was changed"},{"name":"channelAdminLogEventActionChangePhoto","id":1129042607,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevPhoto","type":"Photo","description":"Previous picture"},{"name":"newPhoto","type":"Photo","description":"New picture"}],"description":"The channel/supergroup's picture was changed"},{"name":"channelAdminLogEventActionToggleInvites","id":460916654,"type":"ChannelAdminLogEventAction","arguments":[{"name":"newValue","type":"boolean","description":"New value"}],"description":"Invites were enabled/disabled"},{"name":"channelAdminLogEventActionToggleSignatures","id":648939889,"type":"ChannelAdminLogEventAction","arguments":[{"name":"newValue","type":"boolean","description":"New value"}],"description":"Channel signatures were enabled/disabled"},{"name":"channelAdminLogEventActionUpdatePinned","id":3924306968,"type":"ChannelAdminLogEventAction","arguments":[{"name":"message","type":"Message","description":"The message that was pinned"}],"description":"A message was pinned"},{"name":"channelAdminLogEventActionEditMessage","id":1889215493,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevMessage","type":"Message","description":"Old message"},{"name":"newMessage","type":"Message","description":"New message"}],"description":"A message was edited"},{"name":"channelAdminLogEventActionDeleteMessage","id":1121994683,"type":"ChannelAdminLogEventAction","arguments":[{"name":"message","type":"Message","description":"The message that was deleted"}],"description":"A message was deleted"},{"name":"channelAdminLogEventActionParticipantJoin","id":405815507,"type":"ChannelAdminLogEventAction","arguments":[],"description":"A user has joined the group (in the case of big groups, info of the user that has joined isn't shown)"},{"name":"channelAdminLogEventActionParticipantLeave","id":4170676210,"type":"ChannelAdminLogEventAction","arguments":[],"description":"A user left the channel/supergroup (in the case of big groups, info of the user that has joined isn't shown)"},{"name":"channelAdminLogEventActionParticipantInvite","id":3810276568,"type":"ChannelAdminLogEventAction","arguments":[{"name":"participant","type":"ChannelParticipant","description":"The user that was invited"}],"description":"A user was invited to the group"},{"name":"channelAdminLogEventActionParticipantToggleBan","id":3872931198,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevParticipant","type":"ChannelParticipant","description":"Old banned rights of user"},{"name":"newParticipant","type":"ChannelParticipant","description":"New banned rights of user"}],"description":"The banned rights of a user were changed"},{"name":"channelAdminLogEventActionParticipantToggleAdmin","id":3580323600,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevParticipant","type":"ChannelParticipant","description":"Previous admin rights"},{"name":"newParticipant","type":"ChannelParticipant","description":"New admin rights"}],"description":"The admin rights of a user were changed"},{"name":"channelAdminLogEventActionChangeStickerSet","id":2982398631,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevStickerset","type":"InputStickerSet","description":"Previous stickerset"},{"name":"newStickerset","type":"InputStickerSet","description":"New stickerset"}],"description":"The supergroup's stickerset was changed"},{"name":"channelAdminLogEventActionTogglePreHistoryHidden","id":1599903217,"type":"ChannelAdminLogEventAction","arguments":[{"name":"newValue","type":"boolean","description":"New value"}],"description":"The hidden prehistory setting was {@link channels.togglePreHistoryHidden}"},{"name":"channelAdminLogEventActionDefaultBannedRights","id":771095562,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevBannedRights","type":"ChatBannedRights","description":"Previous global banned rights"},{"name":"newBannedRights","type":"ChatBannedRights","description":"New glboal banned rights."}],"description":"The default banned rights were modified"},{"name":"channelAdminLogEventActionStopPoll","id":2399639107,"type":"ChannelAdminLogEventAction","arguments":[{"name":"message","type":"Message","description":"The poll that was stopped"}],"description":"A poll was stopped"},{"name":"channelAdminLogEventActionChangeLinkedChat","id":2725218331,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevValue","type":"number","description":"Previous linked chat"},{"name":"newValue","type":"number","description":"New linked chat"}],"description":"The linked chat was changed"},{"name":"channelAdminLogEventActionChangeLocation","id":241923758,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevValue","type":"ChannelLocation","description":"Previous location"},{"name":"newValue","type":"ChannelLocation","description":"New location"}],"description":"The geo group location was changed"},{"name":"channelAdminLogEventActionToggleSlowMode","id":1401984889,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevValue","type":"number","description":"Previous slow mode value"},{"name":"newValue","type":"number","description":"New slow mode value"}],"description":"{@link channels.toggleSlowMode}"},{"name":"channelAdminLogEventActionStartGroupCall","id":589338437,"type":"ChannelAdminLogEventAction","arguments":[{"name":"call","type":"InputGroupCall"}]},{"name":"channelAdminLogEventActionDiscardGroupCall","id":3684667712,"type":"ChannelAdminLogEventAction","arguments":[{"name":"call","type":"InputGroupCall"}]},{"name":"channelAdminLogEventActionParticipantMute","id":4179895506,"type":"ChannelAdminLogEventAction","arguments":[{"name":"participant","type":"GroupCallParticipant"}]},{"name":"channelAdminLogEventActionParticipantUnmute","id":3863226816,"type":"ChannelAdminLogEventAction","arguments":[{"name":"participant","type":"GroupCallParticipant"}]},{"name":"channelAdminLogEventActionToggleGroupCallSetting","id":1456906823,"type":"ChannelAdminLogEventAction","arguments":[{"name":"joinMuted","type":"boolean"}]},{"name":"channelAdminLogEventActionParticipantJoinByInvite","id":1557846647,"type":"ChannelAdminLogEventAction","arguments":[{"name":"invite","type":"ExportedChatInvite"}]},{"name":"channelAdminLogEventActionExportedInviteDelete","id":1515256996,"type":"ChannelAdminLogEventAction","arguments":[{"name":"invite","type":"ExportedChatInvite"}]},{"name":"channelAdminLogEventActionExportedInviteRevoke","id":1091179342,"type":"ChannelAdminLogEventAction","arguments":[{"name":"invite","type":"ExportedChatInvite"}]},{"name":"channelAdminLogEventActionExportedInviteEdit","id":3910056793,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevInvite","type":"ExportedChatInvite"},{"name":"newInvite","type":"ExportedChatInvite"}]},{"name":"channelAdminLogEventActionParticipantVolume","id":1048537159,"type":"ChannelAdminLogEventAction","arguments":[{"name":"participant","type":"GroupCallParticipant"}]},{"name":"channelAdminLogEventActionChangeHistoryTTL","id":1855199800,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevValue","type":"number"},{"name":"newValue","type":"number"}]},{"name":"channelAdminLogEvent","id":995769920,"type":"ChannelAdminLogEvent","arguments":[{"name":"id","type":"Long","description":"Event ID"},{"name":"date","type":"number","description":"Date"},{"name":"userId","type":"number","description":"User ID"},{"name":"action","type":"ChannelAdminLogEventAction","description":"Action"}],"description":"Admin log event"},{"name":"channelAdminLogEventsFilter","id":3926948580,"type":"ChannelAdminLogEventsFilter","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"join","type":"true","optional":true,"predicate":"flags.0","description":"{@link channelAdminLogEventActionParticipantJoin}"},{"name":"leave","type":"true","optional":true,"predicate":"flags.1","description":"{@link channelAdminLogEventActionParticipantLeave}"},{"name":"invite","type":"true","optional":true,"predicate":"flags.2","description":"{@link channelAdminLogEventActionParticipantInvite}"},{"name":"ban","type":"true","optional":true,"predicate":"flags.3","description":"{@link channelAdminLogEventActionParticipantToggleBan}"},{"name":"unban","type":"true","optional":true,"predicate":"flags.4","description":"{@link channelAdminLogEventActionParticipantToggleBan}"},{"name":"kick","type":"true","optional":true,"predicate":"flags.5","description":"{@link channelAdminLogEventActionParticipantToggleBan}"},{"name":"unkick","type":"true","optional":true,"predicate":"flags.6","description":"{@link channelAdminLogEventActionParticipantToggleBan}"},{"name":"promote","type":"true","optional":true,"predicate":"flags.7","description":"{@link channelAdminLogEventActionParticipantToggleAdmin}"},{"name":"demote","type":"true","optional":true,"predicate":"flags.8","description":"{@link channelAdminLogEventActionParticipantToggleAdmin}"},{"name":"info","type":"true","optional":true,"predicate":"flags.9","description":"Info change events (when {@link channelAdminLogEventActionChangeAbout}, {@link channelAdminLogEventActionChangeLinkedChat}, {@link channelAdminLogEventActionChangeLocation}, {@link channelAdminLogEventActionChangePhoto}, {@link channelAdminLogEventActionChangeStickerSet}, {@link channelAdminLogEventActionChangeTitle} or {@link channelAdminLogEventActionChangeUsername} data of a channel gets modified)"},{"name":"settings","type":"true","optional":true,"predicate":"flags.10","description":"Settings change events ({@link channelAdminLogEventActionToggleInvites}, {@link channelAdminLogEventActionTogglePreHistoryHidden}, {@link channelAdminLogEventActionToggleSignatures}, {@link channelAdminLogEventActionDefaultBannedRights})"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.11","description":"{@link channelAdminLogEventActionUpdatePinned}"},{"name":"edit","type":"true","optional":true,"predicate":"flags.12","description":"{@link channelAdminLogEventActionEditMessage}"},{"name":"delete","type":"true","optional":true,"predicate":"flags.13","description":"{@link channelAdminLogEventActionDeleteMessage}"},{"name":"groupCall","type":"true","optional":true,"predicate":"flags.14"},{"name":"invites","type":"true","optional":true,"predicate":"flags.15"}],"description":"Filter only certain admin log events"},{"name":"popularContact","id":1558266229,"type":"PopularContact","arguments":[{"name":"clientId","type":"Long","description":"Contact identifier"},{"name":"importers","type":"number","description":"How many people imported this contact"}],"description":"Popular contact"},{"name":"recentMeUrlUnknown","id":1189204285,"type":"RecentMeUrl","arguments":[{"name":"url","type":"string","description":"URL"}],"description":"Unknown t.me url"},{"name":"recentMeUrlUser","id":2377921334,"type":"RecentMeUrl","arguments":[{"name":"url","type":"string","description":"URL"},{"name":"userId","type":"number","description":"User ID"}],"description":"Recent t.me link to a user"},{"name":"recentMeUrlChat","id":2686132985,"type":"RecentMeUrl","arguments":[{"name":"url","type":"string","description":"t.me URL"},{"name":"chatId","type":"number","description":"Chat ID"}],"description":"Recent t.me link to a chat"},{"name":"recentMeUrlChatInvite","id":3947431965,"type":"RecentMeUrl","arguments":[{"name":"url","type":"string","description":"t.me URL"},{"name":"chatInvite","type":"ChatInvite","description":"Chat invitation"}],"description":"Recent t.me invite link to a chat"},{"name":"recentMeUrlStickerSet","id":3154794460,"type":"RecentMeUrl","arguments":[{"name":"url","type":"string","description":"t.me URL"},{"name":"set","type":"StickerSetCovered","description":"Stickerset"}],"description":"Recent t.me stickerset installation URL"},{"name":"inputSingleMedia","id":482797855,"type":"InputSingleMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"media","type":"InputMedia","description":"The media"},{"name":"randomId","type":"Long","description":"Unique client media ID required to prevent message resending"},{"name":"message","type":"string","description":"A caption for the media"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.0","description":"Message entities for styled text"}],"description":"A single media in an album or grouped media sent with {@link messages.sendMultiMedia}."},{"name":"webAuthorization","id":3402187762,"type":"WebAuthorization","arguments":[{"name":"hash","type":"Long","description":"Authorization hash"},{"name":"botId","type":"number","description":"Bot ID"},{"name":"domain","type":"string","description":"The domain name of the website on which the user has logged in."},{"name":"browser","type":"string","description":"Browser user-agent"},{"name":"platform","type":"string","description":"Platform"},{"name":"dateCreated","type":"number","description":"When was the web session created"},{"name":"dateActive","type":"number","description":"When was the web session last active"},{"name":"ip","type":"string","description":"IP address"},{"name":"region","type":"string","description":"Region, determined from IP address"}],"description":"Represents a bot logged in using the Telegram login widget"},{"name":"inputMessageID","id":2792792866,"type":"InputMessage","arguments":[{"name":"id","type":"number","description":"Message ID"}],"description":"Message by ID"},{"name":"inputMessageReplyTo","id":3134751637,"type":"InputMessage","arguments":[{"name":"id","type":"number","description":"ID of the message that replies to the message we need"}],"description":"Message to which the specified message replies to"},{"name":"inputMessagePinned","id":2257003832,"type":"InputMessage","arguments":[],"description":"Pinned message"},{"name":"inputMessageCallbackQuery","id":2902071934,"type":"InputMessage","arguments":[{"name":"id","type":"number","description":"Message ID"},{"name":"queryId","type":"Long","description":"Callback query ID"}],"description":"Used by bots for fetching information about the message that originated a callback query"},{"name":"inputDialogPeer","id":4239064759,"type":"InputDialogPeer","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"}],"description":"A peer"},{"name":"inputDialogPeerFolder","id":1684014375,"type":"InputDialogPeer","arguments":[{"name":"folderId","type":"number","description":"Peer folder ID, for more info click here"}],"description":"All peers in a peer folder"},{"name":"dialogPeer","id":3849174789,"type":"DialogPeer","arguments":[{"name":"peer","type":"Peer","description":"Peer"}],"description":"Peer"},{"name":"dialogPeerFolder","id":1363483106,"type":"DialogPeer","arguments":[{"name":"folderId","type":"number","description":"Peer folder ID, for more info click here"}],"description":"Peer folder"},{"name":"fileHash","id":1648543603,"type":"FileHash","arguments":[{"name":"offset","type":"number","description":"Offset from where to start computing SHA-256 hash"},{"name":"limit","type":"number","description":"Length"},{"name":"hash","type":"Buffer","description":"SHA-256 Hash of file chunk, to be checked for validity after download"}],"description":"SHA256 Hash of an uploaded file, to be checked for validity after download"},{"name":"inputClientProxy","id":1968737087,"type":"InputClientProxy","arguments":[{"name":"address","type":"string","description":"Proxy address"},{"name":"port","type":"number","description":"Proxy port"}],"description":"Info about an MTProxy used to connect."},{"name":"inputSecureFileUploaded","id":859091184,"type":"InputSecureFile","arguments":[{"name":"id","type":"Long","description":"Secure file ID"},{"name":"parts","type":"number","description":"Secure file part count"},{"name":"md5Checksum","type":"string","description":"MD5 hash of encrypted uploaded file, to be checked server-side"},{"name":"fileHash","type":"Buffer","description":"File hash"},{"name":"secret","type":"Buffer","description":"Secret"}],"description":"Uploaded secure file, for more info see the passport docs »"},{"name":"inputSecureFile","id":1399317950,"type":"InputSecureFile","arguments":[{"name":"id","type":"Long","description":"Secure file ID"},{"name":"accessHash","type":"Long","description":"Secure file access hash"}],"description":"Preuploaded passport file, for more info see the passport docs »"},{"name":"secureFileEmpty","id":1679398724,"type":"SecureFile","arguments":[],"description":"Empty constructor"},{"name":"secureFile","id":3760683618,"type":"SecureFile","arguments":[{"name":"id","type":"Long","description":"ID"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"size","type":"number","description":"File size"},{"name":"dcId","type":"number","description":"DC ID"},{"name":"date","type":"number","description":"Date of upload"},{"name":"fileHash","type":"Buffer","description":"File hash"},{"name":"secret","type":"Buffer","description":"Secret"}],"description":"Secure passport file, for more info see the passport docs »"},{"name":"secureData","id":2330640067,"type":"SecureData","arguments":[{"name":"data","type":"Buffer","description":"Data"},{"name":"dataHash","type":"Buffer","description":"Data hash"},{"name":"secret","type":"Buffer","description":"Secret"}],"description":"Secure passport data, for more info see the passport docs »"},{"name":"securePlainPhone","id":2103482845,"type":"SecurePlainData","arguments":[{"name":"phone","type":"string","description":"Phone number"}],"description":"Phone number to use in telegram passport: it must be verified, first »."},{"name":"securePlainEmail","id":569137759,"type":"SecurePlainData","arguments":[{"name":"email","type":"string","description":"Email address"}],"description":"Email address to use in telegram passport: it must be verified, first »."},{"name":"secureValueTypePersonalDetails","id":2636808675,"type":"SecureValueType","arguments":[],"description":"Personal details"},{"name":"secureValueTypePassport","id":1034709504,"type":"SecureValueType","arguments":[],"description":"Passport"},{"name":"secureValueTypeDriverLicense","id":115615172,"type":"SecureValueType","arguments":[],"description":"Driver's license"},{"name":"secureValueTypeIdentityCard","id":2698015819,"type":"SecureValueType","arguments":[],"description":"Identity card"},{"name":"secureValueTypeInternalPassport","id":2577698595,"type":"SecureValueType","arguments":[],"description":"Internal passport"},{"name":"secureValueTypeAddress","id":3420659238,"type":"SecureValueType","arguments":[],"description":"Address"},{"name":"secureValueTypeUtilityBill","id":4231435598,"type":"SecureValueType","arguments":[],"description":"Utility bill"},{"name":"secureValueTypeBankStatement","id":2299755533,"type":"SecureValueType","arguments":[],"description":"Bank statement"},{"name":"secureValueTypeRentalAgreement","id":2340959368,"type":"SecureValueType","arguments":[],"description":"Rental agreement"},{"name":"secureValueTypePassportRegistration","id":2581823594,"type":"SecureValueType","arguments":[],"description":"Internal registration passport"},{"name":"secureValueTypeTemporaryRegistration","id":3926060083,"type":"SecureValueType","arguments":[],"description":"Temporary registration"},{"name":"secureValueTypePhone","id":3005262555,"type":"SecureValueType","arguments":[],"description":"Phone"},{"name":"secureValueTypeEmail","id":2386339822,"type":"SecureValueType","arguments":[],"description":"Email"},{"name":"secureValue","id":411017418,"type":"SecureValue","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"type","type":"SecureValueType","description":"Secure passport value type"},{"name":"data","type":"SecureData","optional":true,"predicate":"flags.0","description":"Encrypted Telegram Passport element data"},{"name":"frontSide","type":"SecureFile","optional":true,"predicate":"flags.1","description":"Encrypted passport file with the front side of the document"},{"name":"reverseSide","type":"SecureFile","optional":true,"predicate":"flags.2","description":"Encrypted passport file with the reverse side of the document"},{"name":"selfie","type":"SecureFile","optional":true,"predicate":"flags.3","description":"Encrypted passport file with a selfie of the user holding the document"},{"name":"translation","type":"SecureFile[]","optional":true,"predicate":"flags.6","description":"Array of encrypted passport files with translated versions of the provided documents"},{"name":"files","type":"SecureFile[]","optional":true,"predicate":"flags.4","description":"Array of encrypted passport files with photos the of the documents"},{"name":"plainData","type":"SecurePlainData","optional":true,"predicate":"flags.5","description":"Plaintext verified passport data"},{"name":"hash","type":"Buffer","description":"Data hash"}],"description":"Secure value"},{"name":"inputSecureValue","id":3676426407,"type":"InputSecureValue","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"type","type":"SecureValueType","description":"Secure passport value type"},{"name":"data","type":"SecureData","optional":true,"predicate":"flags.0","description":"Encrypted Telegram Passport element data"},{"name":"frontSide","type":"InputSecureFile","optional":true,"predicate":"flags.1","description":"Encrypted passport file with the front side of the document"},{"name":"reverseSide","type":"InputSecureFile","optional":true,"predicate":"flags.2","description":"Encrypted passport file with the reverse side of the document"},{"name":"selfie","type":"InputSecureFile","optional":true,"predicate":"flags.3","description":"Encrypted passport file with a selfie of the user holding the document"},{"name":"translation","type":"InputSecureFile[]","optional":true,"predicate":"flags.6","description":"Array of encrypted passport files with translated versions of the provided documents"},{"name":"files","type":"InputSecureFile[]","optional":true,"predicate":"flags.4","description":"Array of encrypted passport files with photos the of the documents"},{"name":"plainData","type":"SecurePlainData","optional":true,"predicate":"flags.5","description":"Plaintext verified passport data"}],"description":"Secure value, for more info see the passport docs »"},{"name":"secureValueHash","id":3978218928,"type":"SecureValueHash","arguments":[{"name":"type","type":"SecureValueType","description":"Secure value type"},{"name":"hash","type":"Buffer","description":"Hash"}],"description":"Secure value hash"},{"name":"secureValueErrorData","id":3903065049,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"The section of the user's Telegram Passport which has the error, one of {@link secureValueTypePersonalDetails}, {@link secureValueTypePassport}, {@link secureValueTypeDriverLicense}, {@link secureValueTypeIdentityCard}, {@link secureValueTypeInternalPassport}, {@link secureValueTypeAddress}"},{"name":"dataHash","type":"Buffer","description":"Data hash"},{"name":"field","type":"string","description":"Name of the data field which has the error"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes."},{"name":"secureValueErrorFrontSide","id":12467706,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"One of {@link secureValueTypePassport}, {@link secureValueTypeDriverLicense}, {@link secureValueTypeIdentityCard}, {@link secureValueTypeInternalPassport}"},{"name":"fileHash","type":"Buffer","description":"File hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes."},{"name":"secureValueErrorReverseSide","id":2257201829,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"One of {@link secureValueTypeDriverLicense}, {@link secureValueTypeIdentityCard}"},{"name":"fileHash","type":"Buffer","description":"File hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes."},{"name":"secureValueErrorSelfie","id":3845639894,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"One of {@link secureValueTypePassport}, {@link secureValueTypeDriverLicense}, {@link secureValueTypeIdentityCard}, {@link secureValueTypeInternalPassport}"},{"name":"fileHash","type":"Buffer","description":"File hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes."},{"name":"secureValueErrorFile","id":2054162547,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"One of {@link secureValueTypeUtilityBill}, {@link secureValueTypeBankStatement}, {@link secureValueTypeRentalAgreement}, {@link secureValueTypePassportRegistration}, {@link secureValueTypeTemporaryRegistration}"},{"name":"fileHash","type":"Buffer","description":"File hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes."},{"name":"secureValueErrorFiles","id":1717706985,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"One of {@link secureValueTypeUtilityBill}, {@link secureValueTypeBankStatement}, {@link secureValueTypeRentalAgreement}, {@link secureValueTypePassportRegistration}, {@link secureValueTypeTemporaryRegistration}"},{"name":"fileHash","type":"Buffer[]","description":"File hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes."},{"name":"secureValueError","id":2258466191,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"Type of element which has the issue"},{"name":"hash","type":"Buffer","description":"Hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Secure value error"},{"name":"secureValueErrorTranslationFile","id":2702460784,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"One of {@link secureValueTypePersonalDetails}, {@link secureValueTypePassport}, {@link secureValueTypeDriverLicense}, {@link secureValueTypeIdentityCard}, {@link secureValueTypeInternalPassport}, {@link secureValueTypeUtilityBill}, {@link secureValueTypeBankStatement}, {@link secureValueTypeRentalAgreement}, {@link secureValueTypePassportRegistration}, {@link secureValueTypeTemporaryRegistration}"},{"name":"fileHash","type":"Buffer","description":"File hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes."},{"name":"secureValueErrorTranslationFiles","id":878931416,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"One of {@link secureValueTypePersonalDetails}, {@link secureValueTypePassport}, {@link secureValueTypeDriverLicense}, {@link secureValueTypeIdentityCard}, {@link secureValueTypeInternalPassport}, {@link secureValueTypeUtilityBill}, {@link secureValueTypeBankStatement}, {@link secureValueTypeRentalAgreement}, {@link secureValueTypePassportRegistration}, {@link secureValueTypeTemporaryRegistration}"},{"name":"fileHash","type":"Buffer[]","description":"Hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation changes."},{"name":"secureCredentialsEncrypted","id":871426631,"type":"SecureCredentialsEncrypted","arguments":[{"name":"data","type":"Buffer","description":"Encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication, as described in decrypting data »"},{"name":"hash","type":"Buffer","description":"Data hash for data authentication as described in decrypting data »"},{"name":"secret","type":"Buffer","description":"Secret, encrypted with the bot's public RSA key, required for data decryption as described in decrypting data »"}],"description":"Encrypted credentials required to decrypt telegram passport data."},{"name":"savedPhoneContact","id":289586518,"type":"SavedContact","arguments":[{"name":"phone","type":"string","description":"Phone number"},{"name":"firstName","type":"string","description":"First name"},{"name":"lastName","type":"string","description":"Last name"},{"name":"date","type":"number","description":"Date added"}],"description":"Saved contact"},{"name":"passwordKdfAlgoUnknown","id":3562713238,"type":"PasswordKdfAlgo","arguments":[],"description":"Unknown KDF (most likely, the client is outdated and does not support the specified KDF algorithm)"},{"name":"passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow","id":982592842,"type":"PasswordKdfAlgo","arguments":[{"name":"salt1","type":"Buffer","description":"One of two salts used by the derivation function (see SRP 2FA login)"},{"name":"salt2","type":"Buffer","description":"One of two salts used by the derivation function (see SRP 2FA login)"},{"name":"g","type":"number","description":"Base (see SRP 2FA login)"},{"name":"p","type":"Buffer","description":"2048-bit modulus (see SRP 2FA login)"}],"description":"This key derivation algorithm defines that SRP 2FA login must be used"},{"name":"securePasswordKdfAlgoUnknown","id":4883767,"type":"SecurePasswordKdfAlgo","arguments":[],"description":"Unknown KDF algo (most likely the client has to be updated)"},{"name":"securePasswordKdfAlgoPBKDF2HMACSHA512iter100000","id":3153255840,"type":"SecurePasswordKdfAlgo","arguments":[{"name":"salt","type":"Buffer","description":"Salt"}],"description":"PBKDF2 with SHA512 and 100000 iterations KDF algo"},{"name":"securePasswordKdfAlgoSHA512","id":2252807570,"type":"SecurePasswordKdfAlgo","arguments":[{"name":"salt","type":"Buffer","description":"Salt"}],"description":"SHA512 KDF algo"},{"name":"secureSecretSettings","id":354925740,"type":"SecureSecretSettings","arguments":[{"name":"secureAlgo","type":"SecurePasswordKdfAlgo","description":"Secure KDF algo"},{"name":"secureSecret","type":"Buffer","description":"Secure secret"},{"name":"secureSecretId","type":"Long","description":"Secret ID"}],"description":"Secure settings"},{"name":"inputCheckPasswordEmpty","id":2558588504,"type":"InputCheckPasswordSRP","arguments":[],"description":"There is no password"},{"name":"inputCheckPasswordSRP","id":3531600002,"type":"InputCheckPasswordSRP","arguments":[{"name":"srpId","type":"Long","description":"SRP ID"},{"name":"A","type":"Buffer","description":"A parameter (see SRP)"},{"name":"M1","type":"Buffer","description":"M1 parameter (see SRP)"}],"description":"Constructor for checking the validity of a 2FA SRP password (see SRP)"},{"name":"secureRequiredType","id":2191366618,"type":"SecureRequiredType","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"nativeNames","type":"true","optional":true,"predicate":"flags.0","description":"Native names"},{"name":"selfieRequired","type":"true","optional":true,"predicate":"flags.1","description":"Is a selfie required"},{"name":"translationRequired","type":"true","optional":true,"predicate":"flags.2","description":"Is a translation required"},{"name":"type","type":"SecureValueType","description":"Secure value type"}],"description":"Required type"},{"name":"secureRequiredTypeOneOf","id":41187252,"type":"SecureRequiredType","arguments":[{"name":"types","type":"SecureRequiredType[]","description":"Secure required value types"}],"description":"One of"},{"name":"inputAppEvent","id":488313413,"type":"InputAppEvent","arguments":[{"name":"time","type":"Double","description":"Client's exact timestamp for the event"},{"name":"type","type":"string","description":"Type of event"},{"name":"peer","type":"Long","description":"Arbitrary numeric value for more convenient selection of certain event types, or events referring to a certain object"},{"name":"data","type":"JSONValue","description":"Details of the event"}],"description":"Event that occured in the application."},{"name":"jsonObjectValue","id":3235781593,"type":"JSONObjectValue","arguments":[{"name":"key","type":"string","description":"Key"},{"name":"value","type":"JSONValue","description":"Value"}],"description":"JSON key: value pair"},{"name":"jsonNull","id":1064139624,"type":"JSONValue","arguments":[],"description":"null JSON value"},{"name":"jsonBool","id":3342098026,"type":"JSONValue","arguments":[{"name":"value","type":"boolean","description":"Value"}],"description":"JSON boolean value"},{"name":"jsonNumber","id":736157604,"type":"JSONValue","arguments":[{"name":"value","type":"Double","description":"Value"}],"description":"JSON numeric value"},{"name":"jsonString","id":3072226938,"type":"JSONValue","arguments":[{"name":"value","type":"string","description":"Value"}],"description":"JSON string"},{"name":"jsonArray","id":4148447075,"type":"JSONValue","arguments":[{"name":"value","type":"JSONValue[]","description":"JSON values"}],"description":"JSON array"},{"name":"jsonObject","id":2579616925,"type":"JSONValue","arguments":[{"name":"value","type":"JSONObjectValue[]","description":"Values"}],"description":"JSON object value"},{"name":"pageTableCell","id":878078826,"type":"PageTableCell","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"header","type":"true","optional":true,"predicate":"flags.0","description":"Is this element part of the column header"},{"name":"alignCenter","type":"true","optional":true,"predicate":"flags.3","description":"Horizontally centered block"},{"name":"alignRight","type":"true","optional":true,"predicate":"flags.4","description":"Right-aligned block"},{"name":"valignMiddle","type":"true","optional":true,"predicate":"flags.5","description":"Vertically centered block"},{"name":"valignBottom","type":"true","optional":true,"predicate":"flags.6","description":"Block vertically-alligned to the bottom"},{"name":"text","type":"RichText","optional":true,"predicate":"flags.7","description":"Content"},{"name":"colspan","type":"number","optional":true,"predicate":"flags.1","description":"For how many columns should this cell extend"},{"name":"rowspan","type":"number","optional":true,"predicate":"flags.2","description":"For how many rows should this cell extend"}],"description":"Table cell"},{"name":"pageTableRow","id":3770729957,"type":"PageTableRow","arguments":[{"name":"cells","type":"PageTableCell[]","description":"Table cells"}],"description":"Table row"},{"name":"pageCaption","id":1869903447,"type":"PageCaption","arguments":[{"name":"text","type":"RichText","description":"Caption"},{"name":"credit","type":"RichText","description":"Credits"}],"description":"Page caption"},{"name":"pageListItemText","id":3106911949,"type":"PageListItem","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"List item"},{"name":"pageListItemBlocks","id":635466748,"type":"PageListItem","arguments":[{"name":"blocks","type":"PageBlock[]","description":"Blocks"}],"description":"List item"},{"name":"pageListOrderedItemText","id":1577484359,"type":"PageListOrderedItem","arguments":[{"name":"num","type":"string","description":"Number of element within ordered list"},{"name":"text","type":"RichText","description":"Text"}],"description":"Ordered list of text items"},{"name":"pageListOrderedItemBlocks","id":2564655414,"type":"PageListOrderedItem","arguments":[{"name":"num","type":"string","description":"Number of element within ordered list"},{"name":"blocks","type":"PageBlock[]","description":"Item contents"}],"description":"Ordered list of IV blocks"},{"name":"pageRelatedArticle","id":3012615176,"type":"PageRelatedArticle","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"url","type":"string","description":"URL of article"},{"name":"webpageId","type":"Long","description":"Webpage ID of generated IV preview"},{"name":"title","type":"string","optional":true,"predicate":"flags.0","description":"Title"},{"name":"description","type":"string","optional":true,"predicate":"flags.1","description":"Description"},{"name":"photoId","type":"Long","optional":true,"predicate":"flags.2","description":"ID of preview photo"},{"name":"author","type":"string","optional":true,"predicate":"flags.3","description":"Author name"},{"name":"publishedDate","type":"number","optional":true,"predicate":"flags.4","description":"Date of pubblication"}],"description":"Related article"},{"name":"page","id":2556788493,"type":"Page","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"part","type":"true","optional":true,"predicate":"flags.0","description":"Indicates that not full page preview is available to the client and it will need to fetch full Instant View from the server using {@link messages.getWebPagePreview}."},{"name":"rtl","type":"true","optional":true,"predicate":"flags.1","description":"Whether the page contains RTL text"},{"name":"v2","type":"true","optional":true,"predicate":"flags.2","description":"Whether this is an IV v2 page"},{"name":"url","type":"string","description":"Original page HTTP URL"},{"name":"blocks","type":"PageBlock[]","description":"Page elements (like with HTML elements, only as TL constructors)"},{"name":"photos","type":"Photo[]","description":"Photos in page"},{"name":"documents","type":"Document[]","description":"Media in page"},{"name":"views","type":"number","optional":true,"predicate":"flags.3","description":"Viewcount"}],"description":"Instant view page"},{"name":"pollAnswer","id":1823064809,"type":"PollAnswer","arguments":[{"name":"text","type":"string","description":"Textual representation of the answer"},{"name":"option","type":"Buffer","description":"The param that has to be passed to {@link messages.sendVote}."}],"description":"A possible answer of a poll"},{"name":"poll","id":2262925665,"type":"Poll","arguments":[{"name":"id","type":"Long","description":"ID of the poll"},{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"closed","type":"true","optional":true,"predicate":"flags.0","description":"Whether the poll is closed and doesn't accept any more answers"},{"name":"publicVoters","type":"true","optional":true,"predicate":"flags.1","description":"Whether cast votes are publicly visible to all users (non-anonymous poll)"},{"name":"multipleChoice","type":"true","optional":true,"predicate":"flags.2","description":"Whether multiple options can be chosen as answer"},{"name":"quiz","type":"true","optional":true,"predicate":"flags.3","description":"Whether this is a quiz (with wrong and correct answers, results shown in the return type)"},{"name":"question","type":"string","description":"The question of the poll"},{"name":"answers","type":"PollAnswer[]","description":"The possible answers, vote using {@link messages.sendVote}."},{"name":"closePeriod","type":"number","optional":true,"predicate":"flags.4","description":"Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date."},{"name":"closeDate","type":"number","optional":true,"predicate":"flags.5","description":"Point in time (UNIX timestamp in seconds) when the poll will be automatically closed. Must be at least 5 and no more than 600 seconds in the future; can't be used together with close_period."}],"description":"Poll"},{"name":"pollAnswerVoters","id":997055186,"type":"PollAnswerVoters","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"chosen","type":"true","optional":true,"predicate":"flags.0","description":"Whether we have chosen this answer"},{"name":"correct","type":"true","optional":true,"predicate":"flags.1","description":"For quizes, whether the option we have chosen is correct"},{"name":"option","type":"Buffer","description":"The param that has to be passed to {@link messages.sendVote}."},{"name":"voters","type":"number","description":"How many users voted for this option"}],"description":"A poll answer, and how users voted on it"},{"name":"pollResults","id":3135029667,"type":"PollResults","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"min","type":"true","optional":true,"predicate":"flags.0","description":"Similar to min objects, used for poll constructors that are the same for all users so they don't have option chosen by the current user (you can use {@link messages.getPollResults} to get the full poll results)."},{"name":"results","type":"PollAnswerVoters[]","optional":true,"predicate":"flags.1","description":"Poll results"},{"name":"totalVoters","type":"number","optional":true,"predicate":"flags.2","description":"Total number of people that voted in the poll"},{"name":"recentVoters","type":"number[]","optional":true,"predicate":"flags.3","description":"IDs of the last users that recently voted in the poll"},{"name":"solution","type":"string","optional":true,"predicate":"flags.4","description":"Explanation of quiz solution"},{"name":"solutionEntities","type":"MessageEntity[]","optional":true,"predicate":"flags.4","description":"Message entities for styled text in quiz solution"}],"description":"Results of poll"},{"name":"chatOnlines","id":4030849616,"type":"ChatOnlines","arguments":[{"name":"onlines","type":"number","description":"Number of online users"}],"description":"Number of online users in a chat"},{"name":"statsURL","id":1202287072,"type":"StatsURL","arguments":[{"name":"url","type":"string","description":"Chat statistics"}],"description":"URL with chat statistics"},{"name":"chatAdminRights","id":1605510357,"type":"ChatAdminRights","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"changeInfo","type":"true","optional":true,"predicate":"flags.0","description":"If set, allows the admin to modify the description of the channel/supergroup"},{"name":"postMessages","type":"true","optional":true,"predicate":"flags.1","description":"If set, allows the admin to post messages in the channel"},{"name":"editMessages","type":"true","optional":true,"predicate":"flags.2","description":"If set, allows the admin to also edit messages from other admins in the channel"},{"name":"deleteMessages","type":"true","optional":true,"predicate":"flags.3","description":"If set, allows the admin to also delete messages from other admins in the channel"},{"name":"banUsers","type":"true","optional":true,"predicate":"flags.4","description":"If set, allows the admin to ban users from the channel/supergroup"},{"name":"inviteUsers","type":"true","optional":true,"predicate":"flags.5","description":"If set, allows the admin to invite users in the channel/supergroup"},{"name":"pinMessages","type":"true","optional":true,"predicate":"flags.7","description":"If set, allows the admin to pin messages in the channel/supergroup"},{"name":"addAdmins","type":"true","optional":true,"predicate":"flags.9","description":"If set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup"},{"name":"anonymous","type":"true","optional":true,"predicate":"flags.10","description":"Whether this admin is anonymous"},{"name":"manageCall","type":"true","optional":true,"predicate":"flags.11"},{"name":"other","type":"true","optional":true,"predicate":"flags.12"}],"description":"Represents the rights of an admin in a channel/supergroup."},{"name":"chatBannedRights","id":2668758040,"type":"ChatBannedRights","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"viewMessages","type":"true","optional":true,"predicate":"flags.0","description":"If set, does not allow a user to view messages in a supergroup/channel/chat"},{"name":"sendMessages","type":"true","optional":true,"predicate":"flags.1","description":"If set, does not allow a user to send messages in a supergroup/chat"},{"name":"sendMedia","type":"true","optional":true,"predicate":"flags.2","description":"If set, does not allow a user to send any media in a supergroup/chat"},{"name":"sendStickers","type":"true","optional":true,"predicate":"flags.3","description":"If set, does not allow a user to send stickers in a supergroup/chat"},{"name":"sendGifs","type":"true","optional":true,"predicate":"flags.4","description":"If set, does not allow a user to send gifs in a supergroup/chat"},{"name":"sendGames","type":"true","optional":true,"predicate":"flags.5","description":"If set, does not allow a user to send games in a supergroup/chat"},{"name":"sendInline","type":"true","optional":true,"predicate":"flags.6","description":"If set, does not allow a user to use inline bots in a supergroup/chat"},{"name":"embedLinks","type":"true","optional":true,"predicate":"flags.7","description":"If set, does not allow a user to embed links in the messages of a supergroup/chat"},{"name":"sendPolls","type":"true","optional":true,"predicate":"flags.8","description":"If set, does not allow a user to send stickers in a supergroup/chat"},{"name":"changeInfo","type":"true","optional":true,"predicate":"flags.10","description":"If set, does not allow any user to change the description of a supergroup/chat"},{"name":"inviteUsers","type":"true","optional":true,"predicate":"flags.15","description":"If set, does not allow any user to invite users in a supergroup/chat"},{"name":"pinMessages","type":"true","optional":true,"predicate":"flags.17","description":"If set, does not allow any user to pin messages in a supergroup/chat"},{"name":"untilDate","type":"number","description":"Validity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days)."}],"description":"Represents the rights of a normal user in a supergroup/channel/chat. In this case, the flags are inverted: if set, a flag does not allow a user to do X."},{"name":"inputWallPaper","id":3861952889,"type":"InputWallPaper","arguments":[{"name":"id","type":"Long","description":"Wallpaper ID"},{"name":"accessHash","type":"Long","description":"Access hash"}],"description":"Wallpaper"},{"name":"inputWallPaperSlug","id":1913199744,"type":"InputWallPaper","arguments":[{"name":"slug","type":"string","description":"Unique wallpaper ID"}],"description":"Wallpaper by slug (a unique ID)"},{"name":"inputWallPaperNoFile","id":2524595758,"type":"InputWallPaper","arguments":[{"name":"id","type":"Long"}],"description":"Wallpaper with no file"},{"name":"codeSettings","id":3737042563,"type":"CodeSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"allowFlashcall","type":"true","optional":true,"predicate":"flags.0","description":"Whether to allow phone verification via phone calls."},{"name":"currentNumber","type":"true","optional":true,"predicate":"flags.1","description":"Pass true if the phone number is used on the current device. Ignored if allow_flashcall is not set."},{"name":"allowAppHash","type":"true","optional":true,"predicate":"flags.4","description":"If a token that will be included in eventually sent SMSs is required: required in newer versions of android, to use the android SMS receiver APIs"}],"description":"Settings used by telegram servers for sending the confirm code."},{"name":"wallPaperSettings","id":499236004,"type":"WallPaperSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"blur","type":"true","optional":true,"predicate":"flags.1","description":"If set, the wallpaper must be downscaled to fit in 450x450 square and then box-blurred with radius 12"},{"name":"motion","type":"true","optional":true,"predicate":"flags.2","description":"If set, the background needs to be slightly moved when device is rotated"},{"name":"backgroundColor","type":"number","optional":true,"predicate":"flags.0","description":"If set, a PNG pattern is to be combined with the color chosen by the user: the main color of the background in RGB24 format"},{"name":"secondBackgroundColor","type":"number","optional":true,"predicate":"flags.4","description":"If set, a PNG pattern is to be combined with the first and second background colors (RGB24 format) in a top-bottom gradient"},{"name":"thirdBackgroundColor","type":"number","optional":true,"predicate":"flags.5"},{"name":"fourthBackgroundColor","type":"number","optional":true,"predicate":"flags.6"},{"name":"intensity","type":"number","optional":true,"predicate":"flags.3","description":"Intensity of the pattern when it is shown above the main background color, 0-100"},{"name":"rotation","type":"number","optional":true,"predicate":"flags.4","description":"Clockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45"}],"description":"Wallpaper settings"},{"name":"autoDownloadSettings","id":3762434803,"type":"AutoDownloadSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"disabled","type":"true","optional":true,"predicate":"flags.0","description":"Disable automatic media downloads?"},{"name":"videoPreloadLarge","type":"true","optional":true,"predicate":"flags.1","description":"Whether to preload the first seconds of videos larger than the specified limit"},{"name":"audioPreloadNext","type":"true","optional":true,"predicate":"flags.2","description":"Whether to preload the next audio track when you're listening to music"},{"name":"phonecallsLessData","type":"true","optional":true,"predicate":"flags.3","description":"Whether to enable data saving mode in phone calls"},{"name":"photoSizeMax","type":"number","description":"Maximum size of photos to preload"},{"name":"videoSizeMax","type":"number","description":"Maximum size of videos to preload"},{"name":"fileSizeMax","type":"number","description":"Maximum size of other files to preload"},{"name":"videoUploadMaxbitrate","type":"number","description":"Maximum suggested bitrate for uploading videos"}],"description":"Autodownload settings"},{"name":"emojiKeyword","id":3585325561,"type":"EmojiKeyword","arguments":[{"name":"keyword","type":"string","description":"Keyword"},{"name":"emoticons","type":"string[]","description":"Emojis associated to keyword"}],"description":"Emoji keyword"},{"name":"emojiKeywordDeleted","id":594408994,"type":"EmojiKeyword","arguments":[{"name":"keyword","type":"string","description":"Keyword"},{"name":"emoticons","type":"string[]","description":"Emojis that were associated to keyword"}],"description":"Deleted emoji keyword"},{"name":"emojiKeywordsDifference","id":1556570557,"type":"EmojiKeywordsDifference","arguments":[{"name":"langCode","type":"string","description":"Language code for keywords"},{"name":"fromVersion","type":"number","description":"Previous emoji keyword list version"},{"name":"version","type":"number","description":"Current version of emoji keyword list"},{"name":"keywords","type":"EmojiKeyword[]","description":"Emojis associated to keywords"}],"description":"Changes to emoji keywords"},{"name":"emojiURL","id":2775937949,"type":"EmojiURL","arguments":[{"name":"url","type":"string","description":"An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation"}],"description":"An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation"},{"name":"emojiLanguage","id":3019592545,"type":"EmojiLanguage","arguments":[{"name":"langCode","type":"string","description":"Language code"}],"description":"Emoji language"},{"name":"folder","id":4283715173,"type":"Folder","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"autofillNewBroadcasts","type":"true","optional":true,"predicate":"flags.0","description":"Automatically add new channels to this folder"},{"name":"autofillPublicGroups","type":"true","optional":true,"predicate":"flags.1","description":"Automatically add joined new public supergroups to this folder"},{"name":"autofillNewCorrespondents","type":"true","optional":true,"predicate":"flags.2","description":"Automatically add new private chats to this folder"},{"name":"id","type":"number","description":"Folder ID"},{"name":"title","type":"string","description":"Folder title"},{"name":"photo","type":"ChatPhoto","optional":true,"predicate":"flags.3","description":"Folder picture"}],"description":"Folder"},{"name":"inputFolderPeer","id":4224893590,"type":"InputFolderPeer","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"},{"name":"folderId","type":"number","description":"Peer folder ID, for more info click here"}],"description":"Peer in a folder"},{"name":"folderPeer","id":3921323624,"type":"FolderPeer","arguments":[{"name":"peer","type":"Peer","description":"Folder peer info"},{"name":"folderId","type":"number","description":"Peer folder ID, for more info click here"}],"description":"Peer in a folder"},{"name":"urlAuthResultRequest","id":2463316494,"type":"UrlAuthResult","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"requestWriteAccess","type":"true","optional":true,"predicate":"flags.0","description":"Whether the bot would like to send messages to the user"},{"name":"bot","type":"User","description":"Username of a bot, which will be used for user authorization. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details."},{"name":"domain","type":"string","description":"The domain name of the website on which the user will log in."}],"description":"Details about the authorization request, for more info click here »"},{"name":"urlAuthResultAccepted","id":2408320590,"type":"UrlAuthResult","arguments":[{"name":"url","type":"string","description":"The URL name of the website on which the user has logged in."}],"description":"Details about an accepted authorization request, for more info click here »"},{"name":"urlAuthResultDefault","id":2849430303,"type":"UrlAuthResult","arguments":[],"description":"Details about an accepted authorization request, for more info click here »"},{"name":"channelLocationEmpty","id":3216354699,"type":"ChannelLocation","arguments":[],"description":"No location (normal supergroup)"},{"name":"channelLocation","id":547062491,"type":"ChannelLocation","arguments":[{"name":"geoPoint","type":"GeoPoint","description":"Geographical location of supergrup"},{"name":"address","type":"string","description":"Textual description of the address"}],"description":"Geographical location of supergroup (geogroups)"},{"name":"peerLocated","id":3393592157,"type":"PeerLocated","arguments":[{"name":"peer","type":"Peer","description":"Peer"},{"name":"expires","type":"number","description":"Validity period of current data"},{"name":"distance","type":"number","description":"Distance from the peer in meters"}],"description":"Peer geolocated nearby"},{"name":"peerSelfLocated","id":4176226379,"type":"PeerLocated","arguments":[{"name":"expires","type":"number","description":"Expiry of geolocation info for current peer"}],"description":"Current peer"},{"name":"restrictionReason","id":3497176244,"type":"RestrictionReason","arguments":[{"name":"platform","type":"string","description":"Platform identifier (ios, android, wp, all, etc.), can be concatenated with a dash as separator (android-ios, ios-wp, etc)"},{"name":"reason","type":"string","description":"Restriction reason (porno, terms, etc.)"},{"name":"text","type":"string","description":"Error message to be shown to the user"}],"description":"Restriction reason."},{"name":"inputTheme","id":1012306921,"type":"InputTheme","arguments":[{"name":"id","type":"Long","description":"ID"},{"name":"accessHash","type":"Long","description":"Access hash"}],"description":"Theme"},{"name":"inputThemeSlug","id":4119399921,"type":"InputTheme","arguments":[{"name":"slug","type":"string","description":"Unique theme ID"}],"description":"Theme by theme ID"},{"name":"theme","id":42930452,"type":"Theme","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"creator","type":"true","optional":true,"predicate":"flags.0","description":"Whether the current user is the creator of this theme"},{"name":"default","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is the default theme"},{"name":"id","type":"Long","description":"Theme ID"},{"name":"accessHash","type":"Long","description":"Theme access hash"},{"name":"slug","type":"string","description":"Unique theme ID"},{"name":"title","type":"string","description":"Theme name"},{"name":"document","type":"Document","optional":true,"predicate":"flags.2","description":"Theme"},{"name":"settings","type":"ThemeSettings","optional":true,"predicate":"flags.3","description":"Theme settings"},{"name":"installsCount","type":"number","description":"Installation count"}],"description":"Theme"},{"name":"baseThemeClassic","id":3282117730,"type":"BaseTheme","arguments":[],"description":"Classic theme"},{"name":"baseThemeDay","id":4225242760,"type":"BaseTheme","arguments":[],"description":"Day theme"},{"name":"baseThemeNight","id":3081969320,"type":"BaseTheme","arguments":[],"description":"Night theme"},{"name":"baseThemeTinted","id":1834973166,"type":"BaseTheme","arguments":[],"description":"Tinted theme"},{"name":"baseThemeArctic","id":1527845466,"type":"BaseTheme","arguments":[],"description":"Arctic theme"},{"name":"inputThemeSettings","id":3176168657,"type":"InputThemeSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"baseTheme","type":"BaseTheme","description":"Default theme on which this theme is based"},{"name":"accentColor","type":"number","description":"Accent color, RGB24 format"},{"name":"messageTopColor","type":"number","optional":true,"predicate":"flags.0","description":"Message gradient color (top), RGB24 format"},{"name":"messageBottomColor","type":"number","optional":true,"predicate":"flags.0","description":"Message gradient color (bottom), RGB24 format"},{"name":"wallpaper","type":"InputWallPaper","optional":true,"predicate":"flags.1","description":"Wallpaper"},{"name":"wallpaperSettings","type":"WallPaperSettings","optional":true,"predicate":"flags.1","description":"Wallpaper settings"}],"description":"Theme settings"},{"name":"themeSettings","id":2618595402,"type":"ThemeSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"baseTheme","type":"BaseTheme","description":"Base theme"},{"name":"accentColor","type":"number","description":"Accent color, RGB24 format"},{"name":"messageTopColor","type":"number","optional":true,"predicate":"flags.0","description":"Message gradient color (top), RGB24 format"},{"name":"messageBottomColor","type":"number","optional":true,"predicate":"flags.0","description":"Message gradient color (bottom), RGB24 format"},{"name":"wallpaper","type":"WallPaper","optional":true,"predicate":"flags.1","description":"Wallpaper"}],"description":"Theme settings"},{"name":"webPageAttributeTheme","id":1421174295,"type":"WebPageAttribute","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"documents","type":"Document[]","optional":true,"predicate":"flags.0","description":"Theme files"},{"name":"settings","type":"ThemeSettings","optional":true,"predicate":"flags.1","description":"Theme settings"}],"description":"Page theme"},{"name":"messageUserVote","id":2727236953,"type":"MessageUserVote","arguments":[{"name":"userId","type":"number","description":"User ID"},{"name":"option","type":"Buffer","description":"The option chosen by the user"},{"name":"date","type":"number","description":"When did the user cast the vote"}],"description":"How a user voted in a poll"},{"name":"messageUserVoteInputOption","id":909603888,"type":"MessageUserVote","arguments":[{"name":"userId","type":"number","description":"The user that voted for the queried option"},{"name":"date","type":"number","description":"When did the user cast the vote"}],"description":"How a user voted in a poll (reduced constructor, returned if an option was provided to {@link messages.getPollVotes})"},{"name":"messageUserVoteMultiple","id":244310238,"type":"MessageUserVote","arguments":[{"name":"userId","type":"number","description":"User ID"},{"name":"options","type":"Buffer[]","description":"Options chosen by the user"},{"name":"date","type":"number","description":"When did the user cast their votes"}],"description":"How a user voted in a multiple-choice poll"},{"name":"bankCardOpenUrl","id":4117234314,"type":"BankCardOpenUrl","arguments":[{"name":"url","type":"string","description":"Info URL"},{"name":"name","type":"string","description":"Bank name"}],"description":"Credit card info URL provided by the bank"},{"name":"dialogFilter","id":1949890536,"type":"DialogFilter","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"contacts","type":"true","optional":true,"predicate":"flags.0","description":"Whether to include all contacts in this folder"},{"name":"nonContacts","type":"true","optional":true,"predicate":"flags.1","description":"Whether to include all non-contacts in this folder"},{"name":"groups","type":"true","optional":true,"predicate":"flags.2","description":"Whether to include all groups in this folder"},{"name":"broadcasts","type":"true","optional":true,"predicate":"flags.3","description":"Whether to include all channels in this folder"},{"name":"bots","type":"true","optional":true,"predicate":"flags.4","description":"Whether to include all bots in this folder"},{"name":"excludeMuted","type":"true","optional":true,"predicate":"flags.11","description":"Whether to exclude muted chats from this folder"},{"name":"excludeRead","type":"true","optional":true,"predicate":"flags.12","description":"Whether to exclude read chats from this folder"},{"name":"excludeArchived","type":"true","optional":true,"predicate":"flags.13","description":"Whether to exclude archived chats from this folder"},{"name":"id","type":"number","description":"Folder ID"},{"name":"title","type":"string","description":"Folder name"},{"name":"emoticon","type":"string","optional":true,"predicate":"flags.25","description":"Folder emoticon"},{"name":"pinnedPeers","type":"InputPeer[]","description":"Pinned chats, folders can have unlimited pinned chats"},{"name":"includePeers","type":"InputPeer[]","description":"Include the following chats in this folder"},{"name":"excludePeers","type":"InputPeer[]","description":"Exclude the following chats from this folder"}],"description":"Dialog filter AKA folder"},{"name":"dialogFilterSuggested","id":2004110666,"type":"DialogFilterSuggested","arguments":[{"name":"filter","type":"DialogFilter","description":"Folder info"},{"name":"description","type":"string","description":"Folder description"}],"description":"Suggested folders"},{"name":"statsDateRangeDays","id":3057118639,"type":"StatsDateRangeDays","arguments":[{"name":"minDate","type":"number","description":"Initial date"},{"name":"maxDate","type":"number","description":"Final date"}],"description":"Channel statistics date range"},{"name":"statsAbsValueAndPrev","id":3410210014,"type":"StatsAbsValueAndPrev","arguments":[{"name":"current","type":"Double","description":"Current value"},{"name":"previous","type":"Double","description":"Previous value"}],"description":"Statistics value couple; intial and final value for period of time currently in consideration"},{"name":"statsPercentValue","id":3419287520,"type":"StatsPercentValue","arguments":[{"name":"part","type":"Double","description":"Partial value"},{"name":"total","type":"Double","description":"Total value"}],"description":"Channel statistics percentage.
\nCompute the percentage simply by doing part * total / 100"},{"name":"statsGraphAsync","id":1244130093,"type":"StatsGraph","arguments":[{"name":"token","type":"string","description":"Token to use for fetching the async graph"}],"description":"This channel statistics graph must be generated asynchronously using {@link stats.loadAsyncGraph} to reduce server load"},{"name":"statsGraphError","id":3202127906,"type":"StatsGraph","arguments":[{"name":"error","type":"string","description":"The error"}],"description":"An error occurred while generating the statistics graph"},{"name":"statsGraph","id":2393138358,"type":"StatsGraph","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"json","type":"DataJSON","description":"Statistics data"},{"name":"zoomToken","type":"string","optional":true,"predicate":"flags.0","description":"Zoom token"}],"description":"Channel statistics graph"},{"name":"messageInteractionCounters","id":2907687357,"type":"MessageInteractionCounters","arguments":[{"name":"msgId","type":"number","description":"Message ID"},{"name":"views","type":"number","description":"Views"},{"name":"forwards","type":"number","description":"Number of times this message was forwarded"}],"description":"Message interaction counters"},{"name":"videoSize","id":3727929492,"type":"VideoSize","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"type","type":"string","description":"u for animated profile pictures, and v for trimmed and downscaled video previews"},{"name":"w","type":"number","description":"Video width"},{"name":"h","type":"number","description":"Video height"},{"name":"size","type":"number","description":"File size"},{"name":"videoStartTs","type":"Double","optional":true,"predicate":"flags.0","description":"Timestamp that should be shown as static preview to the user (seconds)"}],"description":"Animated profile picture in MPEG4 format"},{"name":"statsGroupTopPoster","id":418631927,"type":"StatsGroupTopPoster","arguments":[{"name":"userId","type":"number","description":"User ID"},{"name":"messages","type":"number","description":"Number of messages for statistics period in consideration"},{"name":"avgChars","type":"number","description":"Average number of characters per message"}],"description":"Information about an active user in a supergroup"},{"name":"statsGroupTopAdmin","id":1611985938,"type":"StatsGroupTopAdmin","arguments":[{"name":"userId","type":"number","description":"User ID"},{"name":"deleted","type":"number","description":"Number of deleted messages for statistics period in consideration"},{"name":"kicked","type":"number","description":"Number of kicked users for statistics period in consideration"},{"name":"banned","type":"number","description":"Number of banned users for statistics period in consideration"}],"description":"Information about an active admin in a supergroup"},{"name":"statsGroupTopInviter","id":831924812,"type":"StatsGroupTopInviter","arguments":[{"name":"userId","type":"number","description":"User ID"},{"name":"invitations","type":"number","description":"Number of invitations for statistics period in consideration"}],"description":"Information about an active supergroup inviter"},{"name":"globalPrivacySettings","id":3198350372,"type":"GlobalPrivacySettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"archiveAndMuteNewNoncontactPeers","type":"boolean","optional":true,"predicate":"flags.0","description":"Whether to archive and mute new chats from non-contacts"}],"description":"Global privacy settings"},{"name":"messageViews","id":1163625789,"type":"MessageViews","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"views","type":"number","optional":true,"predicate":"flags.0","description":"Viewcount of message"},{"name":"forwards","type":"number","optional":true,"predicate":"flags.1","description":"Forward count of message"},{"name":"replies","type":"MessageReplies","optional":true,"predicate":"flags.2","description":"Reply and thread information of message"}],"description":"View, forward counter + info about replies of a specific message"},{"name":"messageReplyHeader","id":2799007587,"type":"MessageReplyHeader","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"replyToMsgId","type":"number","description":"ID of message to which this message is replying"},{"name":"replyToPeerId","type":"Peer","optional":true,"predicate":"flags.0","description":"For replies sent in channel discussion threads of which the current user is not a member, the discussion group ID"},{"name":"replyToTopId","type":"number","optional":true,"predicate":"flags.1","description":"ID of the message that started this message thread"}],"description":"Message replies and thread information"},{"name":"messageReplies","id":1093204652,"type":"MessageReplies","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"comments","type":"true","optional":true,"predicate":"flags.0","description":"Whether this constructor contains information about the comment section of a channel post, or a simple message thread"},{"name":"replies","type":"number","description":"Contains the total number of replies in this thread or comment section."},{"name":"repliesPts","type":"number","description":"PTS of the message that started this thread."},{"name":"recentRepliers","type":"Peer[]","optional":true,"predicate":"flags.1","description":"For channel post comments, contains information about the last few comment posters for a specific thread, to show a small list of commenter profile pictures in client previews."},{"name":"channelId","type":"number","optional":true,"predicate":"flags.0","description":"For channel post comments, contains the ID of the associated discussion supergroup"},{"name":"maxId","type":"number","optional":true,"predicate":"flags.2","description":"ID of the latest message in this thread or comment section."},{"name":"readMaxId","type":"number","optional":true,"predicate":"flags.3","description":"Contains the ID of the latest read message in this thread or comment section."}],"description":"Info about the comment section of a channel post, or a simple message thread"},{"name":"peerBlocked","id":3908927508,"type":"PeerBlocked","arguments":[{"name":"peerId","type":"Peer","description":"Peer ID"},{"name":"date","type":"number","description":"When was the peer blocked"}],"description":"Information about a blocked peer"},{"name":"groupCallDiscarded","id":2004925620,"type":"GroupCall","arguments":[{"name":"id","type":"Long"},{"name":"accessHash","type":"Long"},{"name":"duration","type":"number"}]},{"name":"groupCall","id":1698544301,"type":"GroupCall","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"joinMuted","type":"true","optional":true,"predicate":"flags.1"},{"name":"canChangeJoinMuted","type":"true","optional":true,"predicate":"flags.2"},{"name":"joinDateAsc","type":"true","optional":true,"predicate":"flags.6"},{"name":"scheduleStartSubscribed","type":"true","optional":true,"predicate":"flags.8"},{"name":"canStartVideo","type":"true","optional":true,"predicate":"flags.9"},{"name":"id","type":"Long"},{"name":"accessHash","type":"Long"},{"name":"participantsCount","type":"number"},{"name":"title","type":"string","optional":true,"predicate":"flags.3"},{"name":"streamDcId","type":"number","optional":true,"predicate":"flags.4"},{"name":"recordStartDate","type":"number","optional":true,"predicate":"flags.5"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.7"},{"name":"version","type":"number"}]},{"name":"inputGroupCall","id":3635053583,"type":"InputGroupCall","arguments":[{"name":"id","type":"Long"},{"name":"accessHash","type":"Long"}]},{"name":"groupCallParticipant","id":3953538814,"type":"GroupCallParticipant","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"muted","type":"true","optional":true,"predicate":"flags.0"},{"name":"left","type":"true","optional":true,"predicate":"flags.1"},{"name":"canSelfUnmute","type":"true","optional":true,"predicate":"flags.2"},{"name":"justJoined","type":"true","optional":true,"predicate":"flags.4"},{"name":"versioned","type":"true","optional":true,"predicate":"flags.5"},{"name":"min","type":"true","optional":true,"predicate":"flags.8"},{"name":"mutedByYou","type":"true","optional":true,"predicate":"flags.9"},{"name":"volumeByAdmin","type":"true","optional":true,"predicate":"flags.10"},{"name":"self","type":"true","optional":true,"predicate":"flags.12"},{"name":"videoJoined","type":"true","optional":true,"predicate":"flags.15"},{"name":"peer","type":"Peer"},{"name":"date","type":"number"},{"name":"activeDate","type":"number","optional":true,"predicate":"flags.3"},{"name":"source","type":"number"},{"name":"volume","type":"number","optional":true,"predicate":"flags.7"},{"name":"about","type":"string","optional":true,"predicate":"flags.11"},{"name":"raiseHandRating","type":"Long","optional":true,"predicate":"flags.13"},{"name":"video","type":"GroupCallParticipantVideo","optional":true,"predicate":"flags.6"},{"name":"presentation","type":"GroupCallParticipantVideo","optional":true,"predicate":"flags.14"}]},{"name":"inlineQueryPeerTypeSameBotPM","id":813821341,"type":"InlineQueryPeerType","arguments":[]},{"name":"inlineQueryPeerTypePM","id":2201751468,"type":"InlineQueryPeerType","arguments":[]},{"name":"inlineQueryPeerTypeChat","id":3613836554,"type":"InlineQueryPeerType","arguments":[]},{"name":"inlineQueryPeerTypeMegagroup","id":1589952067,"type":"InlineQueryPeerType","arguments":[]},{"name":"inlineQueryPeerTypeBroadcast","id":1664413338,"type":"InlineQueryPeerType","arguments":[]},{"name":"chatInviteImporter","id":507405952,"type":"ChatInviteImporter","arguments":[{"name":"userId","type":"number"},{"name":"date","type":"number"}]},{"name":"chatAdminWithInvites","id":3755094799,"type":"ChatAdminWithInvites","arguments":[{"name":"adminId","type":"number"},{"name":"invitesCount","type":"number"},{"name":"revokedInvitesCount","type":"number"}]},{"name":"groupCallParticipantVideoSourceGroup","id":3702593719,"type":"GroupCallParticipantVideoSourceGroup","arguments":[{"name":"semantics","type":"string"},{"name":"sources","type":"number[]"}]},{"name":"groupCallParticipantVideo","id":2028213859,"type":"GroupCallParticipantVideo","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"paused","type":"true","optional":true,"predicate":"flags.0"},{"name":"endpoint","type":"string"},{"name":"sourceGroups","type":"GroupCallParticipantVideoSourceGroup[]"}]},{"name":"botCommandScopeDefault","id":795652779,"type":"BotCommandScope","arguments":[]},{"name":"botCommandScopeUsers","id":1011811544,"type":"BotCommandScope","arguments":[]},{"name":"botCommandScopeChats","id":1877059713,"type":"BotCommandScope","arguments":[]},{"name":"botCommandScopeChatAdmins","id":3114950762,"type":"BotCommandScope","arguments":[]},{"name":"botCommandScopePeer","id":3684534653,"type":"BotCommandScope","arguments":[{"name":"peer","type":"InputPeer"}]},{"name":"botCommandScopePeerAdmins","id":1071145937,"type":"BotCommandScope","arguments":[{"name":"peer","type":"InputPeer"}]},{"name":"botCommandScopePeerUser","id":169026035,"type":"BotCommandScope","arguments":[{"name":"peer","type":"InputPeer"},{"name":"userId","type":"InputUser"}]}],"methods":[{"name":"invokeAfterMsg","id":3416209197,"returns":"X","arguments":[{"name":"msgId","type":"Long","description":"Message identifier on which a current query depends"},{"name":"query","type":"X","description":"The query itself"}],"generics":[{"name":"X","super":"any"}],"description":"Invokes a query after successfull completion of one of the previous queries.","available":"both"},{"name":"invokeAfterMsgs","id":1036301552,"returns":"X","arguments":[{"name":"msgIds","type":"Long[]","description":"List of messages on which a current query depends"},{"name":"query","type":"X","description":"The query itself"}],"generics":[{"name":"X","super":"any"}],"description":"Invokes a query after a successfull completion of previous queries","available":"both"},{"name":"initConnection","id":3251461801,"returns":"X","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"apiId","type":"number","description":"Application identifier (see. App configuration)"},{"name":"deviceModel","type":"string","description":"Device model"},{"name":"systemVersion","type":"string","description":"Operation system version"},{"name":"appVersion","type":"string","description":"Application version"},{"name":"systemLangCode","type":"string","description":"Code for the language used on the device's OS, ISO 639-1 standard"},{"name":"langPack","type":"string","description":"Language pack to use"},{"name":"langCode","type":"string","description":"Code for the language used on the client, ISO 639-1 standard"},{"name":"proxy","type":"InputClientProxy","optional":true,"predicate":"flags.0","description":"Info about an MTProto proxy"},{"name":"params","type":"JSONValue","optional":true,"predicate":"flags.1","description":"Additional initConnection parameters.
For now, only the tz_offset field is supported, for specifying timezone offset in seconds."},{"name":"query","type":"X","description":"The query itself"}],"generics":[{"name":"X","super":"any"}],"description":"Initialize connection","throws":[{"code":400,"name":"CONNECTION_LAYER_INVALID","description":"Layer invalid"}],"available":"both"},{"name":"invokeWithLayer","id":3667594509,"returns":"X","arguments":[{"name":"layer","type":"number","description":"The layer to use"},{"name":"query","type":"X","description":"The query"}],"generics":[{"name":"X","super":"any"}],"description":"Invoke the specified query using the specified API layer","throws":[{"code":400,"name":"AUTH_BYTES_INVALID","description":"The provided authorization is invalid"},{"code":400,"name":"CDN_METHOD_INVALID","description":"You can't call this method in a CDN DC"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"CONNECTION_API_ID_INVALID","description":"The provided API id is invalid"},{"code":400,"name":"CONNECTION_DEVICE_MODEL_EMPTY","description":"Device model empty"},{"code":400,"name":"CONNECTION_LANG_PACK_INVALID","description":"Language pack invalid"},{"code":400,"name":"CONNECTION_NOT_INITED","description":"Connection not initialized"},{"code":400,"name":"CONNECTION_SYSTEM_EMPTY","description":"Connection system empty"},{"code":400,"name":"INPUT_LAYER_INVALID","description":"The provided layer is invalid"},{"code":400,"name":"INVITE_HASH_EXPIRED","description":"The invite link has expired"}],"available":"both"},{"name":"invokeWithoutUpdates","id":3214170551,"returns":"X","arguments":[{"name":"query","type":"X","description":"The query"}],"generics":[{"name":"X","super":"any"}],"description":"Invoke a request without subscribing the used connection for updates (this is enabled by default for file queries).","available":"both"},{"name":"invokeWithMessagesRange","id":911373810,"returns":"X","arguments":[{"name":"range","type":"MessageRange","description":"Message range"},{"name":"query","type":"X","description":"Query"}],"generics":[{"name":"X","super":"any"}],"description":"Invoke with the given message range","available":"both"},{"name":"invokeWithTakeout","id":2896821550,"returns":"X","arguments":[{"name":"takeoutId","type":"Long","description":"Takeout session ID"},{"name":"query","type":"X","description":"Query"}],"generics":[{"name":"X","super":"any"}],"description":"Invoke a method within a takeout session","throws":[{"code":400,"name":"INPUT_METHOD_INVALID_1400137063_X","description":"Invalid method"}],"available":"both"}],"unions":[{"type":"Error","subtypes":["error"],"description":"An object containing a query error."},{"type":"IpPort","subtypes":["ipPort","ipPortSecret"]},{"type":"AccessPointRule","subtypes":["accessPointRule"]},{"type":"InputFileLocation","subtypes":["inputPeerPhotoFileLocationLegacy","inputStickerSetThumbLegacy","inputFileLocation","inputEncryptedFileLocation","inputDocumentFileLocation","inputSecureFileLocation","inputTakeoutFileLocation","inputPhotoFileLocation","inputPhotoLegacyFileLocation","inputPeerPhotoFileLocation","inputStickerSetThumb","inputGroupCallStream"],"description":"Defines the location of a file for download."},{"type":"InputPeer","subtypes":["inputPeerEmpty","inputPeerSelf","inputPeerChat","inputPeerUser","inputPeerChannel","inputPeerUserFromMessage","inputPeerChannelFromMessage"],"description":"Peer"},{"type":"InputUser","subtypes":["inputUserEmpty","inputUserSelf","inputUser","inputUserFromMessage"],"description":"Defines a user for subsequent interaction."},{"type":"InputContact","subtypes":["inputPhoneContact"],"description":"Object defines a contact from the user's phonebook."},{"type":"InputFile","subtypes":["inputFile","inputFileBig"],"description":"Defines a file uploaded by the client."},{"type":"InputMedia","subtypes":["inputMediaEmpty","inputMediaUploadedPhoto","inputMediaPhoto","inputMediaGeoPoint","inputMediaContact","inputMediaUploadedDocument","inputMediaDocument","inputMediaVenue","inputMediaPhotoExternal","inputMediaDocumentExternal","inputMediaGame","inputMediaInvoice","inputMediaGeoLive","inputMediaPoll","inputMediaDice"],"description":"Defines media content of a message."},{"type":"InputChatPhoto","subtypes":["inputChatPhotoEmpty","inputChatUploadedPhoto","inputChatPhoto"],"description":"Defines a new group profile photo."},{"type":"InputGeoPoint","subtypes":["inputGeoPointEmpty","inputGeoPoint"],"description":"Defines a GeoPoint."},{"type":"InputPhoto","subtypes":["inputPhotoEmpty","inputPhoto"],"description":"Defines a photo for further interaction."},{"type":"Peer","subtypes":["peerUser","peerChat","peerChannel"],"description":"Chat partner or group."},{"type":"User","subtypes":["userEmpty","user"],"description":"Object defines a user."},{"type":"UserProfilePhoto","subtypes":["userProfilePhotoEmpty","userProfilePhoto"],"description":"Object contains info on the user's profile photo."},{"type":"UserStatus","subtypes":["userStatusEmpty","userStatusOnline","userStatusOffline","userStatusRecently","userStatusLastWeek","userStatusLastMonth"],"description":"User online status"},{"type":"Chat","subtypes":["chatEmpty","chat","chatForbidden","channel","channelForbidden"],"description":"Object defines a group."},{"type":"ChatFull","subtypes":["chatFull","channelFull"],"description":"Object containing detailed group info"},{"type":"ChatParticipant","subtypes":["chatParticipant","chatParticipantCreator","chatParticipantAdmin"],"description":"Details of a group member."},{"type":"ChatParticipants","subtypes":["chatParticipantsForbidden","chatParticipants"],"description":"Object contains info on group members."},{"type":"ChatPhoto","subtypes":["chatPhotoEmpty","chatPhoto"],"description":"Object defines a group profile photo."},{"type":"Message","subtypes":["messageEmpty","message","messageService"],"description":"Object describing a message."},{"type":"MessageMedia","subtypes":["messageMediaEmpty","messageMediaPhoto","messageMediaGeo","messageMediaContact","messageMediaUnsupported","messageMediaDocument","messageMediaWebPage","messageMediaVenue","messageMediaGame","messageMediaInvoice","messageMediaGeoLive","messageMediaPoll","messageMediaDice"],"description":"Media"},{"type":"MessageAction","subtypes":["messageActionEmpty","messageActionChatCreate","messageActionChatEditTitle","messageActionChatEditPhoto","messageActionChatDeletePhoto","messageActionChatAddUser","messageActionChatDeleteUser","messageActionChatJoinedByLink","messageActionChannelCreate","messageActionChatMigrateTo","messageActionChannelMigrateFrom","messageActionPinMessage","messageActionHistoryClear","messageActionGameScore","messageActionPaymentSentMe","messageActionPaymentSent","messageActionPhoneCall","messageActionScreenshotTaken","messageActionCustomAction","messageActionBotAllowed","messageActionSecureValuesSentMe","messageActionSecureValuesSent","messageActionContactSignUp","messageActionGeoProximityReached","messageActionGroupCall","messageActionInviteToGroupCall","messageActionSetMessagesTTL","messageActionGroupCallScheduled"],"description":"Object describing actions connected to a service message."},{"type":"Dialog","subtypes":["dialog","dialogFolder"],"description":"Chat info."},{"type":"Photo","subtypes":["photoEmpty","photo"],"description":"Object describes a photo."},{"type":"PhotoSize","subtypes":["photoSizeEmpty","photoSize","photoCachedSize","photoStrippedSize","photoSizeProgressive","photoPathSize"],"description":"Location of a certain size of a picture"},{"type":"GeoPoint","subtypes":["geoPointEmpty","geoPoint"],"description":"Object defines a GeoPoint."},{"type":"InputNotifyPeer","subtypes":["inputNotifyPeer","inputNotifyUsers","inputNotifyChats","inputNotifyBroadcasts"],"description":"Object defines the set of users and/or groups that generate notifications."},{"type":"InputPeerNotifySettings","subtypes":["inputPeerNotifySettings"],"description":"Notifications settings."},{"type":"PeerNotifySettings","subtypes":["peerNotifySettings"],"description":"Notification settings."},{"type":"PeerSettings","subtypes":["peerSettings"],"description":"Peer settings"},{"type":"WallPaper","subtypes":["wallPaper","wallPaperNoFile"],"description":"Object contains info on a wallpaper."},{"type":"ReportReason","subtypes":["inputReportReasonSpam","inputReportReasonViolence","inputReportReasonPornography","inputReportReasonChildAbuse","inputReportReasonOther","inputReportReasonCopyright","inputReportReasonGeoIrrelevant","inputReportReasonFake"],"description":"Report reason"},{"type":"UserFull","subtypes":["userFull"],"description":"Object contains extended user info."},{"type":"Contact","subtypes":["contact"],"description":"A contact of the current user."},{"type":"ImportedContact","subtypes":["importedContact"],"description":"Object contains info on a successfully imported contact."},{"type":"ContactStatus","subtypes":["contactStatus"],"description":"Contact status: online / offline."},{"type":"MessagesFilter","subtypes":["inputMessagesFilterEmpty","inputMessagesFilterPhotos","inputMessagesFilterVideo","inputMessagesFilterPhotoVideo","inputMessagesFilterDocument","inputMessagesFilterUrl","inputMessagesFilterGif","inputMessagesFilterVoice","inputMessagesFilterMusic","inputMessagesFilterChatPhotos","inputMessagesFilterPhoneCalls","inputMessagesFilterRoundVoice","inputMessagesFilterRoundVideo","inputMessagesFilterMyMentions","inputMessagesFilterGeo","inputMessagesFilterContacts","inputMessagesFilterPinned"],"description":"Object describes message filter."},{"type":"Update","subtypes":["updateNewMessage","updateMessageID","updateDeleteMessages","updateUserTyping","updateChatUserTyping","updateChatParticipants","updateUserStatus","updateUserName","updateUserPhoto","updateNewEncryptedMessage","updateEncryptedChatTyping","updateEncryption","updateEncryptedMessagesRead","updateChatParticipantAdd","updateChatParticipantDelete","updateDcOptions","updateNotifySettings","updateServiceNotification","updatePrivacy","updateUserPhone","updateReadHistoryInbox","updateReadHistoryOutbox","updateWebPage","updateReadMessagesContents","updateChannelTooLong","updateChannel","updateNewChannelMessage","updateReadChannelInbox","updateDeleteChannelMessages","updateChannelMessageViews","updateChatParticipantAdmin","updateNewStickerSet","updateStickerSetsOrder","updateStickerSets","updateSavedGifs","updateBotInlineQuery","updateBotInlineSend","updateEditChannelMessage","updateBotCallbackQuery","updateEditMessage","updateInlineBotCallbackQuery","updateReadChannelOutbox","updateDraftMessage","updateReadFeaturedStickers","updateRecentStickers","updateConfig","updatePtsChanged","updateChannelWebPage","updateDialogPinned","updatePinnedDialogs","updateBotWebhookJSON","updateBotWebhookJSONQuery","updateBotShippingQuery","updateBotPrecheckoutQuery","updatePhoneCall","updateLangPackTooLong","updateLangPack","updateFavedStickers","updateChannelReadMessagesContents","updateContactsReset","updateChannelAvailableMessages","updateDialogUnreadMark","updateMessagePoll","updateChatDefaultBannedRights","updateFolderPeers","updatePeerSettings","updatePeerLocated","updateNewScheduledMessage","updateDeleteScheduledMessages","updateTheme","updateGeoLiveViewed","updateLoginToken","updateMessagePollVote","updateDialogFilter","updateDialogFilterOrder","updateDialogFilters","updatePhoneCallSignalingData","updateChannelMessageForwards","updateReadChannelDiscussionInbox","updateReadChannelDiscussionOutbox","updatePeerBlocked","updateChannelUserTyping","updatePinnedMessages","updatePinnedChannelMessages","updateChat","updateGroupCallParticipants","updateGroupCall","updatePeerHistoryTTL","updateChatParticipant","updateChannelParticipant","updateBotStopped","updateGroupCallConnection","updateBotCommands"],"description":"Object contains info on events occured."},{"type":"Updates","subtypes":["updatesTooLong","updateShortMessage","updateShortChatMessage","updateShort","updatesCombined","updates","updateShortSentMessage"],"description":"Object which is perceived by the client without a call on its part when an event occurs."},{"type":"DcOption","subtypes":["dcOption"],"description":"Information for connection to data centre."},{"type":"Config","subtypes":["config"],"description":"Object contains info on API configuring parameters."},{"type":"NearestDc","subtypes":["nearestDc"],"description":"Object contains info on nearest data centre."},{"type":"EncryptedChat","subtypes":["encryptedChatEmpty","encryptedChatWaiting","encryptedChatRequested","encryptedChat","encryptedChatDiscarded"],"description":"Object contains info on an encrypted chat."},{"type":"InputEncryptedChat","subtypes":["inputEncryptedChat"],"description":"Object sets an encrypted chat ID."},{"type":"EncryptedFile","subtypes":["encryptedFileEmpty","encryptedFile"],"description":"Seta an encrypted file."},{"type":"InputEncryptedFile","subtypes":["inputEncryptedFileEmpty","inputEncryptedFileUploaded","inputEncryptedFile","inputEncryptedFileBigUploaded"],"description":"Object sets encrypted file for attachment"},{"type":"EncryptedMessage","subtypes":["encryptedMessage","encryptedMessageService"],"description":"Object contains encrypted message."},{"type":"InputDocument","subtypes":["inputDocumentEmpty","inputDocument"],"description":"Defines a document for subsequent interaction."},{"type":"Document","subtypes":["documentEmpty","document"],"description":"A document."},{"type":"NotifyPeer","subtypes":["notifyPeer","notifyUsers","notifyChats","notifyBroadcasts"],"description":"Object defines the set of users and/or groups that generate notifications."},{"type":"SendMessageAction","subtypes":["sendMessageTypingAction","sendMessageCancelAction","sendMessageRecordVideoAction","sendMessageUploadVideoAction","sendMessageRecordAudioAction","sendMessageUploadAudioAction","sendMessageUploadPhotoAction","sendMessageUploadDocumentAction","sendMessageGeoLocationAction","sendMessageChooseContactAction","sendMessageGamePlayAction","sendMessageRecordRoundAction","sendMessageUploadRoundAction","speakingInGroupCallAction","sendMessageHistoryImportAction"],"description":"User actions. Use this to provide users with detailed info about their chat partners' actions: typing or sending attachments of all kinds."},{"type":"InputPrivacyKey","subtypes":["inputPrivacyKeyStatusTimestamp","inputPrivacyKeyChatInvite","inputPrivacyKeyPhoneCall","inputPrivacyKeyPhoneP2P","inputPrivacyKeyForwards","inputPrivacyKeyProfilePhoto","inputPrivacyKeyPhoneNumber","inputPrivacyKeyAddedByPhone"],"description":"Privacy key"},{"type":"PrivacyKey","subtypes":["privacyKeyStatusTimestamp","privacyKeyChatInvite","privacyKeyPhoneCall","privacyKeyPhoneP2P","privacyKeyForwards","privacyKeyProfilePhoto","privacyKeyPhoneNumber","privacyKeyAddedByPhone"],"description":"Privacy key"},{"type":"InputPrivacyRule","subtypes":["inputPrivacyValueAllowContacts","inputPrivacyValueAllowAll","inputPrivacyValueAllowUsers","inputPrivacyValueDisallowContacts","inputPrivacyValueDisallowAll","inputPrivacyValueDisallowUsers","inputPrivacyValueAllowChatParticipants","inputPrivacyValueDisallowChatParticipants"],"description":"Privacy rule"},{"type":"PrivacyRule","subtypes":["privacyValueAllowContacts","privacyValueAllowAll","privacyValueAllowUsers","privacyValueDisallowContacts","privacyValueDisallowAll","privacyValueDisallowUsers","privacyValueAllowChatParticipants","privacyValueDisallowChatParticipants"],"description":"Privacy rule"},{"type":"AccountDaysTTL","subtypes":["accountDaysTTL"],"description":"Time-to-live of current account"},{"type":"DocumentAttribute","subtypes":["documentAttributeImageSize","documentAttributeAnimated","documentAttributeSticker","documentAttributeVideo","documentAttributeAudio","documentAttributeFilename","documentAttributeHasStickers"],"description":"Various possible attributes of a document (used to define if it's a sticker, a GIF, a video, a mask sticker, an image, an audio, and so on)"},{"type":"StickerPack","subtypes":["stickerPack"],"description":"Stickerpack"},{"type":"WebPage","subtypes":["webPageEmpty","webPagePending","webPage","webPageNotModified"],"description":"Instant View webpage preview"},{"type":"Authorization","subtypes":["authorization"],"description":"Represents a logged-in session"},{"type":"ReceivedNotifyMessage","subtypes":["receivedNotifyMessage"],"description":"Confirmation of message receipt"},{"type":"ExportedChatInvite","subtypes":["chatInviteExported"],"description":"Exported chat invite"},{"type":"ChatInvite","subtypes":["chatInviteAlready","chatInvite","chatInvitePeek"],"description":"Chat invite"},{"type":"InputStickerSet","subtypes":["inputStickerSetEmpty","inputStickerSetID","inputStickerSetShortName","inputStickerSetAnimatedEmoji","inputStickerSetDice"],"description":"Represents a stickerset"},{"type":"StickerSet","subtypes":["stickerSet"],"description":"Represents a stickerset (stickerpack)"},{"type":"BotCommand","subtypes":["botCommand"],"description":"Describes a bot command that can be used in a chat"},{"type":"BotInfo","subtypes":["botInfo"],"description":"Info about bots (available bot commands, etc)"},{"type":"KeyboardButton","subtypes":["keyboardButton","keyboardButtonUrl","keyboardButtonCallback","keyboardButtonRequestPhone","keyboardButtonRequestGeoLocation","keyboardButtonSwitchInline","keyboardButtonGame","keyboardButtonBuy","keyboardButtonUrlAuth","inputKeyboardButtonUrlAuth","keyboardButtonRequestPoll"],"description":"Bot or inline keyboard buttons"},{"type":"KeyboardButtonRow","subtypes":["keyboardButtonRow"],"description":"Bot or inline keyboard rows"},{"type":"ReplyMarkup","subtypes":["replyKeyboardHide","replyKeyboardForceReply","replyKeyboardMarkup","replyInlineMarkup"],"description":"Reply markup for bot and inline keyboards"},{"type":"MessageEntity","subtypes":["messageEntityUnknown","messageEntityMention","messageEntityHashtag","messageEntityBotCommand","messageEntityUrl","messageEntityEmail","messageEntityBold","messageEntityItalic","messageEntityCode","messageEntityPre","messageEntityTextUrl","messageEntityMentionName","inputMessageEntityMentionName","messageEntityPhone","messageEntityCashtag","messageEntityUnderline","messageEntityStrike","messageEntityBlockquote","messageEntityBankCard"],"description":"Message entities, representing styled text in a message"},{"type":"InputChannel","subtypes":["inputChannelEmpty","inputChannel","inputChannelFromMessage"],"description":"Represents a channel"},{"type":"MessageRange","subtypes":["messageRange"],"description":"Indicates a range of chat messages"},{"type":"ChannelMessagesFilter","subtypes":["channelMessagesFilterEmpty","channelMessagesFilter"],"description":"Filter for fetching only certain types of channel messages"},{"type":"ChannelParticipant","subtypes":["channelParticipant","channelParticipantSelf","channelParticipantCreator","channelParticipantAdmin","channelParticipantBanned","channelParticipantLeft"],"description":"Channel participant"},{"type":"ChannelParticipantsFilter","subtypes":["channelParticipantsRecent","channelParticipantsAdmins","channelParticipantsKicked","channelParticipantsBots","channelParticipantsBanned","channelParticipantsSearch","channelParticipantsContacts","channelParticipantsMentions"],"description":"Filter for fetching channel participants"},{"type":"InputBotInlineMessage","subtypes":["inputBotInlineMessageMediaAuto","inputBotInlineMessageText","inputBotInlineMessageMediaGeo","inputBotInlineMessageMediaVenue","inputBotInlineMessageMediaContact","inputBotInlineMessageGame","inputBotInlineMessageMediaInvoice"],"description":"Represents a sent inline message from the perspective of a bot"},{"type":"InputBotInlineResult","subtypes":["inputBotInlineResult","inputBotInlineResultPhoto","inputBotInlineResultDocument","inputBotInlineResultGame"],"description":"Inline bot result"},{"type":"BotInlineMessage","subtypes":["botInlineMessageMediaAuto","botInlineMessageText","botInlineMessageMediaGeo","botInlineMessageMediaVenue","botInlineMessageMediaContact","botInlineMessageMediaInvoice"],"description":"Inline message"},{"type":"BotInlineResult","subtypes":["botInlineResult","botInlineMediaResult"],"description":"Results of an inline query"},{"type":"ExportedMessageLink","subtypes":["exportedMessageLink"],"description":"HTTP link and embed info of channel message"},{"type":"MessageFwdHeader","subtypes":["messageFwdHeader"],"description":"Info about a forwarded message"},{"type":"InputBotInlineMessageID","subtypes":["inputBotInlineMessageID"],"description":"Represents a sent inline message from the perspective of a bot"},{"type":"InlineBotSwitchPM","subtypes":["inlineBotSwitchPM"],"description":"The bot requested the user to message them in private"},{"type":"TopPeer","subtypes":["topPeer"],"description":"Top peer"},{"type":"TopPeerCategory","subtypes":["topPeerCategoryBotsPM","topPeerCategoryBotsInline","topPeerCategoryCorrespondents","topPeerCategoryGroups","topPeerCategoryChannels","topPeerCategoryPhoneCalls","topPeerCategoryForwardUsers","topPeerCategoryForwardChats"],"description":"Top peer category"},{"type":"TopPeerCategoryPeers","subtypes":["topPeerCategoryPeers"],"description":"Top peers by top peer category"},{"type":"DraftMessage","subtypes":["draftMessageEmpty","draftMessage"],"description":"Represents a message draft."},{"type":"StickerSetCovered","subtypes":["stickerSetCovered","stickerSetMultiCovered"],"description":"Stickerset, with a specific sticker as preview"},{"type":"MaskCoords","subtypes":["maskCoords"],"description":"Mask coordinates (if this is a mask sticker, attached to a photo)"},{"type":"InputStickeredMedia","subtypes":["inputStickeredMediaPhoto","inputStickeredMediaDocument"],"description":"Represents a media with attached stickers"},{"type":"Game","subtypes":["game"],"description":"Indicates an already sent game"},{"type":"InputGame","subtypes":["inputGameID","inputGameShortName"],"description":"A game to send"},{"type":"HighScore","subtypes":["highScore"],"description":"Game high score"},{"type":"RichText","subtypes":["textEmpty","textPlain","textBold","textItalic","textUnderline","textStrike","textFixed","textUrl","textEmail","textConcat","textSubscript","textSuperscript","textMarked","textPhone","textImage","textAnchor"],"description":"Rich text"},{"type":"PageBlock","subtypes":["pageBlockUnsupported","pageBlockTitle","pageBlockSubtitle","pageBlockAuthorDate","pageBlockHeader","pageBlockSubheader","pageBlockParagraph","pageBlockPreformatted","pageBlockFooter","pageBlockDivider","pageBlockAnchor","pageBlockList","pageBlockBlockquote","pageBlockPullquote","pageBlockPhoto","pageBlockVideo","pageBlockCover","pageBlockEmbed","pageBlockEmbedPost","pageBlockCollage","pageBlockSlideshow","pageBlockChannel","pageBlockAudio","pageBlockKicker","pageBlockTable","pageBlockOrderedList","pageBlockDetails","pageBlockRelatedArticles","pageBlockMap"],"description":"Represents an instant view page element"},{"type":"PhoneCallDiscardReason","subtypes":["phoneCallDiscardReasonMissed","phoneCallDiscardReasonDisconnect","phoneCallDiscardReasonHangup","phoneCallDiscardReasonBusy"],"description":"Why was the phone call discarded?"},{"type":"DataJSON","subtypes":["dataJSON"],"description":"Represent a JSON-encoded object"},{"type":"LabeledPrice","subtypes":["labeledPrice"],"description":"Labeled pricetag"},{"type":"Invoice","subtypes":["invoice"],"description":"Invoice"},{"type":"PaymentCharge","subtypes":["paymentCharge"],"description":"Charged payment"},{"type":"PostAddress","subtypes":["postAddress"],"description":"Shipping address"},{"type":"PaymentRequestedInfo","subtypes":["paymentRequestedInfo"],"description":"Requested payment info"},{"type":"PaymentSavedCredentials","subtypes":["paymentSavedCredentialsCard"],"description":"Saved payment credentials"},{"type":"WebDocument","subtypes":["webDocument","webDocumentNoProxy"],"description":"Remote document"},{"type":"InputWebDocument","subtypes":["inputWebDocument"],"description":"Specifies a document that will have to be downloaded from the URL by the telegram servers"},{"type":"InputWebFileLocation","subtypes":["inputWebFileLocation","inputWebFileGeoPointLocation"],"description":"Location of remote file"},{"type":"InputPaymentCredentials","subtypes":["inputPaymentCredentialsSaved","inputPaymentCredentials","inputPaymentCredentialsApplePay","inputPaymentCredentialsGooglePay"],"description":"Payment credentials"},{"type":"ShippingOption","subtypes":["shippingOption"],"description":"Shipping options"},{"type":"InputStickerSetItem","subtypes":["inputStickerSetItem"],"description":"Sticker"},{"type":"InputPhoneCall","subtypes":["inputPhoneCall"],"description":"Phone call"},{"type":"PhoneCall","subtypes":["phoneCallEmpty","phoneCallWaiting","phoneCallRequested","phoneCallAccepted","phoneCall","phoneCallDiscarded"],"description":"Phone call"},{"type":"PhoneConnection","subtypes":["phoneConnection","phoneConnectionWebrtc"],"description":"Phone call connection"},{"type":"PhoneCallProtocol","subtypes":["phoneCallProtocol"],"description":"Phone call protocol"},{"type":"CdnPublicKey","subtypes":["cdnPublicKey"],"description":"Public key to use only during handshakes to CDN DCs."},{"type":"CdnConfig","subtypes":["cdnConfig"],"description":"Configuration for CDN file downloads."},{"type":"LangPackString","subtypes":["langPackString","langPackStringPluralized","langPackStringDeleted"],"description":"Language pack string"},{"type":"LangPackDifference","subtypes":["langPackDifference"],"description":"Language pack changes"},{"type":"LangPackLanguage","subtypes":["langPackLanguage"],"description":"Language pack language"},{"type":"ChannelAdminLogEventAction","subtypes":["channelAdminLogEventActionChangeTitle","channelAdminLogEventActionChangeAbout","channelAdminLogEventActionChangeUsername","channelAdminLogEventActionChangePhoto","channelAdminLogEventActionToggleInvites","channelAdminLogEventActionToggleSignatures","channelAdminLogEventActionUpdatePinned","channelAdminLogEventActionEditMessage","channelAdminLogEventActionDeleteMessage","channelAdminLogEventActionParticipantJoin","channelAdminLogEventActionParticipantLeave","channelAdminLogEventActionParticipantInvite","channelAdminLogEventActionParticipantToggleBan","channelAdminLogEventActionParticipantToggleAdmin","channelAdminLogEventActionChangeStickerSet","channelAdminLogEventActionTogglePreHistoryHidden","channelAdminLogEventActionDefaultBannedRights","channelAdminLogEventActionStopPoll","channelAdminLogEventActionChangeLinkedChat","channelAdminLogEventActionChangeLocation","channelAdminLogEventActionToggleSlowMode","channelAdminLogEventActionStartGroupCall","channelAdminLogEventActionDiscardGroupCall","channelAdminLogEventActionParticipantMute","channelAdminLogEventActionParticipantUnmute","channelAdminLogEventActionToggleGroupCallSetting","channelAdminLogEventActionParticipantJoinByInvite","channelAdminLogEventActionExportedInviteDelete","channelAdminLogEventActionExportedInviteRevoke","channelAdminLogEventActionExportedInviteEdit","channelAdminLogEventActionParticipantVolume","channelAdminLogEventActionChangeHistoryTTL"],"description":"Channel admin log event"},{"type":"ChannelAdminLogEvent","subtypes":["channelAdminLogEvent"],"description":"An event in a channel admin log"},{"type":"ChannelAdminLogEventsFilter","subtypes":["channelAdminLogEventsFilter"],"description":"Filter for fetching events in the channel admin log"},{"type":"PopularContact","subtypes":["popularContact"],"description":"Popular contact"},{"type":"RecentMeUrl","subtypes":["recentMeUrlUnknown","recentMeUrlUser","recentMeUrlChat","recentMeUrlChatInvite","recentMeUrlStickerSet"],"description":"Recent t.me urls"},{"type":"InputSingleMedia","subtypes":["inputSingleMedia"],"description":"A single media in an album or grouped media sent with {@link messages.sendMultiMedia}."},{"type":"WebAuthorization","subtypes":["webAuthorization"],"description":"Web authorization"},{"type":"InputMessage","subtypes":["inputMessageID","inputMessageReplyTo","inputMessagePinned","inputMessageCallbackQuery"],"description":"A message"},{"type":"InputDialogPeer","subtypes":["inputDialogPeer","inputDialogPeerFolder"],"description":"Peer, or all peers in a certain folder"},{"type":"DialogPeer","subtypes":["dialogPeer","dialogPeerFolder"],"description":"Peer, or all peers in a folder"},{"type":"FileHash","subtypes":["fileHash"],"description":"Hash of an uploaded file, to be checked for validity after download"},{"type":"InputClientProxy","subtypes":["inputClientProxy"],"description":"Info about an MTProxy used to connect."},{"type":"InputSecureFile","subtypes":["inputSecureFileUploaded","inputSecureFile"],"description":"Secure passport file, for more info see the passport docs »"},{"type":"SecureFile","subtypes":["secureFileEmpty","secureFile"],"description":"Secure passport file, for more info see the passport docs »"},{"type":"SecureData","subtypes":["secureData"],"description":"Secure passport data, for more info see the passport docs »"},{"type":"SecurePlainData","subtypes":["securePlainPhone","securePlainEmail"],"description":"Plaintext verified passport data."},{"type":"SecureValueType","subtypes":["secureValueTypePersonalDetails","secureValueTypePassport","secureValueTypeDriverLicense","secureValueTypeIdentityCard","secureValueTypeInternalPassport","secureValueTypeAddress","secureValueTypeUtilityBill","secureValueTypeBankStatement","secureValueTypeRentalAgreement","secureValueTypePassportRegistration","secureValueTypeTemporaryRegistration","secureValueTypePhone","secureValueTypeEmail"],"description":"Secure value type"},{"type":"SecureValue","subtypes":["secureValue"],"description":"Secure tgpassport value"},{"type":"InputSecureValue","subtypes":["inputSecureValue"],"description":"Secure value, for more info see the passport docs »"},{"type":"SecureValueHash","subtypes":["secureValueHash"],"description":"Secure value hash"},{"type":"SecureValueError","subtypes":["secureValueErrorData","secureValueErrorFrontSide","secureValueErrorReverseSide","secureValueErrorSelfie","secureValueErrorFile","secureValueErrorFiles","secureValueError","secureValueErrorTranslationFile","secureValueErrorTranslationFiles"],"description":"Secure value error"},{"type":"SecureCredentialsEncrypted","subtypes":["secureCredentialsEncrypted"],"description":"Encrypted secure credentials"},{"type":"SavedContact","subtypes":["savedPhoneContact"],"description":"Saved contact"},{"type":"PasswordKdfAlgo","subtypes":["passwordKdfAlgoUnknown","passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow"],"description":"Key derivation function to use when generating the password hash for SRP two-factor authorization"},{"type":"SecurePasswordKdfAlgo","subtypes":["securePasswordKdfAlgoUnknown","securePasswordKdfAlgoPBKDF2HMACSHA512iter100000","securePasswordKdfAlgoSHA512"],"description":"KDF algorithm to use for computing telegram passport hash"},{"type":"SecureSecretSettings","subtypes":["secureSecretSettings"],"description":"Telegram passport settings"},{"type":"InputCheckPasswordSRP","subtypes":["inputCheckPasswordEmpty","inputCheckPasswordSRP"],"description":"Constructors for checking the validity of a 2FA SRP password"},{"type":"SecureRequiredType","subtypes":["secureRequiredType","secureRequiredTypeOneOf"],"description":"Required secure file type"},{"type":"InputAppEvent","subtypes":["inputAppEvent"],"description":"Object contains info about an event that occured in the application."},{"type":"JSONObjectValue","subtypes":["jsonObjectValue"],"description":"JSON key: value pair"},{"type":"JSONValue","subtypes":["jsonNull","jsonBool","jsonNumber","jsonString","jsonArray","jsonObject"],"description":"JSON value"},{"type":"PageTableCell","subtypes":["pageTableCell"],"description":"Represents a table in an instant view table"},{"type":"PageTableRow","subtypes":["pageTableRow"],"description":"Table row"},{"type":"PageCaption","subtypes":["pageCaption"],"description":"Page caption"},{"type":"PageListItem","subtypes":["pageListItemText","pageListItemBlocks"],"description":"Item in block list"},{"type":"PageListOrderedItem","subtypes":["pageListOrderedItemText","pageListOrderedItemBlocks"],"description":"Represents an instant view ordered list"},{"type":"PageRelatedArticle","subtypes":["pageRelatedArticle"],"description":"Related articles"},{"type":"Page","subtypes":["page"],"description":"Instant view page"},{"type":"PollAnswer","subtypes":["pollAnswer"],"description":"Indicates a possible answer to a poll."},{"type":"Poll","subtypes":["poll"],"description":"Indicates a poll message"},{"type":"PollAnswerVoters","subtypes":["pollAnswerVoters"],"description":"How users voted on a certain poll answer"},{"type":"PollResults","subtypes":["pollResults"],"description":"Results of poll"},{"type":"ChatOnlines","subtypes":["chatOnlines"],"description":"Number of online users in a chat"},{"type":"StatsURL","subtypes":["statsURL"],"description":"URL with chat statistics"},{"type":"ChatAdminRights","subtypes":["chatAdminRights"],"description":"Represents the rights of an admin in a channel/supergroup."},{"type":"ChatBannedRights","subtypes":["chatBannedRights"],"description":"Represents the rights of a normal user in a supergroup/channel/chat."},{"type":"InputWallPaper","subtypes":["inputWallPaper","inputWallPaperSlug","inputWallPaperNoFile"],"description":"Wallpaper"},{"type":"CodeSettings","subtypes":["codeSettings"],"description":"Settings for the code type to send"},{"type":"WallPaperSettings","subtypes":["wallPaperSettings"],"description":"Wallpaper settings"},{"type":"AutoDownloadSettings","subtypes":["autoDownloadSettings"],"description":"Media autodownload settings"},{"type":"EmojiKeyword","subtypes":["emojiKeyword","emojiKeywordDeleted"],"description":"Emoji keyword"},{"type":"EmojiKeywordsDifference","subtypes":["emojiKeywordsDifference"],"description":"New emoji keywords"},{"type":"EmojiURL","subtypes":["emojiURL"],"description":"Emoji URL"},{"type":"EmojiLanguage","subtypes":["emojiLanguage"],"description":"Emoji language"},{"type":"Folder","subtypes":["folder"],"description":"A folder"},{"type":"InputFolderPeer","subtypes":["inputFolderPeer"],"description":"Peer in a folder"},{"type":"FolderPeer","subtypes":["folderPeer"],"description":"Peer associated to folder"},{"type":"UrlAuthResult","subtypes":["urlAuthResultRequest","urlAuthResultAccepted","urlAuthResultDefault"],"description":"URL authorization result"},{"type":"ChannelLocation","subtypes":["channelLocationEmpty","channelLocation"],"description":"Geographical location of supergroup (geogroups)"},{"type":"PeerLocated","subtypes":["peerLocated","peerSelfLocated"],"description":"Geolocated peer"},{"type":"RestrictionReason","subtypes":["restrictionReason"],"description":"Restriction reason"},{"type":"InputTheme","subtypes":["inputTheme","inputThemeSlug"],"description":"Cloud theme"},{"type":"Theme","subtypes":["theme"],"description":"Cloud theme"},{"type":"BaseTheme","subtypes":["baseThemeClassic","baseThemeDay","baseThemeNight","baseThemeTinted","baseThemeArctic"],"description":"Basic theme settings"},{"type":"InputThemeSettings","subtypes":["inputThemeSettings"],"description":"Theme settings"},{"type":"ThemeSettings","subtypes":["themeSettings"],"description":"Theme settings"},{"type":"WebPageAttribute","subtypes":["webPageAttributeTheme"],"description":"Webpage attributes"},{"type":"MessageUserVote","subtypes":["messageUserVote","messageUserVoteInputOption","messageUserVoteMultiple"],"description":"How a user voted in a poll"},{"type":"BankCardOpenUrl","subtypes":["bankCardOpenUrl"],"description":"Credit card info URL provided by the bank"},{"type":"DialogFilter","subtypes":["dialogFilter"],"description":"Dialog filter (folders)"},{"type":"DialogFilterSuggested","subtypes":["dialogFilterSuggested"],"description":"Suggested dialog filters (folders)"},{"type":"StatsDateRangeDays","subtypes":["statsDateRangeDays"],"description":"Channel statistics date range"},{"type":"StatsAbsValueAndPrev","subtypes":["statsAbsValueAndPrev"],"description":"Channel statistics value pair"},{"type":"StatsPercentValue","subtypes":["statsPercentValue"],"description":"Channel statistics percentage"},{"type":"StatsGraph","subtypes":["statsGraphAsync","statsGraphError","statsGraph"],"description":"Channel statistics graph"},{"type":"MessageInteractionCounters","subtypes":["messageInteractionCounters"],"description":"Message interaction counters"},{"type":"VideoSize","subtypes":["videoSize"],"description":"Represents an animated video thumbnail"},{"type":"StatsGroupTopPoster","subtypes":["statsGroupTopPoster"],"description":"Most active user in a supergroup"},{"type":"StatsGroupTopAdmin","subtypes":["statsGroupTopAdmin"],"description":"Most active admin in a supergroup"},{"type":"StatsGroupTopInviter","subtypes":["statsGroupTopInviter"],"description":"Most active inviter in a supergroup"},{"type":"GlobalPrivacySettings","subtypes":["globalPrivacySettings"],"description":"Global privacy settings"},{"type":"MessageViews","subtypes":["messageViews"],"description":"View, forward counter + info about replies of a specific message"},{"type":"MessageReplyHeader","subtypes":["messageReplyHeader"],"description":"Reply information"},{"type":"MessageReplies","subtypes":["messageReplies"],"description":"Info about post comments (for channels) or message replies (for groups)"},{"type":"PeerBlocked","subtypes":["peerBlocked"],"description":"Info about a blocked user"},{"type":"GroupCall","subtypes":["groupCallDiscarded","groupCall"]},{"type":"InputGroupCall","subtypes":["inputGroupCall"]},{"type":"GroupCallParticipant","subtypes":["groupCallParticipant"]},{"type":"InlineQueryPeerType","subtypes":["inlineQueryPeerTypeSameBotPM","inlineQueryPeerTypePM","inlineQueryPeerTypeChat","inlineQueryPeerTypeMegagroup","inlineQueryPeerTypeBroadcast"]},{"type":"ChatInviteImporter","subtypes":["chatInviteImporter"]},{"type":"ChatAdminWithInvites","subtypes":["chatAdminWithInvites"]},{"type":"GroupCallParticipantVideoSourceGroup","subtypes":["groupCallParticipantVideoSourceGroup"]},{"type":"GroupCallParticipantVideo","subtypes":["groupCallParticipantVideo"]},{"type":"BotCommandScope","subtypes":["botCommandScopeDefault","botCommandScopeUsers","botCommandScopeChats","botCommandScopeChatAdmins","botCommandScopePeer","botCommandScopePeerAdmins","botCommandScopePeerUser"]}]},"help":{"classes":[{"name":"configSimple","id":1515793004,"type":"help.ConfigSimple","arguments":[{"name":"date","type":"number"},{"name":"expires","type":"number"},{"name":"rules","type":"AccessPointRule[]"}]},{"name":"appUpdate","id":3434860080,"type":"help.AppUpdate","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"canNotSkip","type":"true","optional":true,"predicate":"flags.0","description":"Unskippable, the new info must be shown to the user (with a popup or something else)"},{"name":"id","type":"number","description":"Update ID"},{"name":"version","type":"string","description":"New version name"},{"name":"text","type":"string","description":"Text description of the update"},{"name":"entities","type":"MessageEntity[]","description":"Message entities for styled text"},{"name":"document","type":"Document","optional":true,"predicate":"flags.1","description":"Application binary"},{"name":"url","type":"string","optional":true,"predicate":"flags.2","description":"Application download URL"},{"name":"sticker","type":"Document","optional":true,"predicate":"flags.3"}],"description":"An update is available for the application."},{"name":"noAppUpdate","id":3294258486,"type":"help.AppUpdate","arguments":[],"description":"No updates are available for the application."},{"name":"inviteText","id":415997816,"type":"help.InviteText","arguments":[{"name":"message","type":"string","description":"Text of the message"}],"description":"Text of a text message with an invitation to install Telegram."},{"name":"support","id":398898678,"type":"help.Support","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number"},{"name":"user","type":"User","description":"User"}],"description":"Info on support user."},{"name":"termsOfService","id":2013922064,"type":"help.TermsOfService","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"popup","type":"true","optional":true,"predicate":"flags.0","description":"Whether a prompt must be showed to the user, in order to accept the new terms."},{"name":"id","type":"DataJSON","description":"ID of the new terms"},{"name":"text","type":"string","description":"Text of the new terms"},{"name":"entities","type":"MessageEntity[]","description":"Message entities for styled text"},{"name":"minAgeConfirm","type":"number","optional":true,"predicate":"flags.1","description":"Minimum age required to sign up to telegram, the user must confirm that they is older than the minimum age."}],"description":"Info about the latest telegram Terms Of Service"},{"name":"recentMeUrls","id":235081943,"type":"help.RecentMeUrls","arguments":[{"name":"urls","type":"RecentMeUrl[]","description":"URLs"},{"name":"chats","type":"Chat[]","description":"Chats"},{"name":"users","type":"User[]","description":"Users"}],"description":"Recent t.me URLs"},{"name":"termsOfServiceUpdateEmpty","id":3811614591,"type":"help.TermsOfServiceUpdate","arguments":[{"name":"expires","type":"number","description":"New TOS updates will have to be queried using {@link help.getTermsOfServiceUpdate} in expires seconds"}],"description":"No changes were made to telegram's terms of service"},{"name":"termsOfServiceUpdate","id":686618977,"type":"help.TermsOfServiceUpdate","arguments":[{"name":"expires","type":"number","description":"New TOS updates will have to be queried using {@link help.getTermsOfServiceUpdate} in expires seconds"},{"name":"termsOfService","type":"help.TermsOfService","description":"New terms of service"}],"description":"Info about an update of telegram's terms of service. If the terms of service are declined, then the {@link account.deleteAccount} method should be called with the reason \"Decline ToS update\""},{"name":"deepLinkInfoEmpty","id":1722786150,"type":"help.DeepLinkInfo","arguments":[],"description":"Deep link info empty"},{"name":"deepLinkInfo","id":1783556146,"type":"help.DeepLinkInfo","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"updateApp","type":"true","optional":true,"predicate":"flags.0","description":"An update of the app is required to parse this link"},{"name":"message","type":"string","description":"Message to show to the user"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.1","description":"Message entities for styled text"}],"description":"Deep linking info"},{"name":"passportConfigNotModified","id":3216634967,"type":"help.PassportConfig","arguments":[],"description":"Password configuration not modified"},{"name":"passportConfig","id":2694370991,"type":"help.PassportConfig","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"countriesLangs","type":"DataJSON","description":"Localization"}],"description":"Telegram passport configuration"},{"name":"supportName","id":2349199817,"type":"help.SupportName","arguments":[{"name":"name","type":"string","description":"Localized name"}],"description":"Localized name for telegram support"},{"name":"userInfoEmpty","id":4088278765,"type":"help.UserInfo","arguments":[],"description":"Internal use"},{"name":"userInfo","id":32192344,"type":"help.UserInfo","arguments":[{"name":"message","type":"string","description":"Info"},{"name":"entities","type":"MessageEntity[]","description":"Message entities for styled text"},{"name":"author","type":"string","description":"Author"},{"name":"date","type":"number","description":"Date"}],"description":"Internal use"},{"name":"promoDataEmpty","id":2566302837,"type":"help.PromoData","arguments":[{"name":"expires","type":"number","description":"Re-fetch PSA/MTProxy info after the specified number of seconds"}],"description":"No PSA/MTProxy info is available"},{"name":"promoData","id":2352576831,"type":"help.PromoData","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"proxy","type":"true","optional":true,"predicate":"flags.0","description":"MTProxy-related channel"},{"name":"expires","type":"number","description":"Expiry of PSA/MTProxy info"},{"name":"peer","type":"Peer","description":"MTProxy/PSA peer"},{"name":"chats","type":"Chat[]","description":"Chat info"},{"name":"users","type":"User[]","description":"User info"},{"name":"psaType","type":"string","optional":true,"predicate":"flags.1","description":"PSA type"},{"name":"psaMessage","type":"string","optional":true,"predicate":"flags.2","description":"PSA message"}],"description":"MTProxy/Public Service Announcement information"},{"name":"countryCode","id":1107543535,"type":"help.CountryCode","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"countryCode","type":"string","description":"ISO country code"},{"name":"prefixes","type":"string[]","optional":true,"predicate":"flags.0","description":"Possible phone prefixes"},{"name":"patterns","type":"string[]","optional":true,"predicate":"flags.1","description":"Phone patterns: for example, XXX XXX XXX"}],"description":"Country code and phone number pattern of a specific country"},{"name":"country","id":3280440867,"type":"help.Country","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"hidden","type":"true","optional":true,"predicate":"flags.0","description":"Whether this country should not be shown in the list"},{"name":"iso2","type":"string","description":"ISO code of country"},{"name":"defaultName","type":"string","description":"Name of the country in the country's language"},{"name":"name","type":"string","optional":true,"predicate":"flags.1","description":"Name of the country in the user's language, if different from the original name"},{"name":"countryCodes","type":"help.CountryCode[]","description":"Phone codes/patterns"}],"description":"Name, ISO code, localized name and phone codes/patterns of a specific country"},{"name":"countriesListNotModified","id":2479628082,"type":"help.CountriesList","arguments":[],"description":"The country list has not changed"},{"name":"countriesList","id":2278585758,"type":"help.CountriesList","arguments":[{"name":"countries","type":"help.Country[]","description":"Name, ISO code, localized name and phone codes/patterns of all available countries"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Name, ISO code, localized name and phone codes/patterns of all available countries"}],"methods":[{"name":"getConfig","id":3304659051,"returns":"Config","arguments":[],"description":"Returns current configuration, including data center configuration.","throws":[{"code":400,"name":"CONNECTION_API_ID_INVALID","description":"The provided API id is invalid"},{"code":400,"name":"CONNECTION_APP_VERSION_EMPTY","description":"App version is empty"},{"code":400,"name":"CONNECTION_DEVICE_MODEL_EMPTY","description":"Device model empty"},{"code":400,"name":"CONNECTION_LANG_PACK_INVALID","description":"Language pack invalid"},{"code":400,"name":"CONNECTION_LAYER_INVALID","description":"Layer invalid"},{"code":400,"name":"CONNECTION_NOT_INITED","description":"Connection not initialized"},{"code":400,"name":"CONNECTION_SYSTEM_EMPTY","description":"Connection system empty"},{"code":400,"name":"CONNECTION_SYSTEM_LANG_CODE_EMPTY","description":"The system_lang_code field is empty"},{"code":400,"name":"DATA_INVALID","description":"Encrypted data invalid"},{"code":400,"name":"INPUT_LAYER_INVALID","description":"The provided layer is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"both"},{"name":"getNearestDc","id":531836966,"returns":"NearestDc","arguments":[],"description":"Returns info on data centre nearest to the user.","available":"user"},{"name":"getAppUpdate","id":1378703997,"returns":"help.AppUpdate","arguments":[{"name":"source","type":"string","description":"Source"}],"description":"Returns information on update availability for the current application.","available":"user"},{"name":"getInviteText","id":1295590211,"returns":"help.InviteText","arguments":[],"description":"Returns localized text of a text message with an invitation.","available":"user"},{"name":"getSupport","id":2631862477,"returns":"help.Support","arguments":[],"description":"Returns the support user for the 'ask a question' feature.","available":"user"},{"name":"getAppChangelog","id":2417028975,"returns":"Updates","arguments":[{"name":"prevAppVersion","type":"string","description":"Previous app version"}],"description":"Get changelog of current app.
\nTypically, an {@link updates} constructor will be returned, containing one or more {@link updateServiceNotification} updates with app-specific changelogs.","available":"user"},{"name":"setBotUpdatesStatus","id":3961704397,"returns":"boolean","arguments":[{"name":"pendingUpdatesCount","type":"number","description":"Number of pending updates"},{"name":"message","type":"string","description":"Error message, if present"}],"description":"Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only","available":"bot"},{"name":"getCdnConfig","id":1375900482,"returns":"CdnConfig","arguments":[],"description":"Get configuration for CDN file downloads.","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."}],"available":"both"},{"name":"getRecentMeUrls","id":1036054804,"returns":"help.RecentMeUrls","arguments":[{"name":"referer","type":"string","description":"Referer"}],"description":"Get recently used t.me links","available":"user"},{"name":"getTermsOfServiceUpdate","id":749019089,"returns":"help.TermsOfServiceUpdate","arguments":[],"description":"Look for updates of telegram's terms of service","available":"user"},{"name":"acceptTermsOfService","id":4000511898,"returns":"boolean","arguments":[{"name":"id","type":"DataJSON","description":"ID of terms of service"}],"description":"Accept the new terms of service","available":"user"},{"name":"getDeepLinkInfo","id":1072547679,"returns":"help.DeepLinkInfo","arguments":[{"name":"path","type":"string","description":"Path in t.me/path"}],"description":"Get info about a t.me link","available":"user"},{"name":"getAppConfig","id":2559656208,"returns":"JSONValue","arguments":[],"description":"Get app-specific configuration, see client configuration for more info on the result.","available":"user"},{"name":"saveAppLog","id":1862465352,"returns":"boolean","arguments":[{"name":"events","type":"InputAppEvent[]","description":"List of input events"}],"description":"Saves logs of application on the server.","available":"user"},{"name":"getPassportConfig","id":3328290056,"returns":"help.PassportConfig","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get passport configuration","available":"user"},{"name":"getSupportName","id":3546343212,"returns":"help.SupportName","arguments":[],"description":"Get localized name of the telegram support user","throws":[{"code":403,"name":"USER_INVALID","description":"Invalid user provided"}],"available":"user"},{"name":"getUserInfo","id":59377875,"returns":"help.UserInfo","arguments":[{"name":"userId","type":"InputUser","description":"User ID"}],"description":"Internal use","throws":[{"code":403,"name":"USER_INVALID","description":"Invalid user provided"}],"available":"user"},{"name":"editUserInfo","id":1723407216,"returns":"help.UserInfo","arguments":[{"name":"userId","type":"InputUser","description":"User"},{"name":"message","type":"string","description":"Message"},{"name":"entities","type":"MessageEntity[]","description":"Message entities for styled text"}],"description":"Internal use","available":"user"},{"name":"getPromoData","id":3231151137,"returns":"help.PromoData","arguments":[],"description":"Get MTProxy/Public Service Announcement information","available":"both"},{"name":"hidePromoData","id":505748629,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer","description":"Peer to hide"}],"description":"Hide MTProxy/Public Service Announcement information","available":"both"},{"name":"dismissSuggestion","id":4111317665,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer"},{"name":"suggestion","type":"string","description":"Suggestion"}],"description":"Dismiss a suggestion","available":"both"},{"name":"getCountriesList","id":1935116200,"returns":"help.CountriesList","arguments":[{"name":"langCode","type":"string","description":"Language code of the current user"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get name, ISO code, localized name and phone codes/patterns of all available countries","available":"both"}],"unions":[{"type":"ConfigSimple","subtypes":["help.configSimple"]},{"type":"AppUpdate","subtypes":["help.appUpdate","help.noAppUpdate"],"description":"Contains info on app update availability."},{"type":"InviteText","subtypes":["help.inviteText"],"description":"Object contains info on the text of a message with an invitation."},{"type":"Support","subtypes":["help.support"],"description":"Info about the support user, relevant to the current user."},{"type":"TermsOfService","subtypes":["help.termsOfService"],"description":"Contains info about the latest telegram Terms Of Service."},{"type":"RecentMeUrls","subtypes":["help.recentMeUrls"],"description":"Recent t.me URLs"},{"type":"TermsOfServiceUpdate","subtypes":["help.termsOfServiceUpdateEmpty","help.termsOfServiceUpdate"],"description":"Update of Telegram's terms of service"},{"type":"DeepLinkInfo","subtypes":["help.deepLinkInfoEmpty","help.deepLinkInfo"],"description":"Contains information about a tg:// deep link"},{"type":"PassportConfig","subtypes":["help.passportConfigNotModified","help.passportConfig"],"description":"Telegram passport configuration"},{"type":"SupportName","subtypes":["help.supportName"],"description":"Get localized name for support user"},{"type":"UserInfo","subtypes":["help.userInfoEmpty","help.userInfo"],"description":"User info"},{"type":"PromoData","subtypes":["help.promoDataEmpty","help.promoData"],"description":"Info about pinned MTProxy or Public Service Announcement peers."},{"type":"CountryCode","subtypes":["help.countryCode"],"description":"Country code and phone number pattern of a specific country"},{"type":"Country","subtypes":["help.country"],"description":"Name, ISO code, localized name and phone codes/patterns of a specific country"},{"type":"CountriesList","subtypes":["help.countriesListNotModified","help.countriesList"],"description":"Name, ISO code, localized name and phone codes/patterns of all available countries"}]},"test":{"classes":[],"methods":[{"name":"useError","id":274884761889,"returns":"Error","arguments":[]},{"name":"useConfigSimple","id":281477010689,"returns":"help.ConfigSimple","arguments":[]}],"unions":[]},"storage":{"classes":[{"name":"fileUnknown","id":2861972229,"type":"storage.FileType","arguments":[],"description":"Unknown type."},{"name":"filePartial","id":1086091090,"type":"storage.FileType","arguments":[],"description":"Part of a bigger file."},{"name":"fileJpeg","id":8322574,"type":"storage.FileType","arguments":[],"description":"JPEG image. MIME type: image/jpeg."},{"name":"fileGif","id":3403786975,"type":"storage.FileType","arguments":[],"description":"GIF image. MIME type: image/gif."},{"name":"filePng","id":172975040,"type":"storage.FileType","arguments":[],"description":"PNG image. MIME type: image/png."},{"name":"filePdf","id":2921222285,"type":"storage.FileType","arguments":[],"description":"PDF document image. MIME type: application/pdf."},{"name":"fileMp3","id":1384777335,"type":"storage.FileType","arguments":[],"description":"Mp3 audio. MIME type: audio/mpeg."},{"name":"fileMov","id":1258941372,"type":"storage.FileType","arguments":[],"description":"Quicktime video. MIME type: video/quicktime."},{"name":"fileMp4","id":3016663268,"type":"storage.FileType","arguments":[],"description":"MPEG-4 video. MIME type: video/mp4."},{"name":"fileWebp","id":276907596,"type":"storage.FileType","arguments":[],"description":"WEBP image. MIME type: image/webp."}],"methods":[],"unions":[{"type":"FileType","subtypes":["storage.fileUnknown","storage.filePartial","storage.fileJpeg","storage.fileGif","storage.filePng","storage.filePdf","storage.fileMp3","storage.fileMov","storage.fileMp4","storage.fileWebp"],"description":"Object describes the file type."}]},"auth":{"classes":[{"name":"sentCode","id":1577067778,"type":"auth.SentCode","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"type","type":"auth.SentCodeType","description":"Phone code type"},{"name":"phoneCodeHash","type":"string","description":"Phone code hash, to be stored and later re-used with {@link auth.signIn}"},{"name":"nextType","type":"auth.CodeType","optional":true,"predicate":"flags.1","description":"Phone code type that will be sent next, if the phone code is not received within timeout seconds: to send it use {@link auth.resendCode}"},{"name":"timeout","type":"number","optional":true,"predicate":"flags.2","description":"Timeout for reception of the phone code"}],"description":"Contains info about a sent verification code."},{"name":"authorization","id":3439659286,"type":"auth.Authorization","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"tmpSessions","type":"number","optional":true,"predicate":"flags.0","description":"Temporary passport sessions"},{"name":"user","type":"User","description":"Info on authorized user"}],"description":"Contains user authorization info."},{"name":"authorizationSignUpRequired","id":1148485274,"type":"auth.Authorization","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"termsOfService","type":"help.TermsOfService","optional":true,"predicate":"flags.0","description":"Telegram's terms of service: the user must read and accept the terms of service before signing up to telegram"}],"description":"An account with this phone number doesn't exist on telegram: the user has to enter basic information and sign up"},{"name":"exportedAuthorization","id":3751189549,"type":"auth.ExportedAuthorization","arguments":[{"name":"id","type":"number","description":"current user identifier"},{"name":"bytes","type":"Buffer","description":"authorizes key"}],"description":"Data for copying of authorization between data centres."},{"name":"passwordRecovery","id":326715557,"type":"auth.PasswordRecovery","arguments":[{"name":"emailPattern","type":"string","description":"The email to which the recovery code was sent must match this pattern."}],"description":"Recovery info of a 2FA password, only for accounts with a recovery email configured."},{"name":"codeTypeSms","id":1923290508,"type":"auth.CodeType","arguments":[],"description":"Type of verification code that will be sent next if you call the resendCode method: SMS code"},{"name":"codeTypeCall","id":1948046307,"type":"auth.CodeType","arguments":[],"description":"Type of verification code that will be sent next if you call the resendCode method: SMS code"},{"name":"codeTypeFlashCall","id":577556219,"type":"auth.CodeType","arguments":[],"description":"Type of verification code that will be sent next if you call the resendCode method: SMS code"},{"name":"sentCodeTypeApp","id":1035688326,"type":"auth.SentCodeType","arguments":[{"name":"length","type":"number","description":"Length of the code in bytes"}],"description":"The code was sent through the telegram app"},{"name":"sentCodeTypeSms","id":3221273506,"type":"auth.SentCodeType","arguments":[{"name":"length","type":"number","description":"Length of the code in bytes"}],"description":"The code was sent via SMS"},{"name":"sentCodeTypeCall","id":1398007207,"type":"auth.SentCodeType","arguments":[{"name":"length","type":"number","description":"Length of the verification code"}],"description":"The code will be sent via a phone call: a synthesized voice will tell the user which verification code to input."},{"name":"sentCodeTypeFlashCall","id":2869151449,"type":"auth.SentCodeType","arguments":[{"name":"pattern","type":"string","description":"pattern to match"}],"description":"The code will be sent via a flash phone call, that will be closed immediately. The phone code will then be the phone number itself, just make sure that the phone number matches the specified pattern."},{"name":"loginToken","id":1654593920,"type":"auth.LoginToken","arguments":[{"name":"expires","type":"number","description":"Expiry date of QR code"},{"name":"token","type":"Buffer","description":"Token to render in QR code"}],"description":"Login token (for QR code login)"},{"name":"loginTokenMigrateTo","id":110008598,"type":"auth.LoginToken","arguments":[{"name":"dcId","type":"number","description":"DC ID"},{"name":"token","type":"Buffer","description":"Token to use for login"}],"description":"Repeat the query to the specified DC"},{"name":"loginTokenSuccess","id":957176926,"type":"auth.LoginToken","arguments":[{"name":"authorization","type":"auth.Authorization","description":"Authorization info"}],"description":"Login via token (QR code) succeded!"}],"methods":[{"name":"sendCode","id":2792825935,"returns":"auth.SentCode","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number in international format"},{"name":"apiId","type":"number","description":"Application identifier (see App configuration)"},{"name":"apiHash","type":"string","description":"Application secret hash (see App configuration)"},{"name":"settings","type":"CodeSettings","description":"Settings for the code type to send"}],"description":"Send the verification code for login","throws":[{"code":400,"name":"API_ID_INVALID","description":"API ID invalid"},{"code":400,"name":"API_ID_PUBLISHED_FLOOD","description":"This API id was published somewhere, you can't use it now"},{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"INPUT_REQUEST_TOO_LONG","description":"The request is too big"},{"code":303,"name":"NETWORK_MIGRATE_X","description":"Repeat the query to data-center X"},{"code":303,"name":"PHONE_MIGRATE_X","description":"Repeat the query to data-center X"},{"code":400,"name":"PHONE_NUMBER_APP_SIGNUP_FORBIDDEN","description":"You can't sign up using this app"},{"code":400,"name":"PHONE_NUMBER_BANNED","description":"The provided phone number is banned from telegram"},{"code":400,"name":"PHONE_NUMBER_FLOOD","description":"You asked for the code too many times."},{"code":400,"name":"PHONE_NUMBER_INVALID","description":"Invalid phone number"},{"code":406,"name":"PHONE_PASSWORD_FLOOD","description":"You have tried logging in too many times"},{"code":400,"name":"PHONE_PASSWORD_PROTECTED","description":"This phone is password protected"},{"code":400,"name":"SMS_CODE_CREATE_FAILED","description":"An error occurred while creating the SMS code"}],"available":"user"},{"name":"signUp","id":2163139623,"returns":"auth.Authorization","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number in the international format"},{"name":"phoneCodeHash","type":"string","description":"SMS-message ID"},{"name":"firstName","type":"string","description":"New user first name"},{"name":"lastName","type":"string","description":"New user last name"}],"description":"Registers a validated phone number in the system.","throws":[{"code":400,"name":"FIRSTNAME_INVALID","description":"Invalid first name"},{"code":400,"name":"INPUT_REQUEST_TOO_LONG","description":"The request is too big"},{"code":400,"name":"LASTNAME_INVALID","description":"Invalid last name"},{"code":400,"name":"PHONE_CODE_EMPTY","description":"phone_code from a SMS is empty"},{"code":400,"name":"PHONE_CODE_EXPIRED","description":"SMS expired"},{"code":400,"name":"PHONE_CODE_INVALID","description":"Invalid SMS code was sent"},{"code":400,"name":"PHONE_NUMBER_FLOOD","description":"You asked for the code too many times."},{"code":400,"name":"PHONE_NUMBER_INVALID","description":"Invalid phone number"},{"code":400,"name":"PHONE_NUMBER_OCCUPIED","description":"The phone number is already in use"}],"available":"user"},{"name":"signIn","id":3168081281,"returns":"auth.Authorization","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number in the international format"},{"name":"phoneCodeHash","type":"string","description":"SMS-message ID, obtained from {@link auth.sendCode}"},{"name":"phoneCode","type":"string","description":"Valid numerical code from the SMS-message"}],"description":"Signs in a user with a validated phone number.","throws":[{"code":400,"name":"PHONE_CODE_EMPTY","description":"phone_code from the SMS is empty"},{"code":400,"name":"PHONE_CODE_EXPIRED","description":"SMS expired"},{"code":400,"name":"PHONE_CODE_INVALID","description":"Invalid SMS code was sent"},{"code":400,"name":"PHONE_NUMBER_INVALID","description":"Invalid phone number"},{"code":400,"name":"PHONE_NUMBER_UNOCCUPIED","description":"The code is valid but no user with the given number is registered"}],"available":"user"},{"name":"logOut","id":1461180992,"returns":"boolean","arguments":[],"description":"Logs out the user.","available":"both"},{"name":"resetAuthorizations","id":2678787354,"returns":"boolean","arguments":[],"description":"Terminates all user's authorized sessions except for the current one.","throws":[{"code":406,"name":"FRESH_RESET_AUTHORISATION_FORBIDDEN","description":"You can't logout other sessions if less than 24 hours have passed since you logged on the current session"}],"available":"user"},{"name":"exportAuthorization","id":3854565325,"returns":"auth.ExportedAuthorization","arguments":[{"name":"dcId","type":"number","description":"Number of a target data-centre"}],"description":"Returns data for copying authorization to another data-centre.","throws":[{"code":400,"name":"DC_ID_INVALID","description":"The provided DC ID is invalid"}],"available":"both"},{"name":"importAuthorization","id":3824129555,"returns":"auth.Authorization","arguments":[{"name":"id","type":"number","description":"User ID"},{"name":"bytes","type":"Buffer","description":"Authorization key"}],"description":"Logs in a user using a key transmitted from their native data-centre.","throws":[{"code":400,"name":"AUTH_BYTES_INVALID","description":"The provided authorization is invalid"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"both"},{"name":"bindTempAuthKey","id":3453233669,"returns":"boolean","arguments":[{"name":"permAuthKeyId","type":"Long","description":"Permanent auth_key_id to bind to"},{"name":"nonce","type":"Long","description":"Random long from {@link auth.bindTempAuthKey}"},{"name":"expiresAt","type":"number","description":"UNIX timestamp in seconds to invalidate temporary key, see {@link auth.bindTempAuthKey}"},{"name":"encryptedMessage","type":"Buffer","description":"See {@link auth.bindTempAuthKey}"}],"description":"Binds a temporary authorization key temp_auth_key_id to the permanent authorization key perm_auth_key_id. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one.","throws":[{"code":400,"name":"ENCRYPTED_MESSAGE_INVALID","description":"Encrypted message is incorrect"},{"code":400,"name":"INPUT_REQUEST_TOO_LONG","description":"The request is too big"},{"code":400,"name":"TEMP_AUTH_KEY_ALREADY_BOUND","description":"The passed temporary key is already bound to another perm_auth_key_id"},{"code":400,"name":"TEMP_AUTH_KEY_EMPTY","description":"The request was not performed with a temporary authorization key"}],"available":"both"},{"name":"importBotAuthorization","id":1738800940,"returns":"auth.Authorization","arguments":[{"name":"flags","type":"number","description":"Reserved for future use"},{"name":"apiId","type":"number","description":"Application identifier (see. App configuration)"},{"name":"apiHash","type":"string","description":"Application identifier hash (see. App configuration)"},{"name":"botAuthToken","type":"string","description":"Bot token (see bots)"}],"description":"Login as a bot","throws":[{"code":400,"name":"ACCESS_TOKEN_EXPIRED","description":"Bot token expired"},{"code":400,"name":"ACCESS_TOKEN_INVALID","description":"The provided token is not valid"},{"code":400,"name":"API_ID_INVALID","description":"The api_id/api_hash combination is invalid"},{"code":401,"name":"AUTH_KEY_INVALID","description":"Auth key invalid"}],"available":"both"},{"name":"checkPassword","id":3515567382,"returns":"auth.Authorization","arguments":[{"name":"password","type":"InputCheckPasswordSRP","description":"The account's password (see SRP)"}],"description":"Try logging to an account protected by a 2FA password.","throws":[{"code":400,"name":"PASSWORD_HASH_INVALID","description":"The provided password isn't valid"},{"code":400,"name":"SRP_ID_INVALID","description":"Invalid SRP ID provided"},{"code":400,"name":"SRP_PASSWORD_CHANGED","description":"Password has changed"}],"available":"user"},{"name":"requestPasswordRecovery","id":3633822822,"returns":"auth.PasswordRecovery","arguments":[],"description":"Request recovery code of a 2FA password, only for accounts with a recovery email configured.","throws":[{"code":400,"name":"PASSWORD_EMPTY","description":"The provided password is empty"}],"available":"user"},{"name":"recoverPassword","id":923364464,"returns":"auth.Authorization","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"code","type":"string","description":"Code received via email"},{"name":"newSettings","type":"account.PasswordInputSettings","optional":true,"predicate":"flags.0"}],"description":"Reset the 2FA password using the recovery code sent using {@link auth.requestPasswordRecovery}.","throws":[{"code":400,"name":"CODE_EMPTY","description":"The provided code is empty"}],"available":"user"},{"name":"resendCode","id":1056025023,"returns":"auth.SentCode","arguments":[{"name":"phoneNumber","type":"string","description":"The phone number"},{"name":"phoneCodeHash","type":"string","description":"The phone code hash obtained from {@link auth.sendCode}"}],"description":"Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login for more info.","throws":[{"code":400,"name":"PHONE_CODE_EXPIRED","description":"The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)"},{"code":400,"name":"PHONE_CODE_HASH_EMPTY","description":"phone_code_hash is missing"},{"code":400,"name":"PHONE_NUMBER_INVALID","description":"The phone number is invalid"}],"available":"user"},{"name":"cancelCode","id":520357240,"returns":"boolean","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number"},{"name":"phoneCodeHash","type":"string","description":"Phone code hash from {@link auth.sendCode}"}],"description":"Cancel the login verification code","throws":[{"code":400,"name":"PHONE_CODE_EXPIRED","description":"The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)"},{"code":400,"name":"PHONE_NUMBER_INVALID","description":"The phone number is invalid"}],"available":"user"},{"name":"dropTempAuthKeys","id":2387124616,"returns":"boolean","arguments":[{"name":"exceptAuthKeys","type":"Long[]","description":"The auth keys that shouldn't be dropped."}],"description":"Delete all temporary authorization keys except for the ones specified","available":"both"},{"name":"exportLoginToken","id":2981369111,"returns":"auth.LoginToken","arguments":[{"name":"apiId","type":"number","description":"Application identifier (see. App configuration)"},{"name":"apiHash","type":"string","description":"Application identifier hash (see. App configuration)"},{"name":"exceptIds","type":"number[]","description":"List of already logged-in user IDs, to prevent logging in twice with the same user"}],"description":"Generate a login token, for login via QR code.
\nThe generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken URL in the QR code.","available":"user"},{"name":"importLoginToken","id":2511101156,"returns":"auth.LoginToken","arguments":[{"name":"token","type":"Buffer","description":"Login token"}],"description":"Login using a redirected login token, generated in case of DC mismatch during QR code login.","throws":[{"code":400,"name":"AUTH_TOKEN_EXPIRED","description":"The authorization token has expired"}],"available":"user"},{"name":"acceptLoginToken","id":3902057805,"returns":"Authorization","arguments":[{"name":"token","type":"Buffer","description":"Login token embedded in QR code, for more info, see login via QR code."}],"description":"Accept QR code login token, logging in the app that generated it.","throws":[{"code":400,"name":"AUTH_TOKEN_INVALIDX","description":"The specified auth token is invalid"}],"available":"user"},{"name":"checkRecoveryPassword","id":221691769,"returns":"boolean","arguments":[{"name":"code","type":"string"}]}],"unions":[{"type":"SentCode","subtypes":["auth.sentCode"],"description":"Contains info on a confirmation code message sent via SMS, phone call or Telegram."},{"type":"Authorization","subtypes":["auth.authorization","auth.authorizationSignUpRequired"],"description":"Oject contains info on user authorization."},{"type":"ExportedAuthorization","subtypes":["auth.exportedAuthorization"],"description":"Exported authorization"},{"type":"PasswordRecovery","subtypes":["auth.passwordRecovery"],"description":"Recovery info of a 2FA password, only for accounts with a recovery email configured."},{"type":"CodeType","subtypes":["auth.codeTypeSms","auth.codeTypeCall","auth.codeTypeFlashCall"],"description":"Type of verification code that will be sent next if you call the resendCode method"},{"type":"SentCodeType","subtypes":["auth.sentCodeTypeApp","auth.sentCodeTypeSms","auth.sentCodeTypeCall","auth.sentCodeTypeFlashCall"],"description":"Type of the verification code that was sent"},{"type":"LoginToken","subtypes":["auth.loginToken","auth.loginTokenMigrateTo","auth.loginTokenSuccess"],"description":"Login token (for QR code login)"}]},"contacts":{"classes":[{"name":"contactsNotModified","id":3075189202,"type":"contacts.Contacts","arguments":[],"description":"Contact list on the server is the same as the list on the client."},{"name":"contacts","id":3941105218,"type":"contacts.Contacts","arguments":[{"name":"contacts","type":"Contact[]","description":"Contact list"},{"name":"savedCount","type":"number","description":"Number of contacts that were saved successfully"},{"name":"users","type":"User[]","description":"User list"}],"description":"The current user's contact list and info on users."},{"name":"importedContacts","id":2010127419,"type":"contacts.ImportedContacts","arguments":[{"name":"imported","type":"ImportedContact[]","description":"List of succesfully imported contacts"},{"name":"popularInvites","type":"PopularContact[]","description":"Popular contacts"},{"name":"retryContacts","type":"Long[]","description":"List of contact ids that could not be imported due to system limitation and will need to be imported at a later date.
Parameter added in Layer 13"},{"name":"users","type":"User[]","description":"List of users"}],"description":"Info on succesfully imported contacts."},{"name":"blocked","id":182326673,"type":"contacts.Blocked","arguments":[{"name":"blocked","type":"PeerBlocked[]","description":"List of blocked users"},{"name":"chats","type":"Chat[]","description":"Blocked chats"},{"name":"users","type":"User[]","description":"List of users"}],"description":"Full list of blocked users."},{"name":"blockedSlice","id":3781575060,"type":"contacts.Blocked","arguments":[{"name":"count","type":"number","description":"Total number of elements in the list"},{"name":"blocked","type":"PeerBlocked[]","description":"List of blocked users"},{"name":"chats","type":"Chat[]","description":"Blocked chats"},{"name":"users","type":"User[]","description":"List of users"}],"description":"Incomplete list of blocked users."},{"name":"found","id":3004386717,"type":"contacts.Found","arguments":[{"name":"myResults","type":"Peer[]","description":"Personalized results"},{"name":"results","type":"Peer[]","description":"List of found user identifiers"},{"name":"chats","type":"Chat[]","description":"Found chats"},{"name":"users","type":"User[]","description":"List of users"}],"description":"Users found by name substring and auxiliary data."},{"name":"resolvedPeer","id":2131196633,"type":"contacts.ResolvedPeer","arguments":[{"name":"peer","type":"Peer","description":"The peer"},{"name":"chats","type":"Chat[]","description":"Chats"},{"name":"users","type":"User[]","description":"Users"}],"description":"Resolved peer"},{"name":"topPeersNotModified","id":3727060725,"type":"contacts.TopPeers","arguments":[],"description":"Top peer info hasn't changed"},{"name":"topPeers","id":1891070632,"type":"contacts.TopPeers","arguments":[{"name":"categories","type":"TopPeerCategoryPeers[]","description":"Top peers by top peer category"},{"name":"chats","type":"Chat[]","description":"Chats"},{"name":"users","type":"User[]","description":"Users"}],"description":"Top peers"},{"name":"topPeersDisabled","id":3039597469,"type":"contacts.TopPeers","arguments":[],"description":"Top peers disabled"}],"methods":[{"name":"getContactIDs","id":749357634,"returns":"number[]","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get contact by telegram IDs","available":"user"},{"name":"getStatuses","id":3299038190,"returns":"ContactStatus[]","arguments":[],"description":"Returns the list of contact statuses.","available":"user"},{"name":"getContacts","id":3223553183,"returns":"contacts.Contacts","arguments":[{"name":"hash","type":"number","description":"If there already is a full contact list on the client, a hash of a the list of contact IDs in ascending order may be passed in this parameter. If the contact set was not changed, {@link contacts.contactsNotModified} will be returned."}],"description":"Returns the current user's contact list.","available":"user"},{"name":"importContacts","id":746589157,"returns":"contacts.ImportedContacts","arguments":[{"name":"contacts","type":"InputContact[]","description":"List of contacts to import"}],"description":"Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info.","available":"user"},{"name":"deleteContacts","id":157945344,"returns":"Updates","arguments":[{"name":"id","type":"InputUser[]","description":"User ID list"}],"description":"Deletes several contacts from the list.","available":"user"},{"name":"deleteByPhones","id":269745566,"returns":"boolean","arguments":[{"name":"phones","type":"string[]","description":"Phone numbers"}],"description":"Delete contacts by phone number","available":"user"},{"name":"block","id":1758204945,"returns":"boolean","arguments":[{"name":"id","type":"InputPeer","description":"User ID"}],"description":"Adds the user to the blacklist.","throws":[{"code":400,"name":"CONTACT_ID_INVALID","description":"The provided contact ID is invalid"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"unblock","id":3198573904,"returns":"boolean","arguments":[{"name":"id","type":"InputPeer","description":"User ID"}],"description":"Deletes the user from the blacklist.","throws":[{"code":400,"name":"CONTACT_ID_INVALID","description":"The provided contact ID is invalid"}],"available":"user"},{"name":"getBlocked","id":4118557967,"returns":"contacts.Blocked","arguments":[{"name":"offset","type":"number","description":"The number of list elements to be skipped"},{"name":"limit","type":"number","description":"The number of list elements to be returned"}],"description":"Returns the list of blocked users.","available":"user"},{"name":"search","id":301470424,"returns":"contacts.Found","arguments":[{"name":"q","type":"string","description":"Target substring"},{"name":"limit","type":"number","description":"Maximum number of users to be returned"}],"description":"Returns users found by username substring.","throws":[{"code":400,"name":"QUERY_TOO_SHORT","description":"The query string is too short"},{"code":400,"name":"SEARCH_QUERY_EMPTY","description":"The search query is empty"}],"available":"user"},{"name":"resolveUsername","id":4181511075,"returns":"contacts.ResolvedPeer","arguments":[{"name":"username","type":"string","description":"@username to resolve"}],"description":"Resolve a @username to get peer info","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"CONNECTION_DEVICE_MODEL_EMPTY","description":"Device model empty"},{"code":400,"name":"CONNECTION_LAYER_INVALID","description":"Layer invalid"},{"code":400,"name":"USERNAME_INVALID","description":"The provided username is not valid"},{"code":400,"name":"USERNAME_NOT_OCCUPIED","description":"The provided username is not occupied"}],"available":"both"},{"name":"getTopPeers","id":3566742965,"returns":"contacts.TopPeers","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"correspondents","type":"true","optional":true,"predicate":"flags.0","description":"Users we've chatted most frequently with"},{"name":"botsPm","type":"true","optional":true,"predicate":"flags.1","description":"Most used bots"},{"name":"botsInline","type":"true","optional":true,"predicate":"flags.2","description":"Most used inline bots"},{"name":"phoneCalls","type":"true","optional":true,"predicate":"flags.3","description":"Most frequently called users"},{"name":"forwardUsers","type":"true","optional":true,"predicate":"flags.4","description":"Users to which the users often forwards messages to"},{"name":"forwardChats","type":"true","optional":true,"predicate":"flags.5","description":"Chats to which the users often forwards messages to"},{"name":"groups","type":"true","optional":true,"predicate":"flags.10","description":"Often-opened groups and supergroups"},{"name":"channels","type":"true","optional":true,"predicate":"flags.15","description":"Most frequently visited channels"},{"name":"offset","type":"number","description":"Offset for pagination"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get most used peers","throws":[{"code":400,"name":"TYPES_EMPTY","description":"No top peer type was provided"}],"available":"user"},{"name":"resetTopPeerRating","id":451113900,"returns":"boolean","arguments":[{"name":"category","type":"TopPeerCategory","description":"Top peer category"},{"name":"peer","type":"InputPeer","description":"Peer whose rating should be reset"}],"description":"Reset rating of top peer","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"resetSaved","id":2274703345,"returns":"boolean","arguments":[],"description":"Delete saved contacts","available":"user"},{"name":"getSaved","id":2196890527,"returns":"SavedContact[]","arguments":[],"description":"Get all contacts","throws":[{"code":403,"name":"TAKEOUT_REQUIRED","description":"A takeout session has to be initialized, first"}],"available":"user"},{"name":"toggleTopPeers","id":2232729050,"returns":"boolean","arguments":[{"name":"enabled","type":"boolean","description":"Enable/disable"}],"description":"Enable/disable top peers","available":"user"},{"name":"addContact","id":3908330448,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"addPhonePrivacyException","type":"true","optional":true,"predicate":"flags.0","description":"Allow the other user to see our phone number?"},{"name":"id","type":"InputUser","description":"Telegram ID of the other user"},{"name":"firstName","type":"string","description":"First name"},{"name":"lastName","type":"string","description":"Last name"},{"name":"phone","type":"string","description":"User's phone number"}],"description":"Add an existing telegram user as contact.","throws":[{"code":400,"name":"CONTACT_ID_INVALID","description":"The provided contact ID is invalid"},{"code":400,"name":"CONTACT_NAME_EMPTY","description":"Contact name empty"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"user"},{"name":"acceptContact","id":4164002319,"returns":"Updates","arguments":[{"name":"id","type":"InputUser","description":"The user to add as contact"}],"description":"If the {@link peerSettings} of a new user allow us to add them as contact, add that user as contact","throws":[{"code":400,"name":"CONTACT_ADD_MISSING","description":"Contact to add is missing"},{"code":400,"name":"CONTACT_ID_INVALID","description":"The provided contact ID is invalid"},{"code":400,"name":"CONTACT_REQ_MISSING","description":"Missing contact request"}],"available":"user"},{"name":"getLocated","id":3544759364,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"background","type":"true","optional":true,"predicate":"flags.1","description":"While the geolocation of the current user is public, clients should update it in the background every half-an-hour or so, while setting this flag.
Do this only if the new location is more than 1 KM away from the previous one, or if the previous location is unknown."},{"name":"geoPoint","type":"InputGeoPoint","description":"Geolocation"},{"name":"selfExpires","type":"number","optional":true,"predicate":"flags.0","description":"If set, the geolocation of the current user will be public for the specified number of seconds; pass 0x7fffffff to disable expiry, 0 to make the current geolocation private; if the flag isn't set, no changes will be applied."}],"description":"Get contacts near you","throws":[{"code":400,"name":"GEO_POINT_INVALID","description":"Invalid geoposition provided"},{"code":406,"name":"USERPIC_UPLOAD_REQUIRED","description":"You must have a profile picture to publish your geolocation"}],"available":"user"},{"name":"blockFromReplies","id":698914348,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"deleteMessage","type":"true","optional":true,"predicate":"flags.0","description":"Whether to delete the specified message as well"},{"name":"deleteHistory","type":"true","optional":true,"predicate":"flags.1","description":"Whether to delete all @replies messages from this user as well"},{"name":"reportSpam","type":"true","optional":true,"predicate":"flags.2","description":"Whether to also report this user for spam"},{"name":"msgId","type":"number","description":"ID of the message in the @replies chat"}],"description":"Stop getting notifications about thread replies of a certain user in @replies","available":"both"}],"unions":[{"type":"Contacts","subtypes":["contacts.contactsNotModified","contacts.contacts"],"description":"Info on the current user's contact list."},{"type":"ImportedContacts","subtypes":["contacts.importedContacts"],"description":"Object contains info on succesfully imported contacts."},{"type":"Blocked","subtypes":["contacts.blocked","contacts.blockedSlice"],"description":"Info on users from the current user's black list."},{"type":"Found","subtypes":["contacts.found"],"description":"Object contains info on users found by name substring and auxiliary data."},{"type":"ResolvedPeer","subtypes":["contacts.resolvedPeer"],"description":"Peer returned after resolving a @username"},{"type":"TopPeers","subtypes":["contacts.topPeersNotModified","contacts.topPeers","contacts.topPeersDisabled"],"description":"Top peers"}]},"messages":{"classes":[{"name":"dialogs","id":364538944,"type":"messages.Dialogs","arguments":[{"name":"dialogs","type":"Dialog[]","description":"List of chats"},{"name":"messages","type":"Message[]","description":"List of last messages from each chat"},{"name":"chats","type":"Chat[]","description":"List of groups mentioned in the chats"},{"name":"users","type":"User[]","description":"List of users mentioned in messages and groups"}],"description":"Full list of chats with messages and auxiliary data."},{"name":"dialogsSlice","id":1910543603,"type":"messages.Dialogs","arguments":[{"name":"count","type":"number","description":"Total number of dialogs"},{"name":"dialogs","type":"Dialog[]","description":"List of dialogs"},{"name":"messages","type":"Message[]","description":"List of last messages from dialogs"},{"name":"chats","type":"Chat[]","description":"List of chats mentioned in dialogs"},{"name":"users","type":"User[]","description":"List of users mentioned in messages and chats"}],"description":"Incomplete list of dialogs with messages and auxiliary data."},{"name":"dialogsNotModified","id":4041467286,"type":"messages.Dialogs","arguments":[{"name":"count","type":"number","description":"Number of dialogs found server-side by the query"}],"description":"Dialogs haven't changed"},{"name":"messages","id":2356252295,"type":"messages.Messages","arguments":[{"name":"messages","type":"Message[]","description":"List of messages"},{"name":"chats","type":"Chat[]","description":"List of chats mentioned in dialogs"},{"name":"users","type":"User[]","description":"List of users mentioned in messages and chats"}],"description":"Full list of messages with auxilary data."},{"name":"messagesSlice","id":978610270,"type":"messages.Messages","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"inexact","type":"true","optional":true,"predicate":"flags.1","description":"If set, indicates that the results may be inexact"},{"name":"count","type":"number","description":"Total number of messages in the list"},{"name":"nextRate","type":"number","optional":true,"predicate":"flags.0","description":"Rate to use in the offset_rate parameter in the next call to {@link messages.searchGlobal}"},{"name":"offsetIdOffset","type":"number","optional":true,"predicate":"flags.2","description":"Indicates the absolute position of messages[0] within the total result set with count count.
This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}."},{"name":"messages","type":"Message[]","description":"List of messages"},{"name":"chats","type":"Chat[]","description":"List of chats mentioned in messages"},{"name":"users","type":"User[]","description":"List of users mentioned in messages and chats"}],"description":"Incomplete list of messages and auxiliary data."},{"name":"channelMessages","id":1682413576,"type":"messages.Messages","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"inexact","type":"true","optional":true,"predicate":"flags.1","description":"If set, returned results may be inexact"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"count","type":"number","description":"Total number of results were found server-side (may not be all included here)"},{"name":"offsetIdOffset","type":"number","optional":true,"predicate":"flags.2","description":"Indicates the absolute position of messages[0] within the total result set with count count.
This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}."},{"name":"messages","type":"Message[]","description":"Found messages"},{"name":"chats","type":"Chat[]","description":"Chats"},{"name":"users","type":"User[]","description":"Users"}],"description":"Channel messages"},{"name":"messagesNotModified","id":1951620897,"type":"messages.Messages","arguments":[{"name":"count","type":"number","description":"Number of results found server-side by the given query"}],"description":"No new messages matching the query were found"},{"name":"chats","id":1694474197,"type":"messages.Chats","arguments":[{"name":"chats","type":"Chat[]","description":"List of chats"}],"description":"List of chats with auxiliary data."},{"name":"chatsSlice","id":2631405892,"type":"messages.Chats","arguments":[{"name":"count","type":"number","description":"Total number of results that were found server-side (not all are included in chats)"},{"name":"chats","type":"Chat[]","description":"Chats"}],"description":"Partial list of chats, more would have to be fetched with pagination"},{"name":"chatFull","id":3856126364,"type":"messages.ChatFull","arguments":[{"name":"fullChat","type":"ChatFull","description":"Extended info on a chat"},{"name":"chats","type":"Chat[]","description":"List containing basic info on chat"},{"name":"users","type":"User[]","description":"List of users mentioned above"}],"description":"Extended info on chat and auxiliary data."},{"name":"affectedHistory","id":3025955281,"type":"messages.AffectedHistory","arguments":[{"name":"pts","type":"number","description":"Number of events occured in a text box"},{"name":"ptsCount","type":"number","description":"Number of affected events"},{"name":"offset","type":"number","description":"If a parameter contains positive value, it is necessary to repeat the method call using the given value; during the proceeding of all the history the value itself shall gradually decrease"}],"description":"Affected part of communication history with the user or in a chat."},{"name":"dhConfigNotModified","id":3236054581,"type":"messages.DhConfig","arguments":[{"name":"random","type":"Buffer","description":"Random sequence of bytes of assigned length"}],"description":"Configuring parameters did not change."},{"name":"dhConfig","id":740433629,"type":"messages.DhConfig","arguments":[{"name":"g","type":"number","description":"New value prime, see Wikipedia"},{"name":"p","type":"Buffer","description":"New value primitive root, see Wikipedia"},{"name":"version","type":"number","description":"Vestion of set of parameters"},{"name":"random","type":"Buffer","description":"Random sequence of bytes of assigned length"}],"description":"New set of configuring parameters."},{"name":"sentEncryptedMessage","id":1443858741,"type":"messages.SentEncryptedMessage","arguments":[{"name":"date","type":"number","description":"Date of sending"}],"description":"Message without file attachemts sent to an encrypted file."},{"name":"sentEncryptedFile","id":2492727090,"type":"messages.SentEncryptedMessage","arguments":[{"name":"date","type":"number","description":"Sending date"},{"name":"file","type":"EncryptedFile","description":"Attached file"}],"description":"Message with a file enclosure sent to a protected chat"},{"name":"stickersNotModified","id":4050950690,"type":"messages.Stickers","arguments":[],"description":"No new stickers were found for the given query"},{"name":"stickers","id":3831077821,"type":"messages.Stickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"stickers","type":"Document[]","description":"Stickers"}],"description":"Found stickers"},{"name":"allStickersNotModified","id":3898999491,"type":"messages.AllStickers","arguments":[],"description":"Info about all installed stickers hasn't changed"},{"name":"allStickers","id":3992797279,"type":"messages.AllStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"sets","type":"StickerSet[]","description":"All stickersets"}],"description":"Info about all installed stickers"},{"name":"affectedMessages","id":2228326789,"type":"messages.AffectedMessages","arguments":[{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"Events affected by operation"},{"name":"stickerSet","id":3054118054,"type":"messages.StickerSet","arguments":[{"name":"set","type":"StickerSet","description":"The stickerset"},{"name":"packs","type":"StickerPack[]","description":"Emoji info for stickers"},{"name":"documents","type":"Document[]","description":"Stickers in stickerset"}],"description":"Stickerset and stickers inside it"},{"name":"savedGifsNotModified","id":3892468898,"type":"messages.SavedGifs","arguments":[],"description":"No new saved gifs were found"},{"name":"savedGifs","id":772213157,"type":"messages.SavedGifs","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"gifs","type":"Document[]","description":"List of saved gifs"}],"description":"Saved gifs"},{"name":"botResults","id":2491197512,"type":"messages.BotResults","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"gallery","type":"true","optional":true,"predicate":"flags.0","description":"Whether the result is a picture gallery"},{"name":"queryId","type":"Long","description":"Query ID"},{"name":"nextOffset","type":"string","optional":true,"predicate":"flags.1","description":"The next offset to use when navigating through results"},{"name":"switchPm","type":"InlineBotSwitchPM","optional":true,"predicate":"flags.2","description":"Whether the bot requested the user to message them in private"},{"name":"results","type":"BotInlineResult[]","description":"The results"},{"name":"cacheTime","type":"number","description":"Caching validity of the results"},{"name":"users","type":"User[]","description":"Users mentioned in the results"}],"description":"Result of a query to an inline bot"},{"name":"botCallbackAnswer","id":911761060,"type":"messages.BotCallbackAnswer","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"alert","type":"true","optional":true,"predicate":"flags.1","description":"Whether an alert should be shown to the user instead of a toast notification"},{"name":"hasUrl","type":"true","optional":true,"predicate":"flags.3","description":"Whether an URL is present"},{"name":"nativeUi","type":"true","optional":true,"predicate":"flags.4","description":"Whether to show games in WebView or in native UI."},{"name":"message","type":"string","optional":true,"predicate":"flags.0","description":"Alert to show"},{"name":"url","type":"string","optional":true,"predicate":"flags.2","description":"URL to open"},{"name":"cacheTime","type":"number","description":"For how long should this answer be cached"}],"description":"Callback answer sent by the bot in response to a button press"},{"name":"messageEditData","id":649453030,"type":"messages.MessageEditData","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"caption","type":"true","optional":true,"predicate":"flags.0","description":"Media caption, if the specified media's caption can be edited"}],"description":"Message edit data for media"},{"name":"peerDialogs","id":863093588,"type":"messages.PeerDialogs","arguments":[{"name":"dialogs","type":"Dialog[]","description":"Dialog info"},{"name":"messages","type":"Message[]","description":"Messages mentioned in dialog info"},{"name":"chats","type":"Chat[]","description":"Chats"},{"name":"users","type":"User[]","description":"Users"},{"name":"state","type":"updates.State","description":"Current update state of dialog"}],"description":"Dialog info of multiple peers"},{"name":"featuredStickersNotModified","id":3336309862,"type":"messages.FeaturedStickers","arguments":[{"name":"count","type":"number","description":"Total number of featured stickers"}],"description":"Featured stickers haven't changed"},{"name":"featuredStickers","id":3064709953,"type":"messages.FeaturedStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"count","type":"number","description":"Total number of featured stickers"},{"name":"sets","type":"StickerSetCovered[]","description":"Featured stickersets"},{"name":"unread","type":"Long[]","description":"IDs of new featured stickersets"}],"description":"Featured stickersets"},{"name":"recentStickersNotModified","id":186120336,"type":"messages.RecentStickers","arguments":[],"description":"No new recent sticker was found"},{"name":"recentStickers","id":586395571,"type":"messages.RecentStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"packs","type":"StickerPack[]","description":"Emojis associated to stickers"},{"name":"stickers","type":"Document[]","description":"Recent stickers"},{"name":"dates","type":"number[]","description":"When was each sticker last used"}],"description":"Recently used stickers"},{"name":"archivedStickers","id":1338747336,"type":"messages.ArchivedStickers","arguments":[{"name":"count","type":"number","description":"Number of archived stickers"},{"name":"sets","type":"StickerSetCovered[]","description":"Archived stickersets"}],"description":"Archived stickersets"},{"name":"stickerSetInstallResultSuccess","id":946083368,"type":"messages.StickerSetInstallResult","arguments":[],"description":"The stickerset was installed successfully"},{"name":"stickerSetInstallResultArchive","id":904138920,"type":"messages.StickerSetInstallResult","arguments":[{"name":"sets","type":"StickerSetCovered[]","description":"Archived stickersets"}],"description":"The stickerset was installed, but since there are too many stickersets some were archived"},{"name":"highScores","id":2587622809,"type":"messages.HighScores","arguments":[{"name":"scores","type":"HighScore[]","description":"Highscores"},{"name":"users","type":"User[]","description":"Users, associated to the highscores"}],"description":"Highscores in a game"},{"name":"favedStickersNotModified","id":2660214483,"type":"messages.FavedStickers","arguments":[],"description":"No new favorited stickers were found"},{"name":"favedStickers","id":4085198614,"type":"messages.FavedStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"packs","type":"StickerPack[]","description":"Emojis associated to stickers"},{"name":"stickers","type":"Document[]","description":"Favorited stickers"}],"description":"Favorited stickers"},{"name":"foundStickerSetsNotModified","id":223655517,"type":"messages.FoundStickerSets","arguments":[],"description":"No further results were found"},{"name":"foundStickerSets","id":1359533640,"type":"messages.FoundStickerSets","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"sets","type":"StickerSetCovered[]","description":"Found stickersets"}],"description":"Found stickersets"},{"name":"searchCounter","id":3896830975,"type":"messages.SearchCounter","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"inexact","type":"true","optional":true,"predicate":"flags.1","description":"If set, the results may be inexact"},{"name":"filter","type":"MessagesFilter","description":"Provided message filter"},{"name":"count","type":"number","description":"Number of results that were found server-side"}],"description":"Indicates how many results would be found by a {@link messages.search} call with the same parameters"},{"name":"inactiveChats","id":2837970629,"type":"messages.InactiveChats","arguments":[{"name":"dates","type":"number[]","description":"When was the chat last active"},{"name":"chats","type":"Chat[]","description":"Chat list"},{"name":"users","type":"User[]","description":"Users mentioned in the chat list"}],"description":"Inactive chat list"},{"name":"votesList","id":136574537,"type":"messages.VotesList","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"count","type":"number","description":"Total number of votes for all options (or only for the chosen option, if provided to {@link messages.getPollVotes})"},{"name":"votes","type":"MessageUserVote[]","description":"Vote info for each user"},{"name":"users","type":"User[]","description":"Info about users that voted in the poll"},{"name":"nextOffset","type":"string","optional":true,"predicate":"flags.0","description":"Offset to use with the next {@link messages.getPollVotes} request, empty string if no more results are available."}],"description":"How users voted in a poll"},{"name":"messageViews","id":3066361155,"type":"messages.MessageViews","arguments":[{"name":"views","type":"MessageViews[]","description":"View, forward counter + info about replies"},{"name":"chats","type":"Chat[]","description":"Chats mentioned in constructor"},{"name":"users","type":"User[]","description":"Users mentioned in constructor"}],"description":"View, forward counter + info about replies"},{"name":"discussionMessage","id":4124938141,"type":"messages.DiscussionMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"messages","type":"Message[]","description":"Discussion messages"},{"name":"maxId","type":"number","optional":true,"predicate":"flags.0","description":"Message ID of latest reply in this thread"},{"name":"readInboxMaxId","type":"number","optional":true,"predicate":"flags.1","description":"Message ID of latest read incoming message in this thread"},{"name":"readOutboxMaxId","type":"number","optional":true,"predicate":"flags.2","description":"Message ID of latest read outgoing message in this thread"},{"name":"chats","type":"Chat[]","description":"Chats mentioned in constructor"},{"name":"users","type":"User[]","description":"Users mentioned in constructor"}],"description":"Information about a message thread"},{"name":"historyImport","id":375566091,"type":"messages.HistoryImport","arguments":[{"name":"id","type":"Long"}]},{"name":"historyImportParsed","id":1578088377,"type":"messages.HistoryImportParsed","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"pm","type":"true","optional":true,"predicate":"flags.0"},{"name":"group","type":"true","optional":true,"predicate":"flags.1"},{"name":"title","type":"string","optional":true,"predicate":"flags.2"}]},{"name":"affectedFoundMessages","id":4019011180,"type":"messages.AffectedFoundMessages","arguments":[{"name":"pts","type":"number"},{"name":"ptsCount","type":"number"},{"name":"offset","type":"number"},{"name":"messages","type":"number[]"}]},{"name":"exportedChatInvites","id":3183881676,"type":"messages.ExportedChatInvites","arguments":[{"name":"count","type":"number"},{"name":"invites","type":"ExportedChatInvite[]"},{"name":"users","type":"User[]"}]},{"name":"exportedChatInvite","id":410107472,"type":"messages.ExportedChatInvite","arguments":[{"name":"invite","type":"ExportedChatInvite"},{"name":"users","type":"User[]"}]},{"name":"exportedChatInviteReplaced","id":572915951,"type":"messages.ExportedChatInvite","arguments":[{"name":"invite","type":"ExportedChatInvite"},{"name":"newInvite","type":"ExportedChatInvite"},{"name":"users","type":"User[]"}]},{"name":"chatInviteImporters","id":2176233482,"type":"messages.ChatInviteImporters","arguments":[{"name":"count","type":"number"},{"name":"importers","type":"ChatInviteImporter[]"},{"name":"users","type":"User[]"}]},{"name":"chatAdminsWithInvites","id":3063640791,"type":"messages.ChatAdminsWithInvites","arguments":[{"name":"admins","type":"ChatAdminWithInvites[]"},{"name":"users","type":"User[]"}]},{"name":"checkedHistoryImportPeer","id":2723014423,"type":"messages.CheckedHistoryImportPeer","arguments":[{"name":"confirmText","type":"string"}]}],"methods":[{"name":"getMessages","id":1673946374,"returns":"messages.Messages","arguments":[{"name":"id","type":"InputMessage[]","description":"Message ID list"}],"description":"Returns the list of messages by their IDs.","available":"both"},{"name":"getDialogs","id":2699967347,"returns":"messages.Dialogs","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"excludePinned","type":"true","optional":true,"predicate":"flags.0","description":"Exclude pinned dialogs"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.1","description":"Peer folder ID, for more info click here"},{"name":"offsetDate","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"offsetId","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"offsetPeer","type":"InputPeer","description":"Offset peer for pagination"},{"name":"limit","type":"number","description":"Number of list elements to be returned"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Returns the current user dialog list.","throws":[{"code":400,"name":"FOLDER_ID_INVALID","description":"Invalid folder ID"},{"code":400,"name":"INPUT_CONSTRUCTOR_INVALID","description":"The provided constructor is invalid"},{"code":400,"name":"OFFSET_PEER_ID_INVALID","description":"The provided offset peer is invalid"}],"available":"user"},{"name":"getHistory","id":3703276128,"returns":"messages.Messages","arguments":[{"name":"peer","type":"InputPeer","description":"Target peer"},{"name":"offsetId","type":"number","description":"Only return messages starting from the specified message ID"},{"name":"offsetDate","type":"number","description":"Only return messages sent before the specified date"},{"name":"addOffset","type":"number","description":"Number of list elements to be skipped, negative values are also accepted."},{"name":"limit","type":"number","description":"Number of results to return"},{"name":"maxId","type":"number","description":"If a positive value was transferred, the method will return only messages with IDs less than max_id"},{"name":"minId","type":"number","description":"If a positive value was transferred, the method will return only messages with IDs more than min_id"},{"name":"hash","type":"number","description":"Result hash"}],"description":"Gets back the conversation history with one interlocutor / within a chat","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"CONNECTION_DEVICE_MODEL_EMPTY","description":"Device model empty"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"search","id":204812012,"returns":"messages.Messages","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","description":"User or chat, histories with which are searched, or {@link inputPeerEmpty} constructor for global search"},{"name":"q","type":"string","description":"Text search request"},{"name":"fromId","type":"InputPeer","optional":true,"predicate":"flags.0","description":"Only return messages sent by the specified user ID"},{"name":"topMsgId","type":"number","optional":true,"predicate":"flags.1","description":"Thread ID"},{"name":"filter","type":"MessagesFilter","description":"Filter to return only specified message types"},{"name":"minDate","type":"number","description":"If a positive value was transferred, only messages with a sending date bigger than the transferred one will be returned"},{"name":"maxDate","type":"number","description":"If a positive value was transferred, only messages with a sending date smaller than the transferred one will be returned"},{"name":"offsetId","type":"number","description":"Only return messages starting from the specified message ID"},{"name":"addOffset","type":"number","description":"Additional offset"},{"name":"limit","type":"number","description":"Number of results to return"},{"name":"maxId","type":"number","description":"Maximum message ID to return"},{"name":"minId","type":"number","description":"Minimum message ID to return"},{"name":"hash","type":"number","description":"Hash"}],"description":"Gets back found messages","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"INPUT_CONSTRUCTOR_INVALID","description":"The provided constructor is invalid"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"PEER_ID_NOT_SUPPORTED","description":"The provided peer ID is not supported"},{"code":400,"name":"SEARCH_QUERY_EMPTY","description":"The search query is empty"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"user"},{"name":"readHistory","id":238054714,"returns":"messages.AffectedMessages","arguments":[{"name":"peer","type":"InputPeer","description":"Target user or group"},{"name":"maxId","type":"number","description":"If a positive value is passed, only messages with identifiers less or equal than the given one will be read"}],"description":"Marks message history as read.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"deleteHistory","id":469850889,"returns":"messages.AffectedHistory","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"justClear","type":"true","optional":true,"predicate":"flags.0","description":"Just clear history for the current user, without actually removing messages for every chat user"},{"name":"revoke","type":"true","optional":true,"predicate":"flags.1","description":"Whether to delete the message history for all chat participants"},{"name":"peer","type":"InputPeer","description":"User or chat, communication history of which will be deleted"},{"name":"maxId","type":"number","description":"Maximum ID of message to delete"}],"description":"Deletes communication history.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"deleteMessages","id":3851326930,"returns":"messages.AffectedMessages","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"revoke","type":"true","optional":true,"predicate":"flags.0","description":"Whether to delete messages for all participants of the chat"},{"name":"id","type":"number[]","description":"Message ID list"}],"description":"Deletes messages by their identifiers.","throws":[{"code":403,"name":"MESSAGE_DELETE_FORBIDDEN","description":"You can't delete one of the messages you tried to delete, most likely because it is a service message."}],"available":"both"},{"name":"receivedMessages","id":94983360,"returns":"ReceivedNotifyMessage[]","arguments":[{"name":"maxId","type":"number","description":"Maximum message ID available in a client."}],"description":"Confirms receipt of messages by a client, cancels PUSH-notification sending.","available":"user"},{"name":"setTyping","id":1486110434,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","description":"Target user or group"},{"name":"topMsgId","type":"number","optional":true,"predicate":"flags.0","description":"Thread ID"},{"name":"action","type":"SendMessageAction","description":"Type of action
Parameter added in Layer 17."}],"description":"Sends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group.","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"},{"code":400,"name":"USER_IS_BLOCKED","description":"You were blocked by this user"},{"code":400,"name":"USER_IS_BOT","description":"Bots can't send messages to other bots"}],"available":"both"},{"name":"sendMessage","id":1376532592,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noWebpage","type":"true","optional":true,"predicate":"flags.1","description":"Set this flag to disable generation of the webpage preview"},{"name":"silent","type":"true","optional":true,"predicate":"flags.5","description":"Send this message silently (no notifications for the receivers)"},{"name":"background","type":"true","optional":true,"predicate":"flags.6","description":"Send this message as background message"},{"name":"clearDraft","type":"true","optional":true,"predicate":"flags.7","description":"Clear the draft field"},{"name":"peer","type":"InputPeer","description":"The destination where the message will be sent"},{"name":"replyToMsgId","type":"number","optional":true,"predicate":"flags.0","description":"The message ID to which this message will reply to"},{"name":"message","type":"string","description":"The message"},{"name":"randomId","type":"Long","description":"Unique client message ID required to prevent message resending"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Reply markup for sending bot buttons"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.3","description":"Message entities for sending styled text"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.10","description":"Scheduled message date for scheduled messages"}],"description":"Sends a message to a chat","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"BOT_DOMAIN_INVALID","description":"Bot domain invalid"},{"code":400,"name":"BOT_INVALID","description":"This is not a valid bot"},{"code":400,"name":"BUTTON_DATA_INVALID","description":"The data of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_TYPE_INVALID","description":"The type of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_URL_INVALID","description":"Button URL invalid"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"CHAT_RESTRICTED","description":"You can't send messages in this chat, you were restricted"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"ENCRYPTION_DECLINED","description":"The secret chat was declined"},{"code":400,"name":"ENTITY_MENTION_USER_INVALID","description":"You mentioned an invalid user"},{"code":400,"name":"FROM_MESSAGE_BOT_DISABLED","description":"Bots can't use fromMessage min constructors"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MESSAGE_EMPTY","description":"The provided message is empty"},{"code":400,"name":"MESSAGE_TOO_LONG","description":"The provided message is too long"},{"code":400,"name":"MSG_ID_INVALID","description":"Provided reply_to_msg_id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"PINNED_DIALOGS_TOO_MUCH","description":"Too many pinned dialogs"},{"code":400,"name":"REPLY_MARKUP_INVALID","description":"The provided reply markup is invalid"},{"code":400,"name":"SCHEDULE_BOT_NOT_ALLOWED","description":"Bots cannot schedule messages"},{"code":400,"name":"SCHEDULE_DATE_TOO_LATE","description":"You can't schedule a message this far in the future"},{"code":400,"name":"SCHEDULE_TOO_MUCH","description":"There are too many scheduled messages"},{"code":420,"name":"SLOWMODE_WAIT_X","description":"Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"},{"code":400,"name":"USER_IS_BLOCKED","description":"You were blocked by this user"},{"code":400,"name":"USER_IS_BOT","description":"Bots can't send messages to other bots"},{"code":400,"name":"YOU_BLOCKED_USER","description":"You blocked this user"}],"available":"both"},{"name":"sendMedia","id":881978281,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"silent","type":"true","optional":true,"predicate":"flags.5","description":"Send message silently (no notification should be triggered)"},{"name":"background","type":"true","optional":true,"predicate":"flags.6","description":"Send message in background"},{"name":"clearDraft","type":"true","optional":true,"predicate":"flags.7","description":"Clear the draft"},{"name":"peer","type":"InputPeer","description":"Destination"},{"name":"replyToMsgId","type":"number","optional":true,"predicate":"flags.0","description":"Message ID to which this message should reply to"},{"name":"media","type":"InputMedia","description":"Attached media"},{"name":"message","type":"string","description":"Caption"},{"name":"randomId","type":"Long","description":"Random ID to avoid resending the same message"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Reply markup for bot keyboards"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.3","description":"Message entities for styled text"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.10","description":"Scheduled message date for scheduled messages"}],"description":"Send a media","throws":[{"code":400,"name":"BROADCAST_PUBLIC_VOTERS_FORBIDDEN","description":"You can't forward polls with public voters"},{"code":400,"name":"BUTTON_DATA_INVALID","description":"The data of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_TYPE_INVALID","description":"The type of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_URL_INVALID","description":"Button URL invalid"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_RESTRICTED","description":"You can't send messages in this chat, you were restricted"},{"code":403,"name":"CHAT_SEND_GIFS_FORBIDDEN","description":"You can't send gifs in this chat"},{"code":403,"name":"CHAT_SEND_MEDIA_FORBIDDEN","description":"You can't send media in this chat"},{"code":403,"name":"CHAT_SEND_STICKERS_FORBIDDEN","description":"You can't send stickers in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"EXTERNAL_URL_INVALID","description":"External URL invalid"},{"code":400,"name":"FILE_PARTS_INVALID","description":"The number of file parts is invalid"},{"code":400,"name":"FILE_PART_LENGTH_INVALID","description":"The length of a file part is invalid"},{"code":400,"name":"IMAGE_PROCESS_FAILED","description":"Failure while processing image"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MD5_CHECKSUM_INVALID","description":"The MD5 checksums do not match"},{"code":400,"name":"MEDIA_CAPTION_TOO_LONG","description":"The caption is too long"},{"code":400,"name":"MEDIA_EMPTY","description":"The provided media object is invalid"},{"code":400,"name":"MEDIA_INVALID","description":"Media invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"PHOTO_EXT_INVALID","description":"The extension of the photo is invalid"},{"code":400,"name":"PHOTO_INVALID_DIMENSIONS","description":"The photo dimensions are invalid"},{"code":400,"name":"PHOTO_SAVE_FILE_INVALID","description":"Internal issues, try again later"},{"code":400,"name":"POLL_ANSWERS_INVALID","description":"Invalid poll answers were provided"},{"code":400,"name":"POLL_OPTION_DUPLICATE","description":"Duplicate poll options provided"},{"code":400,"name":"POLL_OPTION_INVALID","description":"Invalid poll option provided"},{"code":400,"name":"QUIZ_CORRECT_ANSWERS_EMPTY","description":"No correct quiz answer was specified"},{"code":400,"name":"QUIZ_CORRECT_ANSWER_INVALID","description":"An invalid value was provided to the correct_answers field"},{"code":400,"name":"REPLY_MARKUP_BUY_EMPTY","description":"Reply markup for buy button empty"},{"code":400,"name":"REPLY_MARKUP_INVALID","description":"The provided reply markup is invalid"},{"code":400,"name":"SCHEDULE_TOO_MUCH","description":"There are too many scheduled messages"},{"code":420,"name":"SLOWMODE_WAIT_X","description":"Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat."},{"code":400,"name":"TTL_MEDIA_INVALID","description":"Invalid media Time To Live was provided"},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"},{"code":400,"name":"USER_IS_BLOCKED","description":"You were blocked by this user"},{"code":400,"name":"USER_IS_BOT","description":"Bots can't send messages to other bots"},{"code":400,"name":"WEBPAGE_CURL_FAILED","description":"Failure while fetching the webpage with cURL"},{"code":400,"name":"WEBPAGE_MEDIA_EMPTY","description":"Webpage media empty"},{"code":400,"name":"YOU_BLOCKED_USER","description":"You blocked this user"}],"available":"both"},{"name":"forwardMessages","id":3657360910,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"silent","type":"true","optional":true,"predicate":"flags.5","description":"Whether to send messages silently (no notification will be triggered on the destination clients)"},{"name":"background","type":"true","optional":true,"predicate":"flags.6","description":"Whether to send the message in background"},{"name":"withMyScore","type":"true","optional":true,"predicate":"flags.8","description":"When forwarding games, whether to include your score in the game"},{"name":"fromPeer","type":"InputPeer","description":"Source of messages"},{"name":"id","type":"number[]","description":"IDs of messages"},{"name":"randomId","type":"Long[]","description":"Random ID to prevent resending of messages"},{"name":"toPeer","type":"InputPeer","description":"Destination peer"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.10","description":"Scheduled message date for scheduled messages"}],"description":"Forwards messages by their IDs.","throws":[{"code":400,"name":"BROADCAST_PUBLIC_VOTERS_FORBIDDEN","description":"You can't forward polls with public voters"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"CHAT_RESTRICTED","description":"You can't send messages in this chat, you were restricted"},{"code":403,"name":"CHAT_SEND_GIFS_FORBIDDEN","description":"You can't send gifs in this chat"},{"code":403,"name":"CHAT_SEND_MEDIA_FORBIDDEN","description":"You can't send media in this chat"},{"code":403,"name":"CHAT_SEND_POLL_FORBIDDEN","description":"You can't send polls in this chat"},{"code":403,"name":"CHAT_SEND_STICKERS_FORBIDDEN","description":"You can't send stickers in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"GROUPED_MEDIA_INVALID","description":"Invalid grouped media"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MEDIA_EMPTY","description":"The provided media object is invalid"},{"code":400,"name":"MESSAGE_IDS_EMPTY","description":"No message ids were provided"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":420,"name":"P0NY_FLOODWAIT","description":" "},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"RANDOM_ID_INVALID","description":"A provided random ID is invalid"},{"code":400,"name":"SCHEDULE_TOO_MUCH","description":"There are too many scheduled messages"},{"code":400,"name":"SLOWMODE_MULTI_MSGS_DISABLED","description":"Slowmode is enabled, you cannot forward multiple messages to this group."},{"code":420,"name":"SLOWMODE_WAIT_X","description":"Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"},{"code":400,"name":"USER_IS_BLOCKED","description":"You were blocked by this user"},{"code":400,"name":"USER_IS_BOT","description":"Bots can't send messages to other bots"},{"code":400,"name":"YOU_BLOCKED_USER","description":"You blocked this user"}],"available":"both"},{"name":"reportSpam","id":3474297563,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer","description":"Peer to report"}],"description":"Report a new incoming chat for spam, if the {@link peerSettings} of the chat allow us to do that","throws":[{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getPeerSettings","id":913498268,"returns":"PeerSettings","arguments":[{"name":"peer","type":"InputPeer","description":"The peer"}],"description":"Get peer settings","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"report","id":2303961934,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"},{"name":"id","type":"number[]","description":"IDs of messages to report"},{"name":"reason","type":"ReportReason","description":"Why are these messages being reported"},{"name":"message","type":"string"}],"description":"Report a message in a chat for violation of telegram's Terms of Service","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getChats","id":1013621127,"returns":"messages.Chats","arguments":[{"name":"id","type":"number[]","description":"List of chat IDs"}],"description":"Returns chat basic info on their IDs.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"both"},{"name":"getFullChat","id":998448230,"returns":"messages.ChatFull","arguments":[{"name":"chatId","type":"number","description":"Chat ID"}],"description":"Returns full chat info according to its ID.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"both"},{"name":"editChatTitle","id":3695519829,"returns":"Updates","arguments":[{"name":"chatId","type":"number","description":"Chat ID"},{"name":"title","type":"string","description":"New chat name, different from the old one"}],"description":"Chanages chat name and sends a service message on it.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":400,"name":"CHAT_TITLE_EMPTY","description":"No chat title provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"both"},{"name":"editChatPhoto","id":3394009560,"returns":"Updates","arguments":[{"name":"chatId","type":"number","description":"Chat ID"},{"name":"photo","type":"InputChatPhoto","description":"Photo to be set"}],"description":"Changes chat photo and sends a service message on it","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":400,"name":"INPUT_CONSTRUCTOR_INVALID","description":"The provided constructor is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","description":"Photo is too small"},{"code":400,"name":"PHOTO_EXT_INVALID","description":"The extension of the photo is invalid"},{"code":400,"name":"PHOTO_INVALID","description":"Photo invalid"}],"available":"both"},{"name":"addChatUser","id":4188056073,"returns":"Updates","arguments":[{"name":"chatId","type":"number","description":"Chat ID"},{"name":"userId","type":"InputUser","description":"User ID to be added"},{"name":"fwdLimit","type":"number","description":"Number of last messages to be forwarded"}],"description":"Adds a user to a chat and sends a service message on it.","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USERS_TOO_MUCH","description":"The maximum number of users has been exceeded (to create a chat, for example)"},{"code":400,"name":"USER_ALREADY_PARTICIPANT","description":"The user is already in the group"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"},{"code":403,"name":"USER_NOT_MUTUAL_CONTACT","description":"The provided user is not a mutual contact"},{"code":403,"name":"USER_PRIVACY_RESTRICTED","description":"The user's privacy settings do not allow you to do this"}],"available":"user"},{"name":"deleteChatUser","id":3308537242,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"revokeHistory","type":"true","optional":true,"predicate":"flags.0"},{"name":"chatId","type":"number","description":"Chat ID"},{"name":"userId","type":"InputUser","description":"User ID to be deleted"}],"description":"Deletes a user from a chat and sends a service message on it.","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"},{"code":400,"name":"USER_NOT_PARTICIPANT","description":"You're not a member of this supergroup/channel"}],"available":"both"},{"name":"createChat","id":164303470,"returns":"Updates","arguments":[{"name":"users","type":"InputUser[]","description":"List of user IDs to be invited"},{"name":"title","type":"string","description":"Chat name"}],"description":"Creates a new chat.","throws":[{"code":400,"name":"CHAT_INVALID","description":"Invalid chat"},{"code":400,"name":"CHAT_TITLE_EMPTY","description":"No chat title provided"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"USERS_TOO_FEW","description":"Not enough users (to create a chat, for example)"},{"code":403,"name":"USER_RESTRICTED","description":"You're spamreported, you can't create channels or chats."}],"available":"user"},{"name":"getDhConfig","id":651135312,"returns":"messages.DhConfig","arguments":[{"name":"version","type":"number","description":"Value of the version parameter from {@link messages.dhConfig}, avialable at the client"},{"name":"randomLength","type":"number","description":"Length of the required random sequence"}],"description":"Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.","throws":[{"code":400,"name":"RANDOM_LENGTH_INVALID","description":"Random length invalid"}],"available":"user"},{"name":"requestEncryption","id":4132286275,"returns":"EncryptedChat","arguments":[{"name":"userId","type":"InputUser","description":"User ID"},{"name":"randomId","type":"number","description":"Unique client request ID required to prevent resending. This also doubles as the chat ID."},{"name":"gA","type":"Buffer","description":"A = g ^ a mod p, see Wikipedia"}],"description":"Sends a request to start a secret chat to the user.","throws":[{"code":400,"name":"DH_G_A_INVALID","description":"g_a invalid"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"user"},{"name":"acceptEncryption","id":1035731989,"returns":"EncryptedChat","arguments":[{"name":"peer","type":"InputEncryptedChat","description":"Secret chat ID"},{"name":"gB","type":"Buffer","description":"B = g ^ b mod p, see Wikipedia"},{"name":"keyFingerprint","type":"Long","description":"64-bit fingerprint of the received key"}],"description":"Confirms creation of a secret chat","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"ENCRYPTION_ALREADY_ACCEPTED","description":"Secret chat already accepted"},{"code":400,"name":"ENCRYPTION_ALREADY_DECLINED","description":"The secret chat was already declined"}],"available":"user"},{"name":"discardEncryption","id":4086541984,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"deleteHistory","type":"true","optional":true,"predicate":"flags.0"},{"name":"chatId","type":"number","description":"Secret chat ID"}],"description":"Cancels a request for creation and/or delete info on secret chat.","throws":[{"code":400,"name":"CHAT_ID_EMPTY","description":"The provided chat ID is empty"},{"code":400,"name":"ENCRYPTION_ALREADY_DECLINED","description":"The secret chat was already declined"},{"code":400,"name":"ENCRYPTION_ID_INVALID","description":"The provided secret chat ID is invalid"}],"available":"user"},{"name":"setEncryptedTyping","id":2031374829,"returns":"boolean","arguments":[{"name":"peer","type":"InputEncryptedChat","description":"Secret chat ID"},{"name":"typing","type":"boolean","description":"Typing.
Possible values:
{@link boolTrue}, if the user started typing and more than 5 seconds have passed since the last request
{@link boolFalse}, if the user stopped typing"}],"description":"Send typing event by the current user to a secret chat.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"}],"available":"user"},{"name":"readEncryptedHistory","id":2135648522,"returns":"boolean","arguments":[{"name":"peer","type":"InputEncryptedChat","description":"Secret chat ID"},{"name":"maxDate","type":"number","description":"Maximum date value for received messages in history"}],"description":"Marks message history within a secret chat as read.","throws":[{"code":400,"name":"MSG_WAIT_FAILED","description":"A waiting call returned an error"}],"available":"user"},{"name":"sendEncrypted","id":1157265941,"returns":"messages.SentEncryptedMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"silent","type":"true","optional":true,"predicate":"flags.0","description":"Send encrypted message without a notification"},{"name":"peer","type":"InputEncryptedChat","description":"Secret chat ID"},{"name":"randomId","type":"Long","description":"Unique client message ID, necessary to avoid message resending"},{"name":"data","type":"Buffer","description":"TL-serialization of DecryptedMessage type, encrypted with a key that was created during chat initialization"}],"description":"Sends a text message to a secret chat.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"DATA_INVALID","description":"Encrypted data invalid"},{"code":400,"name":"ENCRYPTION_DECLINED","description":"The secret chat was declined"},{"code":400,"name":"MSG_WAIT_FAILED","description":"A waiting call returned an error"}],"available":"user"},{"name":"sendEncryptedFile","id":1431914525,"returns":"messages.SentEncryptedMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"silent","type":"true","optional":true,"predicate":"flags.0","description":"Whether to send the file without triggering a notification"},{"name":"peer","type":"InputEncryptedChat","description":"Secret chat ID"},{"name":"randomId","type":"Long","description":"Unique client message ID necessary to prevent message resending"},{"name":"data","type":"Buffer","description":"TL-serialization of DecryptedMessage type, encrypted with a key generated during chat initialization"},{"name":"file","type":"InputEncryptedFile","description":"File attachment for the secret chat"}],"description":"Sends a message with a file attachment to a secret chat","throws":[{"code":400,"name":"DATA_TOO_LONG","description":"Data too long"},{"code":400,"name":"ENCRYPTION_DECLINED","description":"The secret chat was declined"},{"code":400,"name":"MD5_CHECKSUM_INVALID","description":"The MD5 checksums do not match"},{"code":400,"name":"MSG_WAIT_FAILED","description":"A waiting call returned an error"}],"available":"user"},{"name":"sendEncryptedService","id":852769188,"returns":"messages.SentEncryptedMessage","arguments":[{"name":"peer","type":"InputEncryptedChat","description":"Secret chat ID"},{"name":"randomId","type":"Long","description":"Unique client message ID required to prevent message resending"},{"name":"data","type":"Buffer","description":"TL-serialization of DecryptedMessage type, encrypted with a key generated during chat initialization"}],"description":"Sends a service message to a secret chat.","throws":[{"code":400,"name":"DATA_INVALID","description":"Encrypted data invalid"},{"code":400,"name":"ENCRYPTION_DECLINED","description":"The secret chat was declined"},{"code":400,"name":"ENCRYPTION_ID_INVALID","description":"The provided secret chat ID is invalid"},{"code":400,"name":"MSG_WAIT_FAILED","description":"A waiting call returned an error"},{"code":403,"name":"USER_IS_BLOCKED","description":"You were blocked by this user"}],"available":"user"},{"name":"receivedQueue","id":1436924774,"returns":"Long[]","arguments":[{"name":"maxQts","type":"number","description":"Maximum qts value available at the client"}],"description":"Confirms receipt of messages in a secret chat by client, cancels push notifications.","throws":[{"code":400,"name":"MSG_WAIT_FAILED","description":"A waiting call returned an error"}],"available":"user"},{"name":"reportEncryptedSpam","id":1259113487,"returns":"boolean","arguments":[{"name":"peer","type":"InputEncryptedChat","description":"The secret chat to report"}],"description":"Report a secret chat for spam","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"}],"available":"user"},{"name":"readMessageContents","id":916930423,"returns":"messages.AffectedMessages","arguments":[{"name":"id","type":"number[]","description":"Message ID list"}],"description":"Notifies the sender about the recipient having listened a voice message or watched a video.","available":"user"},{"name":"getStickers","id":71126828,"returns":"messages.Stickers","arguments":[{"name":"emoticon","type":"string","description":"The emoji"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get stickers by emoji","available":"user"},{"name":"getAllStickers","id":479598769,"returns":"messages.AllStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get all installed stickers","available":"user"},{"name":"getWebPagePreview","id":2338894028,"returns":"MessageMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"message","type":"string","description":"Message from which to extract the preview"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.3","description":"Message entities for styled text"}],"description":"Get preview of webpage","throws":[{"code":400,"name":"MESSAGE_EMPTY","description":"The provided message is empty"}],"available":"user"},{"name":"exportChatInvite","id":347716823,"returns":"ExportedChatInvite","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"legacyRevokePermanent","type":"true","optional":true,"predicate":"flags.2"},{"name":"peer","type":"InputPeer","description":"Chat"},{"name":"expireDate","type":"number","optional":true,"predicate":"flags.0"},{"name":"usageLimit","type":"number","optional":true,"predicate":"flags.1"}],"description":"Export an invite link for a chat","throws":[{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"both"},{"name":"checkChatInvite","id":1051570619,"returns":"ChatInvite","arguments":[{"name":"hash","type":"string","description":"Invite hash in t.me/joinchat/hash"}],"description":"Check the validity of a chat invite link and get basic info about it","throws":[{"code":400,"name":"INVITE_HASH_EMPTY","description":"The invite hash is empty"},{"code":400,"name":"INVITE_HASH_EXPIRED","description":"The invite link has expired"},{"code":400,"name":"INVITE_HASH_INVALID","description":"The invite hash is invalid"}],"available":"user"},{"name":"importChatInvite","id":1817183516,"returns":"Updates","arguments":[{"name":"hash","type":"string","description":"hash from t.me/joinchat/hash"}],"description":"Import a chat invite and join a private chat/supergroup/channel","throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","description":"You have joined too many channels/supergroups"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"INVITE_HASH_EMPTY","description":"The invite hash is empty"},{"code":400,"name":"INVITE_HASH_EXPIRED","description":"The invite link has expired"},{"code":400,"name":"INVITE_HASH_INVALID","description":"The invite hash is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USERS_TOO_MUCH","description":"The maximum number of users has been exceeded (to create a chat, for example)"},{"code":400,"name":"USER_ALREADY_PARTICIPANT","description":"The user is already in the group"},{"code":400,"name":"USER_CHANNELS_TOO_MUCH","description":"One of the users you tried to add is already in too many channels/supergroups"}],"available":"user"},{"name":"getStickerSet","id":639215886,"returns":"messages.StickerSet","arguments":[{"name":"stickerset","type":"InputStickerSet","description":"Stickerset"}],"description":"Get info about a stickerset","throws":[{"code":400,"name":"STICKERSET_INVALID","description":"The provided sticker set is invalid"}],"available":"both"},{"name":"installStickerSet","id":3348096096,"returns":"messages.StickerSetInstallResult","arguments":[{"name":"stickerset","type":"InputStickerSet","description":"Stickerset to install"},{"name":"archived","type":"boolean","description":"Whether to archive stickerset"}],"description":"Install a stickerset","throws":[{"code":400,"name":"STICKERSET_INVALID","description":"The provided sticker set is invalid"}],"available":"user"},{"name":"uninstallStickerSet","id":4184757726,"returns":"boolean","arguments":[{"name":"stickerset","type":"InputStickerSet","description":"The stickerset to uninstall"}],"description":"Uninstall a stickerset","throws":[{"code":400,"name":"STICKERSET_INVALID","description":"The provided sticker set is invalid"}],"available":"user"},{"name":"startBot","id":3873403768,"returns":"Updates","arguments":[{"name":"bot","type":"InputUser","description":"The bot"},{"name":"peer","type":"InputPeer","description":"The chat where to start the bot, can be the bot's private chat or a group"},{"name":"randomId","type":"Long","description":"Random ID to avoid resending the same message"},{"name":"startParam","type":"string","description":"Deep linking parameter"}],"description":"Start a conversation with a bot using a deep linking parameter","throws":[{"code":400,"name":"BOT_INVALID","description":"This is not a valid bot"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"START_PARAM_EMPTY","description":"The start parameter is empty"},{"code":400,"name":"START_PARAM_INVALID","description":"Start parameter invalid"},{"code":400,"name":"START_PARAM_TOO_LONG","description":"Start parameter is too long"}],"available":"user"},{"name":"getMessagesViews","id":1468322785,"returns":"messages.MessageViews","arguments":[{"name":"peer","type":"InputPeer","description":"Peer where the message was found"},{"name":"id","type":"number[]","description":"ID of message"},{"name":"increment","type":"boolean","description":"Whether to mark the message as viewed and increment the view counter"}],"description":"Get and increase the view counter of a message sent or forwarded from a channel","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"editChatAdmin","id":2850463534,"returns":"boolean","arguments":[{"name":"chatId","type":"number","description":"The ID of the group"},{"name":"userId","type":"InputUser","description":"The user to make admin"},{"name":"isAdmin","type":"boolean","description":"Whether to make them admin"}],"description":"Make a user admin in a legacy group.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"},{"code":400,"name":"USER_NOT_PARTICIPANT","description":"You're not a member of this supergroup/channel"}],"available":"user"},{"name":"migrateChat","id":363051235,"returns":"Updates","arguments":[{"name":"chatId","type":"number","description":"Legacy group to migrate"}],"description":"Turn a legacy group into a supergroup","throws":[{"code":403,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"searchGlobal","id":1271290010,"returns":"messages.Messages","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.0","description":"Peer folder ID, for more info click here"},{"name":"q","type":"string","description":"Query"},{"name":"filter","type":"MessagesFilter","description":"Global search filter"},{"name":"minDate","type":"number","description":"If a positive value was specified, the method will return only messages with date bigger than min_date"},{"name":"maxDate","type":"number","description":"If a positive value was transferred, the method will return only messages with date smaller than max_date"},{"name":"offsetRate","type":"number","description":"Initially 0, then set to the {@link messages.messagesSlice}"},{"name":"offsetPeer","type":"InputPeer","description":"Offsets for pagination, for more info click here"},{"name":"offsetId","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"limit","type":"number","description":"Offsets for pagination, for more info click here"}],"description":"Search for messages and peers globally","throws":[{"code":400,"name":"FOLDER_ID_INVALID","description":"Invalid folder ID"},{"code":400,"name":"SEARCH_QUERY_EMPTY","description":"The search query is empty"}],"available":"user"},{"name":"reorderStickerSets","id":2016638777,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"masks","type":"true","optional":true,"predicate":"flags.0","description":"Reorder mask stickersets"},{"name":"order","type":"Long[]","description":"New stickerset order by stickerset IDs"}],"description":"Reorder installed stickersets","available":"user"},{"name":"getDocumentByHash","id":864953444,"returns":"Document","arguments":[{"name":"sha256","type":"Buffer","description":"SHA256 of file"},{"name":"size","type":"number","description":"Size of the file in bytes"},{"name":"mimeType","type":"string","description":"Mime type"}],"description":"Get a document by its SHA256 hash, mainly used for gifs","throws":[{"code":400,"name":"SHA256_HASH_INVALID","description":"The provided SHA256 hash is invalid"}],"available":"both"},{"name":"getSavedGifs","id":2210348370,"returns":"messages.SavedGifs","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get saved GIFs","available":"user"},{"name":"saveGif","id":846868683,"returns":"boolean","arguments":[{"name":"id","type":"InputDocument","description":"GIF to save"},{"name":"unsave","type":"boolean","description":"Whether to remove GIF from saved gifs list"}],"description":"Add GIF to saved gifs list","throws":[{"code":400,"name":"GIF_ID_INVALID","description":"The provided GIF ID is invalid"}],"available":"user"},{"name":"getInlineBotResults","id":1364105629,"returns":"messages.BotResults","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"bot","type":"InputUser","description":"The bot to query"},{"name":"peer","type":"InputPeer","description":"The currently opened chat"},{"name":"geoPoint","type":"InputGeoPoint","optional":true,"predicate":"flags.0","description":"The geolocation, if requested"},{"name":"query","type":"string","description":"The query"},{"name":"offset","type":"string","description":"The offset within the results, will be passed directly as-is to the bot."}],"description":"Query an inline bot","throws":[{"code":400,"name":"BOT_INLINE_DISABLED","description":"This bot can't be used in inline mode"},{"code":400,"name":"BOT_INVALID","description":"This is not a valid bot"},{"code":400,"name":"BOT_RESPONSE_TIMEOUT","description":"A timeout occurred while fetching data from the bot"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":-503,"name":"Timeout","description":"Timeout while fetching data"}],"available":"user"},{"name":"setInlineBotResults","id":3948847622,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"gallery","type":"true","optional":true,"predicate":"flags.0","description":"Set this flag if the results are composed of media files"},{"name":"private","type":"true","optional":true,"predicate":"flags.1","description":"Set this flag if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query"},{"name":"queryId","type":"Long","description":"Unique identifier for the answered query"},{"name":"results","type":"InputBotInlineResult[]","description":"Vector of results for the inline query"},{"name":"cacheTime","type":"number","description":"The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300."},{"name":"nextOffset","type":"string","optional":true,"predicate":"flags.2","description":"Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don‘t support pagination. Offset length can’t exceed 64 bytes."},{"name":"switchPm","type":"InlineBotSwitchPM","optional":true,"predicate":"flags.3","description":"If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with a certain parameter."}],"description":"Answer an inline query, for bots only","throws":[{"code":400,"name":"ARTICLE_TITLE_EMPTY","description":"The title of the article is empty"},{"code":400,"name":"BUTTON_DATA_INVALID","description":"The data of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_TYPE_INVALID","description":"The type of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_URL_INVALID","description":"Button URL invalid"},{"code":400,"name":"GIF_CONTENT_TYPE_INVALID","description":"GIF content-type invalid"},{"code":400,"name":"MESSAGE_EMPTY","description":"The provided message is empty"},{"code":400,"name":"MESSAGE_TOO_LONG","description":"The provided message is too long"},{"code":400,"name":"PHOTO_CONTENT_TYPE_INVALID","description":"Photo mime-type invalid"},{"code":400,"name":"PHOTO_CONTENT_URL_EMPTY","description":"Photo URL invalid"},{"code":400,"name":"PHOTO_INVALID","description":"Photo invalid"},{"code":400,"name":"PHOTO_THUMB_URL_EMPTY","description":"Photo thumbnail URL is empty"},{"code":400,"name":"QUERY_ID_INVALID","description":"The query ID is invalid"},{"code":400,"name":"REPLY_MARKUP_INVALID","description":"The provided reply markup is invalid"},{"code":400,"name":"RESULTS_TOO_MUCH","description":"Too many results were provided"},{"code":400,"name":"RESULT_ID_DUPLICATE","description":"You provided a duplicate result ID"},{"code":400,"name":"RESULT_TYPE_INVALID","description":"Result type invalid"},{"code":400,"name":"SEND_MESSAGE_MEDIA_INVALID","description":"Invalid media provided"},{"code":400,"name":"SEND_MESSAGE_TYPE_INVALID","description":"The message type is invalid"},{"code":400,"name":"START_PARAM_INVALID","description":"Start parameter invalid"},{"code":403,"name":"USER_BOT_INVALID","description":"This method can only be called by a bot"},{"code":400,"name":"WEBDOCUMENT_INVALID","description":"Invalid webdocument URL provided"},{"code":400,"name":"WEBDOCUMENT_MIME_INVALID","description":"Invalid webdocument mime type provided"},{"code":400,"name":"WEBDOCUMENT_SIZE_TOO_BIG","description":"Webdocument is too big!"}],"available":"bot"},{"name":"sendInlineBotResult","id":570955184,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"silent","type":"true","optional":true,"predicate":"flags.5","description":"Whether to send the message silently (no notification will be triggered on the other client)"},{"name":"background","type":"true","optional":true,"predicate":"flags.6","description":"Whether to send the message in background"},{"name":"clearDraft","type":"true","optional":true,"predicate":"flags.7","description":"Whether to clear the draft"},{"name":"hideVia","type":"true","optional":true,"predicate":"flags.11","description":"Whether to hide the via @botname in the resulting message (only for bot usernames encountered in the {@link config})"},{"name":"peer","type":"InputPeer","description":"Destination"},{"name":"replyToMsgId","type":"number","optional":true,"predicate":"flags.0","description":"ID of the message this message should reply to"},{"name":"randomId","type":"Long","description":"Random ID to avoid resending the same query"},{"name":"queryId","type":"Long","description":"Query ID from {@link messages.getInlineBotResults}"},{"name":"id","type":"string","description":"Result ID from {@link messages.getInlineBotResults}"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.10","description":"Scheduled message date for scheduled messages"}],"description":"Send a result obtained using {@link messages.getInlineBotResults}.","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_RESTRICTED","description":"You can't send messages in this chat, you were restricted"},{"code":403,"name":"CHAT_SEND_GIFS_FORBIDDEN","description":"You can't send gifs in this chat"},{"code":403,"name":"CHAT_SEND_INLINE_FORBIDDEN","description":"You can't send inline messages in this group"},{"code":403,"name":"CHAT_SEND_MEDIA_FORBIDDEN","description":"You can't send media in this chat"},{"code":403,"name":"CHAT_SEND_STICKERS_FORBIDDEN","description":"You can't send stickers in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"INLINE_RESULT_EXPIRED","description":"The inline query expired"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MEDIA_EMPTY","description":"The provided media object is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"QUERY_ID_EMPTY","description":"The query ID is empty"},{"code":400,"name":"RESULT_ID_EMPTY","description":"Result ID empty"},{"code":420,"name":"SLOWMODE_WAIT_X","description":"Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"},{"code":400,"name":"WEBPAGE_CURL_FAILED","description":"Failure while fetching the webpage with cURL"},{"code":400,"name":"WEBPAGE_MEDIA_EMPTY","description":"Webpage media empty"},{"code":400,"name":"YOU_BLOCKED_USER","description":"You blocked this user"}],"available":"user"},{"name":"getMessageEditData","id":4255550774,"returns":"messages.MessageEditData","arguments":[{"name":"peer","type":"InputPeer","description":"Peer where the media was sent"},{"name":"id","type":"number","description":"ID of message"}],"description":"Find out if a media message's caption can be edited","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"MESSAGE_AUTHOR_REQUIRED","description":"Message author required"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"editMessage","id":1224152952,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noWebpage","type":"true","optional":true,"predicate":"flags.1","description":"Disable webpage preview"},{"name":"peer","type":"InputPeer","description":"Where was the message sent"},{"name":"id","type":"number","description":"ID of the message to edit"},{"name":"message","type":"string","optional":true,"predicate":"flags.11","description":"New message"},{"name":"media","type":"InputMedia","optional":true,"predicate":"flags.14","description":"New attached media"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Reply markup for inline keyboards"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.3","description":"Message entities for styled text"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.15","description":"Scheduled message date for scheduled messages"}],"description":"Edit message","throws":[{"code":400,"name":"BUTTON_DATA_INVALID","description":"The data of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_TYPE_INVALID","description":"The type of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_URL_INVALID","description":"Button URL invalid"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":403,"name":"INLINE_BOT_REQUIRED","description":"Only the inline bot can edit message"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MEDIA_CAPTION_TOO_LONG","description":"The caption is too long"},{"code":400,"name":"MEDIA_PREV_INVALID","description":"Previous media invalid"},{"code":403,"name":"MESSAGE_AUTHOR_REQUIRED","description":"Message author required"},{"code":400,"name":"MESSAGE_EDIT_TIME_EXPIRED","description":"You can't edit this message anymore, too much time has passed since its creation."},{"code":400,"name":"MESSAGE_EMPTY","description":"The provided message is empty"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"MESSAGE_NOT_MODIFIED","description":"The message text has not changed"},{"code":400,"name":"MESSAGE_TOO_LONG","description":"The provided message is too long"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"REPLY_MARKUP_INVALID","description":"The provided reply markup is invalid"},{"code":400,"name":"SCHEDULE_DATE_INVALID","description":"Invalid schedule date provided"},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"}],"available":"both"},{"name":"editInlineBotMessage","id":2203418042,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noWebpage","type":"true","optional":true,"predicate":"flags.1","description":"Disable webpage preview"},{"name":"id","type":"InputBotInlineMessageID","description":"Sent inline message ID"},{"name":"message","type":"string","optional":true,"predicate":"flags.11","description":"Message"},{"name":"media","type":"InputMedia","optional":true,"predicate":"flags.14","description":"Media"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Reply markup for inline keyboards"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.3","description":"Message entities for styled text"}],"description":"Edit an inline bot message","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"MESSAGE_NOT_MODIFIED","description":"The message text has not changed"}],"available":"both"},{"name":"getBotCallbackAnswer","id":2470627847,"returns":"messages.BotCallbackAnswer","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"game","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is a \"play game\" button"},{"name":"peer","type":"InputPeer","description":"Where was the inline keyboard sent"},{"name":"msgId","type":"number","description":"ID of the Message with the inline keyboard"},{"name":"data","type":"Buffer","optional":true,"predicate":"flags.0","description":"Callback data"},{"name":"password","type":"InputCheckPasswordSRP","optional":true,"predicate":"flags.2","description":"For buttons {@link keyboardButtonCallback}, the SRP payload generated using SRP."}],"description":"Press an inline callback button and get a callback answer from the bot","throws":[{"code":400,"name":"BOT_RESPONSE_TIMEOUT","description":"A timeout occurred while fetching data from the bot"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"DATA_INVALID","description":"Encrypted data invalid"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":-503,"name":"Timeout","description":"Timeout while fetching data"}],"available":"user"},{"name":"setBotCallbackAnswer","id":3582923530,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"alert","type":"true","optional":true,"predicate":"flags.1","description":"Whether to show the message as a popup instead of a toast notification"},{"name":"queryId","type":"Long","description":"Query ID"},{"name":"message","type":"string","optional":true,"predicate":"flags.0","description":"Popup to show"},{"name":"url","type":"string","optional":true,"predicate":"flags.2","description":"URL to open"},{"name":"cacheTime","type":"number","description":"Cache validity"}],"description":"Set the callback answer to a user button press (bots only)","throws":[{"code":400,"name":"QUERY_ID_INVALID","description":"The query ID is invalid"},{"code":400,"name":"URL_INVALID","description":"Invalid URL provided"}],"available":"both"},{"name":"getPeerDialogs","id":3832593661,"returns":"messages.PeerDialogs","arguments":[{"name":"peers","type":"InputDialogPeer[]","description":"Peers"}],"description":"Get dialog info of specified peers","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CONNECTION_DEVICE_MODEL_EMPTY","description":"Device model empty"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"saveDraft","id":3157909835,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noWebpage","type":"true","optional":true,"predicate":"flags.1","description":"Disable generation of the webpage preview"},{"name":"replyToMsgId","type":"number","optional":true,"predicate":"flags.0","description":"Message ID the message should reply to"},{"name":"peer","type":"InputPeer","description":"Destination of the message that should be sent"},{"name":"message","type":"string","description":"The draft"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.3","description":"Message entities for styled text"}],"description":"Save a message draft associated to a chat.","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getAllDrafts","id":1782549861,"returns":"Updates","arguments":[],"description":"Save get all message drafts.","available":"user"},{"name":"getFeaturedStickers","id":766298703,"returns":"messages.FeaturedStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get featured stickers","available":"user"},{"name":"readFeaturedStickers","id":1527873830,"returns":"boolean","arguments":[{"name":"id","type":"Long[]","description":"IDs of stickersets to mark as read"}],"description":"Mark new featured stickers as read","available":"user"},{"name":"getRecentStickers","id":1587647177,"returns":"messages.RecentStickers","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"attached","type":"true","optional":true,"predicate":"flags.0","description":"Get stickers recently attached to photo or video files"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get recent stickers","available":"user"},{"name":"saveRecentSticker","id":958863608,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"attached","type":"true","optional":true,"predicate":"flags.0","description":"Whether to add/remove stickers recently attached to photo or video files"},{"name":"id","type":"InputDocument","description":"Sticker"},{"name":"unsave","type":"boolean","description":"Whether to save or unsave the sticker"}],"description":"Add/remove sticker from recent stickers list","throws":[{"code":400,"name":"STICKER_ID_INVALID","description":"The provided sticker ID is invalid"}],"available":"user"},{"name":"clearRecentStickers","id":2308530221,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"attached","type":"true","optional":true,"predicate":"flags.0","description":"Set this flag to clear the list of stickers recently attached to photo or video files"}],"description":"Clear recent stickers","available":"user"},{"name":"getArchivedStickers","id":1475442322,"returns":"messages.ArchivedStickers","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"masks","type":"true","optional":true,"predicate":"flags.0","description":"Get mask stickers"},{"name":"offsetId","type":"Long","description":"Offsets for pagination, for more info click here"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"}],"description":"Get all archived stickers","available":"user"},{"name":"getMaskStickers","id":1706608543,"returns":"messages.AllStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get installed mask stickers","available":"user"},{"name":"getAttachedStickers","id":3428542412,"returns":"StickerSetCovered[]","arguments":[{"name":"media","type":"InputStickeredMedia","description":"Stickered media"}],"description":"Get stickers attached to a photo or video","available":"user"},{"name":"setGameScore","id":2398678208,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"editMessage","type":"true","optional":true,"predicate":"flags.0","description":"Set this flag if the game message should be automatically edited to include the current scoreboard"},{"name":"force","type":"true","optional":true,"predicate":"flags.1","description":"Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters"},{"name":"peer","type":"InputPeer","description":"Unique identifier of target chat"},{"name":"id","type":"number","description":"Identifier of the sent message"},{"name":"userId","type":"InputUser","description":"User identifier"},{"name":"score","type":"number","description":"New score"}],"description":"Use this method to set the score of the specified user in a game sent as a normal message (bots only).","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USER_BOT_REQUIRED","description":"This method can only be called by a bot"}],"available":"both"},{"name":"setInlineGameScore","id":363700068,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"editMessage","type":"true","optional":true,"predicate":"flags.0","description":"Set this flag if the game message should be automatically edited to include the current scoreboard"},{"name":"force","type":"true","optional":true,"predicate":"flags.1","description":"Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters"},{"name":"id","type":"InputBotInlineMessageID","description":"ID of the inline message"},{"name":"userId","type":"InputUser","description":"User identifier"},{"name":"score","type":"number","description":"New score"}],"description":"Use this method to set the score of the specified user in a game sent as an inline message (bots only).","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"USER_BOT_REQUIRED","description":"This method can only be called by a bot"}],"available":"both"},{"name":"getGameHighScores","id":3894568093,"returns":"messages.HighScores","arguments":[{"name":"peer","type":"InputPeer","description":"Where was the game sent"},{"name":"id","type":"number","description":"ID of message with game media attachment"},{"name":"userId","type":"InputUser","description":"Get high scores made by a certain user"}],"description":"Get highscores of a game","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USER_BOT_REQUIRED","description":"This method can only be called by a bot"}],"available":"both"},{"name":"getInlineGameHighScores","id":258170395,"returns":"messages.HighScores","arguments":[{"name":"id","type":"InputBotInlineMessageID","description":"ID of inline message"},{"name":"userId","type":"InputUser","description":"Get high scores of a certain user"}],"description":"Get highscores of a game sent using an inline bot","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"USER_BOT_REQUIRED","description":"This method can only be called by a bot"}],"available":"both"},{"name":"getCommonChats","id":218777796,"returns":"messages.Chats","arguments":[{"name":"userId","type":"InputUser","description":"User ID"},{"name":"maxId","type":"number","description":"Maximum ID of chat to return (see pagination)"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"}],"description":"Get chats in common with a user","throws":[{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"user"},{"name":"getAllChats","id":3953659888,"returns":"messages.Chats","arguments":[{"name":"exceptIds","type":"number[]","description":"Except these chats/channels/supergroups"}],"description":"Get all chats, channels and supergroups","available":"user"},{"name":"getWebPage","id":852135825,"returns":"WebPage","arguments":[{"name":"url","type":"string","description":"URL of IV page to fetch"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get instant view page","throws":[{"code":400,"name":"WC_CONVERT_URL_INVALID","description":"WC convert URL invalid"}],"available":"user"},{"name":"toggleDialogPin","id":2805064279,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.0","description":"Whether to pin or unpin the dialog"},{"name":"peer","type":"InputDialogPeer","description":"The dialog to pin"}],"description":"Pin/unpin a dialog","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"reorderPinnedDialogs","id":991616823,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"force","type":"true","optional":true,"predicate":"flags.0","description":"If set, dialogs pinned server-side but not present in the order field will be unpinned."},{"name":"folderId","type":"number","description":"Peer folder ID, for more info click here"},{"name":"order","type":"InputDialogPeer[]","description":"New dialog order"}],"description":"Reorder pinned dialogs","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getPinnedDialogs","id":3602468338,"returns":"messages.PeerDialogs","arguments":[{"name":"folderId","type":"number","description":"Peer folder ID, for more info click here"}],"description":"Get pinned dialogs","throws":[{"code":400,"name":"FOLDER_ID_INVALID","description":"Invalid folder ID"}],"available":"user"},{"name":"setBotShippingResults","id":3858133754,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"queryId","type":"Long","description":"Unique identifier for the query to be answered"},{"name":"error","type":"string","optional":true,"predicate":"flags.0","description":"Error message in human readable form that explains why it is impossible to complete the order (e.g. \"Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user."},{"name":"shippingOptions","type":"ShippingOption[]","optional":true,"predicate":"flags.1","description":"A vector of available shipping options."}],"description":"If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an {@link updateBotShippingQuery} update. Use this method to reply to shipping queries.","throws":[{"code":400,"name":"QUERY_ID_INVALID","description":"The query ID is invalid"}],"available":"both"},{"name":"setBotPrecheckoutResults","id":163765653,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"success","type":"true","optional":true,"predicate":"flags.1","description":"Set this flag if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order, otherwise do not set it, and set the error field, instead"},{"name":"queryId","type":"Long","description":"Unique identifier for the query to be answered"},{"name":"error","type":"string","optional":true,"predicate":"flags.0","description":"Required if the success isn't set. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. \"Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!\"). Telegram will display this message to the user."}],"description":"Once the user has confirmed their payment and shipping details, the bot receives an {@link updateBotPrecheckoutQuery} update.
\nUse this method to respond to such pre-checkout queries.
\nNote: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent.","throws":[{"code":400,"name":"ERROR_TEXT_EMPTY","description":"The provided error message is empty"}],"available":"both"},{"name":"uploadMedia","id":1369162417,"returns":"MessageMedia","arguments":[{"name":"peer","type":"InputPeer","description":"The chat, can be an {@link inputPeerEmpty} for bots"},{"name":"media","type":"InputMedia","description":"File uploaded in chunks as described in files »"}],"description":"Upload a file and associate it to a chat (without actually sending it to the chat)","throws":[{"code":400,"name":"BOT_MISSING","description":"This method can only be run by a bot"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"FILE_PARTS_INVALID","description":"The number of file parts is invalid"},{"code":400,"name":"IMAGE_PROCESS_FAILED","description":"Failure while processing image"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MEDIA_INVALID","description":"Media invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"PHOTO_EXT_INVALID","description":"The extension of the photo is invalid"},{"code":400,"name":"PHOTO_SAVE_FILE_INVALID","description":"Internal issues, try again later"},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"},{"code":400,"name":"WEBPAGE_CURL_FAILED","description":"Failure while fetching the webpage with cURL"}],"available":"both"},{"name":"sendScreenshotNotification","id":3380473888,"returns":"Updates","arguments":[{"name":"peer","type":"InputPeer","description":"Other user"},{"name":"replyToMsgId","type":"number","description":"ID of message that was screenshotted, can be 0"},{"name":"randomId","type":"Long","description":"Random ID to avoid message resending"}],"description":"Notify the other user in a private chat that a screenshot of the chat was taken","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getFavedStickers","id":567151374,"returns":"messages.FavedStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get faved stickers","available":"user"},{"name":"faveSticker","id":3120547163,"returns":"boolean","arguments":[{"name":"id","type":"InputDocument","description":"Sticker to mark as favorite"},{"name":"unfave","type":"boolean","description":"Unfavorite"}],"description":"Mark a sticker as favorite","throws":[{"code":400,"name":"STICKER_ID_INVALID","description":"The provided sticker ID is invalid"}],"available":"user"},{"name":"getUnreadMentions","id":1180140658,"returns":"messages.Messages","arguments":[{"name":"peer","type":"InputPeer","description":"Peer where to look for mentions"},{"name":"offsetId","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"addOffset","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"},{"name":"maxId","type":"number","description":"Maximum message ID to return, see pagination"},{"name":"minId","type":"number","description":"Minimum message ID to return, see pagination"}],"description":"Get unread messages where we were mentioned","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"readMentions","id":251759059,"returns":"messages.AffectedHistory","arguments":[{"name":"peer","type":"InputPeer","description":"Dialog"}],"description":"Mark mentions as read","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getRecentLocations","id":3150207753,"returns":"messages.Messages","arguments":[{"name":"peer","type":"InputPeer","description":"User"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get live location history of a certain user","available":"user"},{"name":"sendMultiMedia","id":3422621899,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"silent","type":"true","optional":true,"predicate":"flags.5","description":"Whether to send the album silently (no notification triggered)"},{"name":"background","type":"true","optional":true,"predicate":"flags.6","description":"Send in background?"},{"name":"clearDraft","type":"true","optional":true,"predicate":"flags.7","description":"Whether to clear drafts"},{"name":"peer","type":"InputPeer","description":"The destination chat"},{"name":"replyToMsgId","type":"number","optional":true,"predicate":"flags.0","description":"The message to reply to"},{"name":"multiMedia","type":"InputSingleMedia[]","description":"The medias to send"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.10","description":"Scheduled message date for scheduled messages"}],"description":"Send an album or grouped media","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"MEDIA_EMPTY","description":"The provided media object is invalid"},{"code":400,"name":"MEDIA_INVALID","description":"Media invalid"},{"code":400,"name":"MULTI_MEDIA_TOO_LONG","description":"Too many media files for album"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"RANDOM_ID_EMPTY","description":"Random ID empty"}],"available":"both"},{"name":"uploadEncryptedFile","id":1347929239,"returns":"EncryptedFile","arguments":[{"name":"peer","type":"InputEncryptedChat","description":"The secret chat to associate the file to"},{"name":"file","type":"InputEncryptedFile","description":"The file"}],"description":"Upload encrypted file and associate it to a secret chat","available":"user"},{"name":"searchStickerSets","id":3266826379,"returns":"messages.FoundStickerSets","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"excludeFeatured","type":"true","optional":true,"predicate":"flags.0","description":"Exclude featured stickersets from results"},{"name":"q","type":"string","description":"Query string"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Search for stickersets","available":"user"},{"name":"getSplitRanges","id":486505992,"returns":"MessageRange[]","arguments":[],"description":"Get message ranges for saving the user's chat history","available":"user"},{"name":"markDialogUnread","id":3263617423,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"unread","type":"true","optional":true,"predicate":"flags.0","description":"Mark as unread/read"},{"name":"peer","type":"InputDialogPeer","description":"Dialog"}],"description":"Manually mark dialog as unread","available":"user"},{"name":"getDialogUnreadMarks","id":585256482,"returns":"DialogPeer[]","arguments":[],"description":"Get dialogs manually marked as unread","available":"user"},{"name":"clearAllDrafts","id":2119757468,"returns":"boolean","arguments":[],"description":"Clear all drafts.","available":"user"},{"name":"updatePinnedMessage","id":3534419948,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"silent","type":"true","optional":true,"predicate":"flags.0","description":"Pin the message silently, without triggering a notification"},{"name":"unpin","type":"true","optional":true,"predicate":"flags.1","description":"Whether the message should unpinned or pinned"},{"name":"pmOneside","type":"true","optional":true,"predicate":"flags.2","description":"Whether the message should only be pinned on the local side of a one-to-one chat"},{"name":"peer","type":"InputPeer","description":"The peer where to pin the message"},{"name":"id","type":"number","description":"The message to pin or unpin"}],"description":"Pin a message","throws":[{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"PIN_RESTRICTED","description":"You can't pin messages"}],"available":"both"},{"name":"sendVote","id":283795844,"returns":"Updates","arguments":[{"name":"peer","type":"InputPeer","description":"The chat where the poll was sent"},{"name":"msgId","type":"number","description":"The message ID of the poll"},{"name":"options","type":"Buffer[]","description":"The options that were chosen"}],"description":"Vote in a {@link poll}","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"MESSAGE_POLL_CLOSED","description":"Poll closed"},{"code":400,"name":"OPTIONS_TOO_MUCH","description":"Too many options provided"},{"code":400,"name":"OPTION_INVALID","description":"Invalid option selected"},{"code":400,"name":"REVOTE_NOT_ALLOWED","description":"You cannot change your vote"}],"available":"user"},{"name":"getPollResults","id":1941660731,"returns":"Updates","arguments":[{"name":"peer","type":"InputPeer","description":"Peer where the poll was found"},{"name":"msgId","type":"number","description":"Message ID of poll message"}],"description":"Get poll results","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"}],"available":"user"},{"name":"getOnlines","id":1848369232,"returns":"ChatOnlines","arguments":[{"name":"peer","type":"InputPeer","description":"The chat"}],"description":"Get count of online users in a chat","throws":[{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getStatsURL","id":2167155430,"returns":"StatsURL","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"dark","type":"true","optional":true,"predicate":"flags.0","description":"Pass true if a URL with the dark theme must be returned"},{"name":"peer","type":"InputPeer","description":"Chat identifier"},{"name":"params","type":"string","description":"Parameters from tg://statsrefresh?params=****** link"}],"description":"Returns URL with the chat statistics. Currently this method can be used only for channels","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"editChatAbout","id":3740665751,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer","description":"The group/supergroup/channel."},{"name":"about","type":"string","description":"The new description"}],"description":"Edit the description of a group/supergroup/channel.","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ABOUT_NOT_MODIFIED","description":"About text has not changed"},{"code":400,"name":"CHAT_ABOUT_TOO_LONG","description":"Chat about too long"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"both"},{"name":"editChatDefaultBannedRights","id":2777049921,"returns":"Updates","arguments":[{"name":"peer","type":"InputPeer","description":"The peer"},{"name":"bannedRights","type":"ChatBannedRights","description":"The new global rights"}],"description":"Edit the default banned rights of a channel/supergroup/group.","throws":[{"code":400,"name":"BANNED_RIGHTS_INVALID","description":"You provided some invalid flags in the banned rights"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"UNTIL_DATE_INVALID","description":"Invalid until date provided"}],"available":"both"},{"name":"getEmojiKeywords","id":899735650,"returns":"EmojiKeywordsDifference","arguments":[{"name":"langCode","type":"string","description":"Language code"}],"description":"Get localized emoji keywords","available":"user"},{"name":"getEmojiKeywordsDifference","id":352892591,"returns":"EmojiKeywordsDifference","arguments":[{"name":"langCode","type":"string","description":"Language code"},{"name":"fromVersion","type":"number","description":"Previous emoji keyword localization version"}],"description":"Get changed emoji keywords","available":"user"},{"name":"getEmojiKeywordsLanguages","id":1318675378,"returns":"EmojiLanguage[]","arguments":[{"name":"langCodes","type":"string[]","description":"Language codes"}],"description":"Get info about an emoji keyword localization","available":"user"},{"name":"getEmojiURL","id":3585149990,"returns":"EmojiURL","arguments":[{"name":"langCode","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 into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation","available":"user"},{"name":"getSearchCounters","id":1932455680,"returns":"messages.SearchCounter[]","arguments":[{"name":"peer","type":"InputPeer","description":"Peer where to search"},{"name":"filters","type":"MessagesFilter[]","description":"Search filters"}],"description":"Get the number of results that would be found by a {@link messages.search} call with the same parameters","available":"user"},{"name":"requestUrlAuth","id":428848198,"returns":"UrlAuthResult","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"peer","type":"InputPeer","optional":true,"predicate":"flags.1","description":"Peer where the message is located"},{"name":"msgId","type":"number","optional":true,"predicate":"flags.1","description":"The message"},{"name":"buttonId","type":"number","optional":true,"predicate":"flags.1","description":"The ID of the button with the authorization request"},{"name":"url","type":"string","optional":true,"predicate":"flags.2"}],"description":"Get more info about a Seamless Telegram Login authorization request, for more info click here »","available":"user"},{"name":"acceptUrlAuth","id":2972479781,"returns":"UrlAuthResult","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"writeAllowed","type":"true","optional":true,"predicate":"flags.0","description":"Set this flag to allow the bot to send messages to you (if requested)"},{"name":"peer","type":"InputPeer","optional":true,"predicate":"flags.1","description":"The location of the message"},{"name":"msgId","type":"number","optional":true,"predicate":"flags.1","description":"Message ID of the message with the login button"},{"name":"buttonId","type":"number","optional":true,"predicate":"flags.1","description":"ID of the login button"},{"name":"url","type":"string","optional":true,"predicate":"flags.2"}],"description":"Use this to accept a Seamless Telegram Login authorization request, for more info click here »","available":"user"},{"name":"hidePeerSettingsBar","id":1336717624,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"}],"description":"Should be called after the user hides the report spam/add as contact bar of a new chat, effectively prevents the user from executing the actions specified in the {@link peerSettings}.","available":"user"},{"name":"getScheduledHistory","id":3804391515,"returns":"messages.Messages","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get scheduled messages","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getScheduledMessages","id":3183150180,"returns":"messages.Messages","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"},{"name":"id","type":"number[]","description":"IDs of scheduled messages"}],"description":"Get scheduled messages","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"sendScheduledMessages","id":3174597898,"returns":"Updates","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"},{"name":"id","type":"number[]","description":"Scheduled message IDs"}],"description":"Send scheduled messages right away","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"}],"available":"user"},{"name":"deleteScheduledMessages","id":1504586518,"returns":"Updates","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"},{"name":"id","type":"number[]","description":"Scheduled message IDs"}],"description":"Delete scheduled messages","available":"user"},{"name":"getPollVotes","id":3094231054,"returns":"messages.VotesList","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","description":"Chat where the poll was sent"},{"name":"id","type":"number","description":"Message ID"},{"name":"option","type":"Buffer","optional":true,"predicate":"flags.0","description":"Get only results for the specified poll option"},{"name":"offset","type":"string","optional":true,"predicate":"flags.1","description":"Offset for results, taken from the next_offset field of {@link messages.votesList}, initially an empty string.
Note: if no more results are available, the method call will return an empty next_offset; thus, avoid providing the next_offset returned in {@link messages.votesList} if it is empty, to avoid an infinite loop."},{"name":"limit","type":"number","description":"Number of results to return"}],"description":"Get poll results for non-anonymous polls","throws":[{"code":403,"name":"BROADCAST_FORBIDDEN","description":" "},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":403,"name":"POLL_VOTE_REQUIRED","description":"Cast a vote in the poll before calling this method"}],"available":"user"},{"name":"toggleStickerSets","id":3037016042,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"uninstall","type":"true","optional":true,"predicate":"flags.0","description":"Uninstall the specified stickersets"},{"name":"archive","type":"true","optional":true,"predicate":"flags.1","description":"Archive the specified stickersets"},{"name":"unarchive","type":"true","optional":true,"predicate":"flags.2","description":"Unarchive the specified stickersets"},{"name":"stickersets","type":"InputStickerSet[]","description":"Stickersets to act upon"}],"description":"Apply changes to multiple stickersets","available":"user"},{"name":"getDialogFilters","id":4053719405,"returns":"DialogFilter[]","arguments":[],"description":"Get folders","available":"user"},{"name":"getSuggestedDialogFilters","id":2728186924,"returns":"DialogFilterSuggested[]","arguments":[],"description":"Get suggested folders","available":"user"},{"name":"updateDialogFilter","id":450142282,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"number","description":"Folder ID"},{"name":"filter","type":"DialogFilter","optional":true,"predicate":"flags.0","description":"Folder info"}],"description":"Update folder","throws":[{"code":400,"name":"FILTER_ID_INVALID","description":"The specified filter ID is invalid"}],"available":"user"},{"name":"updateDialogFiltersOrder","id":3311649252,"returns":"boolean","arguments":[{"name":"order","type":"number[]","description":"New folder order"}],"description":"Reorder folders","available":"user"},{"name":"getOldFeaturedStickers","id":1608974939,"returns":"messages.FeaturedStickers","arguments":[{"name":"offset","type":"number","description":"Offset"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Method for fetching previously featured stickers","available":"user"},{"name":"getReplies","id":615875002,"returns":"messages.Messages","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"},{"name":"msgId","type":"number","description":"Message ID"},{"name":"offsetId","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"offsetDate","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"addOffset","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"},{"name":"maxId","type":"number","description":"If a positive value was transferred, the method will return only messages with ID smaller than max_id"},{"name":"minId","type":"number","description":"If a positive value was transferred, the method will return only messages with ID bigger than min_id"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get messages in a reply thread","available":"both"},{"name":"getDiscussionMessage","id":1147761405,"returns":"messages.DiscussionMessage","arguments":[{"name":"peer","type":"InputPeer","description":"Channel ID"},{"name":"msgId","type":"number","description":"Message ID"}],"description":"Get discussion message from the associated discussion group of a channel to show it on top of the comment section, without actually joining the group","available":"both"},{"name":"readDiscussion","id":4147227124,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer","description":"Group ID"},{"name":"msgId","type":"number","description":"ID of message that started the thread"},{"name":"readMaxId","type":"number","description":"ID up to which thread messages were read"}],"description":"Mark a thread as read","available":"both"},{"name":"unpinAllMessages","id":4029004939,"returns":"messages.AffectedHistory","arguments":[{"name":"peer","type":"InputPeer","description":"Chat where to unpin"}],"description":"Unpin all pinned messages","available":"both"},{"name":"deleteChat","id":2200206609,"returns":"boolean","arguments":[{"name":"chatId","type":"number"}]},{"name":"deletePhoneCallHistory","id":4190888969,"returns":"messages.AffectedFoundMessages","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"revoke","type":"true","optional":true,"predicate":"flags.0"}]},{"name":"checkHistoryImport","id":1140726259,"returns":"messages.HistoryImportParsed","arguments":[{"name":"importHead","type":"string"}]},{"name":"initHistoryImport","id":873008187,"returns":"messages.HistoryImport","arguments":[{"name":"peer","type":"InputPeer"},{"name":"file","type":"InputFile"},{"name":"mediaCount","type":"number"}]},{"name":"uploadImportedMedia","id":713433234,"returns":"MessageMedia","arguments":[{"name":"peer","type":"InputPeer"},{"name":"importId","type":"Long"},{"name":"fileName","type":"string"},{"name":"media","type":"InputMedia"}]},{"name":"startHistoryImport","id":3023958852,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer"},{"name":"importId","type":"Long"}]},{"name":"getExportedChatInvites","id":2729812982,"returns":"messages.ExportedChatInvites","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"revoked","type":"true","optional":true,"predicate":"flags.3"},{"name":"peer","type":"InputPeer"},{"name":"adminId","type":"InputUser"},{"name":"offsetDate","type":"number","optional":true,"predicate":"flags.2"},{"name":"offsetLink","type":"string","optional":true,"predicate":"flags.2"},{"name":"limit","type":"number"}]},{"name":"getExportedChatInvite","id":1937010524,"returns":"messages.ExportedChatInvite","arguments":[{"name":"peer","type":"InputPeer"},{"name":"link","type":"string"}]},{"name":"editExportedChatInvite","id":48562110,"returns":"messages.ExportedChatInvite","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"revoked","type":"true","optional":true,"predicate":"flags.2"},{"name":"peer","type":"InputPeer"},{"name":"link","type":"string"},{"name":"expireDate","type":"number","optional":true,"predicate":"flags.0"},{"name":"usageLimit","type":"number","optional":true,"predicate":"flags.1"}]},{"name":"deleteRevokedExportedChatInvites","id":1452833749,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer"},{"name":"adminId","type":"InputUser"}]},{"name":"deleteExportedChatInvite","id":3563365419,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer"},{"name":"link","type":"string"}]},{"name":"getAdminsWithInvites","id":958457583,"returns":"messages.ChatAdminsWithInvites","arguments":[{"name":"peer","type":"InputPeer"}]},{"name":"getChatInviteImporters","id":654013065,"returns":"messages.ChatInviteImporters","arguments":[{"name":"peer","type":"InputPeer"},{"name":"link","type":"string"},{"name":"offsetDate","type":"number"},{"name":"offsetUser","type":"InputUser"},{"name":"limit","type":"number"}]},{"name":"setHistoryTTL","id":3087949796,"returns":"Updates","arguments":[{"name":"peer","type":"InputPeer"},{"name":"period","type":"number"}]},{"name":"checkHistoryImportPeer","id":1573261059,"returns":"messages.CheckedHistoryImportPeer","arguments":[{"name":"peer","type":"InputPeer"}]}],"unions":[{"type":"Dialogs","subtypes":["messages.dialogs","messages.dialogsSlice","messages.dialogsNotModified"],"description":"Object contains a list of chats with messages and auxiliary data."},{"type":"Messages","subtypes":["messages.messages","messages.messagesSlice","messages.channelMessages","messages.messagesNotModified"],"description":"Object contains infor on list of messages with auxiliary data."},{"type":"Chats","subtypes":["messages.chats","messages.chatsSlice"],"description":"Object contains list of chats with auxiliary data."},{"type":"ChatFull","subtypes":["messages.chatFull"],"description":"Object contains extended info on chat with auxiliary data."},{"type":"AffectedHistory","subtypes":["messages.affectedHistory"],"description":"Object contains info on affected part of communication history with the user or in a chat."},{"type":"DhConfig","subtypes":["messages.dhConfigNotModified","messages.dhConfig"],"description":"Contains info on cofiguring parameters for key generation by Diffie-Hellman protocol."},{"type":"SentEncryptedMessage","subtypes":["messages.sentEncryptedMessage","messages.sentEncryptedFile"],"description":"Contains info on message sent to an encrypted chat."},{"type":"Stickers","subtypes":["messages.stickersNotModified","messages.stickers"],"description":"Stickers"},{"type":"AllStickers","subtypes":["messages.allStickersNotModified","messages.allStickers"],"description":"All stickers"},{"type":"AffectedMessages","subtypes":["messages.affectedMessages"],"description":"Messages affected by changes"},{"type":"StickerSet","subtypes":["messages.stickerSet"],"description":"Stickerset"},{"type":"SavedGifs","subtypes":["messages.savedGifsNotModified","messages.savedGifs"],"description":"Saved GIFs"},{"type":"BotResults","subtypes":["messages.botResults"],"description":"Result of a query to an inline bot"},{"type":"BotCallbackAnswer","subtypes":["messages.botCallbackAnswer"],"description":"Callback answer of bot"},{"type":"MessageEditData","subtypes":["messages.messageEditData"],"description":"Message edit data for media"},{"type":"PeerDialogs","subtypes":["messages.peerDialogs"],"description":"List of dialogs"},{"type":"FeaturedStickers","subtypes":["messages.featuredStickersNotModified","messages.featuredStickers"],"description":"Featured stickers"},{"type":"RecentStickers","subtypes":["messages.recentStickersNotModified","messages.recentStickers"],"description":"Recent stickers"},{"type":"ArchivedStickers","subtypes":["messages.archivedStickers"],"description":"Archived stickers"},{"type":"StickerSetInstallResult","subtypes":["messages.stickerSetInstallResultSuccess","messages.stickerSetInstallResultArchive"],"description":"Result of stickerset installation process"},{"type":"HighScores","subtypes":["messages.highScores"],"description":"High scores (in games)"},{"type":"FavedStickers","subtypes":["messages.favedStickersNotModified","messages.favedStickers"],"description":"Favorited stickers"},{"type":"FoundStickerSets","subtypes":["messages.foundStickerSetsNotModified","messages.foundStickerSets"],"description":"Found stickersets"},{"type":"SearchCounter","subtypes":["messages.searchCounter"],"description":"Number of results that would be returned by a search"},{"type":"InactiveChats","subtypes":["messages.inactiveChats"],"description":"Inactive chat list"},{"type":"VotesList","subtypes":["messages.votesList"],"description":"How users voted in a poll"},{"type":"MessageViews","subtypes":["messages.messageViews"],"description":"View, forward counter + info about replies"},{"type":"DiscussionMessage","subtypes":["messages.discussionMessage"],"description":"Info about a message thread"},{"type":"HistoryImport","subtypes":["messages.historyImport"]},{"type":"HistoryImportParsed","subtypes":["messages.historyImportParsed"]},{"type":"AffectedFoundMessages","subtypes":["messages.affectedFoundMessages"]},{"type":"ExportedChatInvites","subtypes":["messages.exportedChatInvites"]},{"type":"ExportedChatInvite","subtypes":["messages.exportedChatInvite","messages.exportedChatInviteReplaced"]},{"type":"ChatInviteImporters","subtypes":["messages.chatInviteImporters"]},{"type":"ChatAdminsWithInvites","subtypes":["messages.chatAdminsWithInvites"]},{"type":"CheckedHistoryImportPeer","subtypes":["messages.checkedHistoryImportPeer"]}]},"updates":{"classes":[{"name":"state","id":2775329342,"type":"updates.State","arguments":[{"name":"pts","type":"number","description":"Number of events occured in a text box"},{"name":"qts","type":"number","description":"Position in a sequence of updates in secret chats. For further detailes refer to article secret chats
Parameter was added in eigth layer."},{"name":"date","type":"number","description":"Date of condition"},{"name":"seq","type":"number","description":"Number of sent updates"},{"name":"unreadCount","type":"number","description":"Number of unread messages"}],"description":"Updates state."},{"name":"differenceEmpty","id":1567990072,"type":"updates.Difference","arguments":[{"name":"date","type":"number","description":"Current date"},{"name":"seq","type":"number","description":"Number of sent updates"}],"description":"No events."},{"name":"difference","id":16030880,"type":"updates.Difference","arguments":[{"name":"newMessages","type":"Message[]","description":"List of new messages"},{"name":"newEncryptedMessages","type":"EncryptedMessage[]","description":"List of new encrypted secret chat messages"},{"name":"otherUpdates","type":"Update[]","description":"List of updates"},{"name":"chats","type":"Chat[]","description":"List of chats mentioned in events"},{"name":"users","type":"User[]","description":"List of users mentioned in events"},{"name":"state","type":"updates.State","description":"Current state"}],"description":"Full list of occurred events."},{"name":"differenceSlice","id":2835028353,"type":"updates.Difference","arguments":[{"name":"newMessages","type":"Message[]","description":"List of new messgaes"},{"name":"newEncryptedMessages","type":"EncryptedMessage[]","description":"New messages from the encrypted event sequence"},{"name":"otherUpdates","type":"Update[]","description":"List of updates"},{"name":"chats","type":"Chat[]","description":"List of chats mentioned in events"},{"name":"users","type":"User[]","description":"List of users mentioned in events"},{"name":"intermediateState","type":"updates.State","description":"Intermediary state"}],"description":"Incomplete list of occurred events."},{"name":"differenceTooLong","id":1258196845,"type":"updates.Difference","arguments":[{"name":"pts","type":"number","description":"The new state to use."}],"description":"The difference is too long, and the specified state must be used to refetch updates."},{"name":"channelDifferenceEmpty","id":1041346555,"type":"updates.ChannelDifference","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"final","type":"true","optional":true,"predicate":"flags.0","description":"Whether there are more updates that must be fetched (always false)"},{"name":"pts","type":"number","description":"The latest PTS"},{"name":"timeout","type":"number","optional":true,"predicate":"flags.1","description":"Clients are supposed to refetch the channel difference after timeout seconds have elapsed"}],"description":"There are no new updates"},{"name":"channelDifferenceTooLong","id":2763835134,"type":"updates.ChannelDifference","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"final","type":"true","optional":true,"predicate":"flags.0","description":"Whether there are more updates that must be fetched (always false)"},{"name":"timeout","type":"number","optional":true,"predicate":"flags.1","description":"Clients are supposed to refetch the channel difference after timeout seconds have elapsed"},{"name":"dialog","type":"Dialog","description":"Dialog containing the latest PTS that can be used to reset the channel state"},{"name":"messages","type":"Message[]","description":"The latest messages"},{"name":"chats","type":"Chat[]","description":"Chats from messages"},{"name":"users","type":"User[]","description":"Users from messages"}],"description":"The provided pts + limit < remote pts. Simply, there are too many updates to be fetched (more than limit), the client has to resolve the update gap in one of the following ways:"},{"name":"channelDifference","id":543450958,"type":"updates.ChannelDifference","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"final","type":"true","optional":true,"predicate":"flags.0","description":"Whether there are more updates to be fetched using getDifference, starting from the provided pts"},{"name":"pts","type":"number","description":"The PTS from which to start getting updates the next time"},{"name":"timeout","type":"number","optional":true,"predicate":"flags.1","description":"Clients are supposed to refetch the channel difference after timeout seconds have elapsed"},{"name":"newMessages","type":"Message[]","description":"New messages"},{"name":"otherUpdates","type":"Update[]","description":"Other updates"},{"name":"chats","type":"Chat[]","description":"Chats"},{"name":"users","type":"User[]","description":"Users"}],"description":"The new updates"}],"methods":[{"name":"getState","id":3990128682,"returns":"updates.State","arguments":[],"description":"Returns a current state of updates.","available":"both"},{"name":"getDifference","id":630429265,"returns":"updates.Difference","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pts","type":"number","description":"PTS, see updates."},{"name":"ptsTotalLimit","type":"number","optional":true,"predicate":"flags.0","description":"For fast updating: if provided and pts + pts_total_limit < remote pts, {@link updates.differenceTooLong} will be returned.
Simply tells the server to not return the difference if it is bigger than pts_total_limit
If the remote pts is too big (> ~4000000), this field will default to 1000000"},{"name":"date","type":"number","description":"date, see updates."},{"name":"qts","type":"number","description":"QTS, see updates."}],"description":"Get new updates.","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"CDN_METHOD_INVALID","description":"You can't call this method in a CDN DC"},{"code":400,"name":"DATE_EMPTY","description":"Date empty"},{"code":400,"name":"PERSISTENT_TIMESTAMP_EMPTY","description":"Persistent timestamp empty"},{"code":400,"name":"PERSISTENT_TIMESTAMP_INVALID","description":"Persistent timestamp invalid"}],"available":"both"},{"name":"getChannelDifference","id":51854712,"returns":"updates.ChannelDifference","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"force","type":"true","optional":true,"predicate":"flags.0","description":"Set to true to skip some possibly unneeded updates and reduce server-side load"},{"name":"channel","type":"InputChannel","description":"The channel"},{"name":"filter","type":"ChannelMessagesFilter","description":"Messsage filter"},{"name":"pts","type":"number","description":"Persistent timestamp (see updates)"},{"name":"limit","type":"number","description":"How many updates to fetch, max 100000
Ordinary (non-bot) users are supposed to pass 10-100"}],"description":"Returns the difference between the current state of updates of a certain channel and transmitted.","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":403,"name":"CHANNEL_PUBLIC_GROUP_NA","description":"channel/supergroup not available"},{"code":400,"name":"FROM_MESSAGE_BOT_DISABLED","description":"Bots can't use fromMessage min constructors"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PERSISTENT_TIMESTAMP_EMPTY","description":"Persistent timestamp empty"},{"code":400,"name":"PERSISTENT_TIMESTAMP_INVALID","description":"Persistent timestamp invalid"},{"code":400,"name":"PINNED_DIALOGS_TOO_MUCH","description":"Too many pinned dialogs"},{"code":400,"name":"RANGES_INVALID","description":"Invalid range provided"}],"available":"both"}],"unions":[{"type":"State","subtypes":["updates.state"],"description":"Object contains info on state for further updates."},{"type":"Difference","subtypes":["updates.differenceEmpty","updates.difference","updates.differenceSlice","updates.differenceTooLong"],"description":"Occurred changes."},{"type":"ChannelDifference","subtypes":["updates.channelDifferenceEmpty","updates.channelDifferenceTooLong","updates.channelDifference"],"description":"Contains the difference (new messages) between our local channel state and the remote state"}]},"photos":{"classes":[{"name":"photos","id":2378853029,"type":"photos.Photos","arguments":[{"name":"photos","type":"Photo[]","description":"List of photos"},{"name":"users","type":"User[]","description":"List of mentioned users"}],"description":"Full list of photos with auxiliary data."},{"name":"photosSlice","id":352657236,"type":"photos.Photos","arguments":[{"name":"count","type":"number","description":"Total number of photos"},{"name":"photos","type":"Photo[]","description":"List of photos"},{"name":"users","type":"User[]","description":"List of mentioned users"}],"description":"Incomplete list of photos with auxiliary data."},{"name":"photo","id":539045032,"type":"photos.Photo","arguments":[{"name":"photo","type":"Photo","description":"Photo"},{"name":"users","type":"User[]","description":"Users"}],"description":"Photo with auxiliary data."}],"methods":[{"name":"updateProfilePhoto","id":1926525996,"returns":"photos.Photo","arguments":[{"name":"id","type":"InputPhoto","description":"Input photo"}],"description":"Installs a previously uploaded photo as a profile photo.","throws":[{"code":400,"name":"FILE_PARTS_INVALID","description":"The number of file parts is invalid"},{"code":400,"name":"IMAGE_PROCESS_FAILED","description":"Failure while processing image"},{"code":400,"name":"LOCATION_INVALID","description":"The provided location is invalid"},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","description":"Photo is too small"},{"code":400,"name":"PHOTO_EXT_INVALID","description":"The extension of the photo is invalid"},{"code":400,"name":"PHOTO_ID_INVALID","description":"Photo ID invalid"}],"available":"user"},{"name":"uploadProfilePhoto","id":2314407785,"returns":"photos.Photo","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"file","type":"InputFile","optional":true,"predicate":"flags.0","description":"File saved in parts by means of {@link upload.saveFilePart} method"},{"name":"video","type":"InputFile","optional":true,"predicate":"flags.1","description":"Animated profile picture video"},{"name":"videoStartTs","type":"Double","optional":true,"predicate":"flags.2","description":"Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview."}],"description":"Updates current user profile photo.","throws":[{"code":400,"name":"FILE_PARTS_INVALID","description":"The number of file parts is invalid"},{"code":400,"name":"IMAGE_PROCESS_FAILED","description":"Failure while processing image"},{"code":400,"name":"PHOTO_CROP_FILE_MISSING","description":"Photo crop file missing"},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","description":"Photo is too small"},{"code":400,"name":"PHOTO_EXT_INVALID","description":"The extension of the photo is invalid"},{"code":400,"name":"PHOTO_FILE_MISSING","description":"Profile photo file missing"},{"code":400,"name":"VIDEO_FILE_INVALID","description":"The specified video file is invalid"}],"available":"user"},{"name":"deletePhotos","id":2278522671,"returns":"Long[]","arguments":[{"name":"id","type":"InputPhoto[]","description":"Input photos to delete"}],"description":"Deletes profile photos.","available":"user"},{"name":"getUserPhotos","id":2446144168,"returns":"photos.Photos","arguments":[{"name":"userId","type":"InputUser","description":"User ID"},{"name":"offset","type":"number","description":"Number of list elements to be skipped"},{"name":"maxId","type":"Long","description":"If a positive value was transferred, the method will return only photos with IDs less than the set one"},{"name":"limit","type":"number","description":"Number of list elements to be returned"}],"description":"Returns the list of user photos.","throws":[{"code":400,"name":"MAX_ID_INVALID","description":"The provided max ID is invalid"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"both"}],"unions":[{"type":"Photos","subtypes":["photos.photos","photos.photosSlice"],"description":"Object contains list of photos with auxiliary data."},{"type":"Photo","subtypes":["photos.photo"],"description":"Photo with auxiliary data."}]},"upload":{"classes":[{"name":"file","id":157948117,"type":"upload.File","arguments":[{"name":"type","type":"storage.FileType","description":"File type"},{"name":"mtime","type":"number","description":"Modification type"},{"name":"bytes","type":"Buffer","description":"Binary data, file content"}],"description":"File content."},{"name":"fileCdnRedirect","id":4052539972,"type":"upload.File","arguments":[{"name":"dcId","type":"number","description":"CDN DC ID"},{"name":"fileToken","type":"Buffer","description":"File token (see CDN files)"},{"name":"encryptionKey","type":"Buffer","description":"Encryption key (see CDN files)"},{"name":"encryptionIv","type":"Buffer","description":"Encryption IV (see CDN files)"},{"name":"fileHashes","type":"FileHash[]","description":"File hashes (see CDN files)"}],"description":"The file must be downloaded from a CDN DC."},{"name":"webFile","id":568808380,"type":"upload.WebFile","arguments":[{"name":"size","type":"number","description":"File size"},{"name":"mimeType","type":"string","description":"Mime type"},{"name":"fileType","type":"storage.FileType","description":"File type"},{"name":"mtime","type":"number","description":"Modified time"},{"name":"bytes","type":"Buffer","description":"Data"}],"description":"Represents a chunk of an HTTP webfile downloaded through telegram's secure MTProto servers"},{"name":"cdnFileReuploadNeeded","id":4004045934,"type":"upload.CdnFile","arguments":[{"name":"requestToken","type":"Buffer","description":"Request token (see CDN)"}],"description":"The file was cleared from the temporary RAM cache of the CDN and has to be reuploaded."},{"name":"cdnFile","id":2845821519,"type":"upload.CdnFile","arguments":[{"name":"bytes","type":"Buffer","description":"The data"}],"description":"Represent a chunk of a CDN file."}],"methods":[{"name":"saveFilePart","id":3003426337,"returns":"boolean","arguments":[{"name":"fileId","type":"Long","description":"Random file identifier created by the client"},{"name":"filePart","type":"number","description":"Numerical order of a part"},{"name":"bytes","type":"Buffer","description":"Binary data, contend of a part"}],"description":"Saves a part of file for futher sending to one of the methods.","throws":[{"code":400,"name":"FILE_PART_EMPTY","description":"The provided file part is empty"},{"code":400,"name":"FILE_PART_INVALID","description":"The file part number is invalid"}],"available":"both"},{"name":"getFile","id":2975505148,"returns":"upload.File","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"precise","type":"true","optional":true,"predicate":"flags.0","description":"Disable some checks on limit and offset values, useful for example to stream videos by keyframes"},{"name":"cdnSupported","type":"true","optional":true,"predicate":"flags.1","description":"Whether the current client supports CDN downloads"},{"name":"location","type":"InputFileLocation","description":"File location"},{"name":"offset","type":"number","description":"Number of bytes to be skipped"},{"name":"limit","type":"number","description":"Number of bytes to be returned"}],"description":"Returns content of a whole file or its part.","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":406,"name":"FILEREF_UPGRADE_NEEDED","description":"The client has to be updated in order to support file references"},{"code":400,"name":"FILE_ID_INVALID","description":"The provided file id is invalid"},{"code":400,"name":"FILE_REFERENCE_*","description":"The file reference expired, it must be refreshed"},{"code":400,"name":"FILE_REFERENCE_EXPIRED","description":"File reference expired, it must be refetched as described in https://core.telegram.org/api/file_reference"},{"code":400,"name":"LIMIT_INVALID","description":"The provided limit is invalid"},{"code":400,"name":"LOCATION_INVALID","description":"The provided location is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"OFFSET_INVALID","description":"The provided offset is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"both"},{"name":"saveBigFilePart","id":3732629309,"returns":"boolean","arguments":[{"name":"fileId","type":"Long","description":"Random file id, created by the client"},{"name":"filePart","type":"number","description":"Part sequence number"},{"name":"fileTotalParts","type":"number","description":"Total number of parts"},{"name":"bytes","type":"Buffer","description":"Binary data, part contents"}],"description":"Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.","throws":[{"code":400,"name":"FILE_PARTS_INVALID","description":"The number of file parts is invalid"},{"code":400,"name":"FILE_PART_EMPTY","description":"The provided file part is empty"},{"code":400,"name":"FILE_PART_INVALID","description":"The file part number is invalid"},{"code":400,"name":"FILE_PART_SIZE_CHANGED","description":"Provided file part size has changed"},{"code":400,"name":"FILE_PART_SIZE_INVALID","description":"The provided file part size is invalid"},{"code":400,"name":"FILE_PART_TOO_BIG","description":"The uploaded file part is too big"}],"available":"both"},{"name":"getWebFile","id":619086221,"returns":"upload.WebFile","arguments":[{"name":"location","type":"InputWebFileLocation","description":"The file to download"},{"name":"offset","type":"number","description":"Number of bytes to be skipped"},{"name":"limit","type":"number","description":"Number of bytes to be returned"}],"description":"Returns content of an HTTP file or a part, by proxying the request through telegram.","throws":[{"code":400,"name":"LOCATION_INVALID","description":"The provided location is invalid"}],"available":"user"},{"name":"getCdnFile","id":536919235,"returns":"upload.CdnFile","arguments":[{"name":"fileToken","type":"Buffer","description":"File token"},{"name":"offset","type":"number","description":"Offset of chunk to download"},{"name":"limit","type":"number","description":"Length of chunk to download"}],"description":"Download a CDN file.","available":"user"},{"name":"reuploadCdnFile","id":2603046056,"returns":"FileHash[]","arguments":[{"name":"fileToken","type":"Buffer","description":"File token"},{"name":"requestToken","type":"Buffer","description":"Request token"}],"description":"Request a reupload of a certain file to a CDN DC.","throws":[{"code":400,"name":"RSA_DECRYPT_FAILED","description":"Internal RSA decryption failed"}],"available":"both"},{"name":"getCdnFileHashes","id":1302676017,"returns":"FileHash[]","arguments":[{"name":"fileToken","type":"Buffer","description":"File"},{"name":"offset","type":"number","description":"Offset from which to start getting hashes"}],"description":"Get SHA256 hashes for verifying downloaded CDN files","throws":[{"code":400,"name":"CDN_METHOD_INVALID","description":"You can't call this method in a CDN DC"},{"code":400,"name":"RSA_DECRYPT_FAILED","description":"Internal RSA decryption failed"}],"available":"both"},{"name":"getFileHashes","id":3338819889,"returns":"FileHash[]","arguments":[{"name":"location","type":"InputFileLocation","description":"File"},{"name":"offset","type":"number","description":"Offset from which to get file hashes"}],"description":"Get SHA256 hashes for verifying downloaded files","throws":[{"code":400,"name":"LOCATION_INVALID","description":"The provided location is invalid"}],"available":"both"}],"unions":[{"type":"File","subtypes":["upload.file","upload.fileCdnRedirect"],"description":"Contains info on file."},{"type":"WebFile","subtypes":["upload.webFile"],"description":"Remote file"},{"type":"CdnFile","subtypes":["upload.cdnFileReuploadNeeded","upload.cdnFile"],"description":"Represents the download status of a CDN file"}]},"account":{"classes":[{"name":"privacyRules","id":1352683077,"type":"account.PrivacyRules","arguments":[{"name":"rules","type":"PrivacyRule[]","description":"Privacy rules"},{"name":"chats","type":"Chat[]","description":"Chats to which the rules apply"},{"name":"users","type":"User[]","description":"Users to which the rules apply"}],"description":"Privacy rules"},{"name":"authorizations","id":307276766,"type":"account.Authorizations","arguments":[{"name":"authorizations","type":"Authorization[]","description":"Logged-in sessions"}],"description":"Logged-in sessions"},{"name":"password","id":408623183,"type":"account.Password","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"hasRecovery","type":"true","optional":true,"predicate":"flags.0","description":"Whether the user has a recovery method configured"},{"name":"hasSecureValues","type":"true","optional":true,"predicate":"flags.1","description":"Whether telegram passport is enabled"},{"name":"hasPassword","type":"true","optional":true,"predicate":"flags.2","description":"Whether the user has a password"},{"name":"currentAlgo","type":"PasswordKdfAlgo","optional":true,"predicate":"flags.2","description":"The KDF algorithm for SRP two-factor authentication of the current password"},{"name":"srpB","type":"Buffer","optional":true,"predicate":"flags.2","description":"Srp B param for SRP authorization"},{"name":"srpId","type":"Long","optional":true,"predicate":"flags.2","description":"Srp ID param for SRP authorization"},{"name":"hint","type":"string","optional":true,"predicate":"flags.3","description":"Text hint for the password"},{"name":"emailUnconfirmedPattern","type":"string","optional":true,"predicate":"flags.4","description":"A password recovery email with the specified pattern is still awaiting verification"},{"name":"newAlgo","type":"PasswordKdfAlgo","description":"The KDF algorithm for SRP two-factor authentication to use when creating new passwords"},{"name":"newSecureAlgo","type":"SecurePasswordKdfAlgo","description":"The KDF algorithm for telegram passport"},{"name":"secureRandom","type":"Buffer","description":"Secure random string"},{"name":"pendingResetDate","type":"number","optional":true,"predicate":"flags.5"}],"description":"Configuration for two-factor authorization"},{"name":"passwordSettings","id":2589733861,"type":"account.PasswordSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"email","type":"string","optional":true,"predicate":"flags.0","description":"2FA Recovery email"},{"name":"secureSettings","type":"SecureSecretSettings","optional":true,"predicate":"flags.1","description":"Telegram passport settings"}],"description":"Private info associated to the password info (recovery email, telegram passport info & so on)"},{"name":"passwordInputSettings","id":3258394569,"type":"account.PasswordInputSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"newAlgo","type":"PasswordKdfAlgo","optional":true,"predicate":"flags.0","description":"The SRP algorithm to use"},{"name":"newPasswordHash","type":"Buffer","optional":true,"predicate":"flags.0","description":"The computed password hash"},{"name":"hint","type":"string","optional":true,"predicate":"flags.0","description":"Text hint for the password"},{"name":"email","type":"string","optional":true,"predicate":"flags.1","description":"Password recovery email"},{"name":"newSecureSettings","type":"SecureSecretSettings","optional":true,"predicate":"flags.2","description":"Telegram passport settings"}],"description":"Settings for setting up a new password"},{"name":"tmpPassword","id":3680828724,"type":"account.TmpPassword","arguments":[{"name":"tmpPassword","type":"Buffer","description":"Temporary password"},{"name":"validUntil","type":"number","description":"Validity period"}],"description":"Temporary payment password"},{"name":"webAuthorizations","id":3981887996,"type":"account.WebAuthorizations","arguments":[{"name":"authorizations","type":"WebAuthorization[]","description":"Web authorization list"},{"name":"users","type":"User[]","description":"Users"}],"description":"Web authorizations"},{"name":"authorizationForm","id":2905480408,"type":"account.AuthorizationForm","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"requiredTypes","type":"SecureRequiredType[]","description":"Required Telegram Passport documents"},{"name":"values","type":"SecureValue[]","description":"Already submitted Telegram Passport documents"},{"name":"errors","type":"SecureValueError[]","description":"Telegram Passport errors"},{"name":"users","type":"User[]","description":"Info about the bot to which the form will be submitted"},{"name":"privacyPolicyUrl","type":"string","optional":true,"predicate":"flags.0","description":"URL of the service's privacy policy"}],"description":"Telegram Passport authorization form"},{"name":"sentEmailCode","id":2166326607,"type":"account.SentEmailCode","arguments":[{"name":"emailPattern","type":"string","description":"The email (to which the code was sent) must match this pattern"},{"name":"length","type":"number","description":"The length of the verification code"}],"description":"The sent email code"},{"name":"takeout","id":1304052993,"type":"account.Takeout","arguments":[{"name":"id","type":"Long","description":"Takeout ID"}],"description":"Takout info"},{"name":"wallPapersNotModified","id":471437699,"type":"account.WallPapers","arguments":[],"description":"No new wallpapers were found"},{"name":"wallPapers","id":1881892265,"type":"account.WallPapers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"wallpapers","type":"WallPaper[]","description":"Wallpapers"}],"description":"Installed wallpapers"},{"name":"autoDownloadSettings","id":1674235686,"type":"account.AutoDownloadSettings","arguments":[{"name":"low","type":"AutoDownloadSettings","description":"Low data usage preset"},{"name":"medium","type":"AutoDownloadSettings","description":"Medium data usage preset"},{"name":"high","type":"AutoDownloadSettings","description":"High data usage preset"}],"description":"Media autodownload settings"},{"name":"themesNotModified","id":4095653410,"type":"account.Themes","arguments":[],"description":"No new themes were installed"},{"name":"themes","id":2137482273,"type":"account.Themes","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"themes","type":"Theme[]","description":"Themes"}],"description":"Installed themes"},{"name":"contentSettings","id":1474462241,"type":"account.ContentSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"sensitiveEnabled","type":"true","optional":true,"predicate":"flags.0","description":"Whether viewing of sensitive (NSFW) content is enabled"},{"name":"sensitiveCanChange","type":"true","optional":true,"predicate":"flags.1","description":"Whether the current client can change the sensitive content settings to view NSFW content"}],"description":"Sensitive content settings"},{"name":"resetPasswordFailedWait","id":3816265825,"type":"account.ResetPasswordResult","arguments":[{"name":"retryDate","type":"number"}]},{"name":"resetPasswordRequestedWait","id":3924819069,"type":"account.ResetPasswordResult","arguments":[{"name":"untilDate","type":"number"}]},{"name":"resetPasswordOk","id":3911636542,"type":"account.ResetPasswordResult","arguments":[]}],"methods":[{"name":"registerDevice","id":1754754159,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noMuted","type":"true","optional":true,"predicate":"flags.0","description":"Avoid receiving (silent and invisible background) notifications. Useful to save battery."},{"name":"tokenType","type":"number","description":"Device token type.
Possible values:
1 - APNS (device token for apple push)
2 - FCM (firebase token for google firebase)
3 - MPNS (channel URI for microsoft push)
4 - Simple push (endpoint for firefox's simple push API)
5 - Ubuntu phone (token for ubuntu push)
6 - Blackberry (token for blackberry push)
7 - Unused
8 - WNS (windows push)
9 - APNS VoIP (token for apple push VoIP)
10 - Web push (web push, see below)
11 - MPNS VoIP (token for microsoft push VoIP)
12 - Tizen (token for tizen push)

For 10 web push, the token must be a JSON-encoded object containing the keys described in PUSH updates"},{"name":"token","type":"string","description":"Device token"},{"name":"appSandbox","type":"boolean","description":"If {@link boolTrue} is transmitted, a sandbox-certificate will be used during transmission."},{"name":"secret","type":"Buffer","description":"For FCM and APNS VoIP, optional encryption key used to encrypt push notifications"},{"name":"otherUids","type":"number[]","description":"List of user identifiers of other users currently using the client"}],"description":"Register device to receive PUSH notifications","throws":[{"code":400,"name":"TOKEN_INVALID","description":"The provided token is invalid"}],"available":"user"},{"name":"unregisterDevice","id":813089983,"returns":"boolean","arguments":[{"name":"tokenType","type":"number","description":"Device token type.
Possible values:
1 - APNS (device token for apple push)
2 - FCM (firebase token for google firebase)
3 - MPNS (channel URI for microsoft push)
4 - Simple push (endpoint for firefox's simple push API)
5 - Ubuntu phone (token for ubuntu push)
6 - Blackberry (token for blackberry push)
7 - Unused
8 - WNS (windows push)
9 - APNS VoIP (token for apple push VoIP)
10 - Web push (web push, see below)
11 - MPNS VoIP (token for microsoft push VoIP)
12 - Tizen (token for tizen push)

For 10 web push, the token must be a JSON-encoded object containing the keys described in PUSH updates"},{"name":"token","type":"string","description":"Device token"},{"name":"otherUids","type":"number[]","description":"List of user identifiers of other users currently using the client"}],"description":"Deletes a device by its token, stops sending PUSH-notifications to it.","throws":[{"code":400,"name":"TOKEN_INVALID","description":"The provided token is invalid"}],"available":"user"},{"name":"updateNotifySettings","id":2227067795,"returns":"boolean","arguments":[{"name":"peer","type":"InputNotifyPeer","description":"Notification source"},{"name":"settings","type":"InputPeerNotifySettings","description":"Notification settings"}],"description":"Edits notification settings from a given user/group, from all users/all groups.","throws":[{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"SETTINGS_INVALID","description":"Invalid settings were provided"}],"available":"user"},{"name":"getNotifySettings","id":313765169,"returns":"PeerNotifySettings","arguments":[{"name":"peer","type":"InputNotifyPeer","description":"Notification source"}],"description":"Gets current notification settings for a given user/group, from all users/all groups.","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"resetNotifySettings","id":3682473799,"returns":"boolean","arguments":[],"description":"Resets all notification settings from users and groups.","available":"user"},{"name":"updateProfile","id":2018596725,"returns":"User","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"firstName","type":"string","optional":true,"predicate":"flags.0","description":"New user first name"},{"name":"lastName","type":"string","optional":true,"predicate":"flags.1","description":"New user last name"},{"name":"about","type":"string","optional":true,"predicate":"flags.2","description":"New bio"}],"description":"Updates user profile.","throws":[{"code":400,"name":"ABOUT_TOO_LONG","description":"About string too long"},{"code":400,"name":"FIRSTNAME_INVALID","description":"The first name is invalid"}],"available":"user"},{"name":"updateStatus","id":1713919532,"returns":"boolean","arguments":[{"name":"offline","type":"boolean","description":"If {@link boolTrue} is transmitted, user status will change to {@link userStatusOffline}."}],"description":"Updates online user status.","available":"user"},{"name":"getWallPapers","id":2864387939,"returns":"account.WallPapers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Returns a list of available wallpapers.","available":"user"},{"name":"reportPeer","id":3317316998,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer","description":"The peer to report"},{"name":"reason","type":"ReportReason","description":"The reason why this peer is being reported"},{"name":"message","type":"string"}],"description":"Report a peer for violation of telegram's Terms of Service","throws":[{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"checkUsername","id":655677548,"returns":"boolean","arguments":[{"name":"username","type":"string","description":"username
Accepted characters: A-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters."}],"description":"Validates a username and checks availability.","throws":[{"code":400,"name":"USERNAME_INVALID","description":"Unacceptable username"}],"available":"user"},{"name":"updateUsername","id":1040964988,"returns":"User","arguments":[{"name":"username","type":"string","description":"username or empty string if username is to be removed
Accepted characters: a-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters."}],"description":"Changes username for the current user.","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"USERNAME_INVALID","description":"Unacceptable username"},{"code":400,"name":"USERNAME_NOT_MODIFIED","description":"Username is not different from the current username"},{"code":400,"name":"USERNAME_OCCUPIED","description":"Username is taken"}],"available":"user"},{"name":"getPrivacy","id":3671837008,"returns":"account.PrivacyRules","arguments":[{"name":"key","type":"InputPrivacyKey","description":"Peer category whose privacy settings should be fetched"}],"description":"Get privacy settings of current account","throws":[{"code":400,"name":"PRIVACY_KEY_INVALID","description":"The privacy key is invalid"}],"available":"user"},{"name":"setPrivacy","id":3388480744,"returns":"account.PrivacyRules","arguments":[{"name":"key","type":"InputPrivacyKey","description":"Peers to which the privacy rules apply"},{"name":"rules","type":"InputPrivacyRule[]","description":"New privacy rules"}],"description":"Change privacy settings of current account","throws":[{"code":400,"name":"PRIVACY_KEY_INVALID","description":"The privacy key is invalid"},{"code":400,"name":"PRIVACY_VALUE_INVALID","description":"The specified privacy rule combination is invalid"}],"available":"user"},{"name":"deleteAccount","id":1099779595,"returns":"boolean","arguments":[{"name":"reason","type":"string","description":"Why is the account being deleted, can be empty"}],"description":"Delete the user's account from the telegram servers. Can be used, for example, to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured.","throws":[{"code":420,"name":"2FA_CONFIRM_WAIT_X","description":"Since this account is active and protected by a 2FA password, we will delete it in 1 week for security purposes. You can cancel this process at any time, you'll be able to reset your account in X seconds."}],"available":"user"},{"name":"getAccountTTL","id":150761757,"returns":"AccountDaysTTL","arguments":[],"description":"Get days to live of account","available":"user"},{"name":"setAccountTTL","id":608323678,"returns":"boolean","arguments":[{"name":"ttl","type":"AccountDaysTTL","description":"Time to live in days"}],"description":"Set account self-destruction period","throws":[{"code":400,"name":"TTL_DAYS_INVALID","description":"The provided TTL is invalid"}],"available":"user"},{"name":"sendChangePhoneCode","id":2186758885,"returns":"auth.SentCode","arguments":[{"name":"phoneNumber","type":"string","description":"New phone number"},{"name":"settings","type":"CodeSettings","description":"Phone code settings"}],"description":"Verify a new phone number to associate to the current account","throws":[{"code":400,"name":"PHONE_NUMBER_INVALID","description":"The phone number is invalid"}],"available":"user"},{"name":"changePhone","id":1891839707,"returns":"User","arguments":[{"name":"phoneNumber","type":"string","description":"New phone number"},{"name":"phoneCodeHash","type":"string","description":"Phone code hash received when calling {@link account.sendChangePhoneCode}"},{"name":"phoneCode","type":"string","description":"Phone code received when calling {@link account.sendChangePhoneCode}"}],"description":"Change the phone number of the current account","throws":[{"code":400,"name":"PHONE_CODE_EMPTY","description":"phone_code is missing"},{"code":400,"name":"PHONE_NUMBER_INVALID","description":"The phone number is invalid"}],"available":"user"},{"name":"updateDeviceLocked","id":954152242,"returns":"boolean","arguments":[{"name":"period","type":"number","description":"Inactivity period after which to start hiding message texts in PUSH notifications."}],"description":"When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications.","available":"user"},{"name":"getAuthorizations","id":3810574680,"returns":"account.Authorizations","arguments":[],"description":"Get logged-in sessions","available":"user"},{"name":"resetAuthorization","id":3749180348,"returns":"boolean","arguments":[{"name":"hash","type":"Long","description":"Session hash"}],"description":"Log out an active authorized session by its hash","throws":[{"code":406,"name":"FRESH_RESET_AUTHORISATION_FORBIDDEN","description":"You can't logout other sessions if less than 24 hours have passed since you logged on the current session"},{"code":400,"name":"HASH_INVALID","description":"The provided hash is invalid"}],"available":"user"},{"name":"getPassword","id":1418342645,"returns":"account.Password","arguments":[],"description":"Obtain configuration for two-factor authorization with password","available":"user"},{"name":"getPasswordSettings","id":2631199481,"returns":"account.PasswordSettings","arguments":[{"name":"password","type":"InputCheckPasswordSRP","description":"The password (see SRP)"}],"description":"Get private info associated to the password info (recovery email, telegram passport info & so on)","throws":[{"code":400,"name":"PASSWORD_HASH_INVALID","description":"The provided password hash is invalid"}],"available":"user"},{"name":"updatePasswordSettings","id":2778402863,"returns":"boolean","arguments":[{"name":"password","type":"InputCheckPasswordSRP","description":"The old password (see SRP)"},{"name":"newSettings","type":"account.PasswordInputSettings","description":"The new password (see SRP)"}],"description":"Set a new 2FA password","throws":[{"code":400,"name":"EMAIL_UNCONFIRMED","description":"Email unconfirmed"},{"code":400,"name":"EMAIL_UNCONFIRMED_X","description":"The provided email isn't confirmed, X is the length of the verification code that was just sent to the email: use {@link account.verifyEmail} to enter the received verification code and enable the recovery email."},{"code":400,"name":"NEW_SALT_INVALID","description":"The new salt is invalid"},{"code":400,"name":"NEW_SETTINGS_INVALID","description":"The new password settings are invalid"},{"code":400,"name":"PASSWORD_HASH_INVALID","description":"The old password hash is invalid"},{"code":400,"name":"SRP_ID_INVALID","description":"Invalid SRP ID provided"}],"available":"user"},{"name":"sendConfirmPhoneCode","id":457157256,"returns":"auth.SentCode","arguments":[{"name":"hash","type":"string","description":"The hash from the service notification, for more info click here »"},{"name":"settings","type":"CodeSettings","description":"Phone code settings"}],"description":"Send confirmation code to cancel account deletion, for more info click here »","throws":[{"code":400,"name":"HASH_INVALID","description":"The provided hash is invalid"}],"available":"user"},{"name":"confirmPhone","id":1596029123,"returns":"boolean","arguments":[{"name":"phoneCodeHash","type":"string","description":"Phone code hash, for more info click here »"},{"name":"phoneCode","type":"string","description":"SMS code, for more info click here »"}],"description":"Confirm a phone number to cancel account deletion, for more info click here »","throws":[{"code":400,"name":"CODE_HASH_INVALID","description":"Code hash invalid"},{"code":400,"name":"PHONE_CODE_EMPTY","description":"phone_code is missing"}],"available":"user"},{"name":"getTmpPassword","id":1151208273,"returns":"account.TmpPassword","arguments":[{"name":"password","type":"InputCheckPasswordSRP","description":"SRP password parameters"},{"name":"period","type":"number","description":"Time during which the temporary password will be valid, in seconds; should be between 60 and 86400"}],"description":"Get temporary payment password","throws":[{"code":400,"name":"PASSWORD_HASH_INVALID","description":"The provided password hash is invalid"},{"code":400,"name":"TMP_PASSWORD_DISABLED","description":"The temporary password is disabled"}],"available":"user"},{"name":"getWebAuthorizations","id":405695855,"returns":"account.WebAuthorizations","arguments":[],"description":"Get web login widget authorizations","available":"user"},{"name":"resetWebAuthorization","id":755087855,"returns":"boolean","arguments":[{"name":"hash","type":"Long","description":"{@link webAuthorization} hash"}],"description":"Log out an active web telegram login session","available":"user"},{"name":"resetWebAuthorizations","id":1747789204,"returns":"boolean","arguments":[],"description":"Reset all active web telegram login sessions","available":"user"},{"name":"getAllSecureValues","id":2995305597,"returns":"SecureValue[]","arguments":[],"description":"Get all saved Telegram Passport documents, for more info see the passport docs »","available":"user"},{"name":"getSecureValue","id":1936088002,"returns":"SecureValue[]","arguments":[{"name":"types","type":"SecureValueType[]","description":"Requested value types"}],"description":"Get saved Telegram Passport document, for more info see the passport docs »","available":"user"},{"name":"saveSecureValue","id":2308956957,"returns":"SecureValue","arguments":[{"name":"value","type":"InputSecureValue","description":"Secure value, for more info see the passport docs »"},{"name":"secureSecretId","type":"Long","description":"Passport secret hash, for more info see the passport docs »"}],"description":"Securely save Telegram Passport document, for more info see the passport docs »","available":"user"},{"name":"deleteSecureValue","id":3095444555,"returns":"boolean","arguments":[{"name":"types","type":"SecureValueType[]","description":"Document types to delete"}],"description":"Delete stored Telegram Passport documents, for more info see the passport docs »","available":"user"},{"name":"getAuthorizationForm","id":3094063329,"returns":"account.AuthorizationForm","arguments":[{"name":"botId","type":"number","description":"User identifier of the service's bot"},{"name":"scope","type":"string","description":"Telegram Passport element types requested by the service"},{"name":"publicKey","type":"string","description":"Service's public key"}],"description":"Returns a Telegram Passport authorization form for sharing data with a service","available":"user"},{"name":"acceptAuthorization","id":3875699860,"returns":"boolean","arguments":[{"name":"botId","type":"number","description":"Bot ID"},{"name":"scope","type":"string","description":"Telegram Passport element types requested by the service"},{"name":"publicKey","type":"string","description":"Service's public key"},{"name":"valueHashes","type":"SecureValueHash[]","description":"Types of values sent and their hashes"},{"name":"credentials","type":"SecureCredentialsEncrypted","description":"Encrypted values"}],"description":"Sends a Telegram Passport authorization form, effectively sharing data with the service","available":"user"},{"name":"sendVerifyPhoneCode","id":2778945273,"returns":"auth.SentCode","arguments":[{"name":"phoneNumber","type":"string","description":"The phone number to verify"},{"name":"settings","type":"CodeSettings","description":"Phone code settings"}],"description":"Send the verification phone code for telegram passport.","available":"user"},{"name":"verifyPhone","id":1305716726,"returns":"boolean","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number"},{"name":"phoneCodeHash","type":"string","description":"Phone code hash received from the call to {@link account.sendVerifyPhoneCode}"},{"name":"phoneCode","type":"string","description":"Code received after the call to {@link account.sendVerifyPhoneCode}"}],"description":"Verify a phone number for telegram passport.","throws":[{"code":400,"name":"PHONE_CODE_EXPIRED","description":"The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)"}],"available":"user"},{"name":"sendVerifyEmailCode","id":1880182943,"returns":"account.SentEmailCode","arguments":[{"name":"email","type":"string","description":"The email where to send the code"}],"description":"Send the verification email code for telegram passport.","available":"user"},{"name":"verifyEmail","id":3971627483,"returns":"boolean","arguments":[{"name":"email","type":"string","description":"The email to verify"},{"name":"code","type":"string","description":"The verification code that was received"}],"description":"Verify an email address for telegram passport.","throws":[{"code":400,"name":"EMAIL_VERIFY_EXPIRED","description":"The verification email has expired"}],"available":"user"},{"name":"initTakeoutSession","id":4032514052,"returns":"account.Takeout","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"contacts","type":"true","optional":true,"predicate":"flags.0","description":"Whether to export contacts"},{"name":"messageUsers","type":"true","optional":true,"predicate":"flags.1","description":"Whether to export messages in private chats"},{"name":"messageChats","type":"true","optional":true,"predicate":"flags.2","description":"Whether to export messages in legacy groups"},{"name":"messageMegagroups","type":"true","optional":true,"predicate":"flags.3","description":"Whether to export messages in supergroups"},{"name":"messageChannels","type":"true","optional":true,"predicate":"flags.4","description":"Whether to export messages in channels"},{"name":"files","type":"true","optional":true,"predicate":"flags.5","description":"Whether to export files"},{"name":"fileMaxSize","type":"number","optional":true,"predicate":"flags.5","description":"Maximum size of files to export"}],"description":"Intialize account takeout session","throws":[{"code":420,"name":"TAKEOUT_INIT_DELAY_X","description":"Wait X seconds before initing takeout"}],"available":"user"},{"name":"finishTakeoutSession","id":489050862,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"success","type":"true","optional":true,"predicate":"flags.0","description":"Data exported successfully"}],"description":"Finish account takeout session","throws":[{"code":403,"name":"TAKEOUT_REQUIRED","description":"A takeout session has to be initialized, first"}],"available":"user"},{"name":"confirmPasswordEmail","id":2413762848,"returns":"boolean","arguments":[{"name":"code","type":"string","description":"The phone code that was received after setting a recovery email"}],"description":"Verify an email to use as 2FA recovery method.","throws":[{"code":400,"name":"CODE_INVALID","description":"Code invalid"},{"code":400,"name":"EMAIL_HASH_EXPIRED","description":"Email hash expired"}],"available":"user"},{"name":"resendPasswordEmail","id":2055154197,"returns":"boolean","arguments":[],"description":"Resend the code to verify an email to use as 2FA recovery method.","available":"user"},{"name":"cancelPasswordEmail","id":3251361206,"returns":"boolean","arguments":[],"description":"Cancel the code that was sent to verify an email to use as 2FA recovery method.","available":"user"},{"name":"getContactSignUpNotification","id":2668087080,"returns":"boolean","arguments":[],"description":"Whether the user will receive notifications when contacts sign up","available":"user"},{"name":"setContactSignUpNotification","id":3488890721,"returns":"boolean","arguments":[{"name":"silent","type":"boolean","description":"Whether to disable contact sign up notifications"}],"description":"Toggle contact sign up notifications","available":"user"},{"name":"getNotifyExceptions","id":1398240377,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"compareSound","type":"true","optional":true,"predicate":"flags.1","description":"If true, chats with non-default sound will also be returned"},{"name":"peer","type":"InputNotifyPeer","optional":true,"predicate":"flags.0","description":"If specified, only chats of the specified category will be returned"}],"description":"Returns list of chats with non-default notification settings","available":"user"},{"name":"getWallPaper","id":4237155306,"returns":"WallPaper","arguments":[{"name":"wallpaper","type":"InputWallPaper","description":"The wallpaper to get info about"}],"description":"Get info about a certain wallpaper","available":"user"},{"name":"uploadWallPaper","id":3716494945,"returns":"WallPaper","arguments":[{"name":"file","type":"InputFile","description":"The JPG/PNG wallpaper"},{"name":"mimeType","type":"string","description":"MIME type of uploaded wallpaper"},{"name":"settings","type":"WallPaperSettings","description":"Wallpaper settings"}],"description":"Create and upload a new wallpaper","available":"user"},{"name":"saveWallPaper","id":1817860919,"returns":"boolean","arguments":[{"name":"wallpaper","type":"InputWallPaper","description":"Wallpaper to save"},{"name":"unsave","type":"boolean","description":"Uninstall wallpaper?"},{"name":"settings","type":"WallPaperSettings","description":"Wallpaper settings"}],"description":"Install/uninstall wallpaper","available":"user"},{"name":"installWallPaper","id":4276967273,"returns":"boolean","arguments":[{"name":"wallpaper","type":"InputWallPaper","description":"Wallpaper to install"},{"name":"settings","type":"WallPaperSettings","description":"Wallpaper settings"}],"description":"Install wallpaper","available":"user"},{"name":"resetWallPapers","id":3141244932,"returns":"boolean","arguments":[],"description":"Delete installed wallpapers","available":"user"},{"name":"getAutoDownloadSettings","id":1457130303,"returns":"account.AutoDownloadSettings","arguments":[],"description":"Get media autodownload settings","available":"user"},{"name":"saveAutoDownloadSettings","id":1995661875,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"low","type":"true","optional":true,"predicate":"flags.0","description":"Whether to save settings in the low data usage preset"},{"name":"high","type":"true","optional":true,"predicate":"flags.1","description":"Whether to save settings in the high data usage preset"},{"name":"settings","type":"AutoDownloadSettings","description":"Media autodownload settings"}],"description":"Change media autodownload settings","available":"user"},{"name":"uploadTheme","id":473805619,"returns":"Document","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"file","type":"InputFile","description":"Theme file uploaded as described in files »"},{"name":"thumb","type":"InputFile","optional":true,"predicate":"flags.0","description":"Thumbnail"},{"name":"fileName","type":"string","description":"File name"},{"name":"mimeType","type":"string","description":"MIME type, must be application/x-tgtheme-{format}, where format depends on the client"}],"description":"Upload theme","throws":[{"code":400,"name":"THEME_FILE_INVALID","description":"Invalid theme file provided"}],"available":"user"},{"name":"createTheme","id":2217919007,"returns":"Theme","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"slug","type":"string","description":"Unique theme ID"},{"name":"title","type":"string","description":"Theme name"},{"name":"document","type":"InputDocument","optional":true,"predicate":"flags.2","description":"Theme file"},{"name":"settings","type":"InputThemeSettings","optional":true,"predicate":"flags.3","description":"Theme settings"}],"description":"Create a theme","available":"user"},{"name":"updateTheme","id":1555261397,"returns":"Theme","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"format","type":"string","description":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"theme","type":"InputTheme","description":"Theme to update"},{"name":"slug","type":"string","optional":true,"predicate":"flags.0","description":"Unique theme ID"},{"name":"title","type":"string","optional":true,"predicate":"flags.1","description":"Theme name"},{"name":"document","type":"InputDocument","optional":true,"predicate":"flags.2","description":"Theme file"},{"name":"settings","type":"InputThemeSettings","optional":true,"predicate":"flags.3","description":"Theme settings"}],"description":"Update theme","available":"user"},{"name":"saveTheme","id":4065792108,"returns":"boolean","arguments":[{"name":"theme","type":"InputTheme","description":"Theme to save"},{"name":"unsave","type":"boolean","description":"Unsave"}],"description":"Save a theme","available":"user"},{"name":"installTheme","id":2061776695,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"dark","type":"true","optional":true,"predicate":"flags.0","description":"Whether to install the dark version"},{"name":"format","type":"string","optional":true,"predicate":"flags.1","description":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"theme","type":"InputTheme","optional":true,"predicate":"flags.1","description":"Theme to install"}],"description":"Install a theme","available":"user"},{"name":"getTheme","id":2375906347,"returns":"Theme","arguments":[{"name":"format","type":"string","description":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"theme","type":"InputTheme","description":"Theme"},{"name":"documentId","type":"Long","description":"Document ID"}],"description":"Get theme information","throws":[{"code":400,"name":"THEME_FORMAT_INVALID","description":"Invalid theme format provided"},{"code":400,"name":"THEME_INVALID","description":"Invalid theme provided"}],"available":"user"},{"name":"getThemes","id":676939512,"returns":"account.Themes","arguments":[{"name":"format","type":"string","description":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get installed themes","available":"user"},{"name":"setContentSettings","id":3044323691,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"sensitiveEnabled","type":"true","optional":true,"predicate":"flags.0","description":"Enable NSFW content"}],"description":"Set sensitive content settings (for viewing or hiding NSFW content)","available":"user"},{"name":"getContentSettings","id":2342210990,"returns":"account.ContentSettings","arguments":[],"description":"Get sensitive content settings","available":"user"},{"name":"getMultiWallPapers","id":1705865692,"returns":"WallPaper[]","arguments":[{"name":"wallpapers","type":"InputWallPaper[]","description":"Wallpapers to fetch info about"}],"description":"Get info about multiple wallpapers","available":"user"},{"name":"getGlobalPrivacySettings","id":3945483510,"returns":"GlobalPrivacySettings","arguments":[],"description":"Get global privacy settings","available":"both"},{"name":"setGlobalPrivacySettings","id":517647042,"returns":"GlobalPrivacySettings","arguments":[{"name":"settings","type":"GlobalPrivacySettings","description":"Global privacy settings"}],"description":"Set global privacy settings","available":"both"},{"name":"reportProfilePhoto","id":4203529973,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer"},{"name":"photoId","type":"InputPhoto"},{"name":"reason","type":"ReportReason"},{"name":"message","type":"string"}]},{"name":"resetPassword","id":2466827803,"returns":"account.ResetPasswordResult","arguments":[]},{"name":"declinePasswordReset","id":1284770294,"returns":"boolean","arguments":[]}],"unions":[{"type":"PrivacyRules","subtypes":["account.privacyRules"],"description":"Privacy rules"},{"type":"Authorizations","subtypes":["account.authorizations"],"description":"Logged-in sessions"},{"type":"Password","subtypes":["account.password"],"description":"Configuration for two-factor authorization"},{"type":"PasswordSettings","subtypes":["account.passwordSettings"],"description":"Private info associated to the password info (recovery email, telegram passport info & so on)"},{"type":"PasswordInputSettings","subtypes":["account.passwordInputSettings"],"description":"Constructor for setting up a new 2FA SRP password"},{"type":"TmpPassword","subtypes":["account.tmpPassword"],"description":"Temporary password"},{"type":"WebAuthorizations","subtypes":["account.webAuthorizations"],"description":"Web authorizations"},{"type":"AuthorizationForm","subtypes":["account.authorizationForm"],"description":"Authorization form"},{"type":"SentEmailCode","subtypes":["account.sentEmailCode"],"description":"The email code that was sent"},{"type":"Takeout","subtypes":["account.takeout"],"description":"Takeout info"},{"type":"WallPapers","subtypes":["account.wallPapersNotModified","account.wallPapers"],"description":"Wallpapers"},{"type":"AutoDownloadSettings","subtypes":["account.autoDownloadSettings"],"description":"Media autodownload settings"},{"type":"Themes","subtypes":["account.themesNotModified","account.themes"],"description":"Installed themes"},{"type":"ContentSettings","subtypes":["account.contentSettings"],"description":"Sensitive content settings"},{"type":"ResetPasswordResult","subtypes":["account.resetPasswordFailedWait","account.resetPasswordRequestedWait","account.resetPasswordOk"]}]},"channels":{"classes":[{"name":"channelParticipants","id":2595290799,"type":"channels.ChannelParticipants","arguments":[{"name":"count","type":"number","description":"Total number of participants that correspond to the given query"},{"name":"participants","type":"ChannelParticipant[]","description":"Participants"},{"name":"chats","type":"Chat[]"},{"name":"users","type":"User[]","description":"Users mentioned in participant info"}],"description":"Represents multiple channel participants"},{"name":"channelParticipantsNotModified","id":4028055529,"type":"channels.ChannelParticipants","arguments":[],"description":"No new participant info could be found"},{"name":"channelParticipant","id":3753378583,"type":"channels.ChannelParticipant","arguments":[{"name":"participant","type":"ChannelParticipant","description":"The channel participant"},{"name":"chats","type":"Chat[]"},{"name":"users","type":"User[]","description":"Users"}],"description":"Represents a channel participant"},{"name":"adminLogResults","id":3985307469,"type":"channels.AdminLogResults","arguments":[{"name":"events","type":"ChannelAdminLogEvent[]","description":"Admin log events"},{"name":"chats","type":"Chat[]","description":"Chats mentioned in events"},{"name":"users","type":"User[]","description":"Users mentioned in events"}],"description":"Admin log events"}],"methods":[{"name":"readHistory","id":3423619383,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"maxId","type":"number","description":"ID of message up to which messages should be marked as read"}],"description":"Mark channel/supergroup history as read","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"user"},{"name":"deleteMessages","id":2227305806,"returns":"messages.AffectedMessages","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"id","type":"number[]","description":"IDs of messages to delete"}],"description":"Delete messages in a channel/supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":403,"name":"MESSAGE_DELETE_FORBIDDEN","description":"You can't delete one of the messages you tried to delete, most likely because it is a service message."},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"both"},{"name":"deleteUserHistory","id":3507345179,"returns":"messages.AffectedHistory","arguments":[{"name":"channel","type":"InputChannel","description":"Supergroup"},{"name":"userId","type":"InputUser","description":"User whose messages should be deleted"}],"description":"Delete all messages sent by a certain user in a supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"user"},{"name":"reportSpam","id":4261967888,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"Supergroup"},{"name":"userId","type":"InputUser","description":"ID of the user that sent the spam messages"},{"name":"id","type":"number[]","description":"IDs of spam messages"}],"description":"Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"user"},{"name":"getMessages","id":2911672867,"returns":"messages.Messages","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"id","type":"InputMessage[]","description":"IDs of messages to get"}],"description":"Get channel/supergroup messages","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MESSAGE_IDS_EMPTY","description":"No message ids were provided"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"both"},{"name":"getParticipants","id":306054633,"returns":"channels.ChannelParticipants","arguments":[{"name":"channel","type":"InputChannel","description":"Channel"},{"name":"filter","type":"ChannelParticipantsFilter","description":"Which participant types to fetch"},{"name":"offset","type":"number","description":"Offset"},{"name":"limit","type":"number","description":"Limit"},{"name":"hash","type":"number","description":"Hash"}],"description":"Get the participants of a supergroup/channel","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"INPUT_CONSTRUCTOR_INVALID","description":"The provided constructor is invalid"}],"available":"both"},{"name":"getParticipant","id":2695589062,"returns":"channels.ChannelParticipant","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"participant","type":"InputPeer"}],"description":"Get info about a channel/supergroup participant","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"},{"code":400,"name":"USER_NOT_PARTICIPANT","description":"You're not a member of this supergroup/channel"}],"available":"both"},{"name":"getChannels","id":176122811,"returns":"messages.Chats","arguments":[{"name":"id","type":"InputChannel[]","description":"IDs of channels/supergroups to get info about"}],"description":"Get info about channels/supergroups","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"both"},{"name":"getFullChannel","id":141781513,"returns":"messages.ChatFull","arguments":[{"name":"channel","type":"InputChannel","description":"The channel to get info about"}],"description":"Get full info about a channel","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":403,"name":"CHANNEL_PUBLIC_GROUP_NA","description":"channel/supergroup not available"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"both"},{"name":"createChannel","id":1029681423,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"broadcast","type":"true","optional":true,"predicate":"flags.0","description":"Whether to create a channel"},{"name":"megagroup","type":"true","optional":true,"predicate":"flags.1","description":"Whether to create a supergroup"},{"name":"forImport","type":"true","optional":true,"predicate":"flags.3"},{"name":"title","type":"string","description":"Channel title"},{"name":"about","type":"string","description":"Channel description"},{"name":"geoPoint","type":"InputGeoPoint","optional":true,"predicate":"flags.2","description":"Geogroup location"},{"name":"address","type":"string","optional":true,"predicate":"flags.2","description":"Geogroup address"}],"description":"Create a supergroup/channel.","throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","description":"You have joined too many channels/supergroups"},{"code":400,"name":"CHAT_ABOUT_TOO_LONG","description":"Chat about too long"},{"code":400,"name":"CHAT_TITLE_EMPTY","description":"No chat title provided"},{"code":403,"name":"USER_RESTRICTED","description":"You're spamreported, you can't create channels or chats."}],"available":"user"},{"name":"editAdmin","id":3543959810,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"The supergroup/channel."},{"name":"userId","type":"InputUser","description":"The ID of the user whose admin rights should be modified"},{"name":"adminRights","type":"ChatAdminRights","description":"The admin rights"},{"name":"rank","type":"string","description":"Indicates the role (rank) of the admin in the group: just an arbitrary string"}],"description":"Modify the admin rights of a user in a supergroup/channel.","throws":[{"code":400,"name":"ADMINS_TOO_MUCH","description":"There are too many admins"},{"code":400,"name":"BOTS_TOO_MUCH","description":"There are too many bots in this chat/channel"},{"code":400,"name":"BOT_CHANNELS_NA","description":"Bots can't edit admin privileges"},{"code":400,"name":"BOT_GROUPS_BLOCKED","description":"This bot can't be added to groups"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":403,"name":"CHAT_ADMIN_INVITE_REQUIRED","description":"You do not have the rights to do this"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":406,"name":"FRESH_CHANGE_ADMINS_FORBIDDEN","description":"You were just elected admin, you can't add or modify other admins yet"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":403,"name":"RIGHT_FORBIDDEN","description":"Your admin rights do not allow you to do this"},{"code":400,"name":"USERS_TOO_MUCH","description":"The maximum number of users has been exceeded (to create a chat, for example)"},{"code":400,"name":"USER_BLOCKED","description":"User blocked"},{"code":403,"name":"USER_CHANNELS_TOO_MUCH","description":"One of the users you tried to add is already in too many channels/supergroups"},{"code":400,"name":"USER_CREATOR","description":"You can't leave this channel, because you're its creator"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"},{"code":400,"name":"USER_NOT_MUTUAL_CONTACT","description":"The provided user is not a mutual contact"},{"code":403,"name":"USER_PRIVACY_RESTRICTED","description":"The user's privacy settings do not allow you to do this"},{"code":403,"name":"USER_RESTRICTED","description":"You're spamreported, you can't create channels or chats."}],"available":"both"},{"name":"editTitle","id":1450044624,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"title","type":"string","description":"New name"}],"description":"Edit the name of a channel/supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":400,"name":"CHAT_TITLE_EMPTY","description":"No chat title provided"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"}],"available":"both"},{"name":"editPhoto","id":4046346185,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup whose photo should be edited"},{"name":"photo","type":"InputChatPhoto","description":"New photo"}],"description":"Change the photo of a channel/supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","description":"Photo is too small"},{"code":400,"name":"PHOTO_EXT_INVALID","description":"The extension of the photo is invalid"},{"code":400,"name":"PHOTO_INVALID","description":"Photo invalid"}],"available":"both"},{"name":"checkUsername","id":283557164,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"The channel/supergroup that will assigned the specified username"},{"name":"username","type":"string","description":"The username to check"}],"description":"Check if a username is free and can be assigned to a channel/supergroup","throws":[{"code":400,"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","description":"You're admin of too many public channels, make some channels private to change the username of this channel"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"USERNAME_INVALID","description":"The provided username is not valid"}],"available":"user"},{"name":"updateUsername","id":890549214,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"Channel"},{"name":"username","type":"string","description":"New username"}],"description":"Change the username of a supergroup/channel","throws":[{"code":400,"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","description":"You're admin of too many public channels, make some channels private to change the username of this channel"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"USERNAME_INVALID","description":"The provided username is not valid"},{"code":400,"name":"USERNAME_NOT_MODIFIED","description":"The username was not modified"},{"code":400,"name":"USERNAME_OCCUPIED","description":"The provided username is already occupied"}],"available":"user"},{"name":"joinChannel","id":615851205,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup to join"}],"description":"Join a channel/supergroup","throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","description":"You have joined too many channels/supergroups"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"INVITE_HASH_EMPTY","description":"The invite hash is empty"},{"code":400,"name":"INVITE_HASH_EXPIRED","description":"The invite link has expired"},{"code":400,"name":"INVITE_HASH_INVALID","description":"The invite hash is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USERS_TOO_MUCH","description":"The maximum number of users has been exceeded (to create a chat, for example)"},{"code":400,"name":"USER_ALREADY_PARTICIPANT","description":"The user is already in the group"},{"code":400,"name":"USER_CHANNELS_TOO_MUCH","description":"One of the users you tried to add is already in too many channels/supergroups"}],"available":"user"},{"name":"leaveChannel","id":4164332181,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup to leave"}],"description":"Leave a channel/supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":403,"name":"CHANNEL_PUBLIC_GROUP_NA","description":"channel/supergroup not available"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"USER_CREATOR","description":"You can't leave this channel, because you're its creator"},{"code":400,"name":"USER_NOT_PARTICIPANT","description":"You're not a member of this supergroup/channel"}],"available":"both"},{"name":"inviteToChannel","id":429865580,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"users","type":"InputUser[]","description":"Users to invite"}],"description":"Invite users to a channel/supergroup","throws":[{"code":400,"name":"BOTS_TOO_MUCH","description":"There are too many bots in this chat/channel"},{"code":400,"name":"BOT_GROUPS_BLOCKED","description":"This bot can't be added to groups"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_INVALID","description":"Invalid chat"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"USERS_TOO_MUCH","description":"The maximum number of users has been exceeded (to create a chat, for example)"},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"},{"code":400,"name":"USER_BLOCKED","description":"User blocked"},{"code":400,"name":"USER_BOT","description":"Bots can only be admins in channels."},{"code":403,"name":"USER_CHANNELS_TOO_MUCH","description":"One of the users you tried to add is already in too many channels/supergroups"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"},{"code":400,"name":"USER_KICKED","description":"This user was kicked from this supergroup/channel"},{"code":400,"name":"USER_NOT_MUTUAL_CONTACT","description":"The provided user is not a mutual contact"},{"code":403,"name":"USER_PRIVACY_RESTRICTED","description":"The user's privacy settings do not allow you to do this"}],"available":"user"},{"name":"deleteChannel","id":3222347747,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup to delete"}],"description":"Delete a channel/supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHANNEL_TOO_LARGE","description":"Channel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change)"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"}],"available":"user"},{"name":"exportMessageLink","id":3862932971,"returns":"ExportedMessageLink","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"grouped","type":"true","optional":true,"predicate":"flags.0","description":"Whether to include other grouped media (for albums)"},{"name":"thread","type":"true","optional":true,"predicate":"flags.1","description":"Whether to also include a thread ID, if available, inside of the link"},{"name":"channel","type":"InputChannel","description":"Channel"},{"name":"id","type":"number","description":"Message ID"}],"description":"Get link and embed info of a message in a channel/supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"user"},{"name":"toggleSignatures","id":527021574,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel"},{"name":"enabled","type":"boolean","description":"Value"}],"description":"Enable/disable message signatures in channels","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"}],"available":"user"},{"name":"getAdminedPublicChannels","id":4172297903,"returns":"messages.Chats","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"byLocation","type":"true","optional":true,"predicate":"flags.0","description":"Get geogroups"},{"name":"checkLimit","type":"true","optional":true,"predicate":"flags.1","description":"If set and the user has reached the limit of owned public channels/supergroups/geogroups, instead of returning the channel list one of the specified {@link channels.getAdminedPublicChannels} will be returned.
Useful to check if a new public channel can indeed be created, even before asking the user to enter a channel username to use in {@link channels.checkUsername}/{@link channels.updateUsername}."}],"description":"Get channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the {@link config} for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of their channels/supergroups/geogroups.","throws":[{"code":400,"name":"CHANNELS_ADMIN_LOCATED_TOO_MUCH","description":"Returned if both the check_limit and the by_location flags are set and the user has reached the limit of public geogroups"},{"code":400,"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","description":"Returned if the check_limit flag is set and the user has reached the limit of public channels/supergroups"}],"available":"user"},{"name":"editBanned","id":2531708289,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"The supergroup/channel."},{"name":"participant","type":"InputPeer"},{"name":"bannedRights","type":"ChatBannedRights","description":"The banned rights"}],"description":"Ban/unban/kick a user in a supergroup/channel.","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PINNED_DIALOGS_TOO_MUCH","description":"Too many pinned dialogs"},{"code":400,"name":"USER_ADMIN_INVALID","description":"You're not an admin"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"both"},{"name":"getAdminLog","id":870184064,"returns":"channels.AdminLogResults","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"channel","type":"InputChannel","description":"Channel"},{"name":"q","type":"string","description":"Search query, can be empty"},{"name":"eventsFilter","type":"ChannelAdminLogEventsFilter","optional":true,"predicate":"flags.0","description":"Event filter"},{"name":"admins","type":"InputUser[]","optional":true,"predicate":"flags.1","description":"Only show events from these admins"},{"name":"maxId","type":"Long","description":"Maximum ID of message to return (see pagination)"},{"name":"minId","type":"Long","description":"Minimum ID of message to return (see pagination)"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"}],"description":"Get the admin log of a channel/supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"user"},{"name":"setStickers","id":3935085817,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"Supergroup"},{"name":"stickerset","type":"InputStickerSet","description":"The stickerset to associate"}],"description":"Associate a stickerset to the supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"PARTICIPANTS_TOO_FEW","description":"Not enough participants"}],"available":"both"},{"name":"readMessageContents","id":3937786936,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"id","type":"number[]","description":"IDs of messages whose contents should be marked as read"}],"description":"Mark channel/supergroup message contents as read","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"user"},{"name":"deleteHistory","id":2939592002,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"Supergroup whose history must be deleted"},{"name":"maxId","type":"number","description":"ID of message up to which the history must be deleted"}],"description":"Delete the history of a supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"}],"available":"user"},{"name":"togglePreHistoryHidden","id":3938171212,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"enabled","type":"boolean","description":"Hide/unhide"}],"description":"Hide/unhide message history for new channel/supergroup users","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"CHAT_LINK_EXISTS","description":"The chat is public, you can't hide the history to new users"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"}],"available":"user"},{"name":"getLeftChannels","id":2202135744,"returns":"messages.Chats","arguments":[{"name":"offset","type":"number","description":"Offset for pagination"}],"description":"Get a list of channels/supergroups we left","throws":[{"code":403,"name":"TAKEOUT_REQUIRED","description":"A takeout session has to be initialized, first"}],"available":"user"},{"name":"getGroupsForDiscussion","id":4124758904,"returns":"messages.Chats","arguments":[],"description":"Get all groups that can be used as discussion groups.","available":"user"},{"name":"setDiscussionGroup","id":1079520178,"returns":"boolean","arguments":[{"name":"broadcast","type":"InputChannel","description":"Channel"},{"name":"group","type":"InputChannel","description":"Discussion group to associate to the channel"}],"description":"Associate a group to a channel as discussion group for that channel","throws":[{"code":400,"name":"BROADCAST_ID_INVALID","description":"Broadcast ID invalid"},{"code":400,"name":"LINK_NOT_MODIFIED","description":"Discussion link not modified"},{"code":400,"name":"MEGAGROUP_ID_INVALID","description":"Invalid supergroup ID"}],"available":"user"},{"name":"editCreator","id":2402864415,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel"},{"name":"userId","type":"InputUser","description":"New channel owner"},{"name":"password","type":"InputCheckPasswordSRP","description":"2FA password of account"}],"description":"Transfer channel ownership","throws":[{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"PASSWORD_HASH_INVALID","description":"The provided password hash is invalid"},{"code":400,"name":"PASSWORD_MISSING","description":"You must enable 2FA in order to transfer ownership of a channel"},{"code":400,"name":"PASSWORD_TOO_FRESH_X","description":"The password was modified less than 24 hours ago, try again in X seconds"},{"code":400,"name":"SESSION_TOO_FRESH_X","description":"This session was created less than 24 hours ago, try again in X seconds"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"user"},{"name":"editLocation","id":1491484525,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"Geogroup"},{"name":"geoPoint","type":"InputGeoPoint","description":"New geolocation"},{"name":"address","type":"string","description":"Address string"}],"description":"Edit location of geo group","throws":[{"code":400,"name":"MEGAGROUP_REQUIRED","description":"You can only use this method on a supergroup"}],"available":"user"},{"name":"toggleSlowMode","id":3990134512,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"The supergroup"},{"name":"seconds","type":"number","description":"Users will only be able to send one message every seconds seconds, 0 to disable the limitation"}],"description":"Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":400,"name":"INPUT_METHOD_INVALID_1192227_X","description":"Invalid method"},{"code":400,"name":"INPUT_METHOD_INVALID_1604042050_X","description":"Invalid method"},{"code":400,"name":"SECONDS_INVALID","description":"Invalid duration provided"}],"available":"user"},{"name":"getInactiveChannels","id":300429806,"returns":"messages.InactiveChats","arguments":[],"description":"Get inactive channels and supergroups","available":"user"},{"name":"convertToGigagroup","id":187239529,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel"}]}],"unions":[{"type":"ChannelParticipants","subtypes":["channels.channelParticipants","channels.channelParticipantsNotModified"],"description":"Channel/supergroup participants"},{"type":"ChannelParticipant","subtypes":["channels.channelParticipant"],"description":"Channel participant"},{"type":"AdminLogResults","subtypes":["channels.adminLogResults"],"description":"Admin log events"}]},"payments":{"classes":[{"name":"paymentForm","id":2366317589,"type":"payments.PaymentForm","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"canSaveCredentials","type":"true","optional":true,"predicate":"flags.2","description":"Whether the user can choose to save credentials."},{"name":"passwordMissing","type":"true","optional":true,"predicate":"flags.3","description":"Indicates that the user can save payment credentials, but only after setting up a 2FA password (currently the account doesn't have a 2FA password)"},{"name":"formId","type":"Long"},{"name":"botId","type":"number","description":"Bot ID"},{"name":"invoice","type":"Invoice","description":"Invoice"},{"name":"providerId","type":"number","description":"Payment provider ID."},{"name":"url","type":"string","description":"Payment form URL"},{"name":"nativeProvider","type":"string","optional":true,"predicate":"flags.4","description":"Payment provider name.
One of the following:
- stripe"},{"name":"nativeParams","type":"DataJSON","optional":true,"predicate":"flags.4","description":"Contains information about the payment provider, if available, to support it natively without the need for opening the URL.
A JSON object that can contain the following fields:

- apple_pay_merchant_id: Apple Pay merchant ID
- google_pay_public_key: Google Pay public key
- need_country: True, if the user country must be provided,
- need_zip: True, if the user ZIP/postal code must be provided,
- need_cardholder_name: True, if the cardholder name must be provided"},{"name":"savedInfo","type":"PaymentRequestedInfo","optional":true,"predicate":"flags.0","description":"Saved server-side order information"},{"name":"savedCredentials","type":"PaymentSavedCredentials","optional":true,"predicate":"flags.1","description":"Contains information about saved card credentials"},{"name":"users","type":"User[]","description":"Users"}],"description":"Payment form"},{"name":"validatedRequestedInfo","id":3510966403,"type":"payments.ValidatedRequestedInfo","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"string","optional":true,"predicate":"flags.0","description":"ID"},{"name":"shippingOptions","type":"ShippingOption[]","optional":true,"predicate":"flags.1","description":"Shipping options"}],"description":"Validated user-provided info"},{"name":"paymentResult","id":1314881805,"type":"payments.PaymentResult","arguments":[{"name":"updates","type":"Updates","description":"Info about the payment"}],"description":"Payment result"},{"name":"paymentVerificationNeeded","id":3628142905,"type":"payments.PaymentResult","arguments":[{"name":"url","type":"string","description":"URL for additional payment credentials verification"}],"description":"Payment was not successful, additional verification is needed"},{"name":"paymentReceipt","id":280319440,"type":"payments.PaymentReceipt","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"date","type":"number","description":"Date of generation"},{"name":"botId","type":"number","description":"Bot ID"},{"name":"providerId","type":"number","description":"Provider ID"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"WebDocument","optional":true,"predicate":"flags.2"},{"name":"invoice","type":"Invoice","description":"Invoice"},{"name":"info","type":"PaymentRequestedInfo","optional":true,"predicate":"flags.0","description":"Info"},{"name":"shipping","type":"ShippingOption","optional":true,"predicate":"flags.1","description":"Selected shipping option"},{"name":"tipAmount","type":"Long","optional":true,"predicate":"flags.3"},{"name":"currency","type":"string","description":"Three-letter ISO 4217 currency code"},{"name":"totalAmount","type":"Long","description":"Total amount in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"credentialsTitle","type":"string","description":"Payment credential name"},{"name":"users","type":"User[]","description":"Users"}],"description":"Receipt"},{"name":"savedInfo","id":4220511292,"type":"payments.SavedInfo","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"hasSavedCredentials","type":"true","optional":true,"predicate":"flags.1","description":"Whether the user has some saved payment credentials"},{"name":"savedInfo","type":"PaymentRequestedInfo","optional":true,"predicate":"flags.0","description":"Saved server-side order information"}],"description":"Saved server-side order information"},{"name":"bankCardData","id":1042605427,"type":"payments.BankCardData","arguments":[{"name":"title","type":"string","description":"Credit card title"},{"name":"openUrls","type":"BankCardOpenUrl[]","description":"Info URL(s) provided by the card's bank(s)"}],"description":"Credit card info, provided by the card's bank(s)"}],"methods":[{"name":"getPaymentForm","id":2318613645,"returns":"payments.PaymentForm","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"peer","type":"InputPeer"},{"name":"msgId","type":"number","description":"Message ID of payment form"},{"name":"themeParams","type":"DataJSON","optional":true,"predicate":"flags.0"}],"description":"Get a payment form","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"}],"available":"user"},{"name":"getPaymentReceipt","id":611897804,"returns":"payments.PaymentReceipt","arguments":[{"name":"peer","type":"InputPeer"},{"name":"msgId","type":"number","description":"Message ID of receipt"}],"description":"Get payment receipt","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"}],"available":"user"},{"name":"validateRequestedInfo","id":3675271536,"returns":"payments.ValidatedRequestedInfo","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"save","type":"true","optional":true,"predicate":"flags.0","description":"Save order information to re-use it for future orders"},{"name":"peer","type":"InputPeer"},{"name":"msgId","type":"number","description":"Message ID of payment form"},{"name":"info","type":"PaymentRequestedInfo","description":"Requested order information"}],"description":"Submit requested order information for validation","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"}],"available":"user"},{"name":"sendPaymentForm","id":818134173,"returns":"payments.PaymentResult","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"formId","type":"Long"},{"name":"peer","type":"InputPeer"},{"name":"msgId","type":"number","description":"Message ID of form"},{"name":"requestedInfoId","type":"string","optional":true,"predicate":"flags.0","description":"ID of saved and validated {@link payments.validatedRequestedInfo}"},{"name":"shippingOptionId","type":"string","optional":true,"predicate":"flags.1","description":"Chosen shipping option ID"},{"name":"credentials","type":"InputPaymentCredentials","description":"Payment credentials"},{"name":"tipAmount","type":"Long","optional":true,"predicate":"flags.2"}],"description":"Send compiled payment form","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"}],"available":"user"},{"name":"getSavedInfo","id":578650699,"returns":"payments.SavedInfo","arguments":[],"description":"Get saved payment information","available":"user"},{"name":"clearSavedInfo","id":3627905217,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"credentials","type":"true","optional":true,"predicate":"flags.0","description":"Remove saved payment credentials"},{"name":"info","type":"true","optional":true,"predicate":"flags.1","description":"Clear the last order settings saved by the user"}],"description":"Clear saved payment information","available":"user"},{"name":"getBankCardData","id":779736953,"returns":"payments.BankCardData","arguments":[{"name":"number","type":"string","description":"Credit card number"}],"description":"Get info about a credit card","available":"user"}],"unions":[{"type":"PaymentForm","subtypes":["payments.paymentForm"],"description":"Payment form"},{"type":"ValidatedRequestedInfo","subtypes":["payments.validatedRequestedInfo"],"description":"Validated requested info"},{"type":"PaymentResult","subtypes":["payments.paymentResult","payments.paymentVerificationNeeded"],"description":"Payment result"},{"type":"PaymentReceipt","subtypes":["payments.paymentReceipt"],"description":"Payment receipt"},{"type":"SavedInfo","subtypes":["payments.savedInfo"],"description":"Saved payment info"},{"type":"BankCardData","subtypes":["payments.bankCardData"],"description":"Credit card info, provided by the card's bank(s)"}]},"phone":{"classes":[{"name":"phoneCall","id":3968000320,"type":"phone.PhoneCall","arguments":[{"name":"phoneCall","type":"PhoneCall","description":"The VoIP phone call"},{"name":"users","type":"User[]","description":"VoIP phone call participants"}],"description":"A VoIP phone call"},{"name":"groupCall","id":2658302637,"type":"phone.GroupCall","arguments":[{"name":"call","type":"GroupCall"},{"name":"participants","type":"GroupCallParticipant[]"},{"name":"participantsNextOffset","type":"string"},{"name":"chats","type":"Chat[]"},{"name":"users","type":"User[]"}]},{"name":"groupParticipants","id":4101460406,"type":"phone.GroupParticipants","arguments":[{"name":"count","type":"number"},{"name":"participants","type":"GroupCallParticipant[]"},{"name":"nextOffset","type":"string"},{"name":"chats","type":"Chat[]"},{"name":"users","type":"User[]"},{"name":"version","type":"number"}]},{"name":"joinAsPeers","id":2951045695,"type":"phone.JoinAsPeers","arguments":[{"name":"peers","type":"Peer[]"},{"name":"chats","type":"Chat[]"},{"name":"users","type":"User[]"}]},{"name":"exportedGroupCallInvite","id":541839704,"type":"phone.ExportedGroupCallInvite","arguments":[{"name":"link","type":"string"}]}],"methods":[{"name":"getCallConfig","id":1430593449,"returns":"DataJSON","arguments":[],"description":"Get phone call configuration to be passed to libtgvoip's shared config","available":"user"},{"name":"requestCall","id":1124046573,"returns":"phone.PhoneCall","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"video","type":"true","optional":true,"predicate":"flags.0","description":"Whether to start a video call"},{"name":"userId","type":"InputUser","description":"Destination of the phone call"},{"name":"randomId","type":"number","description":"Random ID to avoid resending the same object"},{"name":"gAHash","type":"Buffer","description":"Parameter for E2E encryption key exchange »"},{"name":"protocol","type":"PhoneCallProtocol","description":"Phone call settings"}],"description":"Start a telegram phone call","throws":[{"code":400,"name":"CALL_PROTOCOL_FLAGS_INVALID","description":"Call protocol flags invalid"},{"code":400,"name":"PARTICIPANT_VERSION_OUTDATED","description":"The other participant does not use an up to date telegram client with support for calls"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"},{"code":403,"name":"USER_IS_BLOCKED","description":"You were blocked by this user"},{"code":403,"name":"USER_PRIVACY_RESTRICTED","description":"The user's privacy settings do not allow you to do this"}],"available":"user"},{"name":"acceptCall","id":1003664544,"returns":"phone.PhoneCall","arguments":[{"name":"peer","type":"InputPhoneCall","description":"The call to accept"},{"name":"gB","type":"Buffer","description":"Parameter for E2E encryption key exchange »"},{"name":"protocol","type":"PhoneCallProtocol","description":"Phone call settings"}],"description":"Accept incoming call","throws":[{"code":400,"name":"CALL_ALREADY_ACCEPTED","description":"The call was already accepted"},{"code":400,"name":"CALL_ALREADY_DECLINED","description":"The call was already declined"},{"code":400,"name":"CALL_PEER_INVALID","description":"The provided call peer object is invalid"},{"code":400,"name":"CALL_PROTOCOL_FLAGS_INVALID","description":"Call protocol flags invalid"}],"available":"user"},{"name":"confirmCall","id":788404002,"returns":"phone.PhoneCall","arguments":[{"name":"peer","type":"InputPhoneCall","description":"The phone call"},{"name":"gA","type":"Buffer","description":"Parameter for E2E encryption key exchange »"},{"name":"keyFingerprint","type":"Long","description":"Key fingerprint"},{"name":"protocol","type":"PhoneCallProtocol","description":"Phone call settings"}],"description":"Complete phone call E2E encryption key exchange »","throws":[{"code":400,"name":"CALL_ALREADY_DECLINED","description":"The call was already declined"},{"code":400,"name":"CALL_PEER_INVALID","description":"The provided call peer object is invalid"}],"available":"user"},{"name":"receivedCall","id":399855457,"returns":"boolean","arguments":[{"name":"peer","type":"InputPhoneCall","description":"The phone call we're currently in"}],"description":"Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended.","throws":[{"code":400,"name":"CALL_ALREADY_DECLINED","description":"The call was already declined"},{"code":400,"name":"CALL_PEER_INVALID","description":"The provided call peer object is invalid"}],"available":"user"},{"name":"discardCall","id":2999697856,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"video","type":"true","optional":true,"predicate":"flags.0","description":"Whether this is a video call"},{"name":"peer","type":"InputPhoneCall","description":"The phone call"},{"name":"duration","type":"number","description":"Call duration"},{"name":"reason","type":"PhoneCallDiscardReason","description":"Why was the call discarded"},{"name":"connectionId","type":"Long","description":"Preferred libtgvoip relay ID"}],"description":"Refuse or end running call","throws":[{"code":400,"name":"CALL_ALREADY_ACCEPTED","description":"The call was already accepted"},{"code":400,"name":"CALL_PEER_INVALID","description":"The provided call peer object is invalid"}],"available":"user"},{"name":"setCallRating","id":1508562471,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"userInitiative","type":"true","optional":true,"predicate":"flags.0","description":"Whether the user decided on their own initiative to rate the call"},{"name":"peer","type":"InputPhoneCall","description":"The call to rate"},{"name":"rating","type":"number","description":"Rating in 1-5 stars"},{"name":"comment","type":"string","description":"An additional comment"}],"description":"Rate a call","throws":[{"code":400,"name":"CALL_PEER_INVALID","description":"The provided call peer object is invalid"}],"available":"user"},{"name":"saveCallDebug","id":662363518,"returns":"boolean","arguments":[{"name":"peer","type":"InputPhoneCall","description":"Phone call"},{"name":"debug","type":"DataJSON","description":"Debug statistics obtained from libtgvoip"}],"description":"Send phone call debug data to server","throws":[{"code":400,"name":"CALL_PEER_INVALID","description":"The provided call peer object is invalid"},{"code":400,"name":"DATA_JSON_INVALID","description":"The provided JSON data is invalid"}],"available":"user"},{"name":"sendSignalingData","id":4286223235,"returns":"boolean","arguments":[{"name":"peer","type":"InputPhoneCall","description":"Phone call"},{"name":"data","type":"Buffer","description":"Signaling payload"}],"description":"Send VoIP signaling data","available":"both"},{"name":"createGroupCall","id":1221445336,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"peer","type":"InputPeer"},{"name":"randomId","type":"number"},{"name":"title","type":"string","optional":true,"predicate":"flags.0"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.1"}]},{"name":"joinGroupCall","id":2972909435,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"muted","type":"true","optional":true,"predicate":"flags.0"},{"name":"videoStopped","type":"true","optional":true,"predicate":"flags.2"},{"name":"call","type":"InputGroupCall"},{"name":"joinAs","type":"InputPeer"},{"name":"inviteHash","type":"string","optional":true,"predicate":"flags.1"},{"name":"params","type":"DataJSON"}]},{"name":"leaveGroupCall","id":1342404601,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"source","type":"number"}]},{"name":"inviteToGroupCall","id":2067345760,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"users","type":"InputUser[]"}]},{"name":"discardGroupCall","id":2054648117,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"}]},{"name":"toggleGroupCallSettings","id":1958458429,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"resetInviteHash","type":"true","optional":true,"predicate":"flags.1"},{"name":"call","type":"InputGroupCall"},{"name":"joinMuted","type":"boolean","optional":true,"predicate":"flags.0"}]},{"name":"getGroupCall","id":209498135,"returns":"phone.GroupCall","arguments":[{"name":"call","type":"InputGroupCall"}]},{"name":"getGroupParticipants","id":3310934187,"returns":"phone.GroupParticipants","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"ids","type":"InputPeer[]"},{"name":"sources","type":"number[]"},{"name":"offset","type":"string"},{"name":"limit","type":"number"}]},{"name":"checkGroupCall","id":3046963575,"returns":"number[]","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"sources","type":"number[]"}]},{"name":"toggleGroupCallRecord","id":3224004311,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"start","type":"true","optional":true,"predicate":"flags.0"},{"name":"call","type":"InputGroupCall"},{"name":"title","type":"string","optional":true,"predicate":"flags.1"}]},{"name":"editGroupCallParticipant","id":2770811583,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"call","type":"InputGroupCall"},{"name":"participant","type":"InputPeer"},{"name":"muted","type":"boolean","optional":true,"predicate":"flags.0"},{"name":"volume","type":"number","optional":true,"predicate":"flags.1"},{"name":"raiseHand","type":"boolean","optional":true,"predicate":"flags.2"},{"name":"videoStopped","type":"boolean","optional":true,"predicate":"flags.3"},{"name":"videoPaused","type":"boolean","optional":true,"predicate":"flags.4"},{"name":"presentationPaused","type":"boolean","optional":true,"predicate":"flags.5"}]},{"name":"editGroupCallTitle","id":480685066,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"title","type":"string"}]},{"name":"getGroupCallJoinAs","id":4017889594,"returns":"phone.JoinAsPeers","arguments":[{"name":"peer","type":"InputPeer"}]},{"name":"exportGroupCallInvite","id":3869926527,"returns":"phone.ExportedGroupCallInvite","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"canSelfUnmute","type":"true","optional":true,"predicate":"flags.0"},{"name":"call","type":"InputGroupCall"}]},{"name":"toggleGroupCallStartSubscription","id":563885286,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"subscribed","type":"boolean"}]},{"name":"startScheduledGroupCall","id":1451287362,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"}]},{"name":"saveDefaultGroupCallJoinAs","id":1465786252,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer"},{"name":"joinAs","type":"InputPeer"}]},{"name":"joinGroupCallPresentation","id":3421137860,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"params","type":"DataJSON"}]},{"name":"leaveGroupCallPresentation","id":475058500,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"}]}],"unions":[{"type":"PhoneCall","subtypes":["phone.phoneCall"],"description":"Phone call"},{"type":"GroupCall","subtypes":["phone.groupCall"]},{"type":"GroupParticipants","subtypes":["phone.groupParticipants"]},{"type":"JoinAsPeers","subtypes":["phone.joinAsPeers"]},{"type":"ExportedGroupCallInvite","subtypes":["phone.exportedGroupCallInvite"]}]},"stats":{"classes":[{"name":"broadcastStats","id":3187114900,"type":"stats.BroadcastStats","arguments":[{"name":"period","type":"StatsDateRangeDays","description":"Period in consideration"},{"name":"followers","type":"StatsAbsValueAndPrev","description":"Follower count change for period in consideration"},{"name":"viewsPerPost","type":"StatsAbsValueAndPrev","description":"total_viewcount/postcount, for posts posted during the period in consideration (views_per_post).
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)."},{"name":"sharesPerPost","type":"StatsAbsValueAndPrev","description":"total_viewcount/postcount, for posts posted during the period in consideration (views_per_post).
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)"},{"name":"enabledNotifications","type":"StatsPercentValue","description":"Percentage of subscribers with enabled notifications"},{"name":"growthGraph","type":"StatsGraph","description":"Channel growth graph (absolute subscriber count)"},{"name":"followersGraph","type":"StatsGraph","description":"Followers growth graph (relative subscriber count)"},{"name":"muteGraph","type":"StatsGraph","description":"Muted users graph (relative)"},{"name":"topHoursGraph","type":"StatsGraph","description":"Views per hour graph (absolute)"},{"name":"interactionsGraph","type":"StatsGraph","description":"Interactions graph (absolute)"},{"name":"ivInteractionsGraph","type":"StatsGraph","description":"IV interactions graph (absolute)"},{"name":"viewsBySourceGraph","type":"StatsGraph","description":"Views by source graph (absolute)"},{"name":"newFollowersBySourceGraph","type":"StatsGraph","description":"New followers by source graph (absolute)"},{"name":"languagesGraph","type":"StatsGraph","description":"Subscriber language graph (piechart)"},{"name":"recentMessageInteractions","type":"MessageInteractionCounters[]","description":"Recent message interactions"}],"description":"Channel statistics."},{"name":"megagroupStats","id":4018141462,"type":"stats.MegagroupStats","arguments":[{"name":"period","type":"StatsDateRangeDays","description":"Period in consideration"},{"name":"members","type":"StatsAbsValueAndPrev","description":"Member count change for period in consideration"},{"name":"messages","type":"StatsAbsValueAndPrev","description":"Message number change for period in consideration"},{"name":"viewers","type":"StatsAbsValueAndPrev","description":"Number of users that viewed messages, for range in consideration"},{"name":"posters","type":"StatsAbsValueAndPrev","description":"Number of users that posted messages, for range in consideration"},{"name":"growthGraph","type":"StatsGraph","description":"Supergroup growth graph (absolute subscriber count)"},{"name":"membersGraph","type":"StatsGraph","description":"Members growth (relative subscriber count)"},{"name":"newMembersBySourceGraph","type":"StatsGraph","description":"New members by source graph"},{"name":"languagesGraph","type":"StatsGraph","description":"Subscriber language graph (piechart)"},{"name":"messagesGraph","type":"StatsGraph","description":"Message activity graph (stacked bar graph, message type)"},{"name":"actionsGraph","type":"StatsGraph","description":"Group activity graph (deleted, modified messages, blocked users)"},{"name":"topHoursGraph","type":"StatsGraph","description":"Activity per hour graph (absolute)"},{"name":"weekdaysGraph","type":"StatsGraph","description":"Activity per day of week graph (absolute)"},{"name":"topPosters","type":"StatsGroupTopPoster[]","description":"Info about most active group members"},{"name":"topAdmins","type":"StatsGroupTopAdmin[]","description":"Info about most active group admins"},{"name":"topInviters","type":"StatsGroupTopInviter[]","description":"Info about most active group inviters"},{"name":"users","type":"User[]","description":"Info about users mentioned in statistics"}],"description":"Supergroup statistics"},{"name":"messageStats","id":2308567701,"type":"stats.MessageStats","arguments":[{"name":"viewsGraph","type":"StatsGraph","description":"Message view graph"}],"description":"Message statistics"}],"methods":[{"name":"getBroadcastStats","id":2873246746,"returns":"stats.BroadcastStats","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"dark","type":"true","optional":true,"predicate":"flags.0","description":"Whether to enable dark theme for graph colors"},{"name":"channel","type":"InputChannel","description":"The channel"}],"description":"Get channel statistics","throws":[{"code":400,"name":"BROADCAST_REQUIRED","description":"This method can only be called on a channel, please use stats.getMegagroupStats for supergroups"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"}],"available":"user"},{"name":"loadAsyncGraph","id":1646092192,"returns":"StatsGraph","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"token","type":"string","description":"Graph token from {@link statsGraphAsync} constructor"},{"name":"x","type":"Long","optional":true,"predicate":"flags.0","description":"Zoom value, if required"}],"description":"Load channel statistics graph asynchronously","throws":[{"code":400,"name":"GRAPH_INVALID_RELOAD","description":"Invalid graph token provided, please reload the stats and provide the updated token"},{"code":400,"name":"GRAPH_OUTDATED_RELOAD","description":"The graph is outdated, please get a new async token using stats.getBroadcastStats"}],"available":"user"},{"name":"getMegagroupStats","id":3705636359,"returns":"stats.MegagroupStats","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"dark","type":"true","optional":true,"predicate":"flags.0","description":"Whether to enable dark theme for graph colors"},{"name":"channel","type":"InputChannel","description":"Supergroup ID"}],"description":"Get supergroup statistics","available":"both"},{"name":"getMessagePublicForwards","id":1445996571,"returns":"messages.Messages","arguments":[{"name":"channel","type":"InputChannel","description":"Source channel"},{"name":"msgId","type":"number","description":"Source message ID"},{"name":"offsetRate","type":"number","description":"Initially 0, then set to the next_rate parameter of {@link messages.messagesSlice}"},{"name":"offsetPeer","type":"InputPeer","description":"Offsets for pagination, for more info click here"},{"name":"offsetId","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"}],"description":"Obtains a list of messages, indicating to which other public channels was a channel message forwarded.
\nWill return a list of {@link message} with peer_id equal to the public channel to which this message was forwarded.","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"}],"available":"both"},{"name":"getMessageStats","id":3068175349,"returns":"stats.MessageStats","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"dark","type":"true","optional":true,"predicate":"flags.0","description":"Whether to enable dark theme for graph colors"},{"name":"channel","type":"InputChannel","description":"Channel ID"},{"name":"msgId","type":"number","description":"Message ID"}],"description":"Get message statistics","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"}],"available":"both"}],"unions":[{"type":"BroadcastStats","subtypes":["stats.broadcastStats"],"description":"Channel statistics"},{"type":"MegagroupStats","subtypes":["stats.megagroupStats"],"description":"Supergroup statistics"},{"type":"MessageStats","subtypes":["stats.messageStats"],"description":"Message statistics"}]},"stickers":{"classes":[{"name":"suggestedShortName","id":2248056895,"type":"stickers.SuggestedShortName","arguments":[{"name":"shortName","type":"string"}]}],"methods":[{"name":"createStickerSet","id":2418125671,"returns":"messages.StickerSet","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"masks","type":"true","optional":true,"predicate":"flags.0","description":"Whether this is a mask stickerset"},{"name":"animated","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is an animated stickerset"},{"name":"userId","type":"InputUser","description":"Stickerset owner"},{"name":"title","type":"string","description":"Stickerset name, 1-64 chars"},{"name":"shortName","type":"string","description":"Sticker set name. Can contain only English letters, digits and underscores. Must end with \"by\" ( is case insensitive); 1-64 characters"},{"name":"thumb","type":"InputDocument","optional":true,"predicate":"flags.2","description":"Thumbnail"},{"name":"stickers","type":"InputStickerSetItem[]","description":"Stickers"},{"name":"software","type":"string","optional":true,"predicate":"flags.3"}],"description":"Create a stickerset, bots only.","throws":[{"code":400,"name":"BOT_MISSING","description":"This method can only be run by a bot"},{"code":400,"name":"PACK_SHORT_NAME_INVALID","description":"Short pack name invalid"},{"code":400,"name":"PACK_SHORT_NAME_OCCUPIED","description":"A stickerpack with this name already exists"},{"code":400,"name":"PACK_TITLE_INVALID","description":"The stickerpack title is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"SHORTNAME_OCCUPY_FAILED","description":"An internal error occurred"},{"code":400,"name":"STICKERS_EMPTY","description":"No sticker provided"},{"code":400,"name":"STICKER_EMOJI_INVALID","description":"Sticker emoji invalid"},{"code":400,"name":"STICKER_FILE_INVALID","description":"Sticker file invalid"},{"code":400,"name":"STICKER_PNG_DIMENSIONS","description":"Sticker png dimensions invalid"},{"code":400,"name":"STICKER_PNG_NOPNG","description":"One of the specified stickers is not a valid PNG file"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"both"},{"name":"removeStickerFromSet","id":4151709521,"returns":"messages.StickerSet","arguments":[{"name":"sticker","type":"InputDocument","description":"The sticker to remove"}],"description":"Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.","throws":[{"code":400,"name":"BOT_MISSING","description":"This method can only be run by a bot"},{"code":400,"name":"STICKER_INVALID","description":"The provided sticker is invalid"}],"available":"both"},{"name":"changeStickerPosition","id":4290172106,"returns":"messages.StickerSet","arguments":[{"name":"sticker","type":"InputDocument","description":"The sticker"},{"name":"position","type":"number","description":"The new position of the sticker, zero-based"}],"description":"Changes the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot","throws":[{"code":400,"name":"BOT_MISSING","description":"This method can only be run by a bot"},{"code":400,"name":"STICKER_INVALID","description":"The provided sticker is invalid"}],"available":"both"},{"name":"addStickerToSet","id":2253651646,"returns":"messages.StickerSet","arguments":[{"name":"stickerset","type":"InputStickerSet","description":"The stickerset"},{"name":"sticker","type":"InputStickerSetItem","description":"The sticker"}],"description":"Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot.","throws":[{"code":400,"name":"BOT_MISSING","description":"This method can only be run by a bot"},{"code":400,"name":"STICKERSET_INVALID","description":"The provided sticker set is invalid"}],"available":"both"},{"name":"setStickerSetThumb","id":2587250224,"returns":"messages.StickerSet","arguments":[{"name":"stickerset","type":"InputStickerSet","description":"Stickerset"},{"name":"thumb","type":"InputDocument","description":"Thumbnail"}],"description":"Set stickerset thumbnail","throws":[{"code":400,"name":"STICKERSET_INVALID","description":"The provided sticker set is invalid"}],"available":"both"},{"name":"checkShortName","id":676017721,"returns":"boolean","arguments":[{"name":"shortName","type":"string"}]},{"name":"suggestShortName","id":1303364867,"returns":"stickers.SuggestedShortName","arguments":[{"name":"title","type":"string"}]}],"unions":[{"type":"SuggestedShortName","subtypes":["stickers.suggestedShortName"]}]},"users":{"classes":[],"methods":[{"name":"getUsers","id":227648840,"returns":"User[]","arguments":[{"name":"id","type":"InputUser[]","description":"List of user identifiers"}],"description":"Returns basic user info according to their identifiers.","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CONNECTION_NOT_INITED","description":"Connection not initialized"},{"code":400,"name":"INPUT_LAYER_INVALID","description":"The provided layer is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"both"},{"name":"getFullUser","id":3392185777,"returns":"UserFull","arguments":[{"name":"id","type":"InputUser","description":"User ID"}],"description":"Returns extended user info by ID.","throws":[{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"both"},{"name":"setSecureValueErrors","id":2429064373,"returns":"boolean","arguments":[{"name":"id","type":"InputUser","description":"The user"},{"name":"errors","type":"SecureValueError[]","description":"Errors"}],"description":"Notify the user that the sent passport data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).","throws":[{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"both"}],"unions":[]},"bots":{"classes":[],"methods":[{"name":"sendCustomRequest","id":2854709741,"returns":"DataJSON","arguments":[{"name":"customMethod","type":"string","description":"The method name"},{"name":"params","type":"DataJSON","description":"JSON-serialized method parameters"}],"description":"Sends a custom request; for bots only","throws":[{"code":400,"name":"METHOD_INVALID","description":"The specified method is invalid"},{"code":400,"name":"USER_BOT_INVALID","description":"This method can only be called by a bot"}],"available":"bot"},{"name":"answerWebhookJSONQuery","id":3860938573,"returns":"boolean","arguments":[{"name":"queryId","type":"Long","description":"Identifier of a custom query"},{"name":"data","type":"DataJSON","description":"JSON-serialized answer to the query"}],"description":"Answers a custom query; for bots only","throws":[{"code":400,"name":"QUERY_ID_INVALID","description":"The query ID is invalid"},{"code":400,"name":"USER_BOT_INVALID","description":"This method can only be called by a bot"}],"available":"bot"},{"name":"setBotCommands","id":85399130,"returns":"boolean","arguments":[{"name":"scope","type":"BotCommandScope"},{"name":"langCode","type":"string"},{"name":"commands","type":"BotCommand[]","description":"Bot commands"}],"description":"Set bot command list","available":"both"},{"name":"resetBotCommands","id":1032708345,"returns":"boolean","arguments":[{"name":"scope","type":"BotCommandScope"},{"name":"langCode","type":"string"}]},{"name":"getBotCommands","id":3813412310,"returns":"BotCommand[]","arguments":[{"name":"scope","type":"BotCommandScope"},{"name":"langCode","type":"string"}]}],"unions":[]},"langpack":{"classes":[],"methods":[{"name":"getLangPack","id":4075959050,"returns":"LangPackDifference","arguments":[{"name":"langPack","type":"string","description":"Language pack name"},{"name":"langCode","type":"string","description":"Language code"}],"description":"Get localization pack strings","throws":[{"code":400,"name":"LANG_PACK_INVALID","description":"The provided language pack is invalid"}],"available":"user"},{"name":"getStrings","id":4025104387,"returns":"LangPackString[]","arguments":[{"name":"langPack","type":"string","description":"Language pack name"},{"name":"langCode","type":"string","description":"Language code"},{"name":"keys","type":"string[]","description":"Strings to get"}],"description":"Get strings from a language pack","throws":[{"code":400,"name":"LANG_PACK_INVALID","description":"The provided language pack is invalid"}],"available":"user"},{"name":"getDifference","id":3449309861,"returns":"LangPackDifference","arguments":[{"name":"langPack","type":"string","description":"Language pack"},{"name":"langCode","type":"string","description":"Language code"},{"name":"fromVersion","type":"number","description":"Previous localization pack version"}],"description":"Get new strings in languagepack","throws":[{"code":400,"name":"LANG_PACK_INVALID","description":"The provided language pack is invalid"}],"available":"user"},{"name":"getLanguages","id":1120311183,"returns":"LangPackLanguage[]","arguments":[{"name":"langPack","type":"string","description":"Language pack"}],"description":"Get information about all languages in a localization pack","throws":[{"code":400,"name":"LANG_PACK_INVALID","description":"The provided language pack is invalid"}],"available":"user"},{"name":"getLanguage","id":1784243458,"returns":"LangPackLanguage","arguments":[{"name":"langPack","type":"string","description":"Language pack name"},{"name":"langCode","type":"string","description":"Language code"}],"description":"Get information about a language in a localization pack","available":"user"}],"unions":[]},"folders":{"classes":[],"methods":[{"name":"editPeerFolders","id":1749536939,"returns":"Updates","arguments":[{"name":"folderPeers","type":"InputFolderPeer[]","description":"New peer list"}],"description":"Edit peers in peer folder","throws":[{"code":400,"name":"FOLDER_ID_INVALID","description":"Invalid folder ID"}],"available":"user"},{"name":"deleteFolder","id":472471681,"returns":"Updates","arguments":[{"name":"folderId","type":"number","description":"Peer folder ID, for more info click here"}],"description":"Delete a peer folder","available":"user"}],"unions":[]}}} \ No newline at end of file +{"mtproto":{"$root":{"classes":[{"name":"resPQ","id":85337187,"type":"ResPQ","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Random number generated by the server, used in the later steps"},{"name":"pq","type":"Buffer","description":"Big endian representation of a natural number, which is a product of two different odd prime numbers. Normally, this value is `<= 2^63-1`. Client is expected to decompose this product to `p` and `q`.\n"},{"name":"serverPublicKeyFingerprints","type":"Long[]","description":"List of public RSA key fingerprints, which are computed as follows:\n - First, the modulus and the exponent are extracted from the key\n - Then, the following TL type is written: `rsa_public_key n:string e:string = RSAPublicKey`\n - This is a bare type, meaning there's no 4-byte type number before it\n - `n` is the modulus, `e` is the exponent, encoded as big-endian\n - Finally, SHA1 is computed, and its last 8 bytes are taken and parsed as LE long\n (i.e. `parse_int64_le(sha1(rsa_public_key).slice(-8))`)\n\nClient is expected to choose out of those keys any single one that it has\nembedded in itself and return one of them in the following request.\n"}],"description":"Response for the first step of Authorization key derivation process"},{"name":"p_q_inner_data_dc","id":2851430293,"type":"P_Q_inner_data","arguments":[{"name":"pq","type":"Buffer"},{"name":"p","type":"Buffer"},{"name":"q","type":"Buffer"},{"name":"nonce","type":"Int128"},{"name":"serverNonce","type":"Int128"},{"name":"newNonce","type":"Int256"},{"name":"dc","type":"number"}]},{"name":"p_q_inner_data_temp_dc","id":1459478408,"type":"P_Q_inner_data","arguments":[{"name":"pq","type":"Buffer"},{"name":"p","type":"Buffer"},{"name":"q","type":"Buffer"},{"name":"nonce","type":"Int128"},{"name":"serverNonce","type":"Int128"},{"name":"newNonce","type":"Int256"},{"name":"dc","type":"number"},{"name":"expiresIn","type":"number"}]},{"name":"server_DH_params_ok","id":3504867164,"type":"Server_DH_Params","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"encryptedAnswer","type":"Buffer","description":"Encrypted DH parameters, obtained as follows:\n - Let `answer` be a serialization of {@link tl.mtproto.RawServer_DH_inner_data}\n - `hash1 = sha1(concat(newNonce, serverNonce))`\n - `hash2 = sha1(concat(serverNonce, newNonce))`\n - `hash3 = sha1(concat(newNonce, newNonce))`\n - `key = concat(hash1, hash2.slice(0, 12))`\n - `iv = concat(hash2.slice(12, 20), hash3, newNonce.slice(0, 4))`\n - `encryptedAnswer = aes256_ige_encrypt(answer, key, iv)\n"}],"description":"PQ decomposition was correct, server-side variables for DH are returned"},{"name":"server_DH_inner_data","id":3045658042,"type":"Server_DH_inner_data","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"g","type":"number","description":"`g` number (generator) used for Diffie-Hellman"},{"name":"dhPrime","type":"Buffer","description":"`p` prime number (modulus) used for Diffie-Hellman"},{"name":"gA","type":"Buffer","description":"`gA` number (`gA = g ^ A % p`, where `A` is server secret) used for Diffie-Hellman"},{"name":"serverTime","type":"number","description":"Server UNIX timestamp (in seconds)"}],"description":"Inner data that is returned in {@link tl.mtproto.RawServer_DH_params_ok}, containing server-side variables for Diffie-Hellman exchange\n"},{"name":"client_DH_inner_data","id":1715713620,"type":"Client_DH_Inner_Data","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"retryId","type":"Long","description":"Retry ID. When requesting for the first time, `0`, then last `authKeyAuxHash` is used\n"},{"name":"gB","type":"Buffer","description":"`gB` number (`gB = g ^ B % p`, where `B` is client secret) used for Diffie-Hellman"}],"description":"Inner data of {@link tl.mtproto.RawSetClientDHParamsRequest}, containing client-side variables for Diffie-Hellman exchange\n"},{"name":"dh_gen_ok","id":1003222836,"type":"Set_client_DH_params_answer","arguments":[{"name":"nonce","type":"Int128"},{"name":"serverNonce","type":"Int128"},{"name":"newNonceHash1","type":"Int128"}]},{"name":"dh_gen_retry","id":1188831161,"type":"Set_client_DH_params_answer","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"newNonceHash2","type":"Int128","description":"Nonce hash, computed as follows: `sha1(concat([newNonce, [0x02], authKeyAuxHash])`\n"}],"description":"DH exchange need to be retried. Current auth key is `gA ^ b % dhPrime`, and `authKeyAuxHash = sha1(authKey).slice(0, 8)`, but they will change.\nWhen this is received, you are expected to send another {@link tl.mtproto.RawSetClientDHParamsRequest}.\n"},{"name":"dh_gen_fail","id":2795351554,"type":"Set_client_DH_params_answer","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"newNonceHash3","type":"Int128","description":"Nonce hash, computed as follows: `sha1(concat([newNonce, [0x03], authKeyAuxHash])`\n"}],"description":"DH exchange failed. You should restart the entire authorization flow."},{"name":"bind_auth_key_inner","id":1973679973,"type":"BindAuthKeyInner","arguments":[{"name":"nonce","type":"RawLong"},{"name":"tempAuthKeyId","type":"RawLong"},{"name":"permAuthKeyId","type":"RawLong"},{"name":"tempSessionId","type":"RawLong"},{"name":"expiresAt","type":"number"}]},{"name":"rpc_result","id":4082920705,"type":"RpcResult","arguments":[{"name":"reqMsgId","type":"Long","description":"Requesting message ID"},{"name":"result","type":"Object","description":"Result of the call"}],"description":"Result of an RPC call"},{"name":"rpc_error","id":558156313,"type":"RpcError","arguments":[{"name":"errorCode","type":"number","description":"Numeric error code (like 404)"},{"name":"errorMessage","type":"string","description":"String error code"}],"description":"RPC call resulted in an error, information about that error. Error is still a result, and thus it is sent as a `result` of {@link tl.mtproto.RawRpc_result}\n"},{"name":"rpc_answer_unknown","id":1579864942,"type":"RpcDropAnswer","arguments":[]},{"name":"rpc_answer_dropped_running","id":3447252358,"type":"RpcDropAnswer","arguments":[],"description":"Response was canceled while the RPC query was being processed (where the RPC query itself was still fully processed); in this case, the same rpc_answer_dropped_running is also returned in response to the original query, and both of these responses require an acknowledgment from the client.\n"},{"name":"rpc_answer_dropped","id":2755319991,"type":"RpcDropAnswer","arguments":[{"name":"msgId","type":"Long","description":"Message ID of the RPC response"},{"name":"seqNo","type":"number","description":"Seq NO of the RPC response"},{"name":"bytes","type":"number","description":"Length in bytes of the RPC response"}],"description":"The RPC response was removed from the server’s outgoing queue"},{"name":"future_salt","id":155834844,"type":"FutureSalt","arguments":[{"name":"validSince","type":"number","description":"UNIX time in seconds from when this salt will be used"},{"name":"validUntil","type":"number","description":"UNIX time in seconds until which this salt will be used"},{"name":"salt","type":"RawLong","description":"The server salt itself"}],"description":"Information about a single future server salt"},{"name":"future_salts","id":2924480661,"type":"FutureSalts","arguments":[{"name":"reqMsgId","type":"Long","description":"Requesting message ID"},{"name":"now","type":"number","description":"Current server UNIX timestamp in seconds"},{"name":"salts","type":"future_salt[]","description":"List of future salts"}],"description":"Information about future server salts"},{"name":"pong","id":880243653,"type":"Pong","arguments":[{"name":"msgId","type":"Long","description":"Message ID that contained `mt_ping`"},{"name":"pingId","type":"Long","description":"Ping ID that was sent in `mt_ping`"}],"description":"Response to a {@link tl.mtproto.RawPingRequest}"},{"name":"destroy_session_ok","id":3793765884,"type":"DestroySessionRes","arguments":[{"name":"sessionId","type":"RawLong","description":"Old session ID"}],"description":"Session was succesfully destroyed"},{"name":"destroy_session_none","id":1658015945,"type":"DestroySessionRes","arguments":[{"name":"sessionId","type":"RawLong","description":"Old session ID"}],"description":"Session was not destroyed because it does not exist"},{"name":"new_session_created","id":2663516424,"type":"NewSession","arguments":[{"name":"firstMsgId","type":"Long","description":"First message ID that is known by the server to be from this session."},{"name":"uniqueId","type":"Long","description":"Random number generated by the server every time a session is (re-)created"},{"name":"serverSalt","type":"RawLong","description":"Current server salt"}],"description":"The server notifies the client that a new session (from the server’s standpoint) had to be created to handle a client message. If, after this, the server receives a message with an even smaller `msg_id` within the same session, a similar notification will be generated for this `msg_id` as well. No such notifications are generated for high msg_id values.\nThis notification must be acknowledged by the client. It is necessary, for instance, for the client to understand that there is, in fact, a “gap” in the stream of notifications received from the server (the user may have failed to receive notifications during some period of time).\nClient should also resend all the messages that were sent before `firstMsgId`\n"},{"name":"msg_container","id":1945237724,"type":"MessageContainer","arguments":[{"name":"messages","type":"%Message[]","description":"List of messages in the container"}],"description":"A simple container that carries several messages"},{"name":"message","id":1538843921,"type":"Message","arguments":[{"name":"msgId","type":"Long","description":"Original message ID"},{"name":"seqno","type":"number","description":"Original message seq No"},{"name":"bytes","type":"number","description":"Length of the message"},{"name":"body","type":"Object","description":"Contents of the message"}],"description":"A message in the container"},{"name":"msg_copy","id":3764405938,"type":"MessageCopy","arguments":[{"name":"origMessage","type":"Message","description":"Original message"}],"description":"A copy of a message"},{"name":"gzip_packed","id":812830625,"type":"Object","arguments":[{"name":"packedData","type":"Buffer","description":"Gzipped contents of the message"}],"description":"An object, which was gzipped.\nAt the present time, it is supported in the body of an RPC response (i.e., as result in `rpc_result`) and generated by the server for a limited number of high-level queries. In addition, in the future it may be used to transmit non-service messages (i. e. RPC queries) from client to server.\n"},{"name":"msgs_ack","id":1658238041,"type":"MsgsAck","arguments":[{"name":"msgIds","type":"Long[]","description":"IDs of messages to be acknowledged. Maximum 8192 IDs."}],"description":"Receipt of virtually all messages (with the exception of some purely service ones as well as the plain-text messages used in the protocol for creating an authorization key) must be acknowledged.\nThis requires the use of the this service message (not requiring an acknowledgment itself)\nA server usually acknowledges the receipt of a message from a client (normally, an RPC query) using an RPC response. If a response is a long time coming, a server may first send a receipt acknowledgment, and somewhat later, the RPC response itself.\nA client normally acknowledges the receipt of a message from a server (usually, an RPC response) by adding an acknowledgment to the next RPC query if it is not transmitted too late (if it is generated, say, 60-120 seconds following the receipt of a message from the server). However, if for a long period of time there is no reason to send messages to the server or if there is a large number of unacknowledged messages from the server (say, over 16), the client transmits a stand-alone acknowledgment.\n"},{"name":"bad_msg_notification","id":2817521681,"type":"BadMsgNotification","arguments":[{"name":"badMsgId","type":"Long","description":"ID of the \"bad\" message"},{"name":"badMsgSeqno","type":"number","description":"Seq No of the \"bad\" message"},{"name":"errorCode","type":"number","description":"Error code. Known values:\n - `16`: Message ID was too small. Most likely, client time is wrong, it would be\n worthwhile to synchronize it using notification's message ID and re-send the\n original message with the \"correct\" message ID or wrap it in a container\n with a new message ID if the original message had waited too\n long on the client to be transmitted.\n - `17`: Message ID was too big. Similar to the previous case,\n the client time has to be synchronized, and the message re-sent\n - `18`: Incorrect two lower order msg_id bits. The server expects client\n message ID to be divisible by 4.\n - `19`: Container message ID is the same as the message ID of the previous message\n - `20`: Message is too old, and it cannot be verified whether the server\n has received a message with this ID or not\n - `32`: Message seq No was too small (the server has already received a message\n with a higher or same seq No)\n - `33`: Message seq No was too big (the server has already received a message\n with a lower or same seq No)\n - `34`: An even seq No expected (not content-relevant), but odd received\n - `35`: An odd seq No expected (content-relevant), but even received\n - `48`: Incorrect server salt was used. In practice, `mt_bad_server_salt` is used instead.\n - `64`: Incorrect container\n"}],"description":"Used by the server to notify client that the sent message was incorrect."},{"name":"bad_server_salt","id":3987424379,"type":"BadMsgNotification","arguments":[{"name":"badMsgId","type":"Long","description":"ID of the \"bad\" message"},{"name":"badMsgSeqno","type":"number","description":"Seq No of the \"bad\" message"},{"name":"errorCode","type":"number","description":"Always `48`"},{"name":"newServerSalt","type":"RawLong","description":"New server salt to be used"}],"description":"Used by the server to notify client that the sent message was incorrect."},{"name":"msg_resend_req","id":2105940488,"type":"MsgResendReq","arguments":[{"name":"msgIds","type":"Long[]","description":"IDs of the messages to be resent (up to 8192 IDs)"}],"description":"Explicit Request to Re-Send Messages\n\nThe remote party immediately responds by re-sending\nthe requested messages, normally using the same connection\nthat was used to transmit the query. If at least one message\nwith requested ID does not exist or has already been forgotten,\nor has been sent by the requesting party (known from parity),\n`MsgsStateInfo` is returned for all messages requested as if the\n`MsgResendReq` query had been a `MsgsStateReq` query as well.\n"},{"name":"msgs_state_req","id":3664378706,"type":"MsgsStateReq","arguments":[{"name":"msgIds","type":"Long[]","description":"IDs of the messages state of which should be sent (up to 8192 IDs)"}],"description":"Request for Message Status Information. If either party has not received information on the status of its outgoing messages for a while, it may explicitly request it from the other party\n"},{"name":"msgs_state_info","id":81704317,"type":"MsgsStateInfo","arguments":[{"name":"reqMsgId","type":"Long","description":"Requesting message ID"},{"name":"info","type":"Buffer","description":"Byte array containing exactly one byte for each message ID:\n - `1`: nothing is known about the message (ID is too small, the other party may have forgotten it)\n - `2`: message was not received (ID falls within the range of stored identifiers;\n however, the other party has certainly not received a message like that)\n - `3`: message not received (ID is too big; however, the other\n party has certainly not received it yet)\n - `4`: message received (note that this response is also at the same time a receipt acknowledgment)\n - `+8`: message already acknowledged\n - `+16`: message not requiring acknowledgment\n - `+32`: RPC query contained in message being processed or processing already complete\n - `+64`: content-related response to message already generated\n - `+128`: other party knows for a fact that message is already received\n"}],"description":"Informational Message regarding Status of Messages"},{"name":"msgs_all_info","id":2361446705,"type":"MsgsAllInfo","arguments":[{"name":"msgIds","type":"Long[]","description":"Message IDs that the other party is being informed about"},{"name":"info","type":"Buffer","description":"Byte array in the same format as {@link tl.mtproto.RawMsgs_state_info}"}],"description":"Voluntary Communication of Status of Messages. Either party may voluntarily inform the other party of the status of the messages transmitted by the other party.\n"},{"name":"msg_detailed_info","id":661470918,"type":"MsgDetailedInfo","arguments":[{"name":"msgId","type":"Long","description":"Original message ID that this message is informing about"},{"name":"answerMsgId","type":"Long","description":"Message ID that was the response to that message"},{"name":"bytes","type":"number","description":"Size of the answer message"},{"name":"status","type":"number","description":"Always `0`, but this may change in the future"}],"description":"Extended Voluntary Communication of Status of One Message.\n\nNormally used by the server to respond to the receipt of\na duplicate message ID, especially if a response to the\nmessage has already been generated and the response is large.\nIf the response is small, the server may re-send the answer\nitself instead. This message can also be used as a notification\ninstead of resending a large message.\n"},{"name":"msg_new_detailed_info","id":2157819615,"type":"MsgDetailedInfo","arguments":[{"name":"answerMsgId","type":"Long","description":"ID of the message that was sent by the server"},{"name":"bytes","type":"number","description":"Size of the answer message"},{"name":"status","type":"number","description":"Always `0`, but this may change in the future"}],"description":"Similar to {@link tl.mtproto.RawMsg_detailed_info}, but used to notify about messages that were created on the server not in response to an RPC query (e.g. updates) and were transmitted to the client some time ago, but not acknowledged\n"},{"name":"destroy_auth_key_ok","id":4133544404,"type":"DestroyAuthKeyRes","arguments":[]},{"name":"destroy_auth_key_none","id":178201177,"type":"DestroyAuthKeyRes","arguments":[]},{"name":"destroy_auth_key_fail","id":3926956819,"type":"DestroyAuthKeyRes","arguments":[]},{"name":"http_wait","id":2459514271,"type":"HttpWait","arguments":[{"name":"maxDelay","type":"number"},{"name":"waitAfter","type":"number"},{"name":"maxWait","type":"number"}]}],"methods":[{"name":"reqPqMulti","id":3195965169,"returns":"ResPQ","arguments":[{"name":"nonce","type":"Int128","description":"Randomly generated number that will be used in the later steps"}],"description":"Request for the first step of Authorization key derivation process.\n"},{"name":"reqDHParams","id":3608339646,"returns":"Server_DH_Params","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"p","type":"Buffer","description":"Big endian encoded first factor. Note - `p < q`"},{"name":"q","type":"Buffer","description":"Big endian encoded second factor. Node - `p < q`"},{"name":"publicKeyFingerprint","type":"Long","description":"Fingerprint of the RSA key that the client has chosen"},{"name":"encryptedData","type":"Buffer","description":"Encrypted payload, obtained as follows:\n- Let `newNonce` be a random 32-bit number\n- Let `data` be a serialization of either {@link tl.mtproto.RawP_q_inner_data}\n or {@link tl.mtproto.RawP_q_inner_data_temp} with the generated `newNonce`\n- `dataWithHash = concat(sha1(data), data, random_bytes(235 - data.length))`\n- `encryptedData = dataWithHash ^ key.exponent % key.modulus`, where `key` is the\n server public key which was chosen\n"}],"description":"Request for the second step of Authorization key derivation process."},{"name":"setClientDHParams","id":4110704415,"returns":"Set_client_DH_params_answer","arguments":[{"name":"nonce","type":"Int128","description":"Client nonce that was generated earlier"},{"name":"serverNonce","type":"Int128","description":"Server nonce that was received earlier"},{"name":"encryptedData","type":"Buffer","description":"Encrypted DH parameters, obtained as follows:\n - Let `B` be a random 2048-bit (256 bytes) integer\n - `gB = g ^ B % dhPrime` (Diffie-Hellman)\n - Let `data` be a serialization of {@link tl.mtproto.RawClient_DH_inner_data}\n - `dataWithHash = concat(sha1(data), data, padding))`, where `padding` is\n 0-15 random bytes, such that `dataWithHash.length` is divisible by 16\n - `encryptedData = aes256_ige_encrypt(dataWithHash, key, iv)`, where `key` and `iv`\n are the same as ones used in {@link tl.mtproto.RawServer_DH_params_ok}\n"}],"description":"Request containing encrypted client-side variables for Diffie-Hellman exchange"},{"name":"rpcDropAnswer","id":1491380032,"returns":"RpcDropAnswer","arguments":[{"name":"reqMsgId","type":"Long","description":"ID of a message containing an RPC query to be cancelled"}],"description":"Cancellation of an RPC query. In certain situations, the client does not want to receive a response to an already transmitted RPC query, for example because the response turns out to be long and the client has decided to do without it because of insufficient link capacity. Simply interrupting the connection will not have any effect because the server would re-send the missing response at the first opportunity. Therefore, the client needs a way to cancel receipt of the RPC response message, actually acknowledging its receipt prior to it being in fact received, which will settle the server down and prevent it from re-sending the response. However, the client does not know the RPC response's message ID prior to receiving the response; the only thing it knows is the requesting message ID, i.e. the message ID of the relevant RPC query. Therefore, this special query is used\n"},{"name":"getFutureSalts","id":3105996036,"returns":"FutureSalts","arguments":[{"name":"num","type":"number"}]},{"name":"ping","id":2059302892,"returns":"Pong","arguments":[{"name":"pingId","type":"Long","description":"Random ping ID"}],"description":"Ping a server to test connection"},{"name":"pingDelayDisconnect","id":4081220492,"returns":"Pong","arguments":[{"name":"pingId","type":"Long","description":"Random ping ID"},{"name":"disconnectDelay","type":"number","description":"Disconnect delay in seconds"}],"description":"Works like ping. In addition, after this is received, the server starts a timer which will close the current connection `disconnectDelay` seconds later unless it receives a new message of the same type which automatically resets all previous timers.\nIf the client sends these pings once every 60 seconds, for example, it may set `disconnect_delay` equal to 75 seconds.\n"},{"name":"destroySession","id":3880853798,"returns":"DestroySessionRes","arguments":[{"name":"sessionId","type":"RawLong"}]},{"name":"destroyAuthKey","id":3510849888,"returns":"DestroyAuthKeyRes","arguments":[]}],"unions":[{"type":"ResPQ","subtypes":["resPQ"]},{"type":"P_Q_inner_data","subtypes":["p_q_inner_data_dc","p_q_inner_data_temp_dc"]},{"type":"Server_DH_Params","subtypes":["server_DH_params_ok"]},{"type":"Server_DH_inner_data","subtypes":["server_DH_inner_data"]},{"type":"Client_DH_Inner_Data","subtypes":["client_DH_inner_data"]},{"type":"Set_client_DH_params_answer","subtypes":["dh_gen_ok","dh_gen_retry","dh_gen_fail"]},{"type":"BindAuthKeyInner","subtypes":["bind_auth_key_inner"]},{"type":"RpcResult","subtypes":["rpc_result"]},{"type":"RpcError","subtypes":["rpc_error"]},{"type":"RpcDropAnswer","subtypes":["rpc_answer_unknown","rpc_answer_dropped_running","rpc_answer_dropped"]},{"type":"FutureSalt","subtypes":["future_salt"]},{"type":"FutureSalts","subtypes":["future_salts"]},{"type":"Pong","subtypes":["pong"]},{"type":"DestroySessionRes","subtypes":["destroy_session_ok","destroy_session_none"]},{"type":"NewSession","subtypes":["new_session_created"]},{"type":"MessageContainer","subtypes":["msg_container"]},{"type":"Message","subtypes":["message"]},{"type":"MessageCopy","subtypes":["msg_copy"]},{"type":"Object","subtypes":["gzip_packed"]},{"type":"MsgsAck","subtypes":["msgs_ack"]},{"type":"BadMsgNotification","subtypes":["bad_msg_notification","bad_server_salt"]},{"type":"MsgResendReq","subtypes":["msg_resend_req"]},{"type":"MsgsStateReq","subtypes":["msgs_state_req"]},{"type":"MsgsStateInfo","subtypes":["msgs_state_info"]},{"type":"MsgsAllInfo","subtypes":["msgs_all_info"]},{"type":"MsgDetailedInfo","subtypes":["msg_detailed_info","msg_new_detailed_info"]},{"type":"DestroyAuthKeyRes","subtypes":["destroy_auth_key_ok","destroy_auth_key_none","destroy_auth_key_fail"]},{"type":"HttpWait","subtypes":["http_wait"]}]}},"apiLayer":"131","api":{"$root":{"classes":[{"name":"error","id":3300522427,"type":"Error","arguments":[{"name":"code","type":"number","description":"Error code"},{"name":"text","type":"string","description":"Message"}],"description":"Error."},{"name":"ipPort","id":3560156531,"type":"IpPort","arguments":[{"name":"ipv4","type":"number"},{"name":"port","type":"number"}]},{"name":"ipPortSecret","id":932718150,"type":"IpPort","arguments":[{"name":"ipv4","type":"number"},{"name":"port","type":"number"},{"name":"secret","type":"Buffer"}]},{"name":"accessPointRule","id":1182381663,"type":"AccessPointRule","arguments":[{"name":"phonePrefixRules","type":"string"},{"name":"dcId","type":"number"},{"name":"ips","type":"IpPort[]"}]},{"name":"inputPeerPhotoFileLocationLegacy","id":668375447,"type":"InputFileLocation","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"big","type":"true","optional":true,"predicate":"flags.0"},{"name":"peer","type":"InputPeer"},{"name":"volumeId","type":"Long"},{"name":"localId","type":"number"}]},{"name":"inputStickerSetThumbLegacy","id":230353641,"type":"InputFileLocation","arguments":[{"name":"stickerset","type":"InputStickerSet"},{"name":"volumeId","type":"Long"},{"name":"localId","type":"number"}]},{"name":"inputPeerEmpty","id":2134579434,"type":"InputPeer","arguments":[],"description":"An empty constructor, no user or chat is defined."},{"name":"inputPeerSelf","id":2107670217,"type":"InputPeer","arguments":[],"description":"Defines the current user."},{"name":"inputPeerChat","id":396093539,"type":"InputPeer","arguments":[{"name":"chatId","type":"number","description":"Chat idientifier"}],"description":"Defines a chat for further interaction."},{"name":"inputPeerUser","id":2072935910,"type":"InputPeer","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"accessHash","type":"Long","description":"access_hash value from the {@link user} constructor"}],"description":"Defines a user for further interaction."},{"name":"inputPeerChannel","id":548253432,"type":"InputPeer","arguments":[{"name":"channelId","type":"number","description":"Channel identifier"},{"name":"accessHash","type":"Long","description":"access_hash value from the {@link channel} constructor"}],"description":"Defines a channel for further interaction."},{"name":"inputPeerUserFromMessage","id":398123750,"type":"InputPeer","arguments":[{"name":"peer","type":"InputPeer","description":"The chat where the user was seen"},{"name":"msgId","type":"number","description":"The message ID"},{"name":"userId","type":"number","description":"The identifier of the user that was seen"}],"description":"Defines a min user that was seen in a certain message of a certain chat."},{"name":"inputPeerChannelFromMessage","id":2627073979,"type":"InputPeer","arguments":[{"name":"peer","type":"InputPeer","description":"The chat where the channel's message was seen"},{"name":"msgId","type":"number","description":"The message ID"},{"name":"channelId","type":"number","description":"The identifier of the channel that was seen"}],"description":"Defines a min channel that was seen in a certain message of a certain chat."},{"name":"inputUserEmpty","id":3112732367,"type":"InputUser","arguments":[],"description":"Empty constructor, does not define a user."},{"name":"inputUserSelf","id":4156666175,"type":"InputUser","arguments":[],"description":"Defines the current user."},{"name":"inputUser","id":3626575894,"type":"InputUser","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"accessHash","type":"Long","description":"access_hash value from the {@link user} constructor"}],"description":"Defines a user for further interaction."},{"name":"inputUserFromMessage","id":756118935,"type":"InputUser","arguments":[{"name":"peer","type":"InputPeer","description":"The chat where the user was seen"},{"name":"msgId","type":"number","description":"The message ID"},{"name":"userId","type":"number","description":"The identifier of the user that was seen"}],"description":"Defines a min user that was seen in a certain message of a certain chat."},{"name":"inputPhoneContact","id":4086478836,"type":"InputContact","arguments":[{"name":"clientId","type":"Long","description":"User identifier on the client"},{"name":"phone","type":"string","description":"Phone number"},{"name":"firstName","type":"string","description":"Contact's first name"},{"name":"lastName","type":"string","description":"Contact's last name"}],"description":"Phone contact. The client_id is just an arbitrary contact ID: it should be set, for example, to an incremental number when using {@link contacts.importContacts}, in order to retry importing only the contacts that weren't imported successfully."},{"name":"inputFile","id":4113560191,"type":"InputFile","arguments":[{"name":"id","type":"Long","description":"Random file identifier created by the client"},{"name":"parts","type":"number","description":"Number of parts saved"},{"name":"name","type":"string","description":"Full name of the file"},{"name":"md5Checksum","type":"string","description":"In case the file's md5-hash was passed, contents of the file will be checked prior to use"}],"description":"Defines a file saved in parts using the method {@link upload.saveFilePart}."},{"name":"inputFileBig","id":4199484341,"type":"InputFile","arguments":[{"name":"id","type":"Long","description":"Random file id, created by the client"},{"name":"parts","type":"number","description":"Number of parts saved"},{"name":"name","type":"string","description":"Full file name"}],"description":"Assigns a big file (over 10Mb in size), saved in part using the method {@link upload.saveBigFilePart}."},{"name":"inputMediaEmpty","id":2523198847,"type":"InputMedia","arguments":[],"description":"Empty media content of a message."},{"name":"inputMediaUploadedPhoto","id":505969924,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"file","type":"InputFile","description":"The uploaded file"},{"name":"stickers","type":"InputDocument[]","optional":true,"predicate":"flags.0","description":"Attached mask stickers"},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.1","description":"Time to live in seconds of self-destructing photo"}],"description":"Photo"},{"name":"inputMediaPhoto","id":3015312949,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"InputPhoto","description":"Photo to be forwarded"},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.0","description":"Time to live in seconds of self-destructing photo"}],"description":"Forwarded photo"},{"name":"inputMediaGeoPoint","id":4190388548,"type":"InputMedia","arguments":[{"name":"geoPoint","type":"InputGeoPoint","description":"GeoPoint"}],"description":"Map."},{"name":"inputMediaContact","id":4171988475,"type":"InputMedia","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number"},{"name":"firstName","type":"string","description":"Contact's first name"},{"name":"lastName","type":"string","description":"Contact's last name"},{"name":"vcard","type":"string","description":"Contact vcard"}],"description":"Phonebook contact"},{"name":"inputMediaUploadedDocument","id":1530447553,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"nosoundVideo","type":"true","optional":true,"predicate":"flags.3","description":"Whether the specified document is a video file with no audio tracks (a GIF animation (even as MPEG4), for example)"},{"name":"forceFile","type":"true","optional":true,"predicate":"flags.4","description":"Force the media file to be uploaded as document"},{"name":"file","type":"InputFile","description":"The uploaded file"},{"name":"thumb","type":"InputFile","optional":true,"predicate":"flags.2","description":"Thumbnail of the document, uploaded as for the file"},{"name":"mimeType","type":"string","description":"MIME type of document"},{"name":"attributes","type":"DocumentAttribute[]","description":"Attributes that specify the type of the document (video, audio, voice, sticker, etc.)"},{"name":"stickers","type":"InputDocument[]","optional":true,"predicate":"flags.0","description":"Attached stickers"},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.1","description":"Time to live in seconds of self-destructing document"}],"description":"New document"},{"name":"inputMediaDocument","id":860303448,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"InputDocument","description":"The document to be forwarded."},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.0","description":"Time to live of self-destructing document"},{"name":"query","type":"string","optional":true,"predicate":"flags.1"}],"description":"Forwarded document"},{"name":"inputMediaVenue","id":3242007569,"type":"InputMedia","arguments":[{"name":"geoPoint","type":"InputGeoPoint","description":"Geolocation"},{"name":"title","type":"string","description":"Venue name"},{"name":"address","type":"string","description":"Physical address of the venue"},{"name":"provider","type":"string","description":"Venue provider: currently only \"foursquare\" and \"gplaces\" need to be supported"},{"name":"venueId","type":"string","description":"Venue ID in the provider's database"},{"name":"venueType","type":"string","description":"Venue type in the provider's database"}],"description":"Can be used to send a venue geolocation."},{"name":"inputMediaPhotoExternal","id":3854302746,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"url","type":"string","description":"URL of the photo"},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.0","description":"Self-destruct time to live of photo"}],"description":"New photo that will be uploaded by the server using the specified URL"},{"name":"inputMediaDocumentExternal","id":4216511641,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"url","type":"string","description":"URL of the document"},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.0","description":"Self-destruct time to live of document"}],"description":"Document that will be downloaded by the telegram servers"},{"name":"inputMediaGame","id":3544138739,"type":"InputMedia","arguments":[{"name":"id","type":"InputGame","description":"The game to forward"}],"description":"A game"},{"name":"inputMediaInvoice","id":3648624756,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"title","type":"string","description":"Product name, 1-32 characters"},{"name":"description","type":"string","description":"Product description, 1-255 characters"},{"name":"photo","type":"InputWebDocument","optional":true,"predicate":"flags.0","description":"URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for."},{"name":"invoice","type":"Invoice","description":"The actual invoice"},{"name":"payload","type":"Buffer","description":"Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes."},{"name":"provider","type":"string","description":"Payments provider token, obtained via Botfather"},{"name":"providerData","type":"DataJSON","description":"JSON-encoded data about the invoice, which will be shared with the payment provider. A detailed description of required fields should be provided by the payment provider."},{"name":"startParam","type":"string","optional":true,"predicate":"flags.1","description":"Start parameter"}],"description":"Generated invoice of a bot payment"},{"name":"inputMediaGeoLive","id":2535434307,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"stopped","type":"true","optional":true,"predicate":"flags.0","description":"Whether sending of the geolocation was stopped"},{"name":"geoPoint","type":"InputGeoPoint","description":"Current geolocation"},{"name":"heading","type":"number","optional":true,"predicate":"flags.2","description":"For live locations, a direction in which the location moves, in degrees; 1-360."},{"name":"period","type":"number","optional":true,"predicate":"flags.1","description":"Validity period of the current location"},{"name":"proximityNotificationRadius","type":"number","optional":true,"predicate":"flags.3","description":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)"}],"description":"Live geolocation"},{"name":"inputMediaPoll","id":261416433,"type":"InputMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"poll","type":"Poll","description":"The poll to send"},{"name":"correctAnswers","type":"Buffer[]","optional":true,"predicate":"flags.0","description":"Correct answer IDs (for quiz polls)"},{"name":"solution","type":"string","optional":true,"predicate":"flags.1","description":"Explanation of quiz solution"},{"name":"solutionEntities","type":"MessageEntity[]","optional":true,"predicate":"flags.1","description":"Message entities for styled text"}],"description":"A poll"},{"name":"inputMediaDice","id":3866083195,"type":"InputMedia","arguments":[{"name":"emoticon","type":"string","description":"The emoji, for now \"🏀\", \"🎲\" and \"🎯\" are supported"}],"description":"Send a dice-based animated sticker"},{"name":"inputChatPhotoEmpty","id":480546647,"type":"InputChatPhoto","arguments":[],"description":"Empty constructor, remove group photo."},{"name":"inputChatUploadedPhoto","id":3326243406,"type":"InputChatPhoto","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"file","type":"InputFile","optional":true,"predicate":"flags.0","description":"File saved in parts using the method {@link upload.saveFilePart}"},{"name":"video","type":"InputFile","optional":true,"predicate":"flags.1","description":"Square video for animated profile picture"},{"name":"videoStartTs","type":"Double","optional":true,"predicate":"flags.2","description":"Timestamp that should be shown as static preview to the user (seconds)"}],"description":"New photo to be set as group profile photo."},{"name":"inputChatPhoto","id":2303962423,"type":"InputChatPhoto","arguments":[{"name":"id","type":"InputPhoto","description":"Existing photo"}],"description":"Existing photo to be set as a chat profile photo."},{"name":"inputGeoPointEmpty","id":3837862870,"type":"InputGeoPoint","arguments":[],"description":"Empty GeoPoint constructor."},{"name":"inputGeoPoint","id":1210199983,"type":"InputGeoPoint","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"lat","type":"Double","description":"Latitide"},{"name":"long","type":"Double","description":"Longtitude"},{"name":"accuracyRadius","type":"number","optional":true,"predicate":"flags.0","description":"The estimated horizontal accuracy of the location, in meters; as defined by the sender."}],"description":"Defines a GeoPoint by its coordinates."},{"name":"inputPhotoEmpty","id":483901197,"type":"InputPhoto","arguments":[],"description":"Empty constructor."},{"name":"inputPhoto","id":1001634122,"type":"InputPhoto","arguments":[{"name":"id","type":"Long","description":"Photo identifier"},{"name":"accessHash","type":"Long","description":"access_hash value from the {@link photo} constructor"},{"name":"fileReference","type":"Buffer","description":"File reference"}],"description":"Defines a photo for further interaction."},{"name":"inputFileLocation","id":3755650017,"type":"InputFileLocation","arguments":[{"name":"volumeId","type":"Long","description":"Server volume"},{"name":"localId","type":"number","description":"File identifier"},{"name":"secret","type":"Long","description":"Check sum to access the file"},{"name":"fileReference","type":"Buffer","description":"File reference"}],"description":"DEPRECATED location of a photo"},{"name":"inputEncryptedFileLocation","id":4112735573,"type":"InputFileLocation","arguments":[{"name":"id","type":"Long","description":"File ID, id parameter value from {@link encryptedFile}"},{"name":"accessHash","type":"Long","description":"Checksum, access_hash parameter value from {@link encryptedFile}"}],"description":"Location of encrypted secret chat file."},{"name":"inputDocumentFileLocation","id":3134223748,"type":"InputFileLocation","arguments":[{"name":"id","type":"Long","description":"Document ID"},{"name":"accessHash","type":"Long","description":"access_hash parameter from the {@link document} constructor"},{"name":"fileReference","type":"Buffer","description":"File reference"},{"name":"thumbSize","type":"string","description":"Thumbnail size to download the thumbnail"}],"description":"Document location (video, voice, audio, basically every type except photo)"},{"name":"inputSecureFileLocation","id":3418877480,"type":"InputFileLocation","arguments":[{"name":"id","type":"Long","description":"File ID, id parameter value from {@link secureFile}"},{"name":"accessHash","type":"Long","description":"Checksum, access_hash parameter value from {@link secureFile}"}],"description":"Location of encrypted telegram passport file."},{"name":"inputTakeoutFileLocation","id":700340377,"type":"InputFileLocation","arguments":[],"description":"Empty constructor for takeout"},{"name":"inputPhotoFileLocation","id":1075322878,"type":"InputFileLocation","arguments":[{"name":"id","type":"Long","description":"Photo ID, obtained from the {@link photo} object"},{"name":"accessHash","type":"Long","description":"Photo's access hash, obtained from the {@link photo} object"},{"name":"fileReference","type":"Buffer","description":"File reference"},{"name":"thumbSize","type":"string","description":"The PhotoSize to download: must be set to the type field of the desired PhotoSize object of the {@link photo}"}],"description":"Use this object to download a photo with {@link upload.getFile} method"},{"name":"inputPhotoLegacyFileLocation","id":3627312883,"type":"InputFileLocation","arguments":[{"name":"id","type":"Long","description":"Photo ID"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"fileReference","type":"Buffer","description":"File reference"},{"name":"volumeId","type":"Long","description":"Volume ID"},{"name":"localId","type":"number","description":"Local ID"},{"name":"secret","type":"Long","description":"Secret"}],"description":"Legacy photo file location"},{"name":"inputPeerPhotoFileLocation","id":925204121,"type":"InputFileLocation","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"big","type":"true","optional":true,"predicate":"flags.0","description":"Whether to download the high-quality version of the picture"},{"name":"peer","type":"InputPeer","description":"The peer whose profile picture should be downloaded"},{"name":"photoId","type":"Long"}],"description":"Location of profile photo of channel/group/supergroup/user"},{"name":"inputStickerSetThumb","id":2642736091,"type":"InputFileLocation","arguments":[{"name":"stickerset","type":"InputStickerSet","description":"Sticker set"},{"name":"thumbVersion","type":"number"}],"description":"Location of stickerset thumbnail (see files)"},{"name":"inputGroupCallStream","id":3148158521,"type":"InputFileLocation","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"timeMs","type":"Long"},{"name":"scale","type":"number"}]},{"name":"peerUser","id":2645671021,"type":"Peer","arguments":[{"name":"userId","type":"number","description":"User identifier"}],"description":"Chat partner"},{"name":"peerChat","id":3134252475,"type":"Peer","arguments":[{"name":"chatId","type":"number","description":"Group identifier"}],"description":"Group."},{"name":"peerChannel","id":3185435954,"type":"Peer","arguments":[{"name":"channelId","type":"number","description":"Channel ID"}],"description":"Channel/supergroup"},{"name":"userEmpty","id":537022650,"type":"User","arguments":[{"name":"id","type":"number","description":"User identifier or 0"}],"description":"Empty constructor, non-existent user."},{"name":"user","id":2474924225,"type":"User","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"self","type":"true","optional":true,"predicate":"flags.10","description":"Whether this user indicates the currently logged in user"},{"name":"contact","type":"true","optional":true,"predicate":"flags.11","description":"Whether this user is a contact"},{"name":"mutualContact","type":"true","optional":true,"predicate":"flags.12","description":"Whether this user is a mutual contact"},{"name":"deleted","type":"true","optional":true,"predicate":"flags.13","description":"Whether the account of this user was deleted"},{"name":"bot","type":"true","optional":true,"predicate":"flags.14","description":"Is this user a bot?"},{"name":"botChatHistory","type":"true","optional":true,"predicate":"flags.15","description":"Can the bot see all messages in groups?"},{"name":"botNochats","type":"true","optional":true,"predicate":"flags.16","description":"Can the bot be added to groups?"},{"name":"verified","type":"true","optional":true,"predicate":"flags.17","description":"Whether this user is verified"},{"name":"restricted","type":"true","optional":true,"predicate":"flags.18","description":"Access to this user must be restricted for the reason specified in restriction_reason"},{"name":"min","type":"true","optional":true,"predicate":"flags.20","description":"See min"},{"name":"botInlineGeo","type":"true","optional":true,"predicate":"flags.21","description":"Whether the bot can request our geolocation in inline mode"},{"name":"support","type":"true","optional":true,"predicate":"flags.23","description":"Whether this is an official support user"},{"name":"scam","type":"true","optional":true,"predicate":"flags.24","description":"This may be a scam user"},{"name":"applyMinPhoto","type":"true","optional":true,"predicate":"flags.25","description":"If set, the profile picture for this user should be refetched"},{"name":"fake","type":"true","optional":true,"predicate":"flags.26"},{"name":"id","type":"number","description":"ID of the user"},{"name":"accessHash","type":"Long","optional":true,"predicate":"flags.0","description":"Access hash of the user"},{"name":"firstName","type":"string","optional":true,"predicate":"flags.1","description":"First name"},{"name":"lastName","type":"string","optional":true,"predicate":"flags.2","description":"Last name"},{"name":"username","type":"string","optional":true,"predicate":"flags.3","description":"Username"},{"name":"phone","type":"string","optional":true,"predicate":"flags.4","description":"Phone number"},{"name":"photo","type":"UserProfilePhoto","optional":true,"predicate":"flags.5","description":"Profile picture of user"},{"name":"status","type":"UserStatus","optional":true,"predicate":"flags.6","description":"Online status of user"},{"name":"botInfoVersion","type":"number","optional":true,"predicate":"flags.14","description":"Version of the {@link userFull}, incremented every time it changes"},{"name":"restrictionReason","type":"RestrictionReason[]","optional":true,"predicate":"flags.18","description":"Contains the reason why access to this user must be restricted."},{"name":"botInlinePlaceholder","type":"string","optional":true,"predicate":"flags.19","description":"Inline placeholder for this inline bot"},{"name":"langCode","type":"string","optional":true,"predicate":"flags.22","description":"Language code of the user"}],"description":"Indicates info about a certain user"},{"name":"userProfilePhotoEmpty","id":1326562017,"type":"UserProfilePhoto","arguments":[],"description":"Profile photo has not been set, or was hidden."},{"name":"userProfilePhoto","id":2194798342,"type":"UserProfilePhoto","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"hasVideo","type":"true","optional":true,"predicate":"flags.0","description":"Whether an animated profile picture is available for this user"},{"name":"photoId","type":"Long","description":"Identifier of the respective photo
Parameter added in Layer 2"},{"name":"strippedThumb","type":"Buffer","optional":true,"predicate":"flags.1"},{"name":"dcId","type":"number","description":"DC ID where the photo is stored"}],"description":"User profile photo."},{"name":"userStatusEmpty","id":164646985,"type":"UserStatus","arguments":[],"description":"User status has not been set yet."},{"name":"userStatusOnline","id":3988339017,"type":"UserStatus","arguments":[{"name":"expires","type":"number","description":"Time to expiration of the current online status"}],"description":"Online status of the user."},{"name":"userStatusOffline","id":9203775,"type":"UserStatus","arguments":[{"name":"wasOnline","type":"number","description":"Time the user was last seen online"}],"description":"The user's offline status."},{"name":"userStatusRecently","id":3798942449,"type":"UserStatus","arguments":[],"description":"Online status: last seen recently"},{"name":"userStatusLastWeek","id":129960444,"type":"UserStatus","arguments":[],"description":"Online status: last seen last week"},{"name":"userStatusLastMonth","id":2011940674,"type":"UserStatus","arguments":[],"description":"Online status: last seen last month"},{"name":"chatEmpty","id":2611140608,"type":"Chat","arguments":[{"name":"id","type":"number","description":"Group identifier"}],"description":"Empty constructor, group doesn't exist"},{"name":"chat","id":1004149726,"type":"Chat","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"creator","type":"true","optional":true,"predicate":"flags.0","description":"Whether the current user is the creator of the group"},{"name":"kicked","type":"true","optional":true,"predicate":"flags.1","description":"Whether the current user was kicked from the group"},{"name":"left","type":"true","optional":true,"predicate":"flags.2","description":"Whether the current user has left the group"},{"name":"deactivated","type":"true","optional":true,"predicate":"flags.5","description":"Whether the group was migrated"},{"name":"callActive","type":"true","optional":true,"predicate":"flags.23"},{"name":"callNotEmpty","type":"true","optional":true,"predicate":"flags.24"},{"name":"id","type":"number","description":"ID of the group"},{"name":"title","type":"string","description":"Title"},{"name":"photo","type":"ChatPhoto","description":"Chat photo"},{"name":"participantsCount","type":"number","description":"Participant count"},{"name":"date","type":"number","description":"Date of creation of the group"},{"name":"version","type":"number","description":"Used in basic groups to reorder updates and make sure that all of them were received."},{"name":"migratedTo","type":"InputChannel","optional":true,"predicate":"flags.6","description":"Means this chat was upgraded to a supergroup"},{"name":"adminRights","type":"ChatAdminRights","optional":true,"predicate":"flags.14","description":"Admin rights of the user in the group"},{"name":"defaultBannedRights","type":"ChatBannedRights","optional":true,"predicate":"flags.18","description":"Default banned rights of all users in the group"}],"description":"Info about a group"},{"name":"chatForbidden","id":120753115,"type":"Chat","arguments":[{"name":"id","type":"number","description":"User identifier"},{"name":"title","type":"string","description":"Group name"}],"description":"A group to which the user has no access. E.g., because the user was kicked from the group."},{"name":"channel","id":3541734942,"type":"Chat","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"creator","type":"true","optional":true,"predicate":"flags.0","description":"Whether the current user is the creator of this channel"},{"name":"left","type":"true","optional":true,"predicate":"flags.2","description":"Whether the current user has left this channel"},{"name":"broadcast","type":"true","optional":true,"predicate":"flags.5","description":"Is this a channel?"},{"name":"verified","type":"true","optional":true,"predicate":"flags.7","description":"Is this channel verified by telegram?"},{"name":"megagroup","type":"true","optional":true,"predicate":"flags.8","description":"Is this a supergroup?"},{"name":"restricted","type":"true","optional":true,"predicate":"flags.9","description":"Whether viewing/writing in this channel for a reason (see restriction_reason"},{"name":"signatures","type":"true","optional":true,"predicate":"flags.11","description":"Whether signatures are enabled (channels)"},{"name":"min","type":"true","optional":true,"predicate":"flags.12","description":"See min"},{"name":"scam","type":"true","optional":true,"predicate":"flags.19","description":"This channel/supergroup is probably a scam"},{"name":"hasLink","type":"true","optional":true,"predicate":"flags.20","description":"Whether this channel has a private join link"},{"name":"hasGeo","type":"true","optional":true,"predicate":"flags.21","description":"Whether this channel has a geo position"},{"name":"slowmodeEnabled","type":"true","optional":true,"predicate":"flags.22","description":"Whether slow mode is enabled for groups to prevent flood in chat"},{"name":"callActive","type":"true","optional":true,"predicate":"flags.23"},{"name":"callNotEmpty","type":"true","optional":true,"predicate":"flags.24"},{"name":"fake","type":"true","optional":true,"predicate":"flags.25"},{"name":"gigagroup","type":"true","optional":true,"predicate":"flags.26","description":"Is this a broadcast group?"},{"name":"id","type":"number","description":"ID of the channel"},{"name":"accessHash","type":"Long","optional":true,"predicate":"flags.13","description":"Access hash"},{"name":"title","type":"string","description":"Title"},{"name":"username","type":"string","optional":true,"predicate":"flags.6","description":"Username"},{"name":"photo","type":"ChatPhoto","description":"Profile photo"},{"name":"date","type":"number","description":"Date when the user joined the supergroup/channel, or if the user isn't a member, its creation date"},{"name":"version","type":"number","description":"Version of the channel (always 0)"},{"name":"restrictionReason","type":"RestrictionReason[]","optional":true,"predicate":"flags.9","description":"Contains the reason why access to this channel must be restricted."},{"name":"adminRights","type":"ChatAdminRights","optional":true,"predicate":"flags.14","description":"Admin rights of the user in this channel (see rights)"},{"name":"bannedRights","type":"ChatBannedRights","optional":true,"predicate":"flags.15","description":"Banned rights of the user in this channel (see rights)"},{"name":"defaultBannedRights","type":"ChatBannedRights","optional":true,"predicate":"flags.18","description":"Default chat rights (see rights)"},{"name":"participantsCount","type":"number","optional":true,"predicate":"flags.17","description":"Participant count"}],"description":"Channel/supergroup info"},{"name":"channelForbidden","id":681420594,"type":"Chat","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"broadcast","type":"true","optional":true,"predicate":"flags.5","description":"Is this a channel"},{"name":"megagroup","type":"true","optional":true,"predicate":"flags.8","description":"Is this a supergroup"},{"name":"id","type":"number","description":"Channel ID"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"title","type":"string","description":"Title"},{"name":"untilDate","type":"number","optional":true,"predicate":"flags.16","description":"The ban is valid until the specified date"}],"description":"Indicates a channel/supergroup we can't access because we were banned, or for some other reason."},{"name":"chatFull","id":2317232515,"type":"ChatFull","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"canSetUsername","type":"true","optional":true,"predicate":"flags.7","description":"Can we change the username of this chat"},{"name":"hasScheduled","type":"true","optional":true,"predicate":"flags.8","description":"Whether scheduled messages are available"},{"name":"id","type":"number","description":"ID of the chat"},{"name":"about","type":"string","description":"About string for this chat"},{"name":"participants","type":"ChatParticipants","description":"Participant list"},{"name":"chatPhoto","type":"Photo","optional":true,"predicate":"flags.2","description":"Chat photo"},{"name":"notifySettings","type":"PeerNotifySettings","description":"Notification settings"},{"name":"exportedInvite","type":"ExportedChatInvite","optional":true,"predicate":"flags.13","description":"Chat invite"},{"name":"botInfo","type":"BotInfo[]","optional":true,"predicate":"flags.3","description":"Info about bots that are in this chat"},{"name":"pinnedMsgId","type":"number","optional":true,"predicate":"flags.6","description":"Message ID of the last pinned message"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.11","description":"Peer folder ID, for more info click here"},{"name":"call","type":"InputGroupCall","optional":true,"predicate":"flags.12"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.14"},{"name":"groupcallDefaultJoinAs","type":"Peer","optional":true,"predicate":"flags.15"}],"description":"Detailed chat info"},{"name":"channelFull","id":1418477459,"type":"ChatFull","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"canViewParticipants","type":"true","optional":true,"predicate":"flags.3","description":"Can we vew the participant list?"},{"name":"canSetUsername","type":"true","optional":true,"predicate":"flags.6","description":"Can we set the channel's username?"},{"name":"canSetStickers","type":"true","optional":true,"predicate":"flags.7","description":"Can we {@link channels.setStickers} a stickerpack to the supergroup?"},{"name":"hiddenPrehistory","type":"true","optional":true,"predicate":"flags.10","description":"Is the history before we joined hidden to us?"},{"name":"canSetLocation","type":"true","optional":true,"predicate":"flags.16","description":"Can we set the geolocation of this group (for geogroups)"},{"name":"hasScheduled","type":"true","optional":true,"predicate":"flags.19","description":"Whether scheduled messages are available"},{"name":"canViewStats","type":"true","optional":true,"predicate":"flags.20","description":"Can the user view channel/supergroup statistics"},{"name":"blocked","type":"true","optional":true,"predicate":"flags.22","description":"Whether any anonymous admin of this supergroup was blocked: if set, you won't receive messages from anonymous group admins in discussion replies via @replies"},{"name":"id","type":"number","description":"ID of the channel"},{"name":"about","type":"string","description":"Info about the channel"},{"name":"participantsCount","type":"number","optional":true,"predicate":"flags.0","description":"Number of participants of the channel"},{"name":"adminsCount","type":"number","optional":true,"predicate":"flags.1","description":"Number of channel admins"},{"name":"kickedCount","type":"number","optional":true,"predicate":"flags.2","description":"Number of users kicked from the channel"},{"name":"bannedCount","type":"number","optional":true,"predicate":"flags.2","description":"Number of users banned from the channel"},{"name":"onlineCount","type":"number","optional":true,"predicate":"flags.13","description":"Number of users currently online"},{"name":"readInboxMaxId","type":"number","description":"Position up to which all incoming messages are read."},{"name":"readOutboxMaxId","type":"number","description":"Position up to which all outgoing messages are read."},{"name":"unreadCount","type":"number","description":"Count of unread messages"},{"name":"chatPhoto","type":"Photo","description":"Channel picture"},{"name":"notifySettings","type":"PeerNotifySettings","description":"Notification settings"},{"name":"exportedInvite","type":"ExportedChatInvite","optional":true,"predicate":"flags.23","description":"Invite link"},{"name":"botInfo","type":"BotInfo[]","description":"Info about bots in the channel/supergrup"},{"name":"migratedFromChatId","type":"number","optional":true,"predicate":"flags.4","description":"The chat ID from which this group was migrated"},{"name":"migratedFromMaxId","type":"number","optional":true,"predicate":"flags.4","description":"The message ID in the original chat at which this group was migrated"},{"name":"pinnedMsgId","type":"number","optional":true,"predicate":"flags.5","description":"Message ID of the last pinned message"},{"name":"stickerset","type":"StickerSet","optional":true,"predicate":"flags.8","description":"Associated stickerset"},{"name":"availableMinId","type":"number","optional":true,"predicate":"flags.9","description":"Identifier of a maximum unavailable message in a channel due to hidden history."},{"name":"folderId","type":"number","optional":true,"predicate":"flags.11","description":"Peer folder ID, for more info click here"},{"name":"linkedChatId","type":"number","optional":true,"predicate":"flags.14","description":"ID of the linked discussion chat for channels"},{"name":"location","type":"ChannelLocation","optional":true,"predicate":"flags.15","description":"Location of the geo group"},{"name":"slowmodeSeconds","type":"number","optional":true,"predicate":"flags.17","description":"If specified, users in supergroups will only be able to send one message every slowmode_seconds seconds"},{"name":"slowmodeNextSendDate","type":"number","optional":true,"predicate":"flags.18","description":"Indicates when the user will be allowed to send another message in the supergroup (UNIX timestamp in seconds)"},{"name":"statsDc","type":"number","optional":true,"predicate":"flags.12","description":"If set, specifies the DC to use for fetching channel statistics"},{"name":"pts","type":"number","description":"Latest PTS for this channel"},{"name":"call","type":"InputGroupCall","optional":true,"predicate":"flags.21"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.24"},{"name":"pendingSuggestions","type":"string[]","optional":true,"predicate":"flags.25"},{"name":"groupcallDefaultJoinAs","type":"Peer","optional":true,"predicate":"flags.26"}],"description":"Full info about a channel/supergroup"},{"name":"chatParticipant","id":3369552190,"type":"ChatParticipant","arguments":[{"name":"userId","type":"number","description":"Member user ID"},{"name":"inviterId","type":"number","description":"ID of the user that added the member to the group"},{"name":"date","type":"number","description":"Date added to the group"}],"description":"Group member."},{"name":"chatParticipantCreator","id":3658699658,"type":"ChatParticipant","arguments":[{"name":"userId","type":"number","description":"ID of the user that created the group"}],"description":"Represents the creator of the group"},{"name":"chatParticipantAdmin","id":3805733942,"type":"ChatParticipant","arguments":[{"name":"userId","type":"number","description":"ID of a group member that is admin"},{"name":"inviterId","type":"number","description":"ID of the user that added the member to the group"},{"name":"date","type":"number","description":"Date when the user was added"}],"description":"Chat admin"},{"name":"chatParticipantsForbidden","id":4237298731,"type":"ChatParticipants","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"chatId","type":"number","description":"Group ID"},{"name":"selfParticipant","type":"ChatParticipant","optional":true,"predicate":"flags.0","description":"Info about the group membership of the current user"}],"description":"Info on members is unavailable"},{"name":"chatParticipants","id":1061556205,"type":"ChatParticipants","arguments":[{"name":"chatId","type":"number","description":"Group identifier"},{"name":"participants","type":"ChatParticipant[]","description":"List of group members"},{"name":"version","type":"number","description":"Group version number"}],"description":"Group members."},{"name":"chatPhotoEmpty","id":935395612,"type":"ChatPhoto","arguments":[],"description":"Group photo is not set."},{"name":"chatPhoto","id":476978193,"type":"ChatPhoto","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"hasVideo","type":"true","optional":true,"predicate":"flags.0","description":"Whether the user has an animated profile picture"},{"name":"photoId","type":"Long"},{"name":"strippedThumb","type":"Buffer","optional":true,"predicate":"flags.1"},{"name":"dcId","type":"number","description":"DC where this photo is stored"}],"description":"Group profile photo."},{"name":"messageEmpty","id":2426849924,"type":"Message","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"id","type":"number","description":"Message identifier"},{"name":"peerId","type":"Peer","optional":true,"predicate":"flags.0"}],"description":"Empty constructor, non-existent message."},{"name":"message","id":3169027026,"type":"Message","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"out","type":"true","optional":true,"predicate":"flags.1","description":"Is this an outgoing message"},{"name":"mentioned","type":"true","optional":true,"predicate":"flags.4","description":"Whether we were mentioned in this message"},{"name":"mediaUnread","type":"true","optional":true,"predicate":"flags.5","description":"Whether there are unread media attachments in this message"},{"name":"silent","type":"true","optional":true,"predicate":"flags.13","description":"Whether this is a silent message (no notification triggered)"},{"name":"post","type":"true","optional":true,"predicate":"flags.14","description":"Whether this is a channel post"},{"name":"fromScheduled","type":"true","optional":true,"predicate":"flags.18","description":"Whether this is a scheduled message"},{"name":"legacy","type":"true","optional":true,"predicate":"flags.19","description":"This is a legacy message: it has to be refetched with the new layer"},{"name":"editHide","type":"true","optional":true,"predicate":"flags.21","description":"Whether the message should be shown as not modified to the user, even if an edit date is present"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.24","description":"Whether this message is pinned"},{"name":"id","type":"number","description":"ID of the message"},{"name":"fromId","type":"Peer","optional":true,"predicate":"flags.8","description":"ID of the sender of the message"},{"name":"peerId","type":"Peer","description":"Peer ID, the chat where this message was sent"},{"name":"fwdFrom","type":"MessageFwdHeader","optional":true,"predicate":"flags.2","description":"Info about forwarded messages"},{"name":"viaBotId","type":"number","optional":true,"predicate":"flags.11","description":"ID of the inline bot that generated the message"},{"name":"replyTo","type":"MessageReplyHeader","optional":true,"predicate":"flags.3","description":"Reply information"},{"name":"date","type":"number","description":"Date of the message"},{"name":"message","type":"string","description":"The message"},{"name":"media","type":"MessageMedia","optional":true,"predicate":"flags.9","description":"Media attachment"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.6","description":"Reply markup (bot/inline keyboards)"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.7","description":"Message entities for styled text"},{"name":"views","type":"number","optional":true,"predicate":"flags.10","description":"View count for channel posts"},{"name":"forwards","type":"number","optional":true,"predicate":"flags.10","description":"Forward counter"},{"name":"replies","type":"MessageReplies","optional":true,"predicate":"flags.23","description":"Info about post comments (for channels) or message replies (for groups)"},{"name":"editDate","type":"number","optional":true,"predicate":"flags.15","description":"Last edit date of this message"},{"name":"postAuthor","type":"string","optional":true,"predicate":"flags.16","description":"Name of the author of this message for channel posts (with signatures enabled)"},{"name":"groupedId","type":"Long","optional":true,"predicate":"flags.17","description":"Multiple media messages sent using {@link messages.sendMultiMedia} with the same grouped ID indicate an album or media group"},{"name":"restrictionReason","type":"RestrictionReason[]","optional":true,"predicate":"flags.22","description":"Contains the reason why access to this message must be restricted."},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.25"}],"description":"A message"},{"name":"messageService","id":721967202,"type":"Message","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"out","type":"true","optional":true,"predicate":"flags.1","description":"Whether the message is outgoing"},{"name":"mentioned","type":"true","optional":true,"predicate":"flags.4","description":"Whether we were mentioned in the message"},{"name":"mediaUnread","type":"true","optional":true,"predicate":"flags.5","description":"Whether the message contains unread media"},{"name":"silent","type":"true","optional":true,"predicate":"flags.13","description":"Whether the message is silent"},{"name":"post","type":"true","optional":true,"predicate":"flags.14","description":"Whether it's a channel post"},{"name":"legacy","type":"true","optional":true,"predicate":"flags.19","description":"This is a legacy message: it has to be refetched with the new layer"},{"name":"id","type":"number","description":"Message ID"},{"name":"fromId","type":"Peer","optional":true,"predicate":"flags.8","description":"ID of the sender of this message"},{"name":"peerId","type":"Peer","description":"Sender of service message"},{"name":"replyTo","type":"MessageReplyHeader","optional":true,"predicate":"flags.3","description":"Reply (thread) information"},{"name":"date","type":"number","description":"Message date"},{"name":"action","type":"MessageAction","description":"Event connected with the service message"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.25"}],"description":"Indicates a service message"},{"name":"messageMediaEmpty","id":1038967584,"type":"MessageMedia","arguments":[],"description":"Empty constructor."},{"name":"messageMediaPhoto","id":1766936791,"type":"MessageMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"photo","type":"Photo","optional":true,"predicate":"flags.0","description":"Photo"},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.2","description":"Time to live in seconds of self-destructing photo"}],"description":"Attached photo."},{"name":"messageMediaGeo","id":1457575028,"type":"MessageMedia","arguments":[{"name":"geo","type":"GeoPoint","description":"GeoPoint"}],"description":"Attached map."},{"name":"messageMediaContact","id":3421653312,"type":"MessageMedia","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number"},{"name":"firstName","type":"string","description":"Contact's first name"},{"name":"lastName","type":"string","description":"Contact's last name"},{"name":"vcard","type":"string","description":"VCARD of contact"},{"name":"userId","type":"number","description":"User identifier or 0, if the user with the given phone number is not registered"}],"description":"Attached contact."},{"name":"messageMediaUnsupported","id":2676290718,"type":"MessageMedia","arguments":[],"description":"Current version of the client does not support this media type."},{"name":"messageMediaDocument","id":2628808919,"type":"MessageMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"document","type":"Document","optional":true,"predicate":"flags.0","description":"Attached document"},{"name":"ttlSeconds","type":"number","optional":true,"predicate":"flags.2","description":"Time to live of self-destructing document"}],"description":"Document (video, audio, voice, sticker, any media type except photo)"},{"name":"messageMediaWebPage","id":2737690112,"type":"MessageMedia","arguments":[{"name":"webpage","type":"WebPage","description":"Webpage preview"}],"description":"Preview of webpage"},{"name":"messageMediaVenue","id":784356159,"type":"MessageMedia","arguments":[{"name":"geo","type":"GeoPoint","description":"Geolocation of venue"},{"name":"title","type":"string","description":"Venue name"},{"name":"address","type":"string","description":"Address"},{"name":"provider","type":"string","description":"Venue provider: currently only \"foursquare\" and \"gplaces\" need to be supported"},{"name":"venueId","type":"string","description":"Venue ID in the provider's database"},{"name":"venueType","type":"string","description":"Venue type in the provider's database"}],"description":"Venue"},{"name":"messageMediaGame","id":4256272392,"type":"MessageMedia","arguments":[{"name":"game","type":"Game","description":"Game"}],"description":"Telegram game"},{"name":"messageMediaInvoice","id":2220168007,"type":"MessageMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"shippingAddressRequested","type":"true","optional":true,"predicate":"flags.1","description":"Whether the shipping address was requested"},{"name":"test","type":"true","optional":true,"predicate":"flags.3","description":"Whether this is an example invoice"},{"name":"title","type":"string","description":"Product name, 1-32 characters"},{"name":"description","type":"string","description":"Product description, 1-255 characters"},{"name":"photo","type":"WebDocument","optional":true,"predicate":"flags.0","description":"URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for."},{"name":"receiptMsgId","type":"number","optional":true,"predicate":"flags.2","description":"Message ID of receipt: if set, clients should change the text of the first {@link keyboardButtonBuy} button always attached to the {@link message} to a localized version of the word Receipt"},{"name":"currency","type":"string","description":"Three-letter ISO 4217 currency code"},{"name":"totalAmount","type":"Long","description":"Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"startParam","type":"string","description":"Unique bot deep-linking parameter that can be used to generate this invoice"}],"description":"Invoice"},{"name":"messageMediaGeoLive","id":3108030054,"type":"MessageMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"geo","type":"GeoPoint","description":"Geolocation"},{"name":"heading","type":"number","optional":true,"predicate":"flags.0","description":"For live locations, a direction in which the location moves, in degrees; 1-360"},{"name":"period","type":"number","description":"Validity period of provided geolocation"},{"name":"proximityNotificationRadius","type":"number","optional":true,"predicate":"flags.1","description":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)."}],"description":"Indicates a live geolocation"},{"name":"messageMediaPoll","id":1272375192,"type":"MessageMedia","arguments":[{"name":"poll","type":"Poll","description":"The poll"},{"name":"results","type":"PollResults","description":"The results of the poll"}],"description":"Poll"},{"name":"messageMediaDice","id":1065280907,"type":"MessageMedia","arguments":[{"name":"value","type":"number","description":"Dice value"},{"name":"emoticon","type":"string","description":"The emoji, for now \"🏀\", \"🎲\" and \"🎯\" are supported"}],"description":"Dice-based animated sticker"},{"name":"messageActionEmpty","id":3064919984,"type":"MessageAction","arguments":[],"description":"Empty constructor."},{"name":"messageActionChatCreate","id":2791541658,"type":"MessageAction","arguments":[{"name":"title","type":"string","description":"Group name"},{"name":"users","type":"number[]","description":"List of group members"}],"description":"Group created"},{"name":"messageActionChatEditTitle","id":3047280218,"type":"MessageAction","arguments":[{"name":"title","type":"string","description":"New group name"}],"description":"Group name changed."},{"name":"messageActionChatEditPhoto","id":2144015272,"type":"MessageAction","arguments":[{"name":"photo","type":"Photo","description":"New group pofile photo"}],"description":"Group profile changed"},{"name":"messageActionChatDeletePhoto","id":2514746351,"type":"MessageAction","arguments":[],"description":"Group profile photo removed."},{"name":"messageActionChatAddUser","id":1217033015,"type":"MessageAction","arguments":[{"name":"users","type":"number[]","description":"Users that were invited to the chat"}],"description":"New member in the group"},{"name":"messageActionChatDeleteUser","id":2997787404,"type":"MessageAction","arguments":[{"name":"userId","type":"number","description":"Leaving user ID"}],"description":"User left the group."},{"name":"messageActionChatJoinedByLink","id":4171036136,"type":"MessageAction","arguments":[{"name":"inviterId","type":"number","description":"ID of the user that created the invite link"}],"description":"A user joined the chat via an invite link"},{"name":"messageActionChannelCreate","id":2513611922,"type":"MessageAction","arguments":[{"name":"title","type":"string","description":"Original channel/supergroup title"}],"description":"The channel was created"},{"name":"messageActionChatMigrateTo","id":1371385889,"type":"MessageAction","arguments":[{"name":"channelId","type":"number","description":"The supergroup it was migrated to"}],"description":"Indicates the chat was migrated to the specified supergroup"},{"name":"messageActionChannelMigrateFrom","id":2958420718,"type":"MessageAction","arguments":[{"name":"title","type":"string","description":"The old chat tite"},{"name":"chatId","type":"number","description":"The old chat ID"}],"description":"Indicates the channel was migrated from the specified chat"},{"name":"messageActionPinMessage","id":2495428845,"type":"MessageAction","arguments":[],"description":"A message was pinned"},{"name":"messageActionHistoryClear","id":2679813636,"type":"MessageAction","arguments":[],"description":"Chat history was cleared"},{"name":"messageActionGameScore","id":2460428406,"type":"MessageAction","arguments":[{"name":"gameId","type":"Long","description":"Game ID"},{"name":"score","type":"number","description":"Score"}],"description":"Someone scored in a game"},{"name":"messageActionPaymentSentMe","id":2402399015,"type":"MessageAction","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"currency","type":"string","description":"Three-letter ISO 4217 currency code"},{"name":"totalAmount","type":"Long","description":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"payload","type":"Buffer","description":"Bot specified invoice payload"},{"name":"info","type":"PaymentRequestedInfo","optional":true,"predicate":"flags.0","description":"Order info provided by the user"},{"name":"shippingOptionId","type":"string","optional":true,"predicate":"flags.1","description":"Identifier of the shipping option chosen by the user"},{"name":"charge","type":"PaymentCharge","description":"Provider payment identifier"}],"description":"A user just sent a payment to me (a bot)"},{"name":"messageActionPaymentSent","id":1080663248,"type":"MessageAction","arguments":[{"name":"currency","type":"string","description":"Three-letter ISO 4217 currency code"},{"name":"totalAmount","type":"Long","description":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}],"description":"A payment was sent"},{"name":"messageActionPhoneCall","id":2162236031,"type":"MessageAction","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"video","type":"true","optional":true,"predicate":"flags.2","description":"Is this a video call?"},{"name":"callId","type":"Long","description":"Call ID"},{"name":"reason","type":"PhoneCallDiscardReason","optional":true,"predicate":"flags.0","description":"If the call has ended, the reason why it ended"},{"name":"duration","type":"number","optional":true,"predicate":"flags.1","description":"Duration of the call in seconds"}],"description":"A phone call"},{"name":"messageActionScreenshotTaken","id":1200788123,"type":"MessageAction","arguments":[],"description":"A screenshot of the chat was taken"},{"name":"messageActionCustomAction","id":4209418070,"type":"MessageAction","arguments":[{"name":"message","type":"string","description":"Action message"}],"description":"Custom action (most likely not supported by the current layer, an upgrade might be needed)"},{"name":"messageActionBotAllowed","id":2884218878,"type":"MessageAction","arguments":[{"name":"domain","type":"string","description":"The domain name of the website on which the user has logged in."}],"description":"The domain name of the website on which the user has logged in. More about Telegram Login »"},{"name":"messageActionSecureValuesSentMe","id":455635795,"type":"MessageAction","arguments":[{"name":"values","type":"SecureValue[]","description":"Vector with information about documents and other Telegram Passport elements that were shared with the bot"},{"name":"credentials","type":"SecureCredentialsEncrypted","description":"Encrypted credentials required to decrypt the data"}],"description":"Secure telegram passport values were received"},{"name":"messageActionSecureValuesSent","id":3646710100,"type":"MessageAction","arguments":[{"name":"types","type":"SecureValueType[]","description":"Secure value types"}],"description":"Request for secure telegram passport values was sent"},{"name":"messageActionContactSignUp","id":4092747638,"type":"MessageAction","arguments":[],"description":"A contact just signed up to telegram"},{"name":"messageActionGeoProximityReached","id":2564871831,"type":"MessageAction","arguments":[{"name":"fromId","type":"Peer","description":"The user or chat that is now in proximity of to_id"},{"name":"toId","type":"Peer","description":"The user or chat that subscribed to live geolocation proximity alerts"},{"name":"distance","type":"number","description":"Distance, in meters (0-100000)"}],"description":"A user of the chat is now in proximity of another user"},{"name":"messageActionGroupCall","id":2047704898,"type":"MessageAction","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"call","type":"InputGroupCall"},{"name":"duration","type":"number","optional":true,"predicate":"flags.0"}]},{"name":"messageActionInviteToGroupCall","id":1991897370,"type":"MessageAction","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"users","type":"number[]"}]},{"name":"messageActionSetMessagesTTL","id":2853895165,"type":"MessageAction","arguments":[{"name":"period","type":"number"}]},{"name":"messageActionGroupCallScheduled","id":3013637729,"type":"MessageAction","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"scheduleDate","type":"number"}]},{"name":"dialog","id":739712882,"type":"Dialog","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.2","description":"Is the dialog pinned"},{"name":"unreadMark","type":"true","optional":true,"predicate":"flags.3","description":"Whether the chat was manually marked as unread"},{"name":"peer","type":"Peer","description":"The chat"},{"name":"topMessage","type":"number","description":"The latest message ID"},{"name":"readInboxMaxId","type":"number","description":"Position up to which all incoming messages are read."},{"name":"readOutboxMaxId","type":"number","description":"Position up to which all outgoing messages are read."},{"name":"unreadCount","type":"number","description":"Number of unread messages"},{"name":"unreadMentionsCount","type":"number","description":"Number of unread mentions"},{"name":"notifySettings","type":"PeerNotifySettings","description":"Notification settings"},{"name":"pts","type":"number","optional":true,"predicate":"flags.0","description":"PTS"},{"name":"draft","type":"DraftMessage","optional":true,"predicate":"flags.1","description":"Message draft"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.4","description":"Peer folder ID, for more info click here"}],"description":"Chat"},{"name":"dialogFolder","id":1908216652,"type":"Dialog","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.2","description":"Is this folder pinned"},{"name":"folder","type":"Folder","description":"The folder"},{"name":"peer","type":"Peer","description":"Peer in folder"},{"name":"topMessage","type":"number","description":"Latest message ID of dialog"},{"name":"unreadMutedPeersCount","type":"number","description":"Number of unread muted peers in folder"},{"name":"unreadUnmutedPeersCount","type":"number","description":"Number of unread unmuted peers in folder"},{"name":"unreadMutedMessagesCount","type":"number","description":"Number of unread messages from muted peers in folder"},{"name":"unreadUnmutedMessagesCount","type":"number","description":"Number of unread messages from unmuted peers in folder"}],"description":"Dialog in folder"},{"name":"photoEmpty","id":590459437,"type":"Photo","arguments":[{"name":"id","type":"Long","description":"Photo identifier"}],"description":"Empty constructor, non-existent photo"},{"name":"photo","id":4212750949,"type":"Photo","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"hasStickers","type":"true","optional":true,"predicate":"flags.0","description":"Whether the photo has mask stickers attached to it"},{"name":"id","type":"Long","description":"ID"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"fileReference","type":"Buffer","description":"file reference"},{"name":"date","type":"number","description":"Date of upload"},{"name":"sizes","type":"PhotoSize[]","description":"Available sizes for download"},{"name":"videoSizes","type":"VideoSize[]","optional":true,"predicate":"flags.1","description":"For animated profiles, the MPEG4 videos"},{"name":"dcId","type":"number","description":"DC ID to use for download"}],"description":"Photo"},{"name":"photoSizeEmpty","id":236446268,"type":"PhotoSize","arguments":[{"name":"type","type":"string","description":"Thumbnail type (see. {@link photoSize})"}],"description":"Empty constructor. Image with this thumbnail is unavailable."},{"name":"photoSize","id":1976012384,"type":"PhotoSize","arguments":[{"name":"type","type":"string","description":"Thumbnail type"},{"name":"w","type":"number","description":"Image width"},{"name":"h","type":"number","description":"Image height"},{"name":"size","type":"number","description":"File size"}],"description":"Image description."},{"name":"photoCachedSize","id":35527382,"type":"PhotoSize","arguments":[{"name":"type","type":"string","description":"Thumbnail type"},{"name":"w","type":"number","description":"Image width"},{"name":"h","type":"number","description":"Image height"},{"name":"bytes","type":"Buffer","description":"Binary data, file content"}],"description":"Description of an image and its content."},{"name":"photoStrippedSize","id":3769678894,"type":"PhotoSize","arguments":[{"name":"type","type":"string","description":"Thumbnail type"},{"name":"bytes","type":"Buffer","description":"Thumbnail data, see here for more info on decompression »"}],"description":"A low-resolution compressed JPG payload"},{"name":"photoSizeProgressive","id":4198431637,"type":"PhotoSize","arguments":[{"name":"type","type":"string","description":"Photosize type"},{"name":"w","type":"number","description":"Photo width"},{"name":"h","type":"number","description":"Photo height"},{"name":"sizes","type":"number[]","description":"Sizes of progressive JPEG file prefixes, which can be used to preliminarily show the image."}],"description":"Progressively encoded photosize"},{"name":"photoPathSize","id":3626061121,"type":"PhotoSize","arguments":[{"name":"type","type":"string","description":"Always j"},{"name":"bytes","type":"Buffer","description":"Compressed SVG path payload, see here for decompression instructions"}],"description":"Messages with animated stickers can have a compressed svg (< 300 bytes) to show the outline of the sticker before fetching the actual lottie animation."},{"name":"geoPointEmpty","id":286776671,"type":"GeoPoint","arguments":[],"description":"Empty constructor."},{"name":"geoPoint","id":2997024355,"type":"GeoPoint","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"long","type":"Double","description":"Longtitude"},{"name":"lat","type":"Double","description":"Latitude"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"accuracyRadius","type":"number","optional":true,"predicate":"flags.0","description":"The estimated horizontal accuracy of the location, in meters; as defined by the sender."}],"description":"GeoPoint."},{"name":"inputNotifyPeer","id":3099351820,"type":"InputNotifyPeer","arguments":[{"name":"peer","type":"InputPeer","description":"User or group"}],"description":"Notifications generated by a certain user or group."},{"name":"inputNotifyUsers","id":423314455,"type":"InputNotifyPeer","arguments":[],"description":"Notifications generated by all users."},{"name":"inputNotifyChats","id":1251338318,"type":"InputNotifyPeer","arguments":[],"description":"Notifications generated by all groups."},{"name":"inputNotifyBroadcasts","id":2983951486,"type":"InputNotifyPeer","arguments":[],"description":"All channels"},{"name":"inputPeerNotifySettings","id":2621249934,"type":"InputPeerNotifySettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"showPreviews","type":"boolean","optional":true,"predicate":"flags.0","description":"If the text of the message shall be displayed in notification"},{"name":"silent","type":"boolean","optional":true,"predicate":"flags.1","description":"Peer was muted?"},{"name":"muteUntil","type":"number","optional":true,"predicate":"flags.2","description":"Date until which all notifications shall be switched off"},{"name":"sound","type":"string","optional":true,"predicate":"flags.3","description":"Name of an audio file for notification"}],"description":"Notification settings."},{"name":"peerNotifySettings","id":2941295904,"type":"PeerNotifySettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"showPreviews","type":"boolean","optional":true,"predicate":"flags.0","description":"Display text in notifications"},{"name":"silent","type":"boolean","optional":true,"predicate":"flags.1","description":"Mute peer?"},{"name":"muteUntil","type":"number","optional":true,"predicate":"flags.2","description":"Mute all notifications until this date"},{"name":"sound","type":"string","optional":true,"predicate":"flags.3","description":"Audio file name for notifications"}],"description":"Notification settings."},{"name":"peerSettings","id":1933519201,"type":"PeerSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"reportSpam","type":"true","optional":true,"predicate":"flags.0","description":"Whether we can still report the user for spam"},{"name":"addContact","type":"true","optional":true,"predicate":"flags.1","description":"Whether we can add the user as contact"},{"name":"blockContact","type":"true","optional":true,"predicate":"flags.2","description":"Whether we can block the user"},{"name":"shareContact","type":"true","optional":true,"predicate":"flags.3","description":"Whether we can share the user's contact"},{"name":"needContactsException","type":"true","optional":true,"predicate":"flags.4","description":"Whether a special exception for contacts is needed"},{"name":"reportGeo","type":"true","optional":true,"predicate":"flags.5","description":"Whether we can report a geo group is irrelevant for this location"},{"name":"autoarchived","type":"true","optional":true,"predicate":"flags.7","description":"Whether this peer was automatically archived according to {@link globalPrivacySettings}"},{"name":"inviteMembers","type":"true","optional":true,"predicate":"flags.8"},{"name":"geoDistance","type":"number","optional":true,"predicate":"flags.6","description":"Distance in meters between us and this peer"}],"description":"Peer settings"},{"name":"wallPaper","id":2755118061,"type":"WallPaper","arguments":[{"name":"id","type":"Long","description":"Identifier"},{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"creator","type":"true","optional":true,"predicate":"flags.0","description":"Creator of the wallpaper"},{"name":"default","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is the default wallpaper"},{"name":"pattern","type":"true","optional":true,"predicate":"flags.3","description":"Pattern"},{"name":"dark","type":"true","optional":true,"predicate":"flags.4","description":"Dark mode"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"slug","type":"string","description":"Unique wallpaper ID"},{"name":"document","type":"Document","description":"The actual wallpaper"},{"name":"settings","type":"WallPaperSettings","optional":true,"predicate":"flags.2","description":"Wallpaper settings"}],"description":"Wallpaper settings."},{"name":"wallPaperNoFile","id":3766501654,"type":"WallPaper","arguments":[{"name":"id","type":"Long"},{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"default","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is the default wallpaper"},{"name":"dark","type":"true","optional":true,"predicate":"flags.4","description":"Dark mode"},{"name":"settings","type":"WallPaperSettings","optional":true,"predicate":"flags.2","description":"Wallpaper settings"}],"description":"No file wallpaper"},{"name":"inputReportReasonSpam","id":1490799288,"type":"ReportReason","arguments":[],"description":"Report for spam"},{"name":"inputReportReasonViolence","id":505595789,"type":"ReportReason","arguments":[],"description":"Report for violence"},{"name":"inputReportReasonPornography","id":777640226,"type":"ReportReason","arguments":[],"description":"Report for pornography"},{"name":"inputReportReasonChildAbuse","id":2918469347,"type":"ReportReason","arguments":[],"description":"Report for child abuse"},{"name":"inputReportReasonOther","id":3252986545,"type":"ReportReason","arguments":[],"description":"Other"},{"name":"inputReportReasonCopyright","id":2609510714,"type":"ReportReason","arguments":[],"description":"Report for copyrighted content"},{"name":"inputReportReasonGeoIrrelevant","id":3688169197,"type":"ReportReason","arguments":[],"description":"Report an irrelevant geo group"},{"name":"inputReportReasonFake","id":4124956391,"type":"ReportReason","arguments":[]},{"name":"userFull","id":328899191,"type":"UserFull","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"blocked","type":"true","optional":true,"predicate":"flags.0","description":"Whether you have blocked this user"},{"name":"phoneCallsAvailable","type":"true","optional":true,"predicate":"flags.4","description":"Whether this user can make VoIP calls"},{"name":"phoneCallsPrivate","type":"true","optional":true,"predicate":"flags.5","description":"Whether this user's privacy settings allow you to call them"},{"name":"canPinMessage","type":"true","optional":true,"predicate":"flags.7","description":"Whether you can pin messages in the chat with this user, you can do this only for a chat with yourself"},{"name":"hasScheduled","type":"true","optional":true,"predicate":"flags.12","description":"Whether scheduled messages are available"},{"name":"videoCallsAvailable","type":"true","optional":true,"predicate":"flags.13","description":"Whether the user can receive video calls"},{"name":"user","type":"User","description":"Remaining user info"},{"name":"about","type":"string","optional":true,"predicate":"flags.1","description":"Bio of the user"},{"name":"settings","type":"PeerSettings","description":"Peer settings"},{"name":"profilePhoto","type":"Photo","optional":true,"predicate":"flags.2","description":"Profile photo"},{"name":"notifySettings","type":"PeerNotifySettings","description":"Notification settings"},{"name":"botInfo","type":"BotInfo","optional":true,"predicate":"flags.3","description":"For bots, info about the bot (bot commands, etc)"},{"name":"pinnedMsgId","type":"number","optional":true,"predicate":"flags.6","description":"Message ID of the last pinned message"},{"name":"commonChatsCount","type":"number","description":"Chats in common with this user"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.11","description":"Peer folder ID, for more info click here"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.14"}],"description":"Extended user info"},{"name":"contact","id":4178692500,"type":"Contact","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"mutual","type":"boolean","description":"Current user is in the user's contact list"}],"description":"A contact of the current user that is registered in the system."},{"name":"importedContact","id":3489825848,"type":"ImportedContact","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"clientId","type":"Long","description":"The contact's client identifier (passed to one of the InputContact constructors)"}],"description":"Successfully imported contact."},{"name":"contactStatus","id":3546811489,"type":"ContactStatus","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"status","type":"UserStatus","description":"Online status"}],"description":"Contact status: online / offline."},{"name":"inputMessagesFilterEmpty","id":1474492012,"type":"MessagesFilter","arguments":[],"description":"Filter is absent."},{"name":"inputMessagesFilterPhotos","id":2517214492,"type":"MessagesFilter","arguments":[],"description":"Filter for messages containing photos."},{"name":"inputMessagesFilterVideo","id":2680163941,"type":"MessagesFilter","arguments":[],"description":"Filter for messages containing videos."},{"name":"inputMessagesFilterPhotoVideo","id":1458172132,"type":"MessagesFilter","arguments":[],"description":"Filter for messages containing photos or videos."},{"name":"inputMessagesFilterDocument","id":2665345416,"type":"MessagesFilter","arguments":[],"description":"Filter for messages containing documents."},{"name":"inputMessagesFilterUrl","id":2129714567,"type":"MessagesFilter","arguments":[],"description":"Return only messages containing URLs"},{"name":"inputMessagesFilterGif","id":4291323271,"type":"MessagesFilter","arguments":[],"description":"Return only messages containing gifs"},{"name":"inputMessagesFilterVoice","id":1358283666,"type":"MessagesFilter","arguments":[],"description":"Return only messages containing voice notes"},{"name":"inputMessagesFilterMusic","id":928101534,"type":"MessagesFilter","arguments":[],"description":"Return only messages containing audio files"},{"name":"inputMessagesFilterChatPhotos","id":975236280,"type":"MessagesFilter","arguments":[],"description":"Return only chat photo changes"},{"name":"inputMessagesFilterPhoneCalls","id":2160695144,"type":"MessagesFilter","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"missed","type":"true","optional":true,"predicate":"flags.0","description":"Return only missed phone calls"}],"description":"Return only phone calls"},{"name":"inputMessagesFilterRoundVoice","id":2054952868,"type":"MessagesFilter","arguments":[],"description":"Return only round videos and voice notes"},{"name":"inputMessagesFilterRoundVideo","id":3041516115,"type":"MessagesFilter","arguments":[],"description":"Return only round videos"},{"name":"inputMessagesFilterMyMentions","id":3254314650,"type":"MessagesFilter","arguments":[],"description":"Return only messages where the current user was mentioned."},{"name":"inputMessagesFilterGeo","id":3875695885,"type":"MessagesFilter","arguments":[],"description":"Return only messages containing geolocations"},{"name":"inputMessagesFilterContacts","id":3764575107,"type":"MessagesFilter","arguments":[],"description":"Return only messages containing contacts"},{"name":"inputMessagesFilterPinned","id":464520273,"type":"MessagesFilter","arguments":[],"description":"Fetch only pinned messages"},{"name":"updateNewMessage","id":522914557,"type":"Update","arguments":[{"name":"message","type":"Message","description":"Message"},{"name":"pts","type":"number","description":"New quantity of actions in a message box"},{"name":"ptsCount","type":"number","description":"Number of generated events"}],"description":"New message in a private chat or in a legacy group."},{"name":"updateMessageID","id":1318109142,"type":"Update","arguments":[{"name":"id","type":"number","description":"id identifier of a respective Message"},{"name":"randomId","type":"Long","description":"Previuosly transferred client random_id identifier"}],"description":"Sent message with random_id client identifier was assigned an identifier."},{"name":"updateDeleteMessages","id":2718806245,"type":"Update","arguments":[{"name":"messages","type":"number[]","description":"List of identifiers of deleted messages"},{"name":"pts","type":"number","description":"New quality of actions in a message box"},{"name":"ptsCount","type":"number","description":"Number of generated events"}],"description":"Messages were deleted."},{"name":"updateUserTyping","id":1548249383,"type":"Update","arguments":[{"name":"userId","type":"number","description":"User id"},{"name":"action","type":"SendMessageAction","description":"Action type
Param added in Layer 17."}],"description":"The user is preparing a message; typing, recording, uploading, etc. This update is valid for 6 seconds. If no repeated update received after 6 seconds, it should be considered that the user stopped doing whatever he's been doing."},{"name":"updateChatUserTyping","id":2261441388,"type":"Update","arguments":[{"name":"chatId","type":"number","description":"Group id"},{"name":"fromId","type":"Peer"},{"name":"action","type":"SendMessageAction","description":"Type of action
Parameter added in Layer 17."}],"description":"The user is preparing a message in a group; typing, recording, uploading, etc. This update is valid for 6 seconds. If no repeated update received after 6 seconds, it should be considered that the user stopped doing whatever he's been doing."},{"name":"updateChatParticipants","id":125178264,"type":"Update","arguments":[{"name":"participants","type":"ChatParticipants","description":"Updated chat participants"}],"description":"Composition of chat participants changed."},{"name":"updateUserStatus","id":469489699,"type":"Update","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"status","type":"UserStatus","description":"New status"}],"description":"Contact status update."},{"name":"updateUserName","id":2805148531,"type":"Update","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"firstName","type":"string","description":"New first name. Corresponds to the new value of real_first_name field of the {@link userFull} constructor."},{"name":"lastName","type":"string","description":"New last name. Corresponds to the new value of real_last_name field of the {@link userFull} constructor."},{"name":"username","type":"string","description":"New username.
Parameter added in Layer 18."}],"description":"Changes the user's first name, last name and username."},{"name":"updateUserPhoto","id":2503031564,"type":"Update","arguments":[{"name":"userId","type":"number","description":"User identifier"},{"name":"date","type":"number","description":"Date of photo update."},{"name":"photo","type":"UserProfilePhoto","description":"New profile photo"},{"name":"previous","type":"boolean","description":"({@link boolTrue}), if one of the previously used photos is set a profile photo."}],"description":"Change of contact's profile photo."},{"name":"updateNewEncryptedMessage","id":314359194,"type":"Update","arguments":[{"name":"message","type":"EncryptedMessage","description":"Message"},{"name":"qts","type":"number","description":"New qts value"}],"description":"New encrypted message."},{"name":"updateEncryptedChatTyping","id":386986326,"type":"Update","arguments":[{"name":"chatId","type":"number","description":"Chat ID"}],"description":"Interlocutor is typing a message in an encrypted chat. Update period is 6 second. If upon this time there is no repeated update, it shall be considered that the interlocutor stopped typing."},{"name":"updateEncryption","id":3030575245,"type":"Update","arguments":[{"name":"chat","type":"EncryptedChat","description":"Encrypted chat"},{"name":"date","type":"number","description":"Date of change"}],"description":"Change of state in an encrypted chat."},{"name":"updateEncryptedMessagesRead","id":956179895,"type":"Update","arguments":[{"name":"chatId","type":"number","description":"Chat ID"},{"name":"maxDate","type":"number","description":"Maximum value of data for read messages"},{"name":"date","type":"number","description":"Time when messages were read"}],"description":"Communication history in an encrypted chat was marked as read."},{"name":"updateChatParticipantAdd","id":3930787420,"type":"Update","arguments":[{"name":"chatId","type":"number","description":"Group ID"},{"name":"userId","type":"number","description":"ID of the new member"},{"name":"inviterId","type":"number","description":"ID of the user, who added member to the group"},{"name":"date","type":"number","description":"When was the participant added"},{"name":"version","type":"number","description":"Chat version number"}],"description":"New group member."},{"name":"updateChatParticipantDelete","id":1851755554,"type":"Update","arguments":[{"name":"chatId","type":"number","description":"Group ID"},{"name":"userId","type":"number","description":"ID of the user"},{"name":"version","type":"number","description":"Used in basic groups to reorder updates and make sure that all of them was received."}],"description":"A member has left the group."},{"name":"updateDcOptions","id":2388564083,"type":"Update","arguments":[{"name":"dcOptions","type":"DcOption[]","description":"New connection options"}],"description":"Changes in the data center configuration options."},{"name":"updateNotifySettings","id":3200411887,"type":"Update","arguments":[{"name":"peer","type":"NotifyPeer","description":"Nofication source"},{"name":"notifySettings","type":"PeerNotifySettings","description":"New notification settings"}],"description":"Changes in notification settings."},{"name":"updateServiceNotification","id":3957614617,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"popup","type":"true","optional":true,"predicate":"flags.0","description":"(boolTrue) if the message must be displayed in a popup."},{"name":"inboxDate","type":"number","optional":true,"predicate":"flags.1","description":"When was the notification received
The message must also be stored locally as part of the message history with the user id 777000 (Telegram Notifications)."},{"name":"type","type":"string","description":"String, identical in format and contents to the type field in API errors. Describes type of service message. It is acceptable to ignore repeated messages of the same type within a short period of time (15 minutes)."},{"name":"message","type":"string","description":"Message text"},{"name":"media","type":"MessageMedia","description":"Media content (optional)"},{"name":"entities","type":"MessageEntity[]","description":"Message entities for styled text"}],"description":"A service message for the user."},{"name":"updatePrivacy","id":3996854058,"type":"Update","arguments":[{"name":"key","type":"PrivacyKey","description":"Peers to which the privacy rules apply"},{"name":"rules","type":"PrivacyRule[]","description":"New privacy rules"}],"description":"Privacy rules were changed"},{"name":"updateUserPhone","id":314130811,"type":"Update","arguments":[{"name":"userId","type":"number","description":"User ID"},{"name":"phone","type":"string","description":"New phone number"}],"description":"A user's phone number was changed"},{"name":"updateReadHistoryInbox","id":2627162079,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.0","description":"Peer folder ID, for more info click here"},{"name":"peer","type":"Peer","description":"Peer"},{"name":"maxId","type":"number","description":"Maximum ID of messages read"},{"name":"stillUnreadCount","type":"number","description":"Number of messages that are still unread"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"Incoming messages were read"},{"name":"updateReadHistoryOutbox","id":791617983,"type":"Update","arguments":[{"name":"peer","type":"Peer","description":"Peer"},{"name":"maxId","type":"number","description":"Maximum ID of read outgoing messages"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"Outgoing messages were read"},{"name":"updateWebPage","id":2139689491,"type":"Update","arguments":[{"name":"webpage","type":"WebPage","description":"Webpage preview"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"An instant view webpage preview was generated"},{"name":"updateReadMessagesContents","id":1757493555,"type":"Update","arguments":[{"name":"messages","type":"number[]","description":"IDs of read messages"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"Contents of messages in the common message box were read"},{"name":"updateChannelTooLong","id":3942934523,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"channelId","type":"number","description":"The channel"},{"name":"pts","type":"number","optional":true,"predicate":"flags.0","description":"The PTS."}],"description":"There are new updates in the specified channel, the client must fetch them.
\nIf the difference is too long or if the channel isn't currently in the states, start fetching from the specified pts."},{"name":"updateChannel","id":3067369046,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel ID"}],"description":"A new channel is available"},{"name":"updateNewChannelMessage","id":1656358105,"type":"Update","arguments":[{"name":"message","type":"Message","description":"New message"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"A new message was sent in a channel/supergroup"},{"name":"updateReadChannelInbox","id":856380452,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.0","description":"Peer folder ID, for more info click here"},{"name":"channelId","type":"number","description":"Channel/supergroup ID"},{"name":"maxId","type":"number","description":"Position up to which all incoming messages are read."},{"name":"stillUnreadCount","type":"number","description":"Count of messages weren't read yet"},{"name":"pts","type":"number","description":"Event count after generation"}],"description":"Incoming messages in a channel/supergroup were read"},{"name":"updateDeleteChannelMessages","id":3279233481,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel ID"},{"name":"messages","type":"number[]","description":"IDs of messages that were deleted"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"Some messages in a supergroup/channel were deleted"},{"name":"updateChannelMessageViews","id":2560699211,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel ID"},{"name":"id","type":"number","description":"ID of the message"},{"name":"views","type":"number","description":"New view counter"}],"description":"The view counter of a message in a channel has changed"},{"name":"updateChatParticipantAdmin","id":3062896985,"type":"Update","arguments":[{"name":"chatId","type":"number","description":"Chat ID"},{"name":"userId","type":"number","description":"ID of the (de)admined user"},{"name":"isAdmin","type":"boolean","description":"Whether the user was rendered admin"},{"name":"version","type":"number","description":"Used in basic groups to reorder updates and make sure that all of them was received."}],"description":"Admin permissions of a user in a legacy group were changed"},{"name":"updateNewStickerSet","id":1753886890,"type":"Update","arguments":[{"name":"stickerset","type":"messages.StickerSet","description":"The installed stickerset"}],"description":"A new stickerset was installed"},{"name":"updateStickerSetsOrder","id":196268545,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"masks","type":"true","optional":true,"predicate":"flags.0","description":"Whether the updated stickers are mask stickers"},{"name":"order","type":"Long[]","description":"New sticker order by sticker ID"}],"description":"The order of stickersets was changed"},{"name":"updateStickerSets","id":1135492588,"type":"Update","arguments":[],"description":"Installed stickersets have changed, the client should refetch them using {@link messages.getAllStickers}"},{"name":"updateSavedGifs","id":2473931806,"type":"Update","arguments":[],"description":"The saved gif list has changed, the client should refetch it using {@link messages.getSavedGifs}"},{"name":"updateBotInlineQuery","id":1059076315,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"queryId","type":"Long","description":"Query ID"},{"name":"userId","type":"number","description":"User that sent the query"},{"name":"query","type":"string","description":"Text of query"},{"name":"geo","type":"GeoPoint","optional":true,"predicate":"flags.0","description":"Attached geolocation"},{"name":"peerType","type":"InlineQueryPeerType","optional":true,"predicate":"flags.1"},{"name":"offset","type":"string","description":"Offset to navigate through results"}],"description":"An incoming inline query"},{"name":"updateBotInlineSend","id":239663460,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"userId","type":"number","description":"The user that chose the result"},{"name":"query","type":"string","description":"The query that was used to obtain the result"},{"name":"geo","type":"GeoPoint","optional":true,"predicate":"flags.0","description":"Optional. Sender location, only for bots that require user location"},{"name":"id","type":"string","description":"The unique identifier for the result that was chosen"},{"name":"msgId","type":"InputBotInlineMessageID","optional":true,"predicate":"flags.1","description":"Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message."}],"description":"The result of an inline query that was chosen by a user and sent to their chat partner. Please see our documentation on the feedback collecting for details on how to enable these updates for your bot."},{"name":"updateEditChannelMessage","id":457133559,"type":"Update","arguments":[{"name":"message","type":"Message","description":"The new message"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"A message was edited in a channel/supergroup"},{"name":"updateBotCallbackQuery","id":3879028705,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"queryId","type":"Long","description":"Query ID"},{"name":"userId","type":"number","description":"ID of the user that pressed the button"},{"name":"peer","type":"Peer","description":"Chat where the inline keyboard was sent"},{"name":"msgId","type":"number","description":"Message ID"},{"name":"chatInstance","type":"Long","description":"Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games."},{"name":"data","type":"Buffer","optional":true,"predicate":"flags.0","description":"Callback data"},{"name":"gameShortName","type":"string","optional":true,"predicate":"flags.1","description":"Short name of a Game to be returned, serves as the unique identifier for the game"}],"description":"A callback button was pressed, and the button data was sent to the bot that created the button"},{"name":"updateEditMessage","id":3825430691,"type":"Update","arguments":[{"name":"message","type":"Message","description":"The new edited message"},{"name":"pts","type":"number","description":"PTS"},{"name":"ptsCount","type":"number","description":"PTS count"}],"description":"A message was edited"},{"name":"updateInlineBotCallbackQuery","id":4191320666,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"queryId","type":"Long","description":"Query ID"},{"name":"userId","type":"number","description":"ID of the user that pressed the button"},{"name":"msgId","type":"InputBotInlineMessageID","description":"ID of the inline message with the button"},{"name":"chatInstance","type":"Long","description":"Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games."},{"name":"data","type":"Buffer","optional":true,"predicate":"flags.0","description":"Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field."},{"name":"gameShortName","type":"string","optional":true,"predicate":"flags.1","description":"Short name of a Game to be returned, serves as the unique identifier for the game"}],"description":"This notification is received by bots when a button is pressed"},{"name":"updateReadChannelOutbox","id":634833351,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel/supergroup ID"},{"name":"maxId","type":"number","description":"Position up to which all outgoing messages are read."}],"description":"Outgoing messages in a channel/supergroup were read"},{"name":"updateDraftMessage","id":3995842921,"type":"Update","arguments":[{"name":"peer","type":"Peer","description":"The peer to which the draft is associated"},{"name":"draft","type":"DraftMessage","description":"The draft"}],"description":"Notifies a change of a message draft."},{"name":"updateReadFeaturedStickers","id":1461528386,"type":"Update","arguments":[],"description":"Some featured stickers were marked as read"},{"name":"updateRecentStickers","id":2588027936,"type":"Update","arguments":[],"description":"The recent sticker list was updated"},{"name":"updateConfig","id":2720652550,"type":"Update","arguments":[],"description":"The server-side configuration has changed; the client should re-fetch the config using {@link help.getConfig}"},{"name":"updatePtsChanged","id":861169551,"type":"Update","arguments":[],"description":"Common message box sequence PTS has changed, state has to be refetched using updates.getState"},{"name":"updateChannelWebPage","id":1081547008,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel/supergroup ID"},{"name":"webpage","type":"WebPage","description":"Generated webpage preview"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"A webpage preview of a link in a channel/supergroup message was generated"},{"name":"updateDialogPinned","id":1852826908,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.0","description":"Whether the dialog was pinned"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.1","description":"Peer folder ID, for more info click here"},{"name":"peer","type":"DialogPeer","description":"The dialog"}],"description":"A dialog was pinned/unpinned"},{"name":"updatePinnedDialogs","id":4195302562,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.1","description":"Peer folder ID, for more info click here"},{"name":"order","type":"DialogPeer[]","optional":true,"predicate":"flags.0","description":"New order of pinned dialogs"}],"description":"Pinned dialogs were updated"},{"name":"updateBotWebhookJSON","id":2199371971,"type":"Update","arguments":[{"name":"data","type":"DataJSON","description":"The event"}],"description":"A new incoming event; for bots only"},{"name":"updateBotWebhookJSONQuery","id":2610053286,"type":"Update","arguments":[{"name":"queryId","type":"Long","description":"Query identifier"},{"name":"data","type":"DataJSON","description":"Query data"},{"name":"timeout","type":"number","description":"Query timeout"}],"description":"A new incoming query; for bots only"},{"name":"updateBotShippingQuery","id":3771582784,"type":"Update","arguments":[{"name":"queryId","type":"Long","description":"Unique query identifier"},{"name":"userId","type":"number","description":"User who sent the query"},{"name":"payload","type":"Buffer","description":"Bot specified invoice payload"},{"name":"shippingAddress","type":"PostAddress","description":"User specified shipping address"}],"description":"This object contains information about an incoming shipping query."},{"name":"updateBotPrecheckoutQuery","id":1563376297,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"queryId","type":"Long","description":"Unique query identifier"},{"name":"userId","type":"number","description":"User who sent the query"},{"name":"payload","type":"Buffer","description":"Bot specified invoice payload"},{"name":"info","type":"PaymentRequestedInfo","optional":true,"predicate":"flags.0","description":"Order info provided by the user"},{"name":"shippingOptionId","type":"string","optional":true,"predicate":"flags.1","description":"Identifier of the shipping option chosen by the user"},{"name":"currency","type":"string","description":"Three-letter ISO 4217 currency code"},{"name":"totalAmount","type":"Long","description":"Total amount in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}],"description":"This object contains information about an incoming pre-checkout query."},{"name":"updatePhoneCall","id":2869914398,"type":"Update","arguments":[{"name":"phoneCall","type":"PhoneCall","description":"Phone call"}],"description":"An incoming phone call"},{"name":"updateLangPackTooLong","id":1180041828,"type":"Update","arguments":[{"name":"langCode","type":"string","description":"Language code"}],"description":"A language pack has changed, the client should manually fetch the changed strings using {@link langpack.getDifference}"},{"name":"updateLangPack","id":1442983757,"type":"Update","arguments":[{"name":"difference","type":"LangPackDifference","description":"Changed strings"}],"description":"Language pack updated"},{"name":"updateFavedStickers","id":3843135853,"type":"Update","arguments":[],"description":"The list of favorited stickers was changed, the client should call {@link messages.getFavedStickers} to refetch the new list"},{"name":"updateChannelReadMessagesContents","id":2307472197,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel/supergroup ID"},{"name":"messages","type":"number[]","description":"IDs of messages that were read"}],"description":"The specified channel/supergroup messages were read"},{"name":"updateContactsReset","id":1887741886,"type":"Update","arguments":[],"description":"All contacts were deleted"},{"name":"updateChannelAvailableMessages","id":1893427255,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel/supergroup ID"},{"name":"availableMinId","type":"number","description":"Identifier of a maximum unavailable message in a channel due to hidden history."}],"description":"The history of a channel/supergroup was hidden."},{"name":"updateDialogUnreadMark","id":3781450179,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"unread","type":"true","optional":true,"predicate":"flags.0","description":"Was the chat marked or unmarked as read"},{"name":"peer","type":"DialogPeer","description":"The dialog"}],"description":"The manual unread mark of a chat was changed"},{"name":"updateMessagePoll","id":2896258427,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pollId","type":"Long","description":"Poll ID"},{"name":"poll","type":"Poll","optional":true,"predicate":"flags.0","description":"If the server knows the client hasn't cached this poll yet, the poll itself"},{"name":"results","type":"PollResults","description":"New poll results"}],"description":"The results of a poll have changed"},{"name":"updateChatDefaultBannedRights","id":1421875280,"type":"Update","arguments":[{"name":"peer","type":"Peer","description":"The chat"},{"name":"defaultBannedRights","type":"ChatBannedRights","description":"New default banned rights"},{"name":"version","type":"number","description":"Version"}],"description":"Default banned rights in a normal chat were updated"},{"name":"updateFolderPeers","id":422972864,"type":"Update","arguments":[{"name":"folderPeers","type":"FolderPeer[]","description":"New peer list"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"The peer list of a peer folder was updated"},{"name":"updatePeerSettings","id":1786671974,"type":"Update","arguments":[{"name":"peer","type":"Peer","description":"The peer"},{"name":"settings","type":"PeerSettings","description":"Associated peer settings"}],"description":"Settings of a certain peer have changed"},{"name":"updatePeerLocated","id":3031420848,"type":"Update","arguments":[{"name":"peers","type":"PeerLocated[]","description":"Geolocated peer list update"}],"description":"List of peers near you was updated"},{"name":"updateNewScheduledMessage","id":967122427,"type":"Update","arguments":[{"name":"message","type":"Message","description":"Message"}],"description":"A message was added to the schedule queue of a chat"},{"name":"updateDeleteScheduledMessages","id":2424728814,"type":"Update","arguments":[{"name":"peer","type":"Peer","description":"Peer"},{"name":"messages","type":"number[]","description":"Deleted scheduled messages"}],"description":"Some scheduled messages were deleted from the schedule queue of a chat"},{"name":"updateTheme","id":2182544291,"type":"Update","arguments":[{"name":"theme","type":"Theme","description":"Theme"}],"description":"A cloud theme was updated"},{"name":"updateGeoLiveViewed","id":2267003193,"type":"Update","arguments":[{"name":"peer","type":"Peer","description":"The user that viewed the live geo position"},{"name":"msgId","type":"number","description":"Message ID of geo position message"}],"description":"Live geo position message was viewed"},{"name":"updateLoginToken","id":1448076945,"type":"Update","arguments":[],"description":"A login token (for login via QR code) was accepted."},{"name":"updateMessagePollVote","id":938909451,"type":"Update","arguments":[{"name":"pollId","type":"Long","description":"Poll ID"},{"name":"userId","type":"number","description":"User ID"},{"name":"options","type":"Buffer[]","description":"Chosen option(s)"},{"name":"qts","type":"number"}],"description":"A specific user has voted in a poll"},{"name":"updateDialogFilter","id":654302845,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"number","description":"Folder ID"},{"name":"filter","type":"DialogFilter","optional":true,"predicate":"flags.0","description":"Folder info"}],"description":"A new folder was added"},{"name":"updateDialogFilterOrder","id":2782339333,"type":"Update","arguments":[{"name":"order","type":"number[]","description":"Ordered folder IDs"}],"description":"New folder order"},{"name":"updateDialogFilters","id":889491791,"type":"Update","arguments":[],"description":"Clients should update folder info"},{"name":"updatePhoneCallSignalingData","id":643940105,"type":"Update","arguments":[{"name":"phoneCallId","type":"Long","description":"Phone call ID"},{"name":"data","type":"Buffer","description":"Signaling payload"}],"description":"Incoming phone call signaling payload"},{"name":"updateChannelMessageForwards","id":1854571743,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Channel ID"},{"name":"id","type":"number","description":"ID of the message"},{"name":"forwards","type":"number","description":"New forward counter"}],"description":"The forward counter of a message in a channel has changed"},{"name":"updateReadChannelDiscussionInbox","id":482860628,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"channelId","type":"number","description":"Discussion group ID"},{"name":"topMsgId","type":"number","description":"ID of the group message that started the thread (message in linked discussion group)"},{"name":"readMaxId","type":"number","description":"Message ID of latest read incoming message for this thread"},{"name":"broadcastId","type":"number","optional":true,"predicate":"flags.0","description":"If set, contains the ID of the channel that contains the post that started the comment thread in the discussion group (channel_id)"},{"name":"broadcastPost","type":"number","optional":true,"predicate":"flags.0","description":"If set, contains the ID of the channel post that started the the comment thread"}],"description":"Incoming comments in a discussion thread were marked as read"},{"name":"updateReadChannelDiscussionOutbox","id":1178116716,"type":"Update","arguments":[{"name":"channelId","type":"number","description":"Supergroup ID"},{"name":"topMsgId","type":"number","description":"ID of the group message that started the thread"},{"name":"readMaxId","type":"number","description":"Message ID of latest read outgoing message for this thread"}],"description":"Outgoing comments in a discussion thread were marked as read"},{"name":"updatePeerBlocked","id":610945826,"type":"Update","arguments":[{"name":"peerId","type":"Peer","description":"The blocked peer"},{"name":"blocked","type":"boolean","description":"Whether the peer was blocked or unblocked"}],"description":"A peer was blocked"},{"name":"updateChannelUserTyping","id":1796675352,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"channelId","type":"number","description":"Channel ID"},{"name":"topMsgId","type":"number","optional":true,"predicate":"flags.0","description":"Thread ID"},{"name":"fromId","type":"Peer"},{"name":"action","type":"SendMessageAction","description":"Whether the user is typing, sending a media or doing something else"}],"description":"A user is typing in a supergroup, channel or message thread"},{"name":"updatePinnedMessages","id":3984976565,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.0","description":"Whether the messages were pinned or unpinned"},{"name":"peer","type":"Peer","description":"Peer"},{"name":"messages","type":"number[]","description":"Message IDs"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"Some messages were pinned in a chat"},{"name":"updatePinnedChannelMessages","id":2240317323,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.0","description":"Whether the messages were pinned or unpinned"},{"name":"channelId","type":"number","description":"Channel ID"},{"name":"messages","type":"number[]","description":"Messages"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"Messages were pinned/unpinned in a channel/supergroup"},{"name":"updateChat","id":321954198,"type":"Update","arguments":[{"name":"chatId","type":"number"}]},{"name":"updateGroupCallParticipants","id":4075543374,"type":"Update","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"participants","type":"GroupCallParticipant[]"},{"name":"version","type":"number"}]},{"name":"updateGroupCall","id":2757671323,"type":"Update","arguments":[{"name":"chatId","type":"number"},{"name":"call","type":"GroupCall"}]},{"name":"updatePeerHistoryTTL","id":3147544997,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"peer","type":"Peer"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.0"}]},{"name":"updateChatParticipant","id":4088625183,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"chatId","type":"number"},{"name":"date","type":"number"},{"name":"actorId","type":"number"},{"name":"userId","type":"number"},{"name":"prevParticipant","type":"ChatParticipant","optional":true,"predicate":"flags.0"},{"name":"newParticipant","type":"ChatParticipant","optional":true,"predicate":"flags.1"},{"name":"invite","type":"ExportedChatInvite","optional":true,"predicate":"flags.2"},{"name":"qts","type":"number"}]},{"name":"updateChannelParticipant","id":2146218476,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"channelId","type":"number","description":"Channel ID"},{"name":"date","type":"number","description":"Date of the event"},{"name":"actorId","type":"number"},{"name":"userId","type":"number","description":"User in question"},{"name":"prevParticipant","type":"ChannelParticipant","optional":true,"predicate":"flags.0","description":"Previous participant status"},{"name":"newParticipant","type":"ChannelParticipant","optional":true,"predicate":"flags.1","description":"New participant status"},{"name":"invite","type":"ExportedChatInvite","optional":true,"predicate":"flags.2"},{"name":"qts","type":"number","description":"PTS"}],"description":"A participant has left, joined, was banned or admined in a channel or supergroup."},{"name":"updateBotStopped","id":133777546,"type":"Update","arguments":[{"name":"userId","type":"number"},{"name":"date","type":"number"},{"name":"stopped","type":"boolean"},{"name":"qts","type":"number"}]},{"name":"updateGroupCallConnection","id":192428418,"type":"Update","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"presentation","type":"true","optional":true,"predicate":"flags.0"},{"name":"params","type":"DataJSON"}]},{"name":"updateBotCommands","id":3481143411,"type":"Update","arguments":[{"name":"peer","type":"Peer"},{"name":"botId","type":"number"},{"name":"commands","type":"BotCommand[]"}]},{"name":"updatesTooLong","id":3809980286,"type":"Updates","arguments":[],"description":"Too many updates, it is necessary to execute {@link updates.getDifference}."},{"name":"updateShortMessage","id":4210030643,"type":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"out","type":"true","optional":true,"predicate":"flags.1","description":"Whether the message is outgoing"},{"name":"mentioned","type":"true","optional":true,"predicate":"flags.4","description":"Whether we were mentioned in the message"},{"name":"mediaUnread","type":"true","optional":true,"predicate":"flags.5","description":"Whether there are some unread mentions in this message"},{"name":"silent","type":"true","optional":true,"predicate":"flags.13","description":"If true, the message is a silent message, no notifications should be triggered"},{"name":"id","type":"number","description":"The message ID"},{"name":"userId","type":"number","description":"The ID of the sender (if outgoing will be the ID of the destination) of the message"},{"name":"message","type":"string","description":"The message"},{"name":"pts","type":"number","description":"PTS"},{"name":"ptsCount","type":"number","description":"PTS count"},{"name":"date","type":"number","description":"date"},{"name":"fwdFrom","type":"MessageFwdHeader","optional":true,"predicate":"flags.2","description":"Info about a forwarded message"},{"name":"viaBotId","type":"number","optional":true,"predicate":"flags.11","description":"Info about the inline bot used to generate this message"},{"name":"replyTo","type":"MessageReplyHeader","optional":true,"predicate":"flags.3","description":"Reply and thread information"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.7","description":"Entities for styled text"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.25"}],"description":"Info about a message sent to (received from) another user"},{"name":"updateShortChatMessage","id":290961496,"type":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"out","type":"true","optional":true,"predicate":"flags.1","description":"Whether the message is outgoing"},{"name":"mentioned","type":"true","optional":true,"predicate":"flags.4","description":"Whether we were mentioned in this message"},{"name":"mediaUnread","type":"true","optional":true,"predicate":"flags.5","description":"Whether the message contains some unread mentions"},{"name":"silent","type":"true","optional":true,"predicate":"flags.13","description":"If true, the message is a silent message, no notifications should be triggered"},{"name":"id","type":"number","description":"ID of the message"},{"name":"fromId","type":"number","description":"ID of the sender of the message"},{"name":"chatId","type":"number","description":"ID of the chat where the message was sent"},{"name":"message","type":"string","description":"Message"},{"name":"pts","type":"number","description":"PTS"},{"name":"ptsCount","type":"number","description":"PTS count"},{"name":"date","type":"number","description":"date"},{"name":"fwdFrom","type":"MessageFwdHeader","optional":true,"predicate":"flags.2","description":"Info about a forwarded message"},{"name":"viaBotId","type":"number","optional":true,"predicate":"flags.11","description":"Info about the inline bot used to generate this message"},{"name":"replyTo","type":"MessageReplyHeader","optional":true,"predicate":"flags.3","description":"Reply (thread) information"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.7","description":"Entities for styled text"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.25"}],"description":"Shortened constructor containing info on one new incoming text message from a chat"},{"name":"updateShort","id":2027216577,"type":"Updates","arguments":[{"name":"update","type":"Update","description":"Update"},{"name":"date","type":"number","description":"Date of event"}],"description":"Shortened constructor containing info on one update not requiring auxiliary data"},{"name":"updatesCombined","id":1918567619,"type":"Updates","arguments":[{"name":"updates","type":"Update[]","description":"List of updates"},{"name":"users","type":"User[]","description":"List of users mentioned in updates"},{"name":"chats","type":"Chat[]","description":"List of chats mentioned in updates"},{"name":"date","type":"number","description":"Current date"},{"name":"seqStart","type":"number","description":"Value seq for the earliest update in a group"},{"name":"seq","type":"number","description":"Value seq for the latest update in a group"}],"description":"Constructor for a group of updates."},{"name":"updates","id":1957577280,"type":"Updates","arguments":[{"name":"updates","type":"Update[]","description":"List of updates"},{"name":"users","type":"User[]","description":"List of users mentioned in updates"},{"name":"chats","type":"Chat[]","description":"List of chats mentioned in updates"},{"name":"date","type":"number","description":"Current date"},{"name":"seq","type":"number","description":"Total number of sent updates"}],"description":"Full constructor of updates"},{"name":"updateShortSentMessage","id":2417352961,"type":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"out","type":"true","optional":true,"predicate":"flags.1","description":"Whether the message is outgoing"},{"name":"id","type":"number","description":"ID of the sent message"},{"name":"pts","type":"number","description":"PTS"},{"name":"ptsCount","type":"number","description":"PTS count"},{"name":"date","type":"number","description":"date"},{"name":"media","type":"MessageMedia","optional":true,"predicate":"flags.9","description":"Attached media"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.7","description":"Entities for styled text"},{"name":"ttlPeriod","type":"number","optional":true,"predicate":"flags.25"}],"description":"Shortened constructor containing info on one outgoing message to a contact (the destination chat has to be extracted from the method call that returned this object)."},{"name":"dcOption","id":414687501,"type":"DcOption","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"ipv6","type":"true","optional":true,"predicate":"flags.0","description":"Whether the specified IP is an IPv6 address"},{"name":"mediaOnly","type":"true","optional":true,"predicate":"flags.1","description":"Whether this DC should only be used to download or upload files"},{"name":"tcpoOnly","type":"true","optional":true,"predicate":"flags.2","description":"Whether this DC only supports connection with transport obfuscation"},{"name":"cdn","type":"true","optional":true,"predicate":"flags.3","description":"Whether this is a CDN DC."},{"name":"static","type":"true","optional":true,"predicate":"flags.4","description":"If set, this IP should be used when connecting through a proxy"},{"name":"id","type":"number","description":"DC ID"},{"name":"ipAddress","type":"string","description":"IP address of DC"},{"name":"port","type":"number","description":"Port"},{"name":"secret","type":"Buffer","optional":true,"predicate":"flags.10","description":"If the tcpo_only flag is set, specifies the secret to use when connecting using transport obfuscation"}],"description":"Data centre"},{"name":"config","id":856375399,"type":"Config","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"phonecallsEnabled","type":"true","optional":true,"predicate":"flags.1","description":"Whether phone calls can be used"},{"name":"defaultP2pContacts","type":"true","optional":true,"predicate":"flags.3","description":"Whether the client should use P2P by default for phone calls with contacts"},{"name":"preloadFeaturedStickers","type":"true","optional":true,"predicate":"flags.4","description":"Whether the client should preload featured stickers"},{"name":"ignorePhoneEntities","type":"true","optional":true,"predicate":"flags.5","description":"Whether the client should ignore phone entities"},{"name":"revokePmInbox","type":"true","optional":true,"predicate":"flags.6","description":"Whether incoming private messages can be deleted for both participants"},{"name":"blockedMode","type":"true","optional":true,"predicate":"flags.8","description":"Indicates that telegram is probably censored by governments/ISPs in the current region"},{"name":"pfsEnabled","type":"true","optional":true,"predicate":"flags.13","description":"Whether pfs was used"},{"name":"date","type":"number","description":"Current date at the server"},{"name":"expires","type":"number","description":"Expiration date of this config: when it expires it'll have to be refetched using {@link help.getConfig}"},{"name":"testMode","type":"boolean","description":"Whether we're connected to the test DCs"},{"name":"thisDc","type":"number","description":"ID of the DC that returned the reply"},{"name":"dcOptions","type":"DcOption[]","description":"DC IP list"},{"name":"dcTxtDomainName","type":"string","description":"Domain name for fetching encrypted DC list from DNS TXT record"},{"name":"chatSizeMax","type":"number","description":"Maximum member count for normal groups"},{"name":"megagroupSizeMax","type":"number","description":"Maximum member count for supergroups"},{"name":"forwardedCountMax","type":"number","description":"Maximum number of messages that can be forwarded at once using {@link messages.forwardMessages}."},{"name":"onlineUpdatePeriodMs","type":"number","description":"The client should {@link account.updateStatus} every N milliseconds"},{"name":"offlineBlurTimeoutMs","type":"number","description":"Delay before offline status needs to be sent to the server"},{"name":"offlineIdleTimeoutMs","type":"number","description":"Time without any user activity after which it should be treated offline"},{"name":"onlineCloudTimeoutMs","type":"number","description":"If we are offline, but were online from some other client in last online_cloud_timeout_ms milliseconds after we had gone offline, then delay offline notification for notify_cloud_delay_ms milliseconds."},{"name":"notifyCloudDelayMs","type":"number","description":"If we are offline, but online from some other client then delay sending the offline notification for notify_cloud_delay_ms milliseconds."},{"name":"notifyDefaultDelayMs","type":"number","description":"If some other client is online, then delay notification for notification_default_delay_ms milliseconds"},{"name":"pushChatPeriodMs","type":"number","description":"Not for client use"},{"name":"pushChatLimit","type":"number","description":"Not for client use"},{"name":"savedGifsLimit","type":"number","description":"Maximum count of saved gifs"},{"name":"editTimeLimit","type":"number","description":"Only messages with age smaller than the one specified can be edited"},{"name":"revokeTimeLimit","type":"number","description":"Only channel/supergroup messages with age smaller than the specified can be deleted"},{"name":"revokePmTimeLimit","type":"number","description":"Only private messages with age smaller than the specified can be deleted"},{"name":"ratingEDecay","type":"number","description":"Exponential decay rate for computing top peer rating"},{"name":"stickersRecentLimit","type":"number","description":"Maximum number of recent stickers"},{"name":"stickersFavedLimit","type":"number","description":"Maximum number of faved stickers"},{"name":"channelsReadMediaPeriod","type":"number","description":"Indicates that round videos (video notes) and voice messages sent in channels and older than the specified period must be marked as read"},{"name":"tmpSessions","type":"number","optional":true,"predicate":"flags.0","description":"Temporary passport sessions"},{"name":"pinnedDialogsCountMax","type":"number","description":"Maximum count of pinned dialogs"},{"name":"pinnedInfolderCountMax","type":"number","description":"Maximum count of dialogs per folder"},{"name":"callReceiveTimeoutMs","type":"number","description":"Maximum allowed outgoing ring time in VoIP calls: if the user we're calling doesn't reply within the specified time (in milliseconds), we should hang up the call"},{"name":"callRingTimeoutMs","type":"number","description":"Maximum allowed incoming ring time in VoIP calls: if the current user doesn't reply within the specified time (in milliseconds), the call will be automatically refused"},{"name":"callConnectTimeoutMs","type":"number","description":"VoIP connection timeout: if the instance of libtgvoip on the other side of the call doesn't connect to our instance of libtgvoip within the specified time (in milliseconds), the call must be aborted"},{"name":"callPacketTimeoutMs","type":"number","description":"If during a VoIP call a packet isn't received for the specified period of time, the call must be aborted"},{"name":"meUrlPrefix","type":"string","description":"The domain to use to parse in-app links.
For example t.me indicates that t.me/username links should parsed to @username, t.me/addsticker/name should be parsed to the appropriate stickerset and so on..."},{"name":"autoupdateUrlPrefix","type":"string","optional":true,"predicate":"flags.7","description":"URL to use to auto-update the current app"},{"name":"gifSearchUsername","type":"string","optional":true,"predicate":"flags.9","description":"Username of the bot to use to search for GIFs"},{"name":"venueSearchUsername","type":"string","optional":true,"predicate":"flags.10","description":"Username of the bot to use to search for venues"},{"name":"imgSearchUsername","type":"string","optional":true,"predicate":"flags.11","description":"Username of the bot to use for image search"},{"name":"staticMapsProvider","type":"string","optional":true,"predicate":"flags.12","description":"ID of the map provider to use for venues"},{"name":"captionLengthMax","type":"number","description":"Maximum length of caption (length in utf8 codepoints)"},{"name":"messageLengthMax","type":"number","description":"Maximum length of messages (length in utf8 codepoints)"},{"name":"webfileDcId","type":"number","description":"DC ID to use to download webfiles"},{"name":"suggestedLangCode","type":"string","optional":true,"predicate":"flags.2","description":"Suggested language code"},{"name":"langPackVersion","type":"number","optional":true,"predicate":"flags.2","description":"Language pack version"},{"name":"baseLangPackVersion","type":"number","optional":true,"predicate":"flags.2","description":"Basic language pack version"}],"description":"Current configuration"},{"name":"nearestDc","id":2384074613,"type":"NearestDc","arguments":[{"name":"country","type":"string","description":"Country code determined by geo-ip"},{"name":"thisDc","type":"number","description":"Number of current data centre"},{"name":"nearestDc","type":"number","description":"Number of nearest data centre"}],"description":"Nearest data centre, according to geo-ip."},{"name":"encryptedChatEmpty","id":2877210784,"type":"EncryptedChat","arguments":[{"name":"id","type":"number","description":"Chat ID"}],"description":"Empty constructor."},{"name":"encryptedChatWaiting","id":1006044124,"type":"EncryptedChat","arguments":[{"name":"id","type":"number","description":"Chat ID"},{"name":"accessHash","type":"Long","description":"Checking sum depending on user ID"},{"name":"date","type":"number","description":"Date of chat creation"},{"name":"adminId","type":"number","description":"Chat creator ID"},{"name":"participantId","type":"number","description":"ID of second chat participant"}],"description":"Chat waiting for approval of second participant."},{"name":"encryptedChatRequested","id":1651608194,"type":"EncryptedChat","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.0","description":"Peer folder ID, for more info click here"},{"name":"id","type":"number","description":"Chat ID"},{"name":"accessHash","type":"Long","description":"Check sum depending on user ID"},{"name":"date","type":"number","description":"Chat creation date"},{"name":"adminId","type":"number","description":"Chat creator ID"},{"name":"participantId","type":"number","description":"ID of second chat participant"},{"name":"gA","type":"Buffer","description":"A = g ^ a mod p, see Wikipedia"}],"description":"Request to create an encrypted chat."},{"name":"encryptedChat","id":4199992886,"type":"EncryptedChat","arguments":[{"name":"id","type":"number","description":"Chat ID"},{"name":"accessHash","type":"Long","description":"Check sum dependant on the user ID"},{"name":"date","type":"number","description":"Date chat was created"},{"name":"adminId","type":"number","description":"Chat creator ID"},{"name":"participantId","type":"number","description":"ID of the second chat participant"},{"name":"gAOrB","type":"Buffer","description":"B = g ^ b mod p, if the currently authorized user is the chat's creator,
or A = g ^ a mod p otherwise
See Wikipedia for more info"},{"name":"keyFingerprint","type":"Long","description":"64-bit fingerprint of received key"}],"description":"Encrypted chat"},{"name":"encryptedChatDiscarded","id":505183301,"type":"EncryptedChat","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"historyDeleted","type":"true","optional":true,"predicate":"flags.0"},{"name":"id","type":"number","description":"Chat ID"}],"description":"Discarded or deleted chat."},{"name":"inputEncryptedChat","id":4047615457,"type":"InputEncryptedChat","arguments":[{"name":"chatId","type":"number","description":"Chat ID"},{"name":"accessHash","type":"Long","description":"Checking sum from constructor {@link encryptedChat}, {@link encryptedChatWaiting} or {@link encryptedChatRequested}"}],"description":"Creates an encrypted chat."},{"name":"encryptedFileEmpty","id":3256830334,"type":"EncryptedFile","arguments":[],"description":"Empty constructor, unexisitng file."},{"name":"encryptedFile","id":1248893260,"type":"EncryptedFile","arguments":[{"name":"id","type":"Long","description":"File ID"},{"name":"accessHash","type":"Long","description":"Checking sum depending on user ID"},{"name":"size","type":"number","description":"File size in bytes"},{"name":"dcId","type":"number","description":"Number of data centre"},{"name":"keyFingerprint","type":"number","description":"32-bit fingerprint of key used for file encryption"}],"description":"Encrypted file."},{"name":"inputEncryptedFileEmpty","id":406307684,"type":"InputEncryptedFile","arguments":[],"description":"Empty constructor."},{"name":"inputEncryptedFileUploaded","id":1690108678,"type":"InputEncryptedFile","arguments":[{"name":"id","type":"Long","description":"Random file ID created by clien"},{"name":"parts","type":"number","description":"Number of saved parts"},{"name":"md5Checksum","type":"string","description":"In case md5-HASH of the (already encrypted) file was transmitted, file content will be checked prior to use"},{"name":"keyFingerprint","type":"number","description":"32-bit fingerprint of the key used to encrypt a file"}],"description":"Sets new encrypted file saved by parts using upload.saveFilePart method."},{"name":"inputEncryptedFile","id":1511503333,"type":"InputEncryptedFile","arguments":[{"name":"id","type":"Long","description":"File ID, value of id parameter from {@link encryptedFile}"},{"name":"accessHash","type":"Long","description":"Checking sum, value of access_hash parameter from {@link encryptedFile}"}],"description":"Sets forwarded encrypted file for attachment."},{"name":"inputEncryptedFileBigUploaded","id":767652808,"type":"InputEncryptedFile","arguments":[{"name":"id","type":"Long","description":"Random file id, created by the client"},{"name":"parts","type":"number","description":"Number of saved parts"},{"name":"keyFingerprint","type":"number","description":"32-bit imprint of the key used to encrypt the file"}],"description":"Assigns a new big encrypted file (over 10Mb in size), saved in parts using the method {@link upload.saveBigFilePart}."},{"name":"encryptedMessage","id":3977822488,"type":"EncryptedMessage","arguments":[{"name":"randomId","type":"Long","description":"Random message ID, assigned by the author of message"},{"name":"chatId","type":"number","description":"ID of encrypted chat"},{"name":"date","type":"number","description":"Date of sending"},{"name":"bytes","type":"Buffer","description":"TL-serialising of DecryptedMessage type, encrypted with the key creatied at stage of chat initialization"},{"name":"file","type":"EncryptedFile","description":"Attached encrypted file"}],"description":"Encrypted message."},{"name":"encryptedMessageService","id":594758406,"type":"EncryptedMessage","arguments":[{"name":"randomId","type":"Long","description":"Random message ID, assigned by the author of message"},{"name":"chatId","type":"number","description":"ID of encrypted chat"},{"name":"date","type":"number","description":"Date of sending"},{"name":"bytes","type":"Buffer","description":"TL-serialising of DecryptedMessage type, encrypted with the key creatied at stage of chat initialization"}],"description":"Encrypted service message"},{"name":"inputDocumentEmpty","id":1928391342,"type":"InputDocument","arguments":[],"description":"Empty constructor."},{"name":"inputDocument","id":448771445,"type":"InputDocument","arguments":[{"name":"id","type":"Long","description":"Document ID"},{"name":"accessHash","type":"Long","description":"access_hash parameter from the {@link document} constructor"},{"name":"fileReference","type":"Buffer","description":"File reference"}],"description":"Defines a video for subsequent interaction."},{"name":"documentEmpty","id":922273905,"type":"Document","arguments":[{"name":"id","type":"Long","description":"Document ID or 0"}],"description":"Empty constructor, document doesn't exist."},{"name":"document","id":512177195,"type":"Document","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"Long","description":"Document ID"},{"name":"accessHash","type":"Long","description":"Check sum, dependant on document ID"},{"name":"fileReference","type":"Buffer","description":"File reference"},{"name":"date","type":"number","description":"Creation date"},{"name":"mimeType","type":"string","description":"MIME type"},{"name":"size","type":"number","description":"Size"},{"name":"thumbs","type":"PhotoSize[]","optional":true,"predicate":"flags.0","description":"Thumbnails"},{"name":"videoThumbs","type":"VideoSize[]","optional":true,"predicate":"flags.1","description":"Video thumbnails"},{"name":"dcId","type":"number","description":"DC ID"},{"name":"attributes","type":"DocumentAttribute[]","description":"Attributes"}],"description":"Document"},{"name":"notifyPeer","id":2681474008,"type":"NotifyPeer","arguments":[{"name":"peer","type":"Peer","description":"user or group"}],"description":"Notifications generated by a certain user or group."},{"name":"notifyUsers","id":3033021260,"type":"NotifyPeer","arguments":[],"description":"Notifications generated by all users."},{"name":"notifyChats","id":3221737155,"type":"NotifyPeer","arguments":[],"description":"Notifications generated by all groups."},{"name":"notifyBroadcasts","id":3591563503,"type":"NotifyPeer","arguments":[],"description":"Channel notification settings"},{"name":"sendMessageTypingAction","id":381645902,"type":"SendMessageAction","arguments":[],"description":"User is typing."},{"name":"sendMessageCancelAction","id":4250847477,"type":"SendMessageAction","arguments":[],"description":"Invalidate all previous action updates. E.g. when user deletes entered text or aborts a video upload."},{"name":"sendMessageRecordVideoAction","id":2710034031,"type":"SendMessageAction","arguments":[],"description":"User is recording a video."},{"name":"sendMessageUploadVideoAction","id":3916839660,"type":"SendMessageAction","arguments":[{"name":"progress","type":"number","description":"Progress percentage"}],"description":"User is uploading a video."},{"name":"sendMessageRecordAudioAction","id":3576656887,"type":"SendMessageAction","arguments":[],"description":"User is recording a voice message."},{"name":"sendMessageUploadAudioAction","id":4082227115,"type":"SendMessageAction","arguments":[{"name":"progress","type":"number","description":"Progress percentage"}],"description":"User is uploading a voice message."},{"name":"sendMessageUploadPhotoAction","id":3520285222,"type":"SendMessageAction","arguments":[{"name":"progress","type":"number","description":"Progress percentage"}],"description":"User is uploading a photo."},{"name":"sendMessageUploadDocumentAction","id":2852968932,"type":"SendMessageAction","arguments":[{"name":"progress","type":"number","description":"Progress percentage"}],"description":"User is uploading a file."},{"name":"sendMessageGeoLocationAction","id":393186209,"type":"SendMessageAction","arguments":[],"description":"User is selecting a location to share."},{"name":"sendMessageChooseContactAction","id":1653390447,"type":"SendMessageAction","arguments":[],"description":"User is selecting a contact to share."},{"name":"sendMessageGamePlayAction","id":3714748232,"type":"SendMessageAction","arguments":[],"description":"User is playing a game"},{"name":"sendMessageRecordRoundAction","id":2297593788,"type":"SendMessageAction","arguments":[],"description":"User is recording a round video to share"},{"name":"sendMessageUploadRoundAction","id":608050278,"type":"SendMessageAction","arguments":[{"name":"progress","type":"number","description":"Progress percentage"}],"description":"User is uploading a round video"},{"name":"speakingInGroupCallAction","id":3643548293,"type":"SendMessageAction","arguments":[]},{"name":"sendMessageHistoryImportAction","id":3688534598,"type":"SendMessageAction","arguments":[{"name":"progress","type":"number"}]},{"name":"inputPrivacyKeyStatusTimestamp","id":1335282456,"type":"InputPrivacyKey","arguments":[],"description":"Whether we can see the exact last online timestamp of the user"},{"name":"inputPrivacyKeyChatInvite","id":3187344422,"type":"InputPrivacyKey","arguments":[],"description":"Whether the user can be invited to chats"},{"name":"inputPrivacyKeyPhoneCall","id":4206550111,"type":"InputPrivacyKey","arguments":[],"description":"Whether the user will accept phone calls"},{"name":"inputPrivacyKeyPhoneP2P","id":3684593874,"type":"InputPrivacyKey","arguments":[],"description":"Whether the user allows P2P communication during VoIP calls"},{"name":"inputPrivacyKeyForwards","id":2765966344,"type":"InputPrivacyKey","arguments":[],"description":"Whether messages forwarded from this user will be anonymous"},{"name":"inputPrivacyKeyProfilePhoto","id":1461304012,"type":"InputPrivacyKey","arguments":[],"description":"Whether people will be able to see the user's profile picture"},{"name":"inputPrivacyKeyPhoneNumber","id":55761658,"type":"InputPrivacyKey","arguments":[],"description":"Whether people will be able to see the user's phone number"},{"name":"inputPrivacyKeyAddedByPhone","id":3508640733,"type":"InputPrivacyKey","arguments":[],"description":"Whether people can add you to their contact list by your phone number"},{"name":"privacyKeyStatusTimestamp","id":3157175088,"type":"PrivacyKey","arguments":[],"description":"Whether we can see the last online timestamp"},{"name":"privacyKeyChatInvite","id":1343122938,"type":"PrivacyKey","arguments":[],"description":"Whether the user can be invited to chats"},{"name":"privacyKeyPhoneCall","id":1030105979,"type":"PrivacyKey","arguments":[],"description":"Whether the user accepts phone calls"},{"name":"privacyKeyPhoneP2P","id":961092808,"type":"PrivacyKey","arguments":[],"description":"Whether P2P connections in phone calls are allowed"},{"name":"privacyKeyForwards","id":1777096355,"type":"PrivacyKey","arguments":[],"description":"Whether messages forwarded from the user will be anonymously forwarded"},{"name":"privacyKeyProfilePhoto","id":2517966829,"type":"PrivacyKey","arguments":[],"description":"Whether the profile picture of the user is visible"},{"name":"privacyKeyPhoneNumber","id":3516589165,"type":"PrivacyKey","arguments":[],"description":"Whether the user allows us to see their phone number"},{"name":"privacyKeyAddedByPhone","id":1124062251,"type":"PrivacyKey","arguments":[],"description":"Whether people can add you to their contact list by your phone number"},{"name":"inputPrivacyValueAllowContacts","id":218751099,"type":"InputPrivacyRule","arguments":[],"description":"Allow only contacts"},{"name":"inputPrivacyValueAllowAll","id":407582158,"type":"InputPrivacyRule","arguments":[],"description":"Allow all users"},{"name":"inputPrivacyValueAllowUsers","id":320652927,"type":"InputPrivacyRule","arguments":[{"name":"users","type":"InputUser[]","description":"Allowed users"}],"description":"Allow only certain users"},{"name":"inputPrivacyValueDisallowContacts","id":195371015,"type":"InputPrivacyRule","arguments":[],"description":"Disallow only contacts"},{"name":"inputPrivacyValueDisallowAll","id":3597362889,"type":"InputPrivacyRule","arguments":[],"description":"Disallow all"},{"name":"inputPrivacyValueDisallowUsers","id":2417034343,"type":"InputPrivacyRule","arguments":[{"name":"users","type":"InputUser[]","description":"Users to disallow"}],"description":"Disallow only certain users"},{"name":"inputPrivacyValueAllowChatParticipants","id":1283572154,"type":"InputPrivacyRule","arguments":[{"name":"chats","type":"number[]","description":"Allowed chat IDs"}],"description":"Allow only participants of certain chats"},{"name":"inputPrivacyValueDisallowChatParticipants","id":3626197935,"type":"InputPrivacyRule","arguments":[{"name":"chats","type":"number[]","description":"Disallowed chat IDs"}],"description":"Disallow only participants of certain chats"},{"name":"privacyValueAllowContacts","id":4294843308,"type":"PrivacyRule","arguments":[],"description":"Allow all contacts"},{"name":"privacyValueAllowAll","id":1698855810,"type":"PrivacyRule","arguments":[],"description":"Allow all users"},{"name":"privacyValueAllowUsers","id":1297858060,"type":"PrivacyRule","arguments":[{"name":"users","type":"number[]","description":"Allowed users"}],"description":"Allow only certain users"},{"name":"privacyValueDisallowContacts","id":4169726490,"type":"PrivacyRule","arguments":[],"description":"Disallow only contacts"},{"name":"privacyValueDisallowAll","id":2339628899,"type":"PrivacyRule","arguments":[],"description":"Disallow all users"},{"name":"privacyValueDisallowUsers","id":209668535,"type":"PrivacyRule","arguments":[{"name":"users","type":"number[]","description":"Disallowed users"}],"description":"Disallow only certain users"},{"name":"privacyValueAllowChatParticipants","id":415136107,"type":"PrivacyRule","arguments":[{"name":"chats","type":"number[]","description":"Allowed chats"}],"description":"Allow all participants of certain chats"},{"name":"privacyValueDisallowChatParticipants","id":2897086096,"type":"PrivacyRule","arguments":[{"name":"chats","type":"number[]","description":"Disallowed chats"}],"description":"Disallow only participants of certain chats"},{"name":"accountDaysTTL","id":3100684255,"type":"AccountDaysTTL","arguments":[{"name":"days","type":"number","description":"This account will self-destruct in the specified number of days"}],"description":"Time to live in days of the current account"},{"name":"documentAttributeImageSize","id":1815593308,"type":"DocumentAttribute","arguments":[{"name":"w","type":"number","description":"Width of image"},{"name":"h","type":"number","description":"Height of image"}],"description":"Defines the width and height of an image uploaded as document"},{"name":"documentAttributeAnimated","id":297109817,"type":"DocumentAttribute","arguments":[],"description":"Defines an animated GIF"},{"name":"documentAttributeSticker","id":1662637586,"type":"DocumentAttribute","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"mask","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is a mask sticker"},{"name":"alt","type":"string","description":"Alternative emoji representation of sticker"},{"name":"stickerset","type":"InputStickerSet","description":"Associated stickerset"},{"name":"maskCoords","type":"MaskCoords","optional":true,"predicate":"flags.0","description":"Mask coordinates (if this is a mask sticker, attached to a photo)"}],"description":"Defines a sticker"},{"name":"documentAttributeVideo","id":250621158,"type":"DocumentAttribute","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"roundMessage","type":"true","optional":true,"predicate":"flags.0","description":"Whether this is a round video"},{"name":"supportsStreaming","type":"true","optional":true,"predicate":"flags.1","description":"Whether the video supports streaming"},{"name":"duration","type":"number","description":"Duration in seconds"},{"name":"w","type":"number","description":"Video width"},{"name":"h","type":"number","description":"Video height"}],"description":"Defines a video"},{"name":"documentAttributeAudio","id":2555574726,"type":"DocumentAttribute","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"voice","type":"true","optional":true,"predicate":"flags.10","description":"Whether this is a voice message"},{"name":"duration","type":"number","description":"Duration in seconds"},{"name":"title","type":"string","optional":true,"predicate":"flags.0","description":"Name of song"},{"name":"performer","type":"string","optional":true,"predicate":"flags.1","description":"Performer"},{"name":"waveform","type":"Buffer","optional":true,"predicate":"flags.2","description":"Waveform"}],"description":"Represents an audio file"},{"name":"documentAttributeFilename","id":358154344,"type":"DocumentAttribute","arguments":[{"name":"fileName","type":"string","description":"The file name"}],"description":"A simple document with a file name"},{"name":"documentAttributeHasStickers","id":2550256375,"type":"DocumentAttribute","arguments":[],"description":"Whether the current document has stickers attached"},{"name":"stickerPack","id":313694676,"type":"StickerPack","arguments":[{"name":"emoticon","type":"string","description":"Emoji"},{"name":"documents","type":"Long[]","description":"Stickers"}],"description":"A stickerpack is a group of stickers associated to the same emoji.
\nIt is not a sticker pack the way it is usually intended, you may be looking for a StickerSet."},{"name":"webPageEmpty","id":3943987176,"type":"WebPage","arguments":[{"name":"id","type":"Long","description":"Preview ID"}],"description":"No preview is available for the webpage"},{"name":"webPagePending","id":3313949212,"type":"WebPage","arguments":[{"name":"id","type":"Long","description":"ID of preview"},{"name":"date","type":"number","description":"When was the processing started"}],"description":"A preview of the webpage is currently being generated"},{"name":"webPage","id":3902555570,"type":"WebPage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"Long","description":"Preview ID"},{"name":"url","type":"string","description":"URL of previewed webpage"},{"name":"displayUrl","type":"string","description":"Webpage URL to be displayed to the user"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"type","type":"string","optional":true,"predicate":"flags.0","description":"Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else"},{"name":"siteName","type":"string","optional":true,"predicate":"flags.1","description":"Short name of the site (e.g., Google Docs, App Store)"},{"name":"title","type":"string","optional":true,"predicate":"flags.2","description":"Title of the content"},{"name":"description","type":"string","optional":true,"predicate":"flags.3","description":"Content description"},{"name":"photo","type":"Photo","optional":true,"predicate":"flags.4","description":"Image representing the content"},{"name":"embedUrl","type":"string","optional":true,"predicate":"flags.5","description":"URL to show in the embedded preview"},{"name":"embedType","type":"string","optional":true,"predicate":"flags.5","description":"MIME type of the embedded preview, (e.g., text/html or video/mp4)"},{"name":"embedWidth","type":"number","optional":true,"predicate":"flags.6","description":"Width of the embedded preview"},{"name":"embedHeight","type":"number","optional":true,"predicate":"flags.6","description":"Height of the embedded preview"},{"name":"duration","type":"number","optional":true,"predicate":"flags.7","description":"Duration of the content, in seconds"},{"name":"author","type":"string","optional":true,"predicate":"flags.8","description":"Author of the content"},{"name":"document","type":"Document","optional":true,"predicate":"flags.9","description":"Preview of the content as a media file"},{"name":"cachedPage","type":"Page","optional":true,"predicate":"flags.10","description":"Page contents in instant view format"},{"name":"attributes","type":"WebPageAttribute[]","optional":true,"predicate":"flags.12","description":"Webpage attributes"}],"description":"Webpage preview"},{"name":"webPageNotModified","id":1930545681,"type":"WebPage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"cachedPageViews","type":"number","optional":true,"predicate":"flags.0","description":"Page view count"}],"description":"The preview of the webpage hasn't changed"},{"name":"authorization","id":2902578717,"type":"Authorization","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"current","type":"true","optional":true,"predicate":"flags.0","description":"Whether this is the current session"},{"name":"officialApp","type":"true","optional":true,"predicate":"flags.1","description":"Whether the session is from an official app"},{"name":"passwordPending","type":"true","optional":true,"predicate":"flags.2","description":"Whether the session is still waiting for a 2FA password"},{"name":"hash","type":"Long","description":"Identifier"},{"name":"deviceModel","type":"string","description":"Device model"},{"name":"platform","type":"string","description":"Platform"},{"name":"systemVersion","type":"string","description":"System version"},{"name":"apiId","type":"number","description":"API ID"},{"name":"appName","type":"string","description":"App name"},{"name":"appVersion","type":"string","description":"App version"},{"name":"dateCreated","type":"number","description":"When was the session created"},{"name":"dateActive","type":"number","description":"When was the session last active"},{"name":"ip","type":"string","description":"Last known IP"},{"name":"country","type":"string","description":"Country determined from IP"},{"name":"region","type":"string","description":"Region determined from IP"}],"description":"Logged-in session"},{"name":"receivedNotifyMessage","id":2743383929,"type":"ReceivedNotifyMessage","arguments":[{"name":"id","type":"number","description":"Message ID, for which PUSH-notifications were canceled"},{"name":"flags","type":"number","description":"Reserved for future use"}],"description":"Message ID, for which PUSH-notifications were cancelled."},{"name":"chatInviteExported","id":1847917725,"type":"ExportedChatInvite","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"revoked","type":"true","optional":true,"predicate":"flags.0"},{"name":"permanent","type":"true","optional":true,"predicate":"flags.5"},{"name":"link","type":"string","description":"Chat invitation link"},{"name":"adminId","type":"number"},{"name":"date","type":"number"},{"name":"startDate","type":"number","optional":true,"predicate":"flags.4"},{"name":"expireDate","type":"number","optional":true,"predicate":"flags.1"},{"name":"usageLimit","type":"number","optional":true,"predicate":"flags.2"},{"name":"usage","type":"number","optional":true,"predicate":"flags.3"}],"description":"Exported chat invite"},{"name":"chatInviteAlready","id":1516793212,"type":"ChatInvite","arguments":[{"name":"chat","type":"Chat","description":"The chat connected to the invite"}],"description":"The user has already joined this chat"},{"name":"chatInvite","id":3754096014,"type":"ChatInvite","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"channel","type":"true","optional":true,"predicate":"flags.0","description":"Whether this is a channel/supergroup or a normal group"},{"name":"broadcast","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is a channel"},{"name":"public","type":"true","optional":true,"predicate":"flags.2","description":"Whether this is a public channel/supergroup"},{"name":"megagroup","type":"true","optional":true,"predicate":"flags.3","description":"Whether this is a supergroup"},{"name":"title","type":"string","description":"Chat/supergroup/channel title"},{"name":"photo","type":"Photo","description":"Chat/supergroup/channel photo"},{"name":"participantsCount","type":"number","description":"Participant count"},{"name":"participants","type":"User[]","optional":true,"predicate":"flags.4","description":"A few of the participants that are in the group"}],"description":"Chat invite info"},{"name":"chatInvitePeek","id":1634294960,"type":"ChatInvite","arguments":[{"name":"chat","type":"Chat","description":"Chat information"},{"name":"expires","type":"number","description":"Read-only anonymous access to this group will be revoked at this date"}],"description":"A chat invitation that also allows peeking into the group to read messages without joining it."},{"name":"inputStickerSetEmpty","id":4290128789,"type":"InputStickerSet","arguments":[],"description":"Empty constructor"},{"name":"inputStickerSetID","id":2649203305,"type":"InputStickerSet","arguments":[{"name":"id","type":"Long","description":"ID"},{"name":"accessHash","type":"Long","description":"Access hash"}],"description":"Stickerset by ID"},{"name":"inputStickerSetShortName","id":2250033312,"type":"InputStickerSet","arguments":[{"name":"shortName","type":"string","description":"From tg://addstickers?set=short_name"}],"description":"Stickerset by short name, from tg://addstickers?set=short_name"},{"name":"inputStickerSetAnimatedEmoji","id":42402760,"type":"InputStickerSet","arguments":[],"description":"Animated emojis stickerset"},{"name":"inputStickerSetDice","id":3867103758,"type":"InputStickerSet","arguments":[{"name":"emoticon","type":"string","description":"The emoji, for now \"🏀\", \"🎲\" and \"🎯\" are supported"}],"description":"Used for fetching animated dice stickers"},{"name":"stickerSet","id":3621724538,"type":"StickerSet","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"archived","type":"true","optional":true,"predicate":"flags.1","description":"Whether this stickerset was archived (due to too many saved stickers in the current account)"},{"name":"official","type":"true","optional":true,"predicate":"flags.2","description":"Is this stickerset official"},{"name":"masks","type":"true","optional":true,"predicate":"flags.3","description":"Is this a mask stickerset"},{"name":"animated","type":"true","optional":true,"predicate":"flags.5","description":"Is this an animated stickerpack"},{"name":"installedDate","type":"number","optional":true,"predicate":"flags.0","description":"When was this stickerset installed"},{"name":"id","type":"Long","description":"ID of the stickerset"},{"name":"accessHash","type":"Long","description":"Access hash of stickerset"},{"name":"title","type":"string","description":"Title of stickerset"},{"name":"shortName","type":"string","description":"Short name of stickerset to use in tg://addstickers?set=short_name"},{"name":"thumbs","type":"PhotoSize[]","optional":true,"predicate":"flags.4"},{"name":"thumbDcId","type":"number","optional":true,"predicate":"flags.4","description":"DC ID of thumbnail"},{"name":"thumbVersion","type":"number","optional":true,"predicate":"flags.4"},{"name":"count","type":"number","description":"Number of stickers in pack"},{"name":"hash","type":"number","description":"Hash"}],"description":"Represents a stickerset (stickerpack)"},{"name":"botCommand","id":3262826695,"type":"BotCommand","arguments":[{"name":"command","type":"string","description":"/command name"},{"name":"description","type":"string","description":"Description of the command"}],"description":"Describes a bot command that can be used in a chat"},{"name":"botInfo","id":2565348666,"type":"BotInfo","arguments":[{"name":"userId","type":"number","description":"ID of the bot"},{"name":"description","type":"string","description":"Description of the bot"},{"name":"commands","type":"BotCommand[]","description":"Bot commands that can be used in the chat"}],"description":"Info about bots (available bot commands, etc)"},{"name":"keyboardButton","id":2734311552,"type":"KeyboardButton","arguments":[{"name":"text","type":"string","description":"Button text"}],"description":"Bot keyboard button"},{"name":"keyboardButtonUrl","id":629866245,"type":"KeyboardButton","arguments":[{"name":"text","type":"string","description":"Button label"},{"name":"url","type":"string","description":"URL"}],"description":"URL button"},{"name":"keyboardButtonCallback","id":901503851,"type":"KeyboardButton","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"requiresPassword","type":"true","optional":true,"predicate":"flags.0","description":"Whether the user should verify their identity by entering their 2FA SRP parameters to the {@link messages.getBotCallbackAnswer} method. NOTE: telegram and the bot WILL NOT have access to the plaintext password, thanks to SRP. This button is mainly used by the official @botfather bot, for verifying the user's identity before transferring ownership of a bot to another user."},{"name":"text","type":"string","description":"Button text"},{"name":"data","type":"Buffer","description":"Callback data"}],"description":"Callback button"},{"name":"keyboardButtonRequestPhone","id":2976541737,"type":"KeyboardButton","arguments":[{"name":"text","type":"string","description":"Button text"}],"description":"Button to request a user's phone number"},{"name":"keyboardButtonRequestGeoLocation","id":4235815743,"type":"KeyboardButton","arguments":[{"name":"text","type":"string","description":"Button text"}],"description":"Button to request a user's geolocation"},{"name":"keyboardButtonSwitchInline","id":90744648,"type":"KeyboardButton","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"samePeer","type":"true","optional":true,"predicate":"flags.0","description":"If set, pressing the button will insert the bot‘s username and the specified inline query in the current chat's input field."},{"name":"text","type":"string","description":"Button label"},{"name":"query","type":"string","description":"The inline query to use"}],"description":"Button to force a user to switch to inline mode Pressing the button will prompt the user to select one of their chats, open that chat and insert the bot‘s username and the specified inline query in the input field."},{"name":"keyboardButtonGame","id":1358175439,"type":"KeyboardButton","arguments":[{"name":"text","type":"string","description":"Button text"}],"description":"Button to start a game"},{"name":"keyboardButtonBuy","id":2950250427,"type":"KeyboardButton","arguments":[{"name":"text","type":"string","description":"Button text"}],"description":"Button to buy a product"},{"name":"keyboardButtonUrlAuth","id":280464681,"type":"KeyboardButton","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"text","type":"string","description":"Button label"},{"name":"fwdText","type":"string","optional":true,"predicate":"flags.0","description":"New text of the button in forwarded messages."},{"name":"url","type":"string","description":"An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.

NOTE: Services must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization."},{"name":"buttonId","type":"number","description":"ID of the button to pass to {@link messages.requestUrlAuth}"}],"description":"Button to request a user to authorize via URL using Seamless Telegram Login. When the user clicks on such a button, {@link messages.requestUrlAuth} should be called, providing the button_id and the ID of the container message. The returned {@link urlAuthResultRequest} object will contain more details about the authorization request (request_write_access if the bot would like to send messages to the user along with the username of the bot which will be used for user authorization). Finally, the user can choose to call {@link messages.acceptUrlAuth} to get a {@link urlAuthResultAccepted} with the URL to open instead of the url of this constructor, or a {@link urlAuthResultDefault}, in which case the url of this constructor must be opened, instead. If the user refuses the authorization request but still wants to open the link, the url of this constructor must be used."},{"name":"inputKeyboardButtonUrlAuth","id":3492708308,"type":"KeyboardButton","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"requestWriteAccess","type":"true","optional":true,"predicate":"flags.0","description":"Set this flag to request the permission for your bot to send messages to the user."},{"name":"text","type":"string","description":"Button text"},{"name":"fwdText","type":"string","optional":true,"predicate":"flags.1","description":"New text of the button in forwarded messages."},{"name":"url","type":"string","description":"An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.
NOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization."},{"name":"bot","type":"InputUser","description":"Username of a bot, which will be used for user authorization. See Setting up a bot for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details."}],"description":"Button to request a user to {@link messages.acceptUrlAuth} via URL using Seamless Telegram Login."},{"name":"keyboardButtonRequestPoll","id":3150401885,"type":"KeyboardButton","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"quiz","type":"boolean","optional":true,"predicate":"flags.0","description":"If set, only quiz polls can be sent"},{"name":"text","type":"string","description":"Button text"}],"description":"A button that allows the user to create and send a poll when pressed; available only in private"},{"name":"keyboardButtonRow","id":2002815875,"type":"KeyboardButtonRow","arguments":[{"name":"buttons","type":"KeyboardButton[]","description":"Bot or inline keyboard buttons"}],"description":"Inline keyboard row"},{"name":"replyKeyboardHide","id":2688441221,"type":"ReplyMarkup","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"selective","type":"true","optional":true,"predicate":"flags.2","description":"Use this flag if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.

Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet"}],"description":"Hide sent bot keyboard"},{"name":"replyKeyboardForceReply","id":2259946248,"type":"ReplyMarkup","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"singleUse","type":"true","optional":true,"predicate":"flags.1","description":"Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again."},{"name":"selective","type":"true","optional":true,"predicate":"flags.2","description":"Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.
Example: A user requests to change the bot‘s language, bot replies to the request with a keyboard to select the new language. Other users in the group don’t see the keyboard."},{"name":"placeholder","type":"string","optional":true,"predicate":"flags.3"}],"description":"Force the user to send a reply"},{"name":"replyKeyboardMarkup","id":2245892561,"type":"ReplyMarkup","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"resize","type":"true","optional":true,"predicate":"flags.0","description":"Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). If not set, the custom keyboard is always of the same height as the app's standard keyboard."},{"name":"singleUse","type":"true","optional":true,"predicate":"flags.1","description":"Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat – the user can press a special button in the input field to see the custom keyboard again."},{"name":"selective","type":"true","optional":true,"predicate":"flags.2","description":"Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.

Example: A user requests to change the bot‘s language, bot replies to the request with a keyboard to select the new language. Other users in the group don’t see the keyboard."},{"name":"rows","type":"KeyboardButtonRow[]","description":"Button row"},{"name":"placeholder","type":"string","optional":true,"predicate":"flags.3"}],"description":"Bot keyboard"},{"name":"replyInlineMarkup","id":1218642516,"type":"ReplyMarkup","arguments":[{"name":"rows","type":"KeyboardButtonRow[]","description":"Bot or inline keyboard rows"}],"description":"Bot or inline keyboard"},{"name":"messageEntityUnknown","id":3146955413,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Unknown message entity"},{"name":"messageEntityMention","id":4194588573,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity mentioning the current user"},{"name":"messageEntityHashtag","id":1868782349,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"#hashtag message entity"},{"name":"messageEntityBotCommand","id":1827637959,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing a bot /command"},{"name":"messageEntityUrl","id":1859134776,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing an in-text url: https://google.com; for text urls, use {@link messageEntityTextUrl}."},{"name":"messageEntityEmail","id":1692693954,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing an email@example.com."},{"name":"messageEntityBold","id":3177253833,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing bold text."},{"name":"messageEntityItalic","id":2188348256,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing italic text."},{"name":"messageEntityCode","id":681706865,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing a codeblock."},{"name":"messageEntityPre","id":1938967520,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"},{"name":"language","type":"string","description":"Programming language of the code"}],"description":"Message entity representing a preformatted codeblock, allowing the user to specify a programming language for the codeblock."},{"name":"messageEntityTextUrl","id":1990644519,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"},{"name":"url","type":"string","description":"The actual URL"}],"description":"Message entity representing a text url: for in-text urls like https://google.com use {@link messageEntityUrl}."},{"name":"messageEntityMentionName","id":892193368,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"},{"name":"userId","type":"number","description":"Identifier of the user that was mentioned"}],"description":"Message entity representing a user mention: for creating a mention use {@link inputMessageEntityMentionName}."},{"name":"inputMessageEntityMentionName","id":546203849,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"},{"name":"userId","type":"InputUser","description":"Identifier of the user that was mentioned"}],"description":"Message entity that can be used to create a user user mention: received mentions use the {@link messageEntityMentionName} constructor, instead."},{"name":"messageEntityPhone","id":2607407947,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing a phone number."},{"name":"messageEntityCashtag","id":1280209983,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing a $cashtag."},{"name":"messageEntityUnderline","id":2622389899,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing underlined text."},{"name":"messageEntityStrike","id":3204879316,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing strikethrough text."},{"name":"messageEntityBlockquote","id":34469328,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Message entity representing a block quote."},{"name":"messageEntityBankCard","id":1981704948,"type":"MessageEntity","arguments":[{"name":"offset","type":"number","description":"Offset of message entity within message (in UTF-8 codepoints)"},{"name":"length","type":"number","description":"Length of message entity within message (in UTF-8 codepoints)"}],"description":"Indicates a credit card number"},{"name":"inputChannelEmpty","id":4002160262,"type":"InputChannel","arguments":[],"description":"Represents the absence of a channel"},{"name":"inputChannel","id":2951442734,"type":"InputChannel","arguments":[{"name":"channelId","type":"number","description":"Channel ID"},{"name":"accessHash","type":"Long","description":"Access hash taken from the {@link channel} constructor"}],"description":"Represents a channel"},{"name":"inputChannelFromMessage","id":707290417,"type":"InputChannel","arguments":[{"name":"peer","type":"InputPeer","description":"The chat where the channel was seen"},{"name":"msgId","type":"number","description":"The message ID in the chat where the channel was seen"},{"name":"channelId","type":"number","description":"The channel ID"}],"description":"Defines a min channel that was seen in a certain message of a certain chat."},{"name":"messageRange","id":182649427,"type":"MessageRange","arguments":[{"name":"minId","type":"number","description":"Start of range (message ID)"},{"name":"maxId","type":"number","description":"End of range (message ID)"}],"description":"Indicates a range of chat messages"},{"name":"channelMessagesFilterEmpty","id":2496933607,"type":"ChannelMessagesFilter","arguments":[],"description":"No filter"},{"name":"channelMessagesFilter","id":3447183703,"type":"ChannelMessagesFilter","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"excludeNewMessages","type":"true","optional":true,"predicate":"flags.1","description":"Whether to exclude new messages from the search"},{"name":"ranges","type":"MessageRange[]","description":"A range of messages to fetch"}],"description":"Filter for getting only certain types of channel messages"},{"name":"channelParticipant","id":367766557,"type":"ChannelParticipant","arguments":[{"name":"userId","type":"number","description":"Pariticipant user ID"},{"name":"date","type":"number","description":"Date joined"}],"description":"Channel/supergroup participant"},{"name":"channelParticipantSelf","id":2737347181,"type":"ChannelParticipant","arguments":[{"name":"userId","type":"number","description":"User ID"},{"name":"inviterId","type":"number","description":"User that invited me to the channel/supergroup"},{"name":"date","type":"number","description":"When did I join the channel/supergroup"}],"description":"Myself"},{"name":"channelParticipantCreator","id":1149094475,"type":"ChannelParticipant","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"userId","type":"number","description":"User ID"},{"name":"adminRights","type":"ChatAdminRights","description":"Creator admin rights"},{"name":"rank","type":"string","optional":true,"predicate":"flags.0","description":"The role (rank) of the group creator in the group: just an arbitrary string, admin by default"}],"description":"Channel/supergroup creator"},{"name":"channelParticipantAdmin","id":3435051951,"type":"ChannelParticipant","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"canEdit","type":"true","optional":true,"predicate":"flags.0","description":"Can this admin promote other admins with the same permissions?"},{"name":"self","type":"true","optional":true,"predicate":"flags.1","description":"Is this the current user"},{"name":"userId","type":"number","description":"Admin user ID"},{"name":"inviterId","type":"number","optional":true,"predicate":"flags.1","description":"User that invited the admin to the channel/group"},{"name":"promotedBy","type":"number","description":"User that promoted the user to admin"},{"name":"date","type":"number","description":"When did the user join"},{"name":"adminRights","type":"ChatAdminRights","description":"Admin rights"},{"name":"rank","type":"string","optional":true,"predicate":"flags.2","description":"The role (rank) of the admin in the group: just an arbitrary string, admin by default"}],"description":"Admin"},{"name":"channelParticipantBanned","id":1352785878,"type":"ChannelParticipant","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"left","type":"true","optional":true,"predicate":"flags.0","description":"Whether the user has left the group"},{"name":"peer","type":"Peer"},{"name":"kickedBy","type":"number","description":"User was kicked by the specified admin"},{"name":"date","type":"number","description":"When did the user join the group"},{"name":"bannedRights","type":"ChatBannedRights","description":"Banned rights"}],"description":"Banned/kicked user"},{"name":"channelParticipantLeft","id":453242886,"type":"ChannelParticipant","arguments":[{"name":"peer","type":"Peer"}],"description":"A participant that left the channel/supergroup"},{"name":"channelParticipantsRecent","id":3728686201,"type":"ChannelParticipantsFilter","arguments":[],"description":"Fetch only recent participants"},{"name":"channelParticipantsAdmins","id":3026225513,"type":"ChannelParticipantsFilter","arguments":[],"description":"Fetch only admin participants"},{"name":"channelParticipantsKicked","id":2746567045,"type":"ChannelParticipantsFilter","arguments":[{"name":"q","type":"string","description":"Optional filter for searching kicked participants by name (otherwise empty)"}],"description":"Fetch only kicked participants"},{"name":"channelParticipantsBots","id":2966521435,"type":"ChannelParticipantsFilter","arguments":[],"description":"Fetch only bot participants"},{"name":"channelParticipantsBanned","id":338142689,"type":"ChannelParticipantsFilter","arguments":[{"name":"q","type":"string","description":"Optional filter for searching banned participants by name (otherwise empty)"}],"description":"Fetch only banned participants"},{"name":"channelParticipantsSearch","id":106343499,"type":"ChannelParticipantsFilter","arguments":[{"name":"q","type":"string","description":"Search query"}],"description":"Query participants by name"},{"name":"channelParticipantsContacts","id":3144345741,"type":"ChannelParticipantsFilter","arguments":[{"name":"q","type":"string","description":"Optional search query for searching contact participants by name"}],"description":"Fetch only participants that are also contacts"},{"name":"channelParticipantsMentions","id":3763035371,"type":"ChannelParticipantsFilter","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"q","type":"string","optional":true,"predicate":"flags.0","description":"Filter by user name or username"},{"name":"topMsgId","type":"number","optional":true,"predicate":"flags.1","description":"Look only for users that posted in this thread"}],"description":"This filter is used when looking for supergroup members to mention.
\nThis filter will automatically remove anonymous admins, and return even non-participant users that replied to a specific thread through the comment section of a channel."},{"name":"inputBotInlineMessageMediaAuto","id":864077702,"type":"InputBotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"message","type":"string","description":"Caption"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.1","description":"Message entities for styled text"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"A media"},{"name":"inputBotInlineMessageText","id":1036876423,"type":"InputBotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noWebpage","type":"true","optional":true,"predicate":"flags.0","description":"Disable webpage preview"},{"name":"message","type":"string","description":"Message"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.1","description":"Message entities for styled text"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"Simple text message"},{"name":"inputBotInlineMessageMediaGeo","id":2526190213,"type":"InputBotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"geoPoint","type":"InputGeoPoint","description":"Geolocation"},{"name":"heading","type":"number","optional":true,"predicate":"flags.0","description":"For live locations, a direction in which the location moves, in degrees; 1-360"},{"name":"period","type":"number","optional":true,"predicate":"flags.1","description":"Validity period"},{"name":"proximityNotificationRadius","type":"number","optional":true,"predicate":"flags.3","description":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Reply markup for bot/inline keyboards"}],"description":"Geolocation"},{"name":"inputBotInlineMessageMediaVenue","id":1098628881,"type":"InputBotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"geoPoint","type":"InputGeoPoint","description":"Geolocation"},{"name":"title","type":"string","description":"Venue name"},{"name":"address","type":"string","description":"Address"},{"name":"provider","type":"string","description":"Venue provider: currently only \"foursquare\" and \"gplaces\" need to be supported"},{"name":"venueId","type":"string","description":"Venue ID in the provider's database"},{"name":"venueType","type":"string","description":"Venue type in the provider's database"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"Venue"},{"name":"inputBotInlineMessageMediaContact","id":2800599037,"type":"InputBotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"phoneNumber","type":"string","description":"Phone number"},{"name":"firstName","type":"string","description":"First name"},{"name":"lastName","type":"string","description":"Last name"},{"name":"vcard","type":"string","description":"VCard info"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"A contact"},{"name":"inputBotInlineMessageGame","id":1262639204,"type":"InputBotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"A game"},{"name":"inputBotInlineMessageMediaInvoice","id":3622273573,"type":"InputBotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"InputWebDocument","optional":true,"predicate":"flags.0"},{"name":"invoice","type":"Invoice"},{"name":"payload","type":"Buffer"},{"name":"provider","type":"string"},{"name":"providerData","type":"DataJSON"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2"}]},{"name":"inputBotInlineResult","id":2294256409,"type":"InputBotInlineResult","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"string","description":"ID of result"},{"name":"type","type":"string","description":"Result type (see bot API docs)"},{"name":"title","type":"string","optional":true,"predicate":"flags.1","description":"Result title"},{"name":"description","type":"string","optional":true,"predicate":"flags.2","description":"Result description"},{"name":"url","type":"string","optional":true,"predicate":"flags.3","description":"URL of result"},{"name":"thumb","type":"InputWebDocument","optional":true,"predicate":"flags.4","description":"Thumbnail for result"},{"name":"content","type":"InputWebDocument","optional":true,"predicate":"flags.5","description":"Result contents"},{"name":"sendMessage","type":"InputBotInlineMessage","description":"Message to send when the result is selected"}],"description":"An inline bot result"},{"name":"inputBotInlineResultPhoto","id":2832753831,"type":"InputBotInlineResult","arguments":[{"name":"id","type":"string","description":"Result ID"},{"name":"type","type":"string","description":"Result type (see bot API docs)"},{"name":"photo","type":"InputPhoto","description":"Photo to send"},{"name":"sendMessage","type":"InputBotInlineMessage","description":"Message to send when the result is selected"}],"description":"Photo"},{"name":"inputBotInlineResultDocument","id":4294507972,"type":"InputBotInlineResult","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"string","description":"Result ID"},{"name":"type","type":"string","description":"Result type (see bot API docs)"},{"name":"title","type":"string","optional":true,"predicate":"flags.1","description":"Result title"},{"name":"description","type":"string","optional":true,"predicate":"flags.2","description":"Result description"},{"name":"document","type":"InputDocument","description":"Document to send"},{"name":"sendMessage","type":"InputBotInlineMessage","description":"Message to send when the result is selected"}],"description":"Document (media of any type except for photos)"},{"name":"inputBotInlineResultGame","id":1336154098,"type":"InputBotInlineResult","arguments":[{"name":"id","type":"string","description":"Result ID"},{"name":"shortName","type":"string","description":"Game short name"},{"name":"sendMessage","type":"InputBotInlineMessage","description":"Message to send when the result is selected"}],"description":"Game"},{"name":"botInlineMessageMediaAuto","id":1984755728,"type":"BotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"message","type":"string","description":"Caption"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.1","description":"Message entities for styled text"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"Send whatever media is attached to the {@link botInlineMediaResult}"},{"name":"botInlineMessageText","id":2357159394,"type":"BotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noWebpage","type":"true","optional":true,"predicate":"flags.0","description":"Disable webpage preview"},{"name":"message","type":"string","description":"The message"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.1","description":"Message entities for styled text"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"Send a simple text message"},{"name":"botInlineMessageMediaGeo","id":85477117,"type":"BotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"geo","type":"GeoPoint","description":"Geolocation"},{"name":"heading","type":"number","optional":true,"predicate":"flags.0","description":"For live locations, a direction in which the location moves, in degrees; 1-360."},{"name":"period","type":"number","optional":true,"predicate":"flags.1","description":"Validity period"},{"name":"proximityNotificationRadius","type":"number","optional":true,"predicate":"flags.3","description":"For live locations, a maximum distance to another chat member for proximity alerts, in meters (0-100000)."},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"Send a geolocation"},{"name":"botInlineMessageMediaVenue","id":2324063644,"type":"BotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"geo","type":"GeoPoint","description":"Geolocation of venue"},{"name":"title","type":"string","description":"Venue name"},{"name":"address","type":"string","description":"Address"},{"name":"provider","type":"string","description":"Venue provider: currently only \"foursquare\" and \"gplaces\" need to be supported"},{"name":"venueId","type":"string","description":"Venue ID in the provider's database"},{"name":"venueType","type":"string","description":"Venue type in the provider's database"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"Send a venue"},{"name":"botInlineMessageMediaContact","id":416402882,"type":"BotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"phoneNumber","type":"string","description":"Phone number"},{"name":"firstName","type":"string","description":"First name"},{"name":"lastName","type":"string","description":"Last name"},{"name":"vcard","type":"string","description":"VCard info"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Inline keyboard"}],"description":"Send a contact"},{"name":"botInlineMessageMediaInvoice","id":894081801,"type":"BotInlineMessage","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"shippingAddressRequested","type":"true","optional":true,"predicate":"flags.1"},{"name":"test","type":"true","optional":true,"predicate":"flags.3"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"WebDocument","optional":true,"predicate":"flags.0"},{"name":"currency","type":"string"},{"name":"totalAmount","type":"Long"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2"}]},{"name":"botInlineResult","id":295067450,"type":"BotInlineResult","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"string","description":"Result ID"},{"name":"type","type":"string","description":"Result type (see bot API docs)"},{"name":"title","type":"string","optional":true,"predicate":"flags.1","description":"Result title"},{"name":"description","type":"string","optional":true,"predicate":"flags.2","description":"Result description"},{"name":"url","type":"string","optional":true,"predicate":"flags.3","description":"URL of article or webpage"},{"name":"thumb","type":"WebDocument","optional":true,"predicate":"flags.4","description":"Thumbnail for the result"},{"name":"content","type":"WebDocument","optional":true,"predicate":"flags.5","description":"Content of the result"},{"name":"sendMessage","type":"BotInlineMessage","description":"Message to send"}],"description":"Generic result"},{"name":"botInlineMediaResult","id":400266251,"type":"BotInlineResult","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"string","description":"Result ID"},{"name":"type","type":"string","description":"Result type (see bot API docs)"},{"name":"photo","type":"Photo","optional":true,"predicate":"flags.0","description":"If type is photo, the photo to send"},{"name":"document","type":"Document","optional":true,"predicate":"flags.1","description":"If type is document, the document to send"},{"name":"title","type":"string","optional":true,"predicate":"flags.2","description":"Result title"},{"name":"description","type":"string","optional":true,"predicate":"flags.3","description":"Description"},{"name":"sendMessage","type":"BotInlineMessage","description":"Depending on the type and on the constructor, contains the caption of the media or the content of the message to be sent instead of the media"}],"description":"Media result"},{"name":"exportedMessageLink","id":1571494644,"type":"ExportedMessageLink","arguments":[{"name":"link","type":"string","description":"URL"},{"name":"html","type":"string","description":"Embed code"}],"description":"Link to a message in a supergroup/channel"},{"name":"messageFwdHeader","id":1601666510,"type":"MessageFwdHeader","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"imported","type":"true","optional":true,"predicate":"flags.7"},{"name":"fromId","type":"Peer","optional":true,"predicate":"flags.0","description":"The ID of the user that originally sent the message"},{"name":"fromName","type":"string","optional":true,"predicate":"flags.5","description":"The name of the user that originally sent the message"},{"name":"date","type":"number","description":"When was the message originally sent"},{"name":"channelPost","type":"number","optional":true,"predicate":"flags.2","description":"ID of the channel message that was forwarded"},{"name":"postAuthor","type":"string","optional":true,"predicate":"flags.3","description":"For channels and if signatures are enabled, author of the channel message"},{"name":"savedFromPeer","type":"Peer","optional":true,"predicate":"flags.4","description":"Only for messages forwarded to the current user (inputPeerSelf), full info about the user/channel that originally sent the message"},{"name":"savedFromMsgId","type":"number","optional":true,"predicate":"flags.4","description":"Only for messages forwarded to the current user (inputPeerSelf), ID of the message that was forwarded from the original user/channel"},{"name":"psaType","type":"string","optional":true,"predicate":"flags.6","description":"PSA type"}],"description":"Info about a forwarded message"},{"name":"inputBotInlineMessageID","id":2299280777,"type":"InputBotInlineMessageID","arguments":[{"name":"dcId","type":"number","description":"DC ID to use when working with this inline message"},{"name":"id","type":"Long","description":"ID of message"},{"name":"accessHash","type":"Long","description":"Access hash of message"}],"description":"Represents a sent inline message from the perspective of a bot"},{"name":"inlineBotSwitchPM","id":1008755359,"type":"InlineBotSwitchPM","arguments":[{"name":"text","type":"string","description":"Text for the button that switches the user to a private chat with the bot and sends the bot a start message with the parameter start_parameter (can be empty)"},{"name":"startParam","type":"string","description":"The parameter for the /start parameter"}],"description":"The bot requested the user to message them in private"},{"name":"topPeer","id":3989684315,"type":"TopPeer","arguments":[{"name":"peer","type":"Peer","description":"Peer"},{"name":"rating","type":"Double","description":"Rating as computed in top peer rating »"}],"description":"Top peer"},{"name":"topPeerCategoryBotsPM","id":2875595611,"type":"TopPeerCategory","arguments":[],"description":"Most used bots"},{"name":"topPeerCategoryBotsInline","id":344356834,"type":"TopPeerCategory","arguments":[],"description":"Most used inline bots"},{"name":"topPeerCategoryCorrespondents","id":104314861,"type":"TopPeerCategory","arguments":[],"description":"Users we've chatted most frequently with"},{"name":"topPeerCategoryGroups","id":3172442442,"type":"TopPeerCategory","arguments":[],"description":"Often-opened groups and supergroups"},{"name":"topPeerCategoryChannels","id":371037736,"type":"TopPeerCategory","arguments":[],"description":"Most frequently visited channels"},{"name":"topPeerCategoryPhoneCalls","id":511092620,"type":"TopPeerCategory","arguments":[],"description":"Most frequently called users"},{"name":"topPeerCategoryForwardUsers","id":2822794409,"type":"TopPeerCategory","arguments":[],"description":"Users to which the users often forwards messages to"},{"name":"topPeerCategoryForwardChats","id":4226728176,"type":"TopPeerCategory","arguments":[],"description":"Chats to which the users often forwards messages to"},{"name":"topPeerCategoryPeers","id":4219683473,"type":"TopPeerCategoryPeers","arguments":[{"name":"category","type":"TopPeerCategory","description":"Top peer category of peers"},{"name":"count","type":"number","description":"Count of peers"},{"name":"peers","type":"TopPeer[]","description":"Peers"}],"description":"Top peer category"},{"name":"draftMessageEmpty","id":453805082,"type":"DraftMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"date","type":"number","optional":true,"predicate":"flags.0","description":"When was the draft last updated"}],"description":"Empty draft"},{"name":"draftMessage","id":4253970719,"type":"DraftMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noWebpage","type":"true","optional":true,"predicate":"flags.1","description":"Whether no webpage preview will be generated"},{"name":"replyToMsgId","type":"number","optional":true,"predicate":"flags.0","description":"The message this message will reply to"},{"name":"message","type":"string","description":"The draft"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.3","description":"Message entities for styled text."},{"name":"date","type":"number","description":"Date of last update of the draft."}],"description":"Represents a message draft."},{"name":"stickerSetCovered","id":1678812626,"type":"StickerSetCovered","arguments":[{"name":"set","type":"StickerSet","description":"Stickerset"},{"name":"cover","type":"Document","description":"Preview"}],"description":"Stickerset, with a specific sticker as preview"},{"name":"stickerSetMultiCovered","id":872932635,"type":"StickerSetCovered","arguments":[{"name":"set","type":"StickerSet","description":"Stickerset"},{"name":"covers","type":"Document[]","description":"Preview stickers"}],"description":"Stickerset, with a specific stickers as preview"},{"name":"maskCoords","id":2933316530,"type":"MaskCoords","arguments":[{"name":"n","type":"number","description":"Part of the face, relative to which the mask should be placed"},{"name":"x","type":"Double","description":"Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position)"},{"name":"y","type":"Double","description":"Shift by Y-axis measured in widths of the mask scaled to the face size, from left to right. (For example, -1.0 will place the mask just to the left of the default mask position)"},{"name":"zoom","type":"Double","description":"Mask scaling coefficient. (For example, 2.0 means a doubled size)"}],"description":"Position on a photo where a mask should be placed"},{"name":"inputStickeredMediaPhoto","id":1251549527,"type":"InputStickeredMedia","arguments":[{"name":"id","type":"InputPhoto","description":"The photo"}],"description":"A photo with stickers attached"},{"name":"inputStickeredMediaDocument","id":70813275,"type":"InputStickeredMedia","arguments":[{"name":"id","type":"InputDocument","description":"The document"}],"description":"A document with stickers attached"},{"name":"game","id":3187238203,"type":"Game","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"Long","description":"ID of the game"},{"name":"accessHash","type":"Long","description":"Access hash of the game"},{"name":"shortName","type":"string","description":"Short name for the game"},{"name":"title","type":"string","description":"Title of the game"},{"name":"description","type":"string","description":"Game description"},{"name":"photo","type":"Photo","description":"Game preview"},{"name":"document","type":"Document","optional":true,"predicate":"flags.0","description":"Optional attached document"}],"description":"Indicates an already sent game"},{"name":"inputGameID","id":53231223,"type":"InputGame","arguments":[{"name":"id","type":"Long","description":"game ID from Game constructor"},{"name":"accessHash","type":"Long","description":"access hash from Game constructor"}],"description":"Indicates an already sent game"},{"name":"inputGameShortName","id":3274827786,"type":"InputGame","arguments":[{"name":"botId","type":"InputUser","description":"The bot that provides the game"},{"name":"shortName","type":"string","description":"The game's short name"}],"description":"Game by short name"},{"name":"highScore","id":1493171408,"type":"HighScore","arguments":[{"name":"pos","type":"number","description":"Position in highscore list"},{"name":"userId","type":"number","description":"User ID"},{"name":"score","type":"number","description":"Score"}],"description":"Game highscore"},{"name":"textEmpty","id":3695018575,"type":"RichText","arguments":[],"description":"Empty rich text element"},{"name":"textPlain","id":1950782688,"type":"RichText","arguments":[{"name":"text","type":"string","description":"Text"}],"description":"Plain text"},{"name":"textBold","id":1730456516,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Bold text"},{"name":"textItalic","id":3641877916,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Italic text"},{"name":"textUnderline","id":3240501956,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Underlined text"},{"name":"textStrike","id":2616769429,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Strikethrough text"},{"name":"textFixed","id":1816074681,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"fixed-width rich text"},{"name":"textUrl","id":1009288385,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text of link"},{"name":"url","type":"string","description":"Webpage HTTP URL"},{"name":"webpageId","type":"Long","description":"If a preview was already generated for the page, the page ID"}],"description":"Link"},{"name":"textEmail","id":3730443734,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Link text"},{"name":"email","type":"string","description":"Email address"}],"description":"Rich text email link"},{"name":"textConcat","id":2120376535,"type":"RichText","arguments":[{"name":"texts","type":"RichText[]","description":"Concatenated rich texts"}],"description":"Concatenation of rich texts"},{"name":"textSubscript","id":3983181060,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Subscript text"},{"name":"textSuperscript","id":3355139585,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Superscript text"},{"name":"textMarked","id":55281185,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Highlighted text"},{"name":"textPhone","id":483104362,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"},{"name":"phone","type":"string","description":"Phone number"}],"description":"Rich text linked to a phone number"},{"name":"textImage","id":136105807,"type":"RichText","arguments":[{"name":"documentId","type":"Long","description":"Document ID"},{"name":"w","type":"number","description":"Width"},{"name":"h","type":"number","description":"Height"}],"description":"Inline image"},{"name":"textAnchor","id":894777186,"type":"RichText","arguments":[{"name":"text","type":"RichText","description":"Text"},{"name":"name","type":"string","description":"Section name"}],"description":"Text linking to another section of the page"},{"name":"pageBlockUnsupported","id":324435594,"type":"PageBlock","arguments":[],"description":"Unsupported IV element"},{"name":"pageBlockTitle","id":1890305021,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Title"}],"description":"Title"},{"name":"pageBlockSubtitle","id":2415565343,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"Subtitle"},{"name":"pageBlockAuthorDate","id":3132089824,"type":"PageBlock","arguments":[{"name":"author","type":"RichText","description":"Author name"},{"name":"publishedDate","type":"number","description":"Date of pubblication"}],"description":"Author and date of creation of article"},{"name":"pageBlockHeader","id":3218105580,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Contents"}],"description":"Page header"},{"name":"pageBlockSubheader","id":4046173921,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Subheader"}],"description":"Subheader"},{"name":"pageBlockParagraph","id":1182402406,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"A paragraph"},{"name":"pageBlockPreformatted","id":3228621118,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Text"},{"name":"language","type":"string","description":"Programming language of preformatted text"}],"description":"Preformatted (<pre> text)"},{"name":"pageBlockFooter","id":1216809369,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Contents"}],"description":"Page footer"},{"name":"pageBlockDivider","id":3676352904,"type":"PageBlock","arguments":[],"description":"An empty block separating a page"},{"name":"pageBlockAnchor","id":3456972720,"type":"PageBlock","arguments":[{"name":"name","type":"string","description":"Name of target section"}],"description":"Link to section within the page itself (like <a href=\"#target\">anchor</a>)"},{"name":"pageBlockList","id":3840442385,"type":"PageBlock","arguments":[{"name":"items","type":"PageListItem[]","description":"List of blocks in an IV page"}],"description":"Unordered list of IV blocks"},{"name":"pageBlockBlockquote","id":641563686,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Quote contents"},{"name":"caption","type":"RichText","description":"Caption"}],"description":"Quote (equivalent to the HTML <blockquote>)"},{"name":"pageBlockPullquote","id":1329878739,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Text"},{"name":"caption","type":"RichText","description":"Caption"}],"description":"Pullquote"},{"name":"pageBlockPhoto","id":391759200,"type":"PageBlock","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"photoId","type":"Long","description":"Photo ID"},{"name":"caption","type":"PageCaption","description":"Caption"},{"name":"url","type":"string","optional":true,"predicate":"flags.0","description":"HTTP URL of page the photo leads to when clicked"},{"name":"webpageId","type":"Long","optional":true,"predicate":"flags.0","description":"ID of preview of the page the photo leads to when clicked"}],"description":"A photo"},{"name":"pageBlockVideo","id":2089805750,"type":"PageBlock","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"autoplay","type":"true","optional":true,"predicate":"flags.0","description":"Whether the video is set to autoplay"},{"name":"loop","type":"true","optional":true,"predicate":"flags.1","description":"Whether the video is set to loop"},{"name":"videoId","type":"Long","description":"Video ID"},{"name":"caption","type":"PageCaption","description":"Caption"}],"description":"Video"},{"name":"pageBlockCover","id":972174080,"type":"PageBlock","arguments":[{"name":"cover","type":"PageBlock","description":"Cover"}],"description":"A page cover"},{"name":"pageBlockEmbed","id":2826014149,"type":"PageBlock","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"fullWidth","type":"true","optional":true,"predicate":"flags.0","description":"Whether the block should be full width"},{"name":"allowScrolling","type":"true","optional":true,"predicate":"flags.3","description":"Whether scrolling should be allowed"},{"name":"url","type":"string","optional":true,"predicate":"flags.1","description":"Web page URL, if available"},{"name":"html","type":"string","optional":true,"predicate":"flags.2","description":"HTML-markup of the embedded page"},{"name":"posterPhotoId","type":"Long","optional":true,"predicate":"flags.4","description":"Poster photo, if available"},{"name":"w","type":"number","optional":true,"predicate":"flags.5","description":"Block width, if known"},{"name":"h","type":"number","optional":true,"predicate":"flags.5","description":"Block height, if known"},{"name":"caption","type":"PageCaption","description":"Caption"}],"description":"An embedded webpage"},{"name":"pageBlockEmbedPost","id":4065961995,"type":"PageBlock","arguments":[{"name":"url","type":"string","description":"Web page URL"},{"name":"webpageId","type":"Long","description":"ID of generated webpage preview"},{"name":"authorPhotoId","type":"Long","description":"ID of the author's photo"},{"name":"author","type":"string","description":"Author name"},{"name":"date","type":"number","description":"Creation date"},{"name":"blocks","type":"PageBlock[]","description":"Post contents"},{"name":"caption","type":"PageCaption","description":"Caption"}],"description":"An embedded post"},{"name":"pageBlockCollage","id":1705048653,"type":"PageBlock","arguments":[{"name":"items","type":"PageBlock[]","description":"Media elements"},{"name":"caption","type":"PageCaption","description":"Caption"}],"description":"Collage of media"},{"name":"pageBlockSlideshow","id":52401552,"type":"PageBlock","arguments":[{"name":"items","type":"PageBlock[]","description":"Slideshow items"},{"name":"caption","type":"PageCaption","description":"Caption"}],"description":"Slideshow"},{"name":"pageBlockChannel","id":4011282869,"type":"PageBlock","arguments":[{"name":"channel","type":"Chat","description":"The channel/supergroup/chat"}],"description":"Reference to a telegram channel"},{"name":"pageBlockAudio","id":2151899626,"type":"PageBlock","arguments":[{"name":"audioId","type":"Long","description":"Audio ID (to be fetched from the container {@link page} constructor"},{"name":"caption","type":"PageCaption","description":"Audio caption"}],"description":"Audio"},{"name":"pageBlockKicker","id":504660880,"type":"PageBlock","arguments":[{"name":"text","type":"RichText","description":"Contents"}],"description":"Kicker"},{"name":"pageBlockTable","id":3209554562,"type":"PageBlock","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"bordered","type":"true","optional":true,"predicate":"flags.0","description":"Does the table have a visible border?"},{"name":"striped","type":"true","optional":true,"predicate":"flags.1","description":"Is the table striped?"},{"name":"title","type":"RichText","description":"Title"},{"name":"rows","type":"PageTableRow[]","description":"Table rows"}],"description":"Table"},{"name":"pageBlockOrderedList","id":2592793057,"type":"PageBlock","arguments":[{"name":"items","type":"PageListOrderedItem[]","description":"List items"}],"description":"Ordered list of IV blocks"},{"name":"pageBlockDetails","id":1987480557,"type":"PageBlock","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"open","type":"true","optional":true,"predicate":"flags.0","description":"Whether the block is open by default"},{"name":"blocks","type":"PageBlock[]","description":"Block contents"},{"name":"title","type":"RichText","description":"Always visible heading for the block"}],"description":"A collapsible details block"},{"name":"pageBlockRelatedArticles","id":370236054,"type":"PageBlock","arguments":[{"name":"title","type":"RichText","description":"Title"},{"name":"articles","type":"PageRelatedArticle[]","description":"Related articles"}],"description":"Related articles"},{"name":"pageBlockMap","id":2756656886,"type":"PageBlock","arguments":[{"name":"geo","type":"GeoPoint","description":"Location of the map center"},{"name":"zoom","type":"number","description":"Map zoom level; 13-20"},{"name":"w","type":"number","description":"Map width in pixels before applying scale; 16-102"},{"name":"h","type":"number","description":"Map height in pixels before applying scale; 16-1024"},{"name":"caption","type":"PageCaption","description":"Caption"}],"description":"A map"},{"name":"phoneCallDiscardReasonMissed","id":2246320897,"type":"PhoneCallDiscardReason","arguments":[],"description":"The phone call was missed"},{"name":"phoneCallDiscardReasonDisconnect","id":3767910816,"type":"PhoneCallDiscardReason","arguments":[],"description":"The phone call was disconnected"},{"name":"phoneCallDiscardReasonHangup","id":1471006352,"type":"PhoneCallDiscardReason","arguments":[],"description":"The phone call was ended normally"},{"name":"phoneCallDiscardReasonBusy","id":4210550985,"type":"PhoneCallDiscardReason","arguments":[],"description":"The phone call was discared because the user is busy in another call"},{"name":"dataJSON","id":2104790276,"type":"DataJSON","arguments":[{"name":"data","type":"string","description":"JSON-encoded object"}],"description":"Represents a json-encoded object"},{"name":"labeledPrice","id":3408489464,"type":"LabeledPrice","arguments":[{"name":"label","type":"string","description":"Portion label"},{"name":"amount","type":"Long","description":"Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."}],"description":"This object represents a portion of the price for goods or services."},{"name":"invoice","id":215516896,"type":"Invoice","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"test","type":"true","optional":true,"predicate":"flags.0","description":"Test invoice"},{"name":"nameRequested","type":"true","optional":true,"predicate":"flags.1","description":"Set this flag if you require the user's full name to complete the order"},{"name":"phoneRequested","type":"true","optional":true,"predicate":"flags.2","description":"Set this flag if you require the user's phone number to complete the order"},{"name":"emailRequested","type":"true","optional":true,"predicate":"flags.3","description":"Set this flag if you require the user's email address to complete the order"},{"name":"shippingAddressRequested","type":"true","optional":true,"predicate":"flags.4","description":"Set this flag if you require the user's shipping address to complete the order"},{"name":"flexible","type":"true","optional":true,"predicate":"flags.5","description":"Set this flag if the final price depends on the shipping method"},{"name":"phoneToProvider","type":"true","optional":true,"predicate":"flags.6","description":"Set this flag if user's phone number should be sent to provider"},{"name":"emailToProvider","type":"true","optional":true,"predicate":"flags.7","description":"Set this flag if user's email address should be sent to provider"},{"name":"currency","type":"string","description":"Three-letter ISO 4217 currency code"},{"name":"prices","type":"LabeledPrice[]","description":"Price breakdown, a list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)"},{"name":"maxTipAmount","type":"Long","optional":true,"predicate":"flags.8"},{"name":"suggestedTipAmounts","type":"Long[]","optional":true,"predicate":"flags.8"}],"description":"Invoice"},{"name":"paymentCharge","id":3926049406,"type":"PaymentCharge","arguments":[{"name":"id","type":"string","description":"Telegram payment identifier"},{"name":"providerChargeId","type":"string","description":"Provider payment identifier"}],"description":"Payment identifier"},{"name":"postAddress","id":512535275,"type":"PostAddress","arguments":[{"name":"streetLine1","type":"string","description":"First line for the address"},{"name":"streetLine2","type":"string","description":"Second line for the address"},{"name":"city","type":"string","description":"City"},{"name":"state","type":"string","description":"State, if applicable (empty otherwise)"},{"name":"countryIso2","type":"string","description":"ISO 3166-1 alpha-2 country code"},{"name":"postCode","type":"string","description":"Address post code"}],"description":"Shipping address"},{"name":"paymentRequestedInfo","id":2426158996,"type":"PaymentRequestedInfo","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"name","type":"string","optional":true,"predicate":"flags.0","description":"User's full name"},{"name":"phone","type":"string","optional":true,"predicate":"flags.1","description":"User's phone number"},{"name":"email","type":"string","optional":true,"predicate":"flags.2","description":"User's email address"},{"name":"shippingAddress","type":"PostAddress","optional":true,"predicate":"flags.3","description":"User's shipping address"}],"description":"Order info provided by the user"},{"name":"paymentSavedCredentialsCard","id":3452074527,"type":"PaymentSavedCredentials","arguments":[{"name":"id","type":"string","description":"Card ID"},{"name":"title","type":"string","description":"Title"}],"description":"Saved credit card"},{"name":"webDocument","id":475467473,"type":"WebDocument","arguments":[{"name":"url","type":"string","description":"Document URL"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"size","type":"number","description":"File size"},{"name":"mimeType","type":"string","description":"MIME type"},{"name":"attributes","type":"DocumentAttribute[]","description":"Attributes for media types"}],"description":"Remote document"},{"name":"webDocumentNoProxy","id":4190682310,"type":"WebDocument","arguments":[{"name":"url","type":"string","description":"Document URL"},{"name":"size","type":"number","description":"File size"},{"name":"mimeType","type":"string","description":"MIME type"},{"name":"attributes","type":"DocumentAttribute[]","description":"Attributes for media types"}],"description":"Remote document that can be downloaded without proxying through telegram"},{"name":"inputWebDocument","id":2616017741,"type":"InputWebDocument","arguments":[{"name":"url","type":"string","description":"Remote document URL to be downloaded using the appropriate method"},{"name":"size","type":"number","description":"Remote file size"},{"name":"mimeType","type":"string","description":"Mime type"},{"name":"attributes","type":"DocumentAttribute[]","description":"Attributes for media types"}],"description":"The document"},{"name":"inputWebFileLocation","id":3258570374,"type":"InputWebFileLocation","arguments":[{"name":"url","type":"string","description":"HTTP URL of file"},{"name":"accessHash","type":"Long","description":"Access hash"}],"description":"Location of a remote HTTP(s) file"},{"name":"inputWebFileGeoPointLocation","id":2669814217,"type":"InputWebFileLocation","arguments":[{"name":"geoPoint","type":"InputGeoPoint","description":"Geolocation"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"w","type":"number","description":"Map width in pixels before applying scale; 16-1024"},{"name":"h","type":"number","description":"Map height in pixels before applying scale; 16-1024"},{"name":"zoom","type":"number","description":"Map zoom level; 13-20"},{"name":"scale","type":"number","description":"Map scale; 1-3"}],"description":"Geolocation"},{"name":"inputPaymentCredentialsSaved","id":3238965967,"type":"InputPaymentCredentials","arguments":[{"name":"id","type":"string","description":"Credential ID"},{"name":"tmpPassword","type":"Buffer","description":"Temporary password"}],"description":"Saved payment credentials"},{"name":"inputPaymentCredentials","id":873977640,"type":"InputPaymentCredentials","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"save","type":"true","optional":true,"predicate":"flags.0","description":"Save payment credential for future use"},{"name":"data","type":"DataJSON","description":"Payment credentials"}],"description":"Payment credentials"},{"name":"inputPaymentCredentialsApplePay","id":178373535,"type":"InputPaymentCredentials","arguments":[{"name":"paymentData","type":"DataJSON","description":"Payment data"}],"description":"Apple pay payment credentials"},{"name":"inputPaymentCredentialsGooglePay","id":2328045569,"type":"InputPaymentCredentials","arguments":[{"name":"paymentToken","type":"DataJSON"}]},{"name":"shippingOption","id":3055631583,"type":"ShippingOption","arguments":[{"name":"id","type":"string","description":"Option ID"},{"name":"title","type":"string","description":"Title"},{"name":"prices","type":"LabeledPrice[]","description":"List of price portions"}],"description":"Shipping option"},{"name":"inputStickerSetItem","id":4288717974,"type":"InputStickerSetItem","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"document","type":"InputDocument","description":"The sticker"},{"name":"emoji","type":"string","description":"Associated emoji"},{"name":"maskCoords","type":"MaskCoords","optional":true,"predicate":"flags.0","description":"Coordinates for mask sticker"}],"description":"Sticker in a stickerset"},{"name":"inputPhoneCall","id":506920429,"type":"InputPhoneCall","arguments":[{"name":"id","type":"Long","description":"Call ID"},{"name":"accessHash","type":"Long","description":"Access hash"}],"description":"Phone call"},{"name":"phoneCallEmpty","id":1399245077,"type":"PhoneCall","arguments":[{"name":"id","type":"Long","description":"Call ID"}],"description":"Empty constructor"},{"name":"phoneCallWaiting","id":462375633,"type":"PhoneCall","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"video","type":"true","optional":true,"predicate":"flags.6","description":"Is this a video call"},{"name":"id","type":"Long","description":"Call ID"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"date","type":"number","description":"Date"},{"name":"adminId","type":"number","description":"Admin ID"},{"name":"participantId","type":"number","description":"Participant ID"},{"name":"protocol","type":"PhoneCallProtocol","description":"Phone call protocol info"},{"name":"receiveDate","type":"number","optional":true,"predicate":"flags.0","description":"When was the phone call received"}],"description":"Incoming phone call"},{"name":"phoneCallRequested","id":2280307539,"type":"PhoneCall","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"video","type":"true","optional":true,"predicate":"flags.6","description":"Whether this is a video call"},{"name":"id","type":"Long","description":"Phone call ID"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"date","type":"number","description":"When was the phone call created"},{"name":"adminId","type":"number","description":"ID of the creator of the phone call"},{"name":"participantId","type":"number","description":"ID of the other participant of the phone call"},{"name":"gAHash","type":"Buffer","description":"Parameter for key exchange"},{"name":"protocol","type":"PhoneCallProtocol","description":"Call protocol info to be passed to libtgvoip"}],"description":"Requested phone call"},{"name":"phoneCallAccepted","id":2575058250,"type":"PhoneCall","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"video","type":"true","optional":true,"predicate":"flags.6","description":"Whether this is a video call"},{"name":"id","type":"Long","description":"ID of accepted phone call"},{"name":"accessHash","type":"Long","description":"Access hash of phone call"},{"name":"date","type":"number","description":"When was the call accepted"},{"name":"adminId","type":"number","description":"ID of the call creator"},{"name":"participantId","type":"number","description":"ID of the other user in the call"},{"name":"gB","type":"Buffer","description":"B parameter for secure E2E phone call key exchange"},{"name":"protocol","type":"PhoneCallProtocol","description":"Protocol to use for phone call"}],"description":"An accepted phone call"},{"name":"phoneCall","id":2269294207,"type":"PhoneCall","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"p2pAllowed","type":"true","optional":true,"predicate":"flags.5","description":"Whether P2P connection to the other peer is allowed"},{"name":"video","type":"true","optional":true,"predicate":"flags.6","description":"Whether this is a video call"},{"name":"id","type":"Long","description":"Call ID"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"date","type":"number","description":"Date of creation of the call"},{"name":"adminId","type":"number","description":"User ID of the creator of the call"},{"name":"participantId","type":"number","description":"User ID of the other participant in the call"},{"name":"gAOrB","type":"Buffer","description":"Parameter for key exchange"},{"name":"keyFingerprint","type":"Long","description":"Key fingerprint"},{"name":"protocol","type":"PhoneCallProtocol","description":"Call protocol info to be passed to libtgvoip"},{"name":"connections","type":"PhoneConnection[]","description":"List of endpoints the user can connect to to exchange call data"},{"name":"startDate","type":"number","description":"When was the call actually started"}],"description":"Phone call"},{"name":"phoneCallDiscarded","id":1355435489,"type":"PhoneCall","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"needRating","type":"true","optional":true,"predicate":"flags.2","description":"Whether the server required the user to {@link phone.setCallRating} the call"},{"name":"needDebug","type":"true","optional":true,"predicate":"flags.3","description":"Whether the server required the client to {@link phone.saveCallDebug} the libtgvoip call debug data"},{"name":"video","type":"true","optional":true,"predicate":"flags.6","description":"Whether the call was a video call"},{"name":"id","type":"Long","description":"Call ID"},{"name":"reason","type":"PhoneCallDiscardReason","optional":true,"predicate":"flags.0","description":"Why was the phone call discarded"},{"name":"duration","type":"number","optional":true,"predicate":"flags.1","description":"Duration of the phone call in seconds"}],"description":"Indicates a discarded phone call"},{"name":"phoneConnection","id":2639009728,"type":"PhoneConnection","arguments":[{"name":"id","type":"Long","description":"Endpoint ID"},{"name":"ip","type":"string","description":"IP address of endpoint"},{"name":"ipv6","type":"string","description":"IPv6 address of endpoint"},{"name":"port","type":"number","description":"Port ID"},{"name":"peerTag","type":"Buffer","description":"Our peer tag"}],"description":"Identifies an endpoint that can be used to connect to the other user in a phone call"},{"name":"phoneConnectionWebrtc","id":1667228533,"type":"PhoneConnection","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"turn","type":"true","optional":true,"predicate":"flags.0","description":"Whether this is a TURN endpoint"},{"name":"stun","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is a STUN endpoint"},{"name":"id","type":"Long","description":"Endpoint ID"},{"name":"ip","type":"string","description":"IP address"},{"name":"ipv6","type":"string","description":"IPv6 address"},{"name":"port","type":"number","description":"Port"},{"name":"username","type":"string","description":"Username"},{"name":"password","type":"string","description":"Password"}],"description":"WebRTC connection parameters"},{"name":"phoneCallProtocol","id":4236742600,"type":"PhoneCallProtocol","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"udpP2p","type":"true","optional":true,"predicate":"flags.0","description":"Whether to allow P2P connection to the other participant"},{"name":"udpReflector","type":"true","optional":true,"predicate":"flags.1","description":"Whether to allow connection to the other participants through the reflector servers"},{"name":"minLayer","type":"number","description":"Minimum layer for remote libtgvoip"},{"name":"maxLayer","type":"number","description":"Maximum layer for remote libtgvoip"},{"name":"libraryVersions","type":"string[]","description":"When using {@link phone.requestCall} and {@link phone.acceptCall}, specify all library versions supported by the client.
The server will merge and choose the best library version supported by both peers, returning only the best value in the result of the callee's {@link phone.acceptCall} and in the {@link phoneCallAccepted} update received by the caller."}],"description":"Protocol info for libtgvoip"},{"name":"cdnPublicKey","id":3380800186,"type":"CdnPublicKey","arguments":[{"name":"dcId","type":"number","description":"CDN DC ID"},{"name":"publicKey","type":"string","description":"RSA public key"}],"description":"Public key to use only during handshakes to CDN DCs."},{"name":"cdnConfig","id":1462101002,"type":"CdnConfig","arguments":[{"name":"publicKeys","type":"CdnPublicKey[]","description":"Vector of public keys to use only during handshakes to CDN DCs."}],"description":"Configuration for CDN file downloads."},{"name":"langPackString","id":3402727926,"type":"LangPackString","arguments":[{"name":"key","type":"string","description":"Language key"},{"name":"value","type":"string","description":"Value"}],"description":"Translated localization string"},{"name":"langPackStringPluralized","id":1816636575,"type":"LangPackString","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"key","type":"string","description":"Localization key"},{"name":"zeroValue","type":"string","optional":true,"predicate":"flags.0","description":"Value for zero objects"},{"name":"oneValue","type":"string","optional":true,"predicate":"flags.1","description":"Value for one object"},{"name":"twoValue","type":"string","optional":true,"predicate":"flags.2","description":"Value for two objects"},{"name":"fewValue","type":"string","optional":true,"predicate":"flags.3","description":"Value for a few objects"},{"name":"manyValue","type":"string","optional":true,"predicate":"flags.4","description":"Value for many objects"},{"name":"otherValue","type":"string","description":"Default value"}],"description":"A language pack string which has different forms based on the number of some object it mentions. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info"},{"name":"langPackStringDeleted","id":695856818,"type":"LangPackString","arguments":[{"name":"key","type":"string","description":"Localization key"}],"description":"Deleted localization string"},{"name":"langPackDifference","id":4085629430,"type":"LangPackDifference","arguments":[{"name":"langCode","type":"string","description":"Language code"},{"name":"fromVersion","type":"number","description":"Previous version number"},{"name":"version","type":"number","description":"New version number"},{"name":"strings","type":"LangPackString[]","description":"Localized strings"}],"description":"Changes to the app's localization pack"},{"name":"langPackLanguage","id":4006239459,"type":"LangPackLanguage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"official","type":"true","optional":true,"predicate":"flags.0","description":"Whether the language pack is official"},{"name":"rtl","type":"true","optional":true,"predicate":"flags.2","description":"Is this a localization pack for an RTL language"},{"name":"beta","type":"true","optional":true,"predicate":"flags.3","description":"Is this a beta localization pack?"},{"name":"name","type":"string","description":"Language name"},{"name":"nativeName","type":"string","description":"Language name in the language itself"},{"name":"langCode","type":"string","description":"Language code (pack identifier)"},{"name":"baseLangCode","type":"string","optional":true,"predicate":"flags.1","description":"Identifier of a base language pack; may be empty. If a string is missed in the language pack, then it should be fetched from base language pack. Unsupported in custom language packs"},{"name":"pluralCode","type":"string","description":"A language code to be used to apply plural forms. See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html for more info"},{"name":"stringsCount","type":"number","description":"Total number of non-deleted strings from the language pack"},{"name":"translatedCount","type":"number","description":"Total number of translated strings from the language pack"},{"name":"translationsUrl","type":"string","description":"Link to language translation interface; empty for custom local language packs"}],"description":"Identifies a localization pack"},{"name":"channelAdminLogEventActionChangeTitle","id":3873421349,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevValue","type":"string","description":"Previous title"},{"name":"newValue","type":"string","description":"New title"}],"description":"Channel/supergroup title was changed"},{"name":"channelAdminLogEventActionChangeAbout","id":1427671598,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevValue","type":"string","description":"Previous description"},{"name":"newValue","type":"string","description":"New description"}],"description":"The description was changed"},{"name":"channelAdminLogEventActionChangeUsername","id":1783299128,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevValue","type":"string","description":"Old username"},{"name":"newValue","type":"string","description":"New username"}],"description":"Channel/supergroup username was changed"},{"name":"channelAdminLogEventActionChangePhoto","id":1129042607,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevPhoto","type":"Photo","description":"Previous picture"},{"name":"newPhoto","type":"Photo","description":"New picture"}],"description":"The channel/supergroup's picture was changed"},{"name":"channelAdminLogEventActionToggleInvites","id":460916654,"type":"ChannelAdminLogEventAction","arguments":[{"name":"newValue","type":"boolean","description":"New value"}],"description":"Invites were enabled/disabled"},{"name":"channelAdminLogEventActionToggleSignatures","id":648939889,"type":"ChannelAdminLogEventAction","arguments":[{"name":"newValue","type":"boolean","description":"New value"}],"description":"Channel signatures were enabled/disabled"},{"name":"channelAdminLogEventActionUpdatePinned","id":3924306968,"type":"ChannelAdminLogEventAction","arguments":[{"name":"message","type":"Message","description":"The message that was pinned"}],"description":"A message was pinned"},{"name":"channelAdminLogEventActionEditMessage","id":1889215493,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevMessage","type":"Message","description":"Old message"},{"name":"newMessage","type":"Message","description":"New message"}],"description":"A message was edited"},{"name":"channelAdminLogEventActionDeleteMessage","id":1121994683,"type":"ChannelAdminLogEventAction","arguments":[{"name":"message","type":"Message","description":"The message that was deleted"}],"description":"A message was deleted"},{"name":"channelAdminLogEventActionParticipantJoin","id":405815507,"type":"ChannelAdminLogEventAction","arguments":[],"description":"A user has joined the group (in the case of big groups, info of the user that has joined isn't shown)"},{"name":"channelAdminLogEventActionParticipantLeave","id":4170676210,"type":"ChannelAdminLogEventAction","arguments":[],"description":"A user left the channel/supergroup (in the case of big groups, info of the user that has joined isn't shown)"},{"name":"channelAdminLogEventActionParticipantInvite","id":3810276568,"type":"ChannelAdminLogEventAction","arguments":[{"name":"participant","type":"ChannelParticipant","description":"The user that was invited"}],"description":"A user was invited to the group"},{"name":"channelAdminLogEventActionParticipantToggleBan","id":3872931198,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevParticipant","type":"ChannelParticipant","description":"Old banned rights of user"},{"name":"newParticipant","type":"ChannelParticipant","description":"New banned rights of user"}],"description":"The banned rights of a user were changed"},{"name":"channelAdminLogEventActionParticipantToggleAdmin","id":3580323600,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevParticipant","type":"ChannelParticipant","description":"Previous admin rights"},{"name":"newParticipant","type":"ChannelParticipant","description":"New admin rights"}],"description":"The admin rights of a user were changed"},{"name":"channelAdminLogEventActionChangeStickerSet","id":2982398631,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevStickerset","type":"InputStickerSet","description":"Previous stickerset"},{"name":"newStickerset","type":"InputStickerSet","description":"New stickerset"}],"description":"The supergroup's stickerset was changed"},{"name":"channelAdminLogEventActionTogglePreHistoryHidden","id":1599903217,"type":"ChannelAdminLogEventAction","arguments":[{"name":"newValue","type":"boolean","description":"New value"}],"description":"The hidden prehistory setting was {@link channels.togglePreHistoryHidden}"},{"name":"channelAdminLogEventActionDefaultBannedRights","id":771095562,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevBannedRights","type":"ChatBannedRights","description":"Previous global banned rights"},{"name":"newBannedRights","type":"ChatBannedRights","description":"New glboal banned rights."}],"description":"The default banned rights were modified"},{"name":"channelAdminLogEventActionStopPoll","id":2399639107,"type":"ChannelAdminLogEventAction","arguments":[{"name":"message","type":"Message","description":"The poll that was stopped"}],"description":"A poll was stopped"},{"name":"channelAdminLogEventActionChangeLinkedChat","id":2725218331,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevValue","type":"number","description":"Previous linked chat"},{"name":"newValue","type":"number","description":"New linked chat"}],"description":"The linked chat was changed"},{"name":"channelAdminLogEventActionChangeLocation","id":241923758,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevValue","type":"ChannelLocation","description":"Previous location"},{"name":"newValue","type":"ChannelLocation","description":"New location"}],"description":"The geo group location was changed"},{"name":"channelAdminLogEventActionToggleSlowMode","id":1401984889,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevValue","type":"number","description":"Previous slow mode value"},{"name":"newValue","type":"number","description":"New slow mode value"}],"description":"{@link channels.toggleSlowMode}"},{"name":"channelAdminLogEventActionStartGroupCall","id":589338437,"type":"ChannelAdminLogEventAction","arguments":[{"name":"call","type":"InputGroupCall"}]},{"name":"channelAdminLogEventActionDiscardGroupCall","id":3684667712,"type":"ChannelAdminLogEventAction","arguments":[{"name":"call","type":"InputGroupCall"}]},{"name":"channelAdminLogEventActionParticipantMute","id":4179895506,"type":"ChannelAdminLogEventAction","arguments":[{"name":"participant","type":"GroupCallParticipant"}]},{"name":"channelAdminLogEventActionParticipantUnmute","id":3863226816,"type":"ChannelAdminLogEventAction","arguments":[{"name":"participant","type":"GroupCallParticipant"}]},{"name":"channelAdminLogEventActionToggleGroupCallSetting","id":1456906823,"type":"ChannelAdminLogEventAction","arguments":[{"name":"joinMuted","type":"boolean"}]},{"name":"channelAdminLogEventActionParticipantJoinByInvite","id":1557846647,"type":"ChannelAdminLogEventAction","arguments":[{"name":"invite","type":"ExportedChatInvite"}]},{"name":"channelAdminLogEventActionExportedInviteDelete","id":1515256996,"type":"ChannelAdminLogEventAction","arguments":[{"name":"invite","type":"ExportedChatInvite"}]},{"name":"channelAdminLogEventActionExportedInviteRevoke","id":1091179342,"type":"ChannelAdminLogEventAction","arguments":[{"name":"invite","type":"ExportedChatInvite"}]},{"name":"channelAdminLogEventActionExportedInviteEdit","id":3910056793,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevInvite","type":"ExportedChatInvite"},{"name":"newInvite","type":"ExportedChatInvite"}]},{"name":"channelAdminLogEventActionParticipantVolume","id":1048537159,"type":"ChannelAdminLogEventAction","arguments":[{"name":"participant","type":"GroupCallParticipant"}]},{"name":"channelAdminLogEventActionChangeHistoryTTL","id":1855199800,"type":"ChannelAdminLogEventAction","arguments":[{"name":"prevValue","type":"number"},{"name":"newValue","type":"number"}]},{"name":"channelAdminLogEvent","id":995769920,"type":"ChannelAdminLogEvent","arguments":[{"name":"id","type":"Long","description":"Event ID"},{"name":"date","type":"number","description":"Date"},{"name":"userId","type":"number","description":"User ID"},{"name":"action","type":"ChannelAdminLogEventAction","description":"Action"}],"description":"Admin log event"},{"name":"channelAdminLogEventsFilter","id":3926948580,"type":"ChannelAdminLogEventsFilter","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"join","type":"true","optional":true,"predicate":"flags.0","description":"{@link channelAdminLogEventActionParticipantJoin}"},{"name":"leave","type":"true","optional":true,"predicate":"flags.1","description":"{@link channelAdminLogEventActionParticipantLeave}"},{"name":"invite","type":"true","optional":true,"predicate":"flags.2","description":"{@link channelAdminLogEventActionParticipantInvite}"},{"name":"ban","type":"true","optional":true,"predicate":"flags.3","description":"{@link channelAdminLogEventActionParticipantToggleBan}"},{"name":"unban","type":"true","optional":true,"predicate":"flags.4","description":"{@link channelAdminLogEventActionParticipantToggleBan}"},{"name":"kick","type":"true","optional":true,"predicate":"flags.5","description":"{@link channelAdminLogEventActionParticipantToggleBan}"},{"name":"unkick","type":"true","optional":true,"predicate":"flags.6","description":"{@link channelAdminLogEventActionParticipantToggleBan}"},{"name":"promote","type":"true","optional":true,"predicate":"flags.7","description":"{@link channelAdminLogEventActionParticipantToggleAdmin}"},{"name":"demote","type":"true","optional":true,"predicate":"flags.8","description":"{@link channelAdminLogEventActionParticipantToggleAdmin}"},{"name":"info","type":"true","optional":true,"predicate":"flags.9","description":"Info change events (when {@link channelAdminLogEventActionChangeAbout}, {@link channelAdminLogEventActionChangeLinkedChat}, {@link channelAdminLogEventActionChangeLocation}, {@link channelAdminLogEventActionChangePhoto}, {@link channelAdminLogEventActionChangeStickerSet}, {@link channelAdminLogEventActionChangeTitle} or {@link channelAdminLogEventActionChangeUsername} data of a channel gets modified)"},{"name":"settings","type":"true","optional":true,"predicate":"flags.10","description":"Settings change events ({@link channelAdminLogEventActionToggleInvites}, {@link channelAdminLogEventActionTogglePreHistoryHidden}, {@link channelAdminLogEventActionToggleSignatures}, {@link channelAdminLogEventActionDefaultBannedRights})"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.11","description":"{@link channelAdminLogEventActionUpdatePinned}"},{"name":"edit","type":"true","optional":true,"predicate":"flags.12","description":"{@link channelAdminLogEventActionEditMessage}"},{"name":"delete","type":"true","optional":true,"predicate":"flags.13","description":"{@link channelAdminLogEventActionDeleteMessage}"},{"name":"groupCall","type":"true","optional":true,"predicate":"flags.14"},{"name":"invites","type":"true","optional":true,"predicate":"flags.15"}],"description":"Filter only certain admin log events"},{"name":"popularContact","id":1558266229,"type":"PopularContact","arguments":[{"name":"clientId","type":"Long","description":"Contact identifier"},{"name":"importers","type":"number","description":"How many people imported this contact"}],"description":"Popular contact"},{"name":"recentMeUrlUnknown","id":1189204285,"type":"RecentMeUrl","arguments":[{"name":"url","type":"string","description":"URL"}],"description":"Unknown t.me url"},{"name":"recentMeUrlUser","id":2377921334,"type":"RecentMeUrl","arguments":[{"name":"url","type":"string","description":"URL"},{"name":"userId","type":"number","description":"User ID"}],"description":"Recent t.me link to a user"},{"name":"recentMeUrlChat","id":2686132985,"type":"RecentMeUrl","arguments":[{"name":"url","type":"string","description":"t.me URL"},{"name":"chatId","type":"number","description":"Chat ID"}],"description":"Recent t.me link to a chat"},{"name":"recentMeUrlChatInvite","id":3947431965,"type":"RecentMeUrl","arguments":[{"name":"url","type":"string","description":"t.me URL"},{"name":"chatInvite","type":"ChatInvite","description":"Chat invitation"}],"description":"Recent t.me invite link to a chat"},{"name":"recentMeUrlStickerSet","id":3154794460,"type":"RecentMeUrl","arguments":[{"name":"url","type":"string","description":"t.me URL"},{"name":"set","type":"StickerSetCovered","description":"Stickerset"}],"description":"Recent t.me stickerset installation URL"},{"name":"inputSingleMedia","id":482797855,"type":"InputSingleMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"media","type":"InputMedia","description":"The media"},{"name":"randomId","type":"Long","description":"Unique client media ID required to prevent message resending"},{"name":"message","type":"string","description":"A caption for the media"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.0","description":"Message entities for styled text"}],"description":"A single media in an album or grouped media sent with {@link messages.sendMultiMedia}."},{"name":"webAuthorization","id":3402187762,"type":"WebAuthorization","arguments":[{"name":"hash","type":"Long","description":"Authorization hash"},{"name":"botId","type":"number","description":"Bot ID"},{"name":"domain","type":"string","description":"The domain name of the website on which the user has logged in."},{"name":"browser","type":"string","description":"Browser user-agent"},{"name":"platform","type":"string","description":"Platform"},{"name":"dateCreated","type":"number","description":"When was the web session created"},{"name":"dateActive","type":"number","description":"When was the web session last active"},{"name":"ip","type":"string","description":"IP address"},{"name":"region","type":"string","description":"Region, determined from IP address"}],"description":"Represents a bot logged in using the Telegram login widget"},{"name":"inputMessageID","id":2792792866,"type":"InputMessage","arguments":[{"name":"id","type":"number","description":"Message ID"}],"description":"Message by ID"},{"name":"inputMessageReplyTo","id":3134751637,"type":"InputMessage","arguments":[{"name":"id","type":"number","description":"ID of the message that replies to the message we need"}],"description":"Message to which the specified message replies to"},{"name":"inputMessagePinned","id":2257003832,"type":"InputMessage","arguments":[],"description":"Pinned message"},{"name":"inputMessageCallbackQuery","id":2902071934,"type":"InputMessage","arguments":[{"name":"id","type":"number","description":"Message ID"},{"name":"queryId","type":"Long","description":"Callback query ID"}],"description":"Used by bots for fetching information about the message that originated a callback query"},{"name":"inputDialogPeer","id":4239064759,"type":"InputDialogPeer","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"}],"description":"A peer"},{"name":"inputDialogPeerFolder","id":1684014375,"type":"InputDialogPeer","arguments":[{"name":"folderId","type":"number","description":"Peer folder ID, for more info click here"}],"description":"All peers in a peer folder"},{"name":"dialogPeer","id":3849174789,"type":"DialogPeer","arguments":[{"name":"peer","type":"Peer","description":"Peer"}],"description":"Peer"},{"name":"dialogPeerFolder","id":1363483106,"type":"DialogPeer","arguments":[{"name":"folderId","type":"number","description":"Peer folder ID, for more info click here"}],"description":"Peer folder"},{"name":"fileHash","id":1648543603,"type":"FileHash","arguments":[{"name":"offset","type":"number","description":"Offset from where to start computing SHA-256 hash"},{"name":"limit","type":"number","description":"Length"},{"name":"hash","type":"Buffer","description":"SHA-256 Hash of file chunk, to be checked for validity after download"}],"description":"SHA256 Hash of an uploaded file, to be checked for validity after download"},{"name":"inputClientProxy","id":1968737087,"type":"InputClientProxy","arguments":[{"name":"address","type":"string","description":"Proxy address"},{"name":"port","type":"number","description":"Proxy port"}],"description":"Info about an MTProxy used to connect."},{"name":"inputSecureFileUploaded","id":859091184,"type":"InputSecureFile","arguments":[{"name":"id","type":"Long","description":"Secure file ID"},{"name":"parts","type":"number","description":"Secure file part count"},{"name":"md5Checksum","type":"string","description":"MD5 hash of encrypted uploaded file, to be checked server-side"},{"name":"fileHash","type":"Buffer","description":"File hash"},{"name":"secret","type":"Buffer","description":"Secret"}],"description":"Uploaded secure file, for more info see the passport docs »"},{"name":"inputSecureFile","id":1399317950,"type":"InputSecureFile","arguments":[{"name":"id","type":"Long","description":"Secure file ID"},{"name":"accessHash","type":"Long","description":"Secure file access hash"}],"description":"Preuploaded passport file, for more info see the passport docs »"},{"name":"secureFileEmpty","id":1679398724,"type":"SecureFile","arguments":[],"description":"Empty constructor"},{"name":"secureFile","id":3760683618,"type":"SecureFile","arguments":[{"name":"id","type":"Long","description":"ID"},{"name":"accessHash","type":"Long","description":"Access hash"},{"name":"size","type":"number","description":"File size"},{"name":"dcId","type":"number","description":"DC ID"},{"name":"date","type":"number","description":"Date of upload"},{"name":"fileHash","type":"Buffer","description":"File hash"},{"name":"secret","type":"Buffer","description":"Secret"}],"description":"Secure passport file, for more info see the passport docs »"},{"name":"secureData","id":2330640067,"type":"SecureData","arguments":[{"name":"data","type":"Buffer","description":"Data"},{"name":"dataHash","type":"Buffer","description":"Data hash"},{"name":"secret","type":"Buffer","description":"Secret"}],"description":"Secure passport data, for more info see the passport docs »"},{"name":"securePlainPhone","id":2103482845,"type":"SecurePlainData","arguments":[{"name":"phone","type":"string","description":"Phone number"}],"description":"Phone number to use in telegram passport: it must be verified, first »."},{"name":"securePlainEmail","id":569137759,"type":"SecurePlainData","arguments":[{"name":"email","type":"string","description":"Email address"}],"description":"Email address to use in telegram passport: it must be verified, first »."},{"name":"secureValueTypePersonalDetails","id":2636808675,"type":"SecureValueType","arguments":[],"description":"Personal details"},{"name":"secureValueTypePassport","id":1034709504,"type":"SecureValueType","arguments":[],"description":"Passport"},{"name":"secureValueTypeDriverLicense","id":115615172,"type":"SecureValueType","arguments":[],"description":"Driver's license"},{"name":"secureValueTypeIdentityCard","id":2698015819,"type":"SecureValueType","arguments":[],"description":"Identity card"},{"name":"secureValueTypeInternalPassport","id":2577698595,"type":"SecureValueType","arguments":[],"description":"Internal passport"},{"name":"secureValueTypeAddress","id":3420659238,"type":"SecureValueType","arguments":[],"description":"Address"},{"name":"secureValueTypeUtilityBill","id":4231435598,"type":"SecureValueType","arguments":[],"description":"Utility bill"},{"name":"secureValueTypeBankStatement","id":2299755533,"type":"SecureValueType","arguments":[],"description":"Bank statement"},{"name":"secureValueTypeRentalAgreement","id":2340959368,"type":"SecureValueType","arguments":[],"description":"Rental agreement"},{"name":"secureValueTypePassportRegistration","id":2581823594,"type":"SecureValueType","arguments":[],"description":"Internal registration passport"},{"name":"secureValueTypeTemporaryRegistration","id":3926060083,"type":"SecureValueType","arguments":[],"description":"Temporary registration"},{"name":"secureValueTypePhone","id":3005262555,"type":"SecureValueType","arguments":[],"description":"Phone"},{"name":"secureValueTypeEmail","id":2386339822,"type":"SecureValueType","arguments":[],"description":"Email"},{"name":"secureValue","id":411017418,"type":"SecureValue","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"type","type":"SecureValueType","description":"Secure passport value type"},{"name":"data","type":"SecureData","optional":true,"predicate":"flags.0","description":"Encrypted Telegram Passport element data"},{"name":"frontSide","type":"SecureFile","optional":true,"predicate":"flags.1","description":"Encrypted passport file with the front side of the document"},{"name":"reverseSide","type":"SecureFile","optional":true,"predicate":"flags.2","description":"Encrypted passport file with the reverse side of the document"},{"name":"selfie","type":"SecureFile","optional":true,"predicate":"flags.3","description":"Encrypted passport file with a selfie of the user holding the document"},{"name":"translation","type":"SecureFile[]","optional":true,"predicate":"flags.6","description":"Array of encrypted passport files with translated versions of the provided documents"},{"name":"files","type":"SecureFile[]","optional":true,"predicate":"flags.4","description":"Array of encrypted passport files with photos the of the documents"},{"name":"plainData","type":"SecurePlainData","optional":true,"predicate":"flags.5","description":"Plaintext verified passport data"},{"name":"hash","type":"Buffer","description":"Data hash"}],"description":"Secure value"},{"name":"inputSecureValue","id":3676426407,"type":"InputSecureValue","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"type","type":"SecureValueType","description":"Secure passport value type"},{"name":"data","type":"SecureData","optional":true,"predicate":"flags.0","description":"Encrypted Telegram Passport element data"},{"name":"frontSide","type":"InputSecureFile","optional":true,"predicate":"flags.1","description":"Encrypted passport file with the front side of the document"},{"name":"reverseSide","type":"InputSecureFile","optional":true,"predicate":"flags.2","description":"Encrypted passport file with the reverse side of the document"},{"name":"selfie","type":"InputSecureFile","optional":true,"predicate":"flags.3","description":"Encrypted passport file with a selfie of the user holding the document"},{"name":"translation","type":"InputSecureFile[]","optional":true,"predicate":"flags.6","description":"Array of encrypted passport files with translated versions of the provided documents"},{"name":"files","type":"InputSecureFile[]","optional":true,"predicate":"flags.4","description":"Array of encrypted passport files with photos the of the documents"},{"name":"plainData","type":"SecurePlainData","optional":true,"predicate":"flags.5","description":"Plaintext verified passport data"}],"description":"Secure value, for more info see the passport docs »"},{"name":"secureValueHash","id":3978218928,"type":"SecureValueHash","arguments":[{"name":"type","type":"SecureValueType","description":"Secure value type"},{"name":"hash","type":"Buffer","description":"Hash"}],"description":"Secure value hash"},{"name":"secureValueErrorData","id":3903065049,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"The section of the user's Telegram Passport which has the error, one of {@link secureValueTypePersonalDetails}, {@link secureValueTypePassport}, {@link secureValueTypeDriverLicense}, {@link secureValueTypeIdentityCard}, {@link secureValueTypeInternalPassport}, {@link secureValueTypeAddress}"},{"name":"dataHash","type":"Buffer","description":"Data hash"},{"name":"field","type":"string","description":"Name of the data field which has the error"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes."},{"name":"secureValueErrorFrontSide","id":12467706,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"One of {@link secureValueTypePassport}, {@link secureValueTypeDriverLicense}, {@link secureValueTypeIdentityCard}, {@link secureValueTypeInternalPassport}"},{"name":"fileHash","type":"Buffer","description":"File hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes."},{"name":"secureValueErrorReverseSide","id":2257201829,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"One of {@link secureValueTypeDriverLicense}, {@link secureValueTypeIdentityCard}"},{"name":"fileHash","type":"Buffer","description":"File hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes."},{"name":"secureValueErrorSelfie","id":3845639894,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"One of {@link secureValueTypePassport}, {@link secureValueTypeDriverLicense}, {@link secureValueTypeIdentityCard}, {@link secureValueTypeInternalPassport}"},{"name":"fileHash","type":"Buffer","description":"File hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes."},{"name":"secureValueErrorFile","id":2054162547,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"One of {@link secureValueTypeUtilityBill}, {@link secureValueTypeBankStatement}, {@link secureValueTypeRentalAgreement}, {@link secureValueTypePassportRegistration}, {@link secureValueTypeTemporaryRegistration}"},{"name":"fileHash","type":"Buffer","description":"File hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes."},{"name":"secureValueErrorFiles","id":1717706985,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"One of {@link secureValueTypeUtilityBill}, {@link secureValueTypeBankStatement}, {@link secureValueTypeRentalAgreement}, {@link secureValueTypePassportRegistration}, {@link secureValueTypeTemporaryRegistration}"},{"name":"fileHash","type":"Buffer[]","description":"File hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes."},{"name":"secureValueError","id":2258466191,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"Type of element which has the issue"},{"name":"hash","type":"Buffer","description":"Hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Secure value error"},{"name":"secureValueErrorTranslationFile","id":2702460784,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"One of {@link secureValueTypePersonalDetails}, {@link secureValueTypePassport}, {@link secureValueTypeDriverLicense}, {@link secureValueTypeIdentityCard}, {@link secureValueTypeInternalPassport}, {@link secureValueTypeUtilityBill}, {@link secureValueTypeBankStatement}, {@link secureValueTypeRentalAgreement}, {@link secureValueTypePassportRegistration}, {@link secureValueTypeTemporaryRegistration}"},{"name":"fileHash","type":"Buffer","description":"File hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes."},{"name":"secureValueErrorTranslationFiles","id":878931416,"type":"SecureValueError","arguments":[{"name":"type","type":"SecureValueType","description":"One of {@link secureValueTypePersonalDetails}, {@link secureValueTypePassport}, {@link secureValueTypeDriverLicense}, {@link secureValueTypeIdentityCard}, {@link secureValueTypeInternalPassport}, {@link secureValueTypeUtilityBill}, {@link secureValueTypeBankStatement}, {@link secureValueTypeRentalAgreement}, {@link secureValueTypePassportRegistration}, {@link secureValueTypeTemporaryRegistration}"},{"name":"fileHash","type":"Buffer[]","description":"Hash"},{"name":"text","type":"string","description":"Error message"}],"description":"Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation changes."},{"name":"secureCredentialsEncrypted","id":871426631,"type":"SecureCredentialsEncrypted","arguments":[{"name":"data","type":"Buffer","description":"Encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication, as described in decrypting data »"},{"name":"hash","type":"Buffer","description":"Data hash for data authentication as described in decrypting data »"},{"name":"secret","type":"Buffer","description":"Secret, encrypted with the bot's public RSA key, required for data decryption as described in decrypting data »"}],"description":"Encrypted credentials required to decrypt telegram passport data."},{"name":"savedPhoneContact","id":289586518,"type":"SavedContact","arguments":[{"name":"phone","type":"string","description":"Phone number"},{"name":"firstName","type":"string","description":"First name"},{"name":"lastName","type":"string","description":"Last name"},{"name":"date","type":"number","description":"Date added"}],"description":"Saved contact"},{"name":"passwordKdfAlgoUnknown","id":3562713238,"type":"PasswordKdfAlgo","arguments":[],"description":"Unknown KDF (most likely, the client is outdated and does not support the specified KDF algorithm)"},{"name":"passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow","id":982592842,"type":"PasswordKdfAlgo","arguments":[{"name":"salt1","type":"Buffer","description":"One of two salts used by the derivation function (see SRP 2FA login)"},{"name":"salt2","type":"Buffer","description":"One of two salts used by the derivation function (see SRP 2FA login)"},{"name":"g","type":"number","description":"Base (see SRP 2FA login)"},{"name":"p","type":"Buffer","description":"2048-bit modulus (see SRP 2FA login)"}],"description":"This key derivation algorithm defines that SRP 2FA login must be used"},{"name":"securePasswordKdfAlgoUnknown","id":4883767,"type":"SecurePasswordKdfAlgo","arguments":[],"description":"Unknown KDF algo (most likely the client has to be updated)"},{"name":"securePasswordKdfAlgoPBKDF2HMACSHA512iter100000","id":3153255840,"type":"SecurePasswordKdfAlgo","arguments":[{"name":"salt","type":"Buffer","description":"Salt"}],"description":"PBKDF2 with SHA512 and 100000 iterations KDF algo"},{"name":"securePasswordKdfAlgoSHA512","id":2252807570,"type":"SecurePasswordKdfAlgo","arguments":[{"name":"salt","type":"Buffer","description":"Salt"}],"description":"SHA512 KDF algo"},{"name":"secureSecretSettings","id":354925740,"type":"SecureSecretSettings","arguments":[{"name":"secureAlgo","type":"SecurePasswordKdfAlgo","description":"Secure KDF algo"},{"name":"secureSecret","type":"Buffer","description":"Secure secret"},{"name":"secureSecretId","type":"Long","description":"Secret ID"}],"description":"Secure settings"},{"name":"inputCheckPasswordEmpty","id":2558588504,"type":"InputCheckPasswordSRP","arguments":[],"description":"There is no password"},{"name":"inputCheckPasswordSRP","id":3531600002,"type":"InputCheckPasswordSRP","arguments":[{"name":"srpId","type":"Long","description":"SRP ID"},{"name":"A","type":"Buffer","description":"A parameter (see SRP)"},{"name":"M1","type":"Buffer","description":"M1 parameter (see SRP)"}],"description":"Constructor for checking the validity of a 2FA SRP password (see SRP)"},{"name":"secureRequiredType","id":2191366618,"type":"SecureRequiredType","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"nativeNames","type":"true","optional":true,"predicate":"flags.0","description":"Native names"},{"name":"selfieRequired","type":"true","optional":true,"predicate":"flags.1","description":"Is a selfie required"},{"name":"translationRequired","type":"true","optional":true,"predicate":"flags.2","description":"Is a translation required"},{"name":"type","type":"SecureValueType","description":"Secure value type"}],"description":"Required type"},{"name":"secureRequiredTypeOneOf","id":41187252,"type":"SecureRequiredType","arguments":[{"name":"types","type":"SecureRequiredType[]","description":"Secure required value types"}],"description":"One of"},{"name":"inputAppEvent","id":488313413,"type":"InputAppEvent","arguments":[{"name":"time","type":"Double","description":"Client's exact timestamp for the event"},{"name":"type","type":"string","description":"Type of event"},{"name":"peer","type":"Long","description":"Arbitrary numeric value for more convenient selection of certain event types, or events referring to a certain object"},{"name":"data","type":"JSONValue","description":"Details of the event"}],"description":"Event that occured in the application."},{"name":"jsonObjectValue","id":3235781593,"type":"JSONObjectValue","arguments":[{"name":"key","type":"string","description":"Key"},{"name":"value","type":"JSONValue","description":"Value"}],"description":"JSON key: value pair"},{"name":"jsonNull","id":1064139624,"type":"JSONValue","arguments":[],"description":"null JSON value"},{"name":"jsonBool","id":3342098026,"type":"JSONValue","arguments":[{"name":"value","type":"boolean","description":"Value"}],"description":"JSON boolean value"},{"name":"jsonNumber","id":736157604,"type":"JSONValue","arguments":[{"name":"value","type":"Double","description":"Value"}],"description":"JSON numeric value"},{"name":"jsonString","id":3072226938,"type":"JSONValue","arguments":[{"name":"value","type":"string","description":"Value"}],"description":"JSON string"},{"name":"jsonArray","id":4148447075,"type":"JSONValue","arguments":[{"name":"value","type":"JSONValue[]","description":"JSON values"}],"description":"JSON array"},{"name":"jsonObject","id":2579616925,"type":"JSONValue","arguments":[{"name":"value","type":"JSONObjectValue[]","description":"Values"}],"description":"JSON object value"},{"name":"pageTableCell","id":878078826,"type":"PageTableCell","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"header","type":"true","optional":true,"predicate":"flags.0","description":"Is this element part of the column header"},{"name":"alignCenter","type":"true","optional":true,"predicate":"flags.3","description":"Horizontally centered block"},{"name":"alignRight","type":"true","optional":true,"predicate":"flags.4","description":"Right-aligned block"},{"name":"valignMiddle","type":"true","optional":true,"predicate":"flags.5","description":"Vertically centered block"},{"name":"valignBottom","type":"true","optional":true,"predicate":"flags.6","description":"Block vertically-alligned to the bottom"},{"name":"text","type":"RichText","optional":true,"predicate":"flags.7","description":"Content"},{"name":"colspan","type":"number","optional":true,"predicate":"flags.1","description":"For how many columns should this cell extend"},{"name":"rowspan","type":"number","optional":true,"predicate":"flags.2","description":"For how many rows should this cell extend"}],"description":"Table cell"},{"name":"pageTableRow","id":3770729957,"type":"PageTableRow","arguments":[{"name":"cells","type":"PageTableCell[]","description":"Table cells"}],"description":"Table row"},{"name":"pageCaption","id":1869903447,"type":"PageCaption","arguments":[{"name":"text","type":"RichText","description":"Caption"},{"name":"credit","type":"RichText","description":"Credits"}],"description":"Page caption"},{"name":"pageListItemText","id":3106911949,"type":"PageListItem","arguments":[{"name":"text","type":"RichText","description":"Text"}],"description":"List item"},{"name":"pageListItemBlocks","id":635466748,"type":"PageListItem","arguments":[{"name":"blocks","type":"PageBlock[]","description":"Blocks"}],"description":"List item"},{"name":"pageListOrderedItemText","id":1577484359,"type":"PageListOrderedItem","arguments":[{"name":"num","type":"string","description":"Number of element within ordered list"},{"name":"text","type":"RichText","description":"Text"}],"description":"Ordered list of text items"},{"name":"pageListOrderedItemBlocks","id":2564655414,"type":"PageListOrderedItem","arguments":[{"name":"num","type":"string","description":"Number of element within ordered list"},{"name":"blocks","type":"PageBlock[]","description":"Item contents"}],"description":"Ordered list of IV blocks"},{"name":"pageRelatedArticle","id":3012615176,"type":"PageRelatedArticle","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"url","type":"string","description":"URL of article"},{"name":"webpageId","type":"Long","description":"Webpage ID of generated IV preview"},{"name":"title","type":"string","optional":true,"predicate":"flags.0","description":"Title"},{"name":"description","type":"string","optional":true,"predicate":"flags.1","description":"Description"},{"name":"photoId","type":"Long","optional":true,"predicate":"flags.2","description":"ID of preview photo"},{"name":"author","type":"string","optional":true,"predicate":"flags.3","description":"Author name"},{"name":"publishedDate","type":"number","optional":true,"predicate":"flags.4","description":"Date of pubblication"}],"description":"Related article"},{"name":"page","id":2556788493,"type":"Page","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"part","type":"true","optional":true,"predicate":"flags.0","description":"Indicates that not full page preview is available to the client and it will need to fetch full Instant View from the server using {@link messages.getWebPagePreview}."},{"name":"rtl","type":"true","optional":true,"predicate":"flags.1","description":"Whether the page contains RTL text"},{"name":"v2","type":"true","optional":true,"predicate":"flags.2","description":"Whether this is an IV v2 page"},{"name":"url","type":"string","description":"Original page HTTP URL"},{"name":"blocks","type":"PageBlock[]","description":"Page elements (like with HTML elements, only as TL constructors)"},{"name":"photos","type":"Photo[]","description":"Photos in page"},{"name":"documents","type":"Document[]","description":"Media in page"},{"name":"views","type":"number","optional":true,"predicate":"flags.3","description":"Viewcount"}],"description":"Instant view page"},{"name":"pollAnswer","id":1823064809,"type":"PollAnswer","arguments":[{"name":"text","type":"string","description":"Textual representation of the answer"},{"name":"option","type":"Buffer","description":"The param that has to be passed to {@link messages.sendVote}."}],"description":"A possible answer of a poll"},{"name":"poll","id":2262925665,"type":"Poll","arguments":[{"name":"id","type":"Long","description":"ID of the poll"},{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"closed","type":"true","optional":true,"predicate":"flags.0","description":"Whether the poll is closed and doesn't accept any more answers"},{"name":"publicVoters","type":"true","optional":true,"predicate":"flags.1","description":"Whether cast votes are publicly visible to all users (non-anonymous poll)"},{"name":"multipleChoice","type":"true","optional":true,"predicate":"flags.2","description":"Whether multiple options can be chosen as answer"},{"name":"quiz","type":"true","optional":true,"predicate":"flags.3","description":"Whether this is a quiz (with wrong and correct answers, results shown in the return type)"},{"name":"question","type":"string","description":"The question of the poll"},{"name":"answers","type":"PollAnswer[]","description":"The possible answers, vote using {@link messages.sendVote}."},{"name":"closePeriod","type":"number","optional":true,"predicate":"flags.4","description":"Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date."},{"name":"closeDate","type":"number","optional":true,"predicate":"flags.5","description":"Point in time (UNIX timestamp in seconds) when the poll will be automatically closed. Must be at least 5 and no more than 600 seconds in the future; can't be used together with close_period."}],"description":"Poll"},{"name":"pollAnswerVoters","id":997055186,"type":"PollAnswerVoters","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"chosen","type":"true","optional":true,"predicate":"flags.0","description":"Whether we have chosen this answer"},{"name":"correct","type":"true","optional":true,"predicate":"flags.1","description":"For quizes, whether the option we have chosen is correct"},{"name":"option","type":"Buffer","description":"The param that has to be passed to {@link messages.sendVote}."},{"name":"voters","type":"number","description":"How many users voted for this option"}],"description":"A poll answer, and how users voted on it"},{"name":"pollResults","id":3135029667,"type":"PollResults","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"min","type":"true","optional":true,"predicate":"flags.0","description":"Similar to min objects, used for poll constructors that are the same for all users so they don't have option chosen by the current user (you can use {@link messages.getPollResults} to get the full poll results)."},{"name":"results","type":"PollAnswerVoters[]","optional":true,"predicate":"flags.1","description":"Poll results"},{"name":"totalVoters","type":"number","optional":true,"predicate":"flags.2","description":"Total number of people that voted in the poll"},{"name":"recentVoters","type":"number[]","optional":true,"predicate":"flags.3","description":"IDs of the last users that recently voted in the poll"},{"name":"solution","type":"string","optional":true,"predicate":"flags.4","description":"Explanation of quiz solution"},{"name":"solutionEntities","type":"MessageEntity[]","optional":true,"predicate":"flags.4","description":"Message entities for styled text in quiz solution"}],"description":"Results of poll"},{"name":"chatOnlines","id":4030849616,"type":"ChatOnlines","arguments":[{"name":"onlines","type":"number","description":"Number of online users"}],"description":"Number of online users in a chat"},{"name":"statsURL","id":1202287072,"type":"StatsURL","arguments":[{"name":"url","type":"string","description":"Chat statistics"}],"description":"URL with chat statistics"},{"name":"chatAdminRights","id":1605510357,"type":"ChatAdminRights","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"changeInfo","type":"true","optional":true,"predicate":"flags.0","description":"If set, allows the admin to modify the description of the channel/supergroup"},{"name":"postMessages","type":"true","optional":true,"predicate":"flags.1","description":"If set, allows the admin to post messages in the channel"},{"name":"editMessages","type":"true","optional":true,"predicate":"flags.2","description":"If set, allows the admin to also edit messages from other admins in the channel"},{"name":"deleteMessages","type":"true","optional":true,"predicate":"flags.3","description":"If set, allows the admin to also delete messages from other admins in the channel"},{"name":"banUsers","type":"true","optional":true,"predicate":"flags.4","description":"If set, allows the admin to ban users from the channel/supergroup"},{"name":"inviteUsers","type":"true","optional":true,"predicate":"flags.5","description":"If set, allows the admin to invite users in the channel/supergroup"},{"name":"pinMessages","type":"true","optional":true,"predicate":"flags.7","description":"If set, allows the admin to pin messages in the channel/supergroup"},{"name":"addAdmins","type":"true","optional":true,"predicate":"flags.9","description":"If set, allows the admin to add other admins with the same (or more limited) permissions in the channel/supergroup"},{"name":"anonymous","type":"true","optional":true,"predicate":"flags.10","description":"Whether this admin is anonymous"},{"name":"manageCall","type":"true","optional":true,"predicate":"flags.11"},{"name":"other","type":"true","optional":true,"predicate":"flags.12"}],"description":"Represents the rights of an admin in a channel/supergroup."},{"name":"chatBannedRights","id":2668758040,"type":"ChatBannedRights","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"viewMessages","type":"true","optional":true,"predicate":"flags.0","description":"If set, does not allow a user to view messages in a supergroup/channel/chat"},{"name":"sendMessages","type":"true","optional":true,"predicate":"flags.1","description":"If set, does not allow a user to send messages in a supergroup/chat"},{"name":"sendMedia","type":"true","optional":true,"predicate":"flags.2","description":"If set, does not allow a user to send any media in a supergroup/chat"},{"name":"sendStickers","type":"true","optional":true,"predicate":"flags.3","description":"If set, does not allow a user to send stickers in a supergroup/chat"},{"name":"sendGifs","type":"true","optional":true,"predicate":"flags.4","description":"If set, does not allow a user to send gifs in a supergroup/chat"},{"name":"sendGames","type":"true","optional":true,"predicate":"flags.5","description":"If set, does not allow a user to send games in a supergroup/chat"},{"name":"sendInline","type":"true","optional":true,"predicate":"flags.6","description":"If set, does not allow a user to use inline bots in a supergroup/chat"},{"name":"embedLinks","type":"true","optional":true,"predicate":"flags.7","description":"If set, does not allow a user to embed links in the messages of a supergroup/chat"},{"name":"sendPolls","type":"true","optional":true,"predicate":"flags.8","description":"If set, does not allow a user to send stickers in a supergroup/chat"},{"name":"changeInfo","type":"true","optional":true,"predicate":"flags.10","description":"If set, does not allow any user to change the description of a supergroup/chat"},{"name":"inviteUsers","type":"true","optional":true,"predicate":"flags.15","description":"If set, does not allow any user to invite users in a supergroup/chat"},{"name":"pinMessages","type":"true","optional":true,"predicate":"flags.17","description":"If set, does not allow any user to pin messages in a supergroup/chat"},{"name":"untilDate","type":"number","description":"Validity of said permissions (it is considered forever any value less then 30 seconds or more then 366 days)."}],"description":"Represents the rights of a normal user in a supergroup/channel/chat. In this case, the flags are inverted: if set, a flag does not allow a user to do X."},{"name":"inputWallPaper","id":3861952889,"type":"InputWallPaper","arguments":[{"name":"id","type":"Long","description":"Wallpaper ID"},{"name":"accessHash","type":"Long","description":"Access hash"}],"description":"Wallpaper"},{"name":"inputWallPaperSlug","id":1913199744,"type":"InputWallPaper","arguments":[{"name":"slug","type":"string","description":"Unique wallpaper ID"}],"description":"Wallpaper by slug (a unique ID)"},{"name":"inputWallPaperNoFile","id":2524595758,"type":"InputWallPaper","arguments":[{"name":"id","type":"Long"}],"description":"Wallpaper with no file"},{"name":"codeSettings","id":3737042563,"type":"CodeSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"allowFlashcall","type":"true","optional":true,"predicate":"flags.0","description":"Whether to allow phone verification via phone calls."},{"name":"currentNumber","type":"true","optional":true,"predicate":"flags.1","description":"Pass true if the phone number is used on the current device. Ignored if allow_flashcall is not set."},{"name":"allowAppHash","type":"true","optional":true,"predicate":"flags.4","description":"If a token that will be included in eventually sent SMSs is required: required in newer versions of android, to use the android SMS receiver APIs"}],"description":"Settings used by telegram servers for sending the confirm code."},{"name":"wallPaperSettings","id":499236004,"type":"WallPaperSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"blur","type":"true","optional":true,"predicate":"flags.1","description":"If set, the wallpaper must be downscaled to fit in 450x450 square and then box-blurred with radius 12"},{"name":"motion","type":"true","optional":true,"predicate":"flags.2","description":"If set, the background needs to be slightly moved when device is rotated"},{"name":"backgroundColor","type":"number","optional":true,"predicate":"flags.0","description":"If set, a PNG pattern is to be combined with the color chosen by the user: the main color of the background in RGB24 format"},{"name":"secondBackgroundColor","type":"number","optional":true,"predicate":"flags.4","description":"If set, a PNG pattern is to be combined with the first and second background colors (RGB24 format) in a top-bottom gradient"},{"name":"thirdBackgroundColor","type":"number","optional":true,"predicate":"flags.5"},{"name":"fourthBackgroundColor","type":"number","optional":true,"predicate":"flags.6"},{"name":"intensity","type":"number","optional":true,"predicate":"flags.3","description":"Intensity of the pattern when it is shown above the main background color, 0-100"},{"name":"rotation","type":"number","optional":true,"predicate":"flags.4","description":"Clockwise rotation angle of the gradient, in degrees; 0-359. Should be always divisible by 45"}],"description":"Wallpaper settings"},{"name":"autoDownloadSettings","id":3762434803,"type":"AutoDownloadSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"disabled","type":"true","optional":true,"predicate":"flags.0","description":"Disable automatic media downloads?"},{"name":"videoPreloadLarge","type":"true","optional":true,"predicate":"flags.1","description":"Whether to preload the first seconds of videos larger than the specified limit"},{"name":"audioPreloadNext","type":"true","optional":true,"predicate":"flags.2","description":"Whether to preload the next audio track when you're listening to music"},{"name":"phonecallsLessData","type":"true","optional":true,"predicate":"flags.3","description":"Whether to enable data saving mode in phone calls"},{"name":"photoSizeMax","type":"number","description":"Maximum size of photos to preload"},{"name":"videoSizeMax","type":"number","description":"Maximum size of videos to preload"},{"name":"fileSizeMax","type":"number","description":"Maximum size of other files to preload"},{"name":"videoUploadMaxbitrate","type":"number","description":"Maximum suggested bitrate for uploading videos"}],"description":"Autodownload settings"},{"name":"emojiKeyword","id":3585325561,"type":"EmojiKeyword","arguments":[{"name":"keyword","type":"string","description":"Keyword"},{"name":"emoticons","type":"string[]","description":"Emojis associated to keyword"}],"description":"Emoji keyword"},{"name":"emojiKeywordDeleted","id":594408994,"type":"EmojiKeyword","arguments":[{"name":"keyword","type":"string","description":"Keyword"},{"name":"emoticons","type":"string[]","description":"Emojis that were associated to keyword"}],"description":"Deleted emoji keyword"},{"name":"emojiKeywordsDifference","id":1556570557,"type":"EmojiKeywordsDifference","arguments":[{"name":"langCode","type":"string","description":"Language code for keywords"},{"name":"fromVersion","type":"number","description":"Previous emoji keyword list version"},{"name":"version","type":"number","description":"Current version of emoji keyword list"},{"name":"keywords","type":"EmojiKeyword[]","description":"Emojis associated to keywords"}],"description":"Changes to emoji keywords"},{"name":"emojiURL","id":2775937949,"type":"EmojiURL","arguments":[{"name":"url","type":"string","description":"An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation"}],"description":"An HTTP URL which can be used to automatically log in into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation"},{"name":"emojiLanguage","id":3019592545,"type":"EmojiLanguage","arguments":[{"name":"langCode","type":"string","description":"Language code"}],"description":"Emoji language"},{"name":"folder","id":4283715173,"type":"Folder","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"autofillNewBroadcasts","type":"true","optional":true,"predicate":"flags.0","description":"Automatically add new channels to this folder"},{"name":"autofillPublicGroups","type":"true","optional":true,"predicate":"flags.1","description":"Automatically add joined new public supergroups to this folder"},{"name":"autofillNewCorrespondents","type":"true","optional":true,"predicate":"flags.2","description":"Automatically add new private chats to this folder"},{"name":"id","type":"number","description":"Folder ID"},{"name":"title","type":"string","description":"Folder title"},{"name":"photo","type":"ChatPhoto","optional":true,"predicate":"flags.3","description":"Folder picture"}],"description":"Folder"},{"name":"inputFolderPeer","id":4224893590,"type":"InputFolderPeer","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"},{"name":"folderId","type":"number","description":"Peer folder ID, for more info click here"}],"description":"Peer in a folder"},{"name":"folderPeer","id":3921323624,"type":"FolderPeer","arguments":[{"name":"peer","type":"Peer","description":"Folder peer info"},{"name":"folderId","type":"number","description":"Peer folder ID, for more info click here"}],"description":"Peer in a folder"},{"name":"urlAuthResultRequest","id":2463316494,"type":"UrlAuthResult","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"requestWriteAccess","type":"true","optional":true,"predicate":"flags.0","description":"Whether the bot would like to send messages to the user"},{"name":"bot","type":"User","description":"Username of a bot, which will be used for user authorization. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details."},{"name":"domain","type":"string","description":"The domain name of the website on which the user will log in."}],"description":"Details about the authorization request, for more info click here »"},{"name":"urlAuthResultAccepted","id":2408320590,"type":"UrlAuthResult","arguments":[{"name":"url","type":"string","description":"The URL name of the website on which the user has logged in."}],"description":"Details about an accepted authorization request, for more info click here »"},{"name":"urlAuthResultDefault","id":2849430303,"type":"UrlAuthResult","arguments":[],"description":"Details about an accepted authorization request, for more info click here »"},{"name":"channelLocationEmpty","id":3216354699,"type":"ChannelLocation","arguments":[],"description":"No location (normal supergroup)"},{"name":"channelLocation","id":547062491,"type":"ChannelLocation","arguments":[{"name":"geoPoint","type":"GeoPoint","description":"Geographical location of supergrup"},{"name":"address","type":"string","description":"Textual description of the address"}],"description":"Geographical location of supergroup (geogroups)"},{"name":"peerLocated","id":3393592157,"type":"PeerLocated","arguments":[{"name":"peer","type":"Peer","description":"Peer"},{"name":"expires","type":"number","description":"Validity period of current data"},{"name":"distance","type":"number","description":"Distance from the peer in meters"}],"description":"Peer geolocated nearby"},{"name":"peerSelfLocated","id":4176226379,"type":"PeerLocated","arguments":[{"name":"expires","type":"number","description":"Expiry of geolocation info for current peer"}],"description":"Current peer"},{"name":"restrictionReason","id":3497176244,"type":"RestrictionReason","arguments":[{"name":"platform","type":"string","description":"Platform identifier (ios, android, wp, all, etc.), can be concatenated with a dash as separator (android-ios, ios-wp, etc)"},{"name":"reason","type":"string","description":"Restriction reason (porno, terms, etc.)"},{"name":"text","type":"string","description":"Error message to be shown to the user"}],"description":"Restriction reason."},{"name":"inputTheme","id":1012306921,"type":"InputTheme","arguments":[{"name":"id","type":"Long","description":"ID"},{"name":"accessHash","type":"Long","description":"Access hash"}],"description":"Theme"},{"name":"inputThemeSlug","id":4119399921,"type":"InputTheme","arguments":[{"name":"slug","type":"string","description":"Unique theme ID"}],"description":"Theme by theme ID"},{"name":"theme","id":42930452,"type":"Theme","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"creator","type":"true","optional":true,"predicate":"flags.0","description":"Whether the current user is the creator of this theme"},{"name":"default","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is the default theme"},{"name":"id","type":"Long","description":"Theme ID"},{"name":"accessHash","type":"Long","description":"Theme access hash"},{"name":"slug","type":"string","description":"Unique theme ID"},{"name":"title","type":"string","description":"Theme name"},{"name":"document","type":"Document","optional":true,"predicate":"flags.2","description":"Theme"},{"name":"settings","type":"ThemeSettings","optional":true,"predicate":"flags.3","description":"Theme settings"},{"name":"installsCount","type":"number","description":"Installation count"}],"description":"Theme"},{"name":"baseThemeClassic","id":3282117730,"type":"BaseTheme","arguments":[],"description":"Classic theme"},{"name":"baseThemeDay","id":4225242760,"type":"BaseTheme","arguments":[],"description":"Day theme"},{"name":"baseThemeNight","id":3081969320,"type":"BaseTheme","arguments":[],"description":"Night theme"},{"name":"baseThemeTinted","id":1834973166,"type":"BaseTheme","arguments":[],"description":"Tinted theme"},{"name":"baseThemeArctic","id":1527845466,"type":"BaseTheme","arguments":[],"description":"Arctic theme"},{"name":"inputThemeSettings","id":3176168657,"type":"InputThemeSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"baseTheme","type":"BaseTheme","description":"Default theme on which this theme is based"},{"name":"accentColor","type":"number","description":"Accent color, RGB24 format"},{"name":"messageTopColor","type":"number","optional":true,"predicate":"flags.0","description":"Message gradient color (top), RGB24 format"},{"name":"messageBottomColor","type":"number","optional":true,"predicate":"flags.0","description":"Message gradient color (bottom), RGB24 format"},{"name":"wallpaper","type":"InputWallPaper","optional":true,"predicate":"flags.1","description":"Wallpaper"},{"name":"wallpaperSettings","type":"WallPaperSettings","optional":true,"predicate":"flags.1","description":"Wallpaper settings"}],"description":"Theme settings"},{"name":"themeSettings","id":2618595402,"type":"ThemeSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"baseTheme","type":"BaseTheme","description":"Base theme"},{"name":"accentColor","type":"number","description":"Accent color, RGB24 format"},{"name":"messageTopColor","type":"number","optional":true,"predicate":"flags.0","description":"Message gradient color (top), RGB24 format"},{"name":"messageBottomColor","type":"number","optional":true,"predicate":"flags.0","description":"Message gradient color (bottom), RGB24 format"},{"name":"wallpaper","type":"WallPaper","optional":true,"predicate":"flags.1","description":"Wallpaper"}],"description":"Theme settings"},{"name":"webPageAttributeTheme","id":1421174295,"type":"WebPageAttribute","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"documents","type":"Document[]","optional":true,"predicate":"flags.0","description":"Theme files"},{"name":"settings","type":"ThemeSettings","optional":true,"predicate":"flags.1","description":"Theme settings"}],"description":"Page theme"},{"name":"messageUserVote","id":2727236953,"type":"MessageUserVote","arguments":[{"name":"userId","type":"number","description":"User ID"},{"name":"option","type":"Buffer","description":"The option chosen by the user"},{"name":"date","type":"number","description":"When did the user cast the vote"}],"description":"How a user voted in a poll"},{"name":"messageUserVoteInputOption","id":909603888,"type":"MessageUserVote","arguments":[{"name":"userId","type":"number","description":"The user that voted for the queried option"},{"name":"date","type":"number","description":"When did the user cast the vote"}],"description":"How a user voted in a poll (reduced constructor, returned if an option was provided to {@link messages.getPollVotes})"},{"name":"messageUserVoteMultiple","id":244310238,"type":"MessageUserVote","arguments":[{"name":"userId","type":"number","description":"User ID"},{"name":"options","type":"Buffer[]","description":"Options chosen by the user"},{"name":"date","type":"number","description":"When did the user cast their votes"}],"description":"How a user voted in a multiple-choice poll"},{"name":"bankCardOpenUrl","id":4117234314,"type":"BankCardOpenUrl","arguments":[{"name":"url","type":"string","description":"Info URL"},{"name":"name","type":"string","description":"Bank name"}],"description":"Credit card info URL provided by the bank"},{"name":"dialogFilter","id":1949890536,"type":"DialogFilter","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"contacts","type":"true","optional":true,"predicate":"flags.0","description":"Whether to include all contacts in this folder"},{"name":"nonContacts","type":"true","optional":true,"predicate":"flags.1","description":"Whether to include all non-contacts in this folder"},{"name":"groups","type":"true","optional":true,"predicate":"flags.2","description":"Whether to include all groups in this folder"},{"name":"broadcasts","type":"true","optional":true,"predicate":"flags.3","description":"Whether to include all channels in this folder"},{"name":"bots","type":"true","optional":true,"predicate":"flags.4","description":"Whether to include all bots in this folder"},{"name":"excludeMuted","type":"true","optional":true,"predicate":"flags.11","description":"Whether to exclude muted chats from this folder"},{"name":"excludeRead","type":"true","optional":true,"predicate":"flags.12","description":"Whether to exclude read chats from this folder"},{"name":"excludeArchived","type":"true","optional":true,"predicate":"flags.13","description":"Whether to exclude archived chats from this folder"},{"name":"id","type":"number","description":"Folder ID"},{"name":"title","type":"string","description":"Folder name"},{"name":"emoticon","type":"string","optional":true,"predicate":"flags.25","description":"Folder emoticon"},{"name":"pinnedPeers","type":"InputPeer[]","description":"Pinned chats, folders can have unlimited pinned chats"},{"name":"includePeers","type":"InputPeer[]","description":"Include the following chats in this folder"},{"name":"excludePeers","type":"InputPeer[]","description":"Exclude the following chats from this folder"}],"description":"Dialog filter AKA folder"},{"name":"dialogFilterSuggested","id":2004110666,"type":"DialogFilterSuggested","arguments":[{"name":"filter","type":"DialogFilter","description":"Folder info"},{"name":"description","type":"string","description":"Folder description"}],"description":"Suggested folders"},{"name":"statsDateRangeDays","id":3057118639,"type":"StatsDateRangeDays","arguments":[{"name":"minDate","type":"number","description":"Initial date"},{"name":"maxDate","type":"number","description":"Final date"}],"description":"Channel statistics date range"},{"name":"statsAbsValueAndPrev","id":3410210014,"type":"StatsAbsValueAndPrev","arguments":[{"name":"current","type":"Double","description":"Current value"},{"name":"previous","type":"Double","description":"Previous value"}],"description":"Statistics value couple; intial and final value for period of time currently in consideration"},{"name":"statsPercentValue","id":3419287520,"type":"StatsPercentValue","arguments":[{"name":"part","type":"Double","description":"Partial value"},{"name":"total","type":"Double","description":"Total value"}],"description":"Channel statistics percentage.
\nCompute the percentage simply by doing part * total / 100"},{"name":"statsGraphAsync","id":1244130093,"type":"StatsGraph","arguments":[{"name":"token","type":"string","description":"Token to use for fetching the async graph"}],"description":"This channel statistics graph must be generated asynchronously using {@link stats.loadAsyncGraph} to reduce server load"},{"name":"statsGraphError","id":3202127906,"type":"StatsGraph","arguments":[{"name":"error","type":"string","description":"The error"}],"description":"An error occurred while generating the statistics graph"},{"name":"statsGraph","id":2393138358,"type":"StatsGraph","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"json","type":"DataJSON","description":"Statistics data"},{"name":"zoomToken","type":"string","optional":true,"predicate":"flags.0","description":"Zoom token"}],"description":"Channel statistics graph"},{"name":"messageInteractionCounters","id":2907687357,"type":"MessageInteractionCounters","arguments":[{"name":"msgId","type":"number","description":"Message ID"},{"name":"views","type":"number","description":"Views"},{"name":"forwards","type":"number","description":"Number of times this message was forwarded"}],"description":"Message interaction counters"},{"name":"videoSize","id":3727929492,"type":"VideoSize","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"type","type":"string","description":"u for animated profile pictures, and v for trimmed and downscaled video previews"},{"name":"w","type":"number","description":"Video width"},{"name":"h","type":"number","description":"Video height"},{"name":"size","type":"number","description":"File size"},{"name":"videoStartTs","type":"Double","optional":true,"predicate":"flags.0","description":"Timestamp that should be shown as static preview to the user (seconds)"}],"description":"Animated profile picture in MPEG4 format"},{"name":"statsGroupTopPoster","id":418631927,"type":"StatsGroupTopPoster","arguments":[{"name":"userId","type":"number","description":"User ID"},{"name":"messages","type":"number","description":"Number of messages for statistics period in consideration"},{"name":"avgChars","type":"number","description":"Average number of characters per message"}],"description":"Information about an active user in a supergroup"},{"name":"statsGroupTopAdmin","id":1611985938,"type":"StatsGroupTopAdmin","arguments":[{"name":"userId","type":"number","description":"User ID"},{"name":"deleted","type":"number","description":"Number of deleted messages for statistics period in consideration"},{"name":"kicked","type":"number","description":"Number of kicked users for statistics period in consideration"},{"name":"banned","type":"number","description":"Number of banned users for statistics period in consideration"}],"description":"Information about an active admin in a supergroup"},{"name":"statsGroupTopInviter","id":831924812,"type":"StatsGroupTopInviter","arguments":[{"name":"userId","type":"number","description":"User ID"},{"name":"invitations","type":"number","description":"Number of invitations for statistics period in consideration"}],"description":"Information about an active supergroup inviter"},{"name":"globalPrivacySettings","id":3198350372,"type":"GlobalPrivacySettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"archiveAndMuteNewNoncontactPeers","type":"boolean","optional":true,"predicate":"flags.0","description":"Whether to archive and mute new chats from non-contacts"}],"description":"Global privacy settings"},{"name":"messageViews","id":1163625789,"type":"MessageViews","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"views","type":"number","optional":true,"predicate":"flags.0","description":"Viewcount of message"},{"name":"forwards","type":"number","optional":true,"predicate":"flags.1","description":"Forward count of message"},{"name":"replies","type":"MessageReplies","optional":true,"predicate":"flags.2","description":"Reply and thread information of message"}],"description":"View, forward counter + info about replies of a specific message"},{"name":"messageReplyHeader","id":2799007587,"type":"MessageReplyHeader","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"replyToMsgId","type":"number","description":"ID of message to which this message is replying"},{"name":"replyToPeerId","type":"Peer","optional":true,"predicate":"flags.0","description":"For replies sent in channel discussion threads of which the current user is not a member, the discussion group ID"},{"name":"replyToTopId","type":"number","optional":true,"predicate":"flags.1","description":"ID of the message that started this message thread"}],"description":"Message replies and thread information"},{"name":"messageReplies","id":1093204652,"type":"MessageReplies","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"comments","type":"true","optional":true,"predicate":"flags.0","description":"Whether this constructor contains information about the comment section of a channel post, or a simple message thread"},{"name":"replies","type":"number","description":"Contains the total number of replies in this thread or comment section."},{"name":"repliesPts","type":"number","description":"PTS of the message that started this thread."},{"name":"recentRepliers","type":"Peer[]","optional":true,"predicate":"flags.1","description":"For channel post comments, contains information about the last few comment posters for a specific thread, to show a small list of commenter profile pictures in client previews."},{"name":"channelId","type":"number","optional":true,"predicate":"flags.0","description":"For channel post comments, contains the ID of the associated discussion supergroup"},{"name":"maxId","type":"number","optional":true,"predicate":"flags.2","description":"ID of the latest message in this thread or comment section."},{"name":"readMaxId","type":"number","optional":true,"predicate":"flags.3","description":"Contains the ID of the latest read message in this thread or comment section."}],"description":"Info about the comment section of a channel post, or a simple message thread"},{"name":"peerBlocked","id":3908927508,"type":"PeerBlocked","arguments":[{"name":"peerId","type":"Peer","description":"Peer ID"},{"name":"date","type":"number","description":"When was the peer blocked"}],"description":"Information about a blocked peer"},{"name":"groupCallDiscarded","id":2004925620,"type":"GroupCall","arguments":[{"name":"id","type":"Long"},{"name":"accessHash","type":"Long"},{"name":"duration","type":"number"}]},{"name":"groupCall","id":3583468812,"type":"GroupCall","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"joinMuted","type":"true","optional":true,"predicate":"flags.1"},{"name":"canChangeJoinMuted","type":"true","optional":true,"predicate":"flags.2"},{"name":"joinDateAsc","type":"true","optional":true,"predicate":"flags.6"},{"name":"scheduleStartSubscribed","type":"true","optional":true,"predicate":"flags.8"},{"name":"canStartVideo","type":"true","optional":true,"predicate":"flags.9"},{"name":"id","type":"Long"},{"name":"accessHash","type":"Long"},{"name":"participantsCount","type":"number"},{"name":"title","type":"string","optional":true,"predicate":"flags.3"},{"name":"streamDcId","type":"number","optional":true,"predicate":"flags.4"},{"name":"recordStartDate","type":"number","optional":true,"predicate":"flags.5"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.7"},{"name":"unmutedVideoCount","type":"number","optional":true,"predicate":"flags.10"},{"name":"unmutedVideoLimit","type":"number"},{"name":"version","type":"number"}]},{"name":"inputGroupCall","id":3635053583,"type":"InputGroupCall","arguments":[{"name":"id","type":"Long"},{"name":"accessHash","type":"Long"}]},{"name":"groupCallParticipant","id":3953538814,"type":"GroupCallParticipant","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"muted","type":"true","optional":true,"predicate":"flags.0"},{"name":"left","type":"true","optional":true,"predicate":"flags.1"},{"name":"canSelfUnmute","type":"true","optional":true,"predicate":"flags.2"},{"name":"justJoined","type":"true","optional":true,"predicate":"flags.4"},{"name":"versioned","type":"true","optional":true,"predicate":"flags.5"},{"name":"min","type":"true","optional":true,"predicate":"flags.8"},{"name":"mutedByYou","type":"true","optional":true,"predicate":"flags.9"},{"name":"volumeByAdmin","type":"true","optional":true,"predicate":"flags.10"},{"name":"self","type":"true","optional":true,"predicate":"flags.12"},{"name":"videoJoined","type":"true","optional":true,"predicate":"flags.15"},{"name":"peer","type":"Peer"},{"name":"date","type":"number"},{"name":"activeDate","type":"number","optional":true,"predicate":"flags.3"},{"name":"source","type":"number"},{"name":"volume","type":"number","optional":true,"predicate":"flags.7"},{"name":"about","type":"string","optional":true,"predicate":"flags.11"},{"name":"raiseHandRating","type":"Long","optional":true,"predicate":"flags.13"},{"name":"video","type":"GroupCallParticipantVideo","optional":true,"predicate":"flags.6"},{"name":"presentation","type":"GroupCallParticipantVideo","optional":true,"predicate":"flags.14"}]},{"name":"inlineQueryPeerTypeSameBotPM","id":813821341,"type":"InlineQueryPeerType","arguments":[]},{"name":"inlineQueryPeerTypePM","id":2201751468,"type":"InlineQueryPeerType","arguments":[]},{"name":"inlineQueryPeerTypeChat","id":3613836554,"type":"InlineQueryPeerType","arguments":[]},{"name":"inlineQueryPeerTypeMegagroup","id":1589952067,"type":"InlineQueryPeerType","arguments":[]},{"name":"inlineQueryPeerTypeBroadcast","id":1664413338,"type":"InlineQueryPeerType","arguments":[]},{"name":"chatInviteImporter","id":507405952,"type":"ChatInviteImporter","arguments":[{"name":"userId","type":"number"},{"name":"date","type":"number"}]},{"name":"chatAdminWithInvites","id":3755094799,"type":"ChatAdminWithInvites","arguments":[{"name":"adminId","type":"number"},{"name":"invitesCount","type":"number"},{"name":"revokedInvitesCount","type":"number"}]},{"name":"groupCallParticipantVideoSourceGroup","id":3702593719,"type":"GroupCallParticipantVideoSourceGroup","arguments":[{"name":"semantics","type":"string"},{"name":"sources","type":"number[]"}]},{"name":"groupCallParticipantVideo","id":1735736008,"type":"GroupCallParticipantVideo","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"paused","type":"true","optional":true,"predicate":"flags.0"},{"name":"endpoint","type":"string"},{"name":"sourceGroups","type":"GroupCallParticipantVideoSourceGroup[]"},{"name":"audioSource","type":"number","optional":true,"predicate":"flags.1"}]},{"name":"botCommandScopeDefault","id":795652779,"type":"BotCommandScope","arguments":[]},{"name":"botCommandScopeUsers","id":1011811544,"type":"BotCommandScope","arguments":[]},{"name":"botCommandScopeChats","id":1877059713,"type":"BotCommandScope","arguments":[]},{"name":"botCommandScopeChatAdmins","id":3114950762,"type":"BotCommandScope","arguments":[]},{"name":"botCommandScopePeer","id":3684534653,"type":"BotCommandScope","arguments":[{"name":"peer","type":"InputPeer"}]},{"name":"botCommandScopePeerAdmins","id":1071145937,"type":"BotCommandScope","arguments":[{"name":"peer","type":"InputPeer"}]},{"name":"botCommandScopePeerUser","id":169026035,"type":"BotCommandScope","arguments":[{"name":"peer","type":"InputPeer"},{"name":"userId","type":"InputUser"}]}],"methods":[{"name":"invokeAfterMsg","id":3416209197,"returns":"X","arguments":[{"name":"msgId","type":"Long","description":"Message identifier on which a current query depends"},{"name":"query","type":"X","description":"The query itself"}],"generics":[{"name":"X","super":"any"}],"description":"Invokes a query after successfull completion of one of the previous queries.","available":"both"},{"name":"invokeAfterMsgs","id":1036301552,"returns":"X","arguments":[{"name":"msgIds","type":"Long[]","description":"List of messages on which a current query depends"},{"name":"query","type":"X","description":"The query itself"}],"generics":[{"name":"X","super":"any"}],"description":"Invokes a query after a successfull completion of previous queries","available":"both"},{"name":"initConnection","id":3251461801,"returns":"X","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"apiId","type":"number","description":"Application identifier (see. App configuration)"},{"name":"deviceModel","type":"string","description":"Device model"},{"name":"systemVersion","type":"string","description":"Operation system version"},{"name":"appVersion","type":"string","description":"Application version"},{"name":"systemLangCode","type":"string","description":"Code for the language used on the device's OS, ISO 639-1 standard"},{"name":"langPack","type":"string","description":"Language pack to use"},{"name":"langCode","type":"string","description":"Code for the language used on the client, ISO 639-1 standard"},{"name":"proxy","type":"InputClientProxy","optional":true,"predicate":"flags.0","description":"Info about an MTProto proxy"},{"name":"params","type":"JSONValue","optional":true,"predicate":"flags.1","description":"Additional initConnection parameters.
For now, only the tz_offset field is supported, for specifying timezone offset in seconds."},{"name":"query","type":"X","description":"The query itself"}],"generics":[{"name":"X","super":"any"}],"description":"Initialize connection","throws":[{"code":400,"name":"CONNECTION_LAYER_INVALID","description":"Layer invalid"}],"available":"both"},{"name":"invokeWithLayer","id":3667594509,"returns":"X","arguments":[{"name":"layer","type":"number","description":"The layer to use"},{"name":"query","type":"X","description":"The query"}],"generics":[{"name":"X","super":"any"}],"description":"Invoke the specified query using the specified API layer","throws":[{"code":400,"name":"AUTH_BYTES_INVALID","description":"The provided authorization is invalid"},{"code":400,"name":"CDN_METHOD_INVALID","description":"You can't call this method in a CDN DC"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"CONNECTION_API_ID_INVALID","description":"The provided API id is invalid"},{"code":400,"name":"CONNECTION_DEVICE_MODEL_EMPTY","description":"Device model empty"},{"code":400,"name":"CONNECTION_LANG_PACK_INVALID","description":"Language pack invalid"},{"code":400,"name":"CONNECTION_NOT_INITED","description":"Connection not initialized"},{"code":400,"name":"CONNECTION_SYSTEM_EMPTY","description":"Connection system empty"},{"code":400,"name":"INPUT_LAYER_INVALID","description":"The provided layer is invalid"},{"code":400,"name":"INVITE_HASH_EXPIRED","description":"The invite link has expired"}],"available":"both"},{"name":"invokeWithoutUpdates","id":3214170551,"returns":"X","arguments":[{"name":"query","type":"X","description":"The query"}],"generics":[{"name":"X","super":"any"}],"description":"Invoke a request without subscribing the used connection for updates (this is enabled by default for file queries).","available":"both"},{"name":"invokeWithMessagesRange","id":911373810,"returns":"X","arguments":[{"name":"range","type":"MessageRange","description":"Message range"},{"name":"query","type":"X","description":"Query"}],"generics":[{"name":"X","super":"any"}],"description":"Invoke with the given message range","available":"both"},{"name":"invokeWithTakeout","id":2896821550,"returns":"X","arguments":[{"name":"takeoutId","type":"Long","description":"Takeout session ID"},{"name":"query","type":"X","description":"Query"}],"generics":[{"name":"X","super":"any"}],"description":"Invoke a method within a takeout session","throws":[{"code":400,"name":"INPUT_METHOD_INVALID_1400137063_X","description":"Invalid method"}],"available":"both"}],"unions":[{"type":"Error","subtypes":["error"],"description":"An object containing a query error."},{"type":"IpPort","subtypes":["ipPort","ipPortSecret"]},{"type":"AccessPointRule","subtypes":["accessPointRule"]},{"type":"InputFileLocation","subtypes":["inputPeerPhotoFileLocationLegacy","inputStickerSetThumbLegacy","inputFileLocation","inputEncryptedFileLocation","inputDocumentFileLocation","inputSecureFileLocation","inputTakeoutFileLocation","inputPhotoFileLocation","inputPhotoLegacyFileLocation","inputPeerPhotoFileLocation","inputStickerSetThumb","inputGroupCallStream"],"description":"Defines the location of a file for download."},{"type":"InputPeer","subtypes":["inputPeerEmpty","inputPeerSelf","inputPeerChat","inputPeerUser","inputPeerChannel","inputPeerUserFromMessage","inputPeerChannelFromMessage"],"description":"Peer"},{"type":"InputUser","subtypes":["inputUserEmpty","inputUserSelf","inputUser","inputUserFromMessage"],"description":"Defines a user for subsequent interaction."},{"type":"InputContact","subtypes":["inputPhoneContact"],"description":"Object defines a contact from the user's phonebook."},{"type":"InputFile","subtypes":["inputFile","inputFileBig"],"description":"Defines a file uploaded by the client."},{"type":"InputMedia","subtypes":["inputMediaEmpty","inputMediaUploadedPhoto","inputMediaPhoto","inputMediaGeoPoint","inputMediaContact","inputMediaUploadedDocument","inputMediaDocument","inputMediaVenue","inputMediaPhotoExternal","inputMediaDocumentExternal","inputMediaGame","inputMediaInvoice","inputMediaGeoLive","inputMediaPoll","inputMediaDice"],"description":"Defines media content of a message."},{"type":"InputChatPhoto","subtypes":["inputChatPhotoEmpty","inputChatUploadedPhoto","inputChatPhoto"],"description":"Defines a new group profile photo."},{"type":"InputGeoPoint","subtypes":["inputGeoPointEmpty","inputGeoPoint"],"description":"Defines a GeoPoint."},{"type":"InputPhoto","subtypes":["inputPhotoEmpty","inputPhoto"],"description":"Defines a photo for further interaction."},{"type":"Peer","subtypes":["peerUser","peerChat","peerChannel"],"description":"Chat partner or group."},{"type":"User","subtypes":["userEmpty","user"],"description":"Object defines a user."},{"type":"UserProfilePhoto","subtypes":["userProfilePhotoEmpty","userProfilePhoto"],"description":"Object contains info on the user's profile photo."},{"type":"UserStatus","subtypes":["userStatusEmpty","userStatusOnline","userStatusOffline","userStatusRecently","userStatusLastWeek","userStatusLastMonth"],"description":"User online status"},{"type":"Chat","subtypes":["chatEmpty","chat","chatForbidden","channel","channelForbidden"],"description":"Object defines a group."},{"type":"ChatFull","subtypes":["chatFull","channelFull"],"description":"Object containing detailed group info"},{"type":"ChatParticipant","subtypes":["chatParticipant","chatParticipantCreator","chatParticipantAdmin"],"description":"Details of a group member."},{"type":"ChatParticipants","subtypes":["chatParticipantsForbidden","chatParticipants"],"description":"Object contains info on group members."},{"type":"ChatPhoto","subtypes":["chatPhotoEmpty","chatPhoto"],"description":"Object defines a group profile photo."},{"type":"Message","subtypes":["messageEmpty","message","messageService"],"description":"Object describing a message."},{"type":"MessageMedia","subtypes":["messageMediaEmpty","messageMediaPhoto","messageMediaGeo","messageMediaContact","messageMediaUnsupported","messageMediaDocument","messageMediaWebPage","messageMediaVenue","messageMediaGame","messageMediaInvoice","messageMediaGeoLive","messageMediaPoll","messageMediaDice"],"description":"Media"},{"type":"MessageAction","subtypes":["messageActionEmpty","messageActionChatCreate","messageActionChatEditTitle","messageActionChatEditPhoto","messageActionChatDeletePhoto","messageActionChatAddUser","messageActionChatDeleteUser","messageActionChatJoinedByLink","messageActionChannelCreate","messageActionChatMigrateTo","messageActionChannelMigrateFrom","messageActionPinMessage","messageActionHistoryClear","messageActionGameScore","messageActionPaymentSentMe","messageActionPaymentSent","messageActionPhoneCall","messageActionScreenshotTaken","messageActionCustomAction","messageActionBotAllowed","messageActionSecureValuesSentMe","messageActionSecureValuesSent","messageActionContactSignUp","messageActionGeoProximityReached","messageActionGroupCall","messageActionInviteToGroupCall","messageActionSetMessagesTTL","messageActionGroupCallScheduled"],"description":"Object describing actions connected to a service message."},{"type":"Dialog","subtypes":["dialog","dialogFolder"],"description":"Chat info."},{"type":"Photo","subtypes":["photoEmpty","photo"],"description":"Object describes a photo."},{"type":"PhotoSize","subtypes":["photoSizeEmpty","photoSize","photoCachedSize","photoStrippedSize","photoSizeProgressive","photoPathSize"],"description":"Location of a certain size of a picture"},{"type":"GeoPoint","subtypes":["geoPointEmpty","geoPoint"],"description":"Object defines a GeoPoint."},{"type":"InputNotifyPeer","subtypes":["inputNotifyPeer","inputNotifyUsers","inputNotifyChats","inputNotifyBroadcasts"],"description":"Object defines the set of users and/or groups that generate notifications."},{"type":"InputPeerNotifySettings","subtypes":["inputPeerNotifySettings"],"description":"Notifications settings."},{"type":"PeerNotifySettings","subtypes":["peerNotifySettings"],"description":"Notification settings."},{"type":"PeerSettings","subtypes":["peerSettings"],"description":"Peer settings"},{"type":"WallPaper","subtypes":["wallPaper","wallPaperNoFile"],"description":"Object contains info on a wallpaper."},{"type":"ReportReason","subtypes":["inputReportReasonSpam","inputReportReasonViolence","inputReportReasonPornography","inputReportReasonChildAbuse","inputReportReasonOther","inputReportReasonCopyright","inputReportReasonGeoIrrelevant","inputReportReasonFake"],"description":"Report reason"},{"type":"UserFull","subtypes":["userFull"],"description":"Object contains extended user info."},{"type":"Contact","subtypes":["contact"],"description":"A contact of the current user."},{"type":"ImportedContact","subtypes":["importedContact"],"description":"Object contains info on a successfully imported contact."},{"type":"ContactStatus","subtypes":["contactStatus"],"description":"Contact status: online / offline."},{"type":"MessagesFilter","subtypes":["inputMessagesFilterEmpty","inputMessagesFilterPhotos","inputMessagesFilterVideo","inputMessagesFilterPhotoVideo","inputMessagesFilterDocument","inputMessagesFilterUrl","inputMessagesFilterGif","inputMessagesFilterVoice","inputMessagesFilterMusic","inputMessagesFilterChatPhotos","inputMessagesFilterPhoneCalls","inputMessagesFilterRoundVoice","inputMessagesFilterRoundVideo","inputMessagesFilterMyMentions","inputMessagesFilterGeo","inputMessagesFilterContacts","inputMessagesFilterPinned"],"description":"Object describes message filter."},{"type":"Update","subtypes":["updateNewMessage","updateMessageID","updateDeleteMessages","updateUserTyping","updateChatUserTyping","updateChatParticipants","updateUserStatus","updateUserName","updateUserPhoto","updateNewEncryptedMessage","updateEncryptedChatTyping","updateEncryption","updateEncryptedMessagesRead","updateChatParticipantAdd","updateChatParticipantDelete","updateDcOptions","updateNotifySettings","updateServiceNotification","updatePrivacy","updateUserPhone","updateReadHistoryInbox","updateReadHistoryOutbox","updateWebPage","updateReadMessagesContents","updateChannelTooLong","updateChannel","updateNewChannelMessage","updateReadChannelInbox","updateDeleteChannelMessages","updateChannelMessageViews","updateChatParticipantAdmin","updateNewStickerSet","updateStickerSetsOrder","updateStickerSets","updateSavedGifs","updateBotInlineQuery","updateBotInlineSend","updateEditChannelMessage","updateBotCallbackQuery","updateEditMessage","updateInlineBotCallbackQuery","updateReadChannelOutbox","updateDraftMessage","updateReadFeaturedStickers","updateRecentStickers","updateConfig","updatePtsChanged","updateChannelWebPage","updateDialogPinned","updatePinnedDialogs","updateBotWebhookJSON","updateBotWebhookJSONQuery","updateBotShippingQuery","updateBotPrecheckoutQuery","updatePhoneCall","updateLangPackTooLong","updateLangPack","updateFavedStickers","updateChannelReadMessagesContents","updateContactsReset","updateChannelAvailableMessages","updateDialogUnreadMark","updateMessagePoll","updateChatDefaultBannedRights","updateFolderPeers","updatePeerSettings","updatePeerLocated","updateNewScheduledMessage","updateDeleteScheduledMessages","updateTheme","updateGeoLiveViewed","updateLoginToken","updateMessagePollVote","updateDialogFilter","updateDialogFilterOrder","updateDialogFilters","updatePhoneCallSignalingData","updateChannelMessageForwards","updateReadChannelDiscussionInbox","updateReadChannelDiscussionOutbox","updatePeerBlocked","updateChannelUserTyping","updatePinnedMessages","updatePinnedChannelMessages","updateChat","updateGroupCallParticipants","updateGroupCall","updatePeerHistoryTTL","updateChatParticipant","updateChannelParticipant","updateBotStopped","updateGroupCallConnection","updateBotCommands"],"description":"Object contains info on events occured."},{"type":"Updates","subtypes":["updatesTooLong","updateShortMessage","updateShortChatMessage","updateShort","updatesCombined","updates","updateShortSentMessage"],"description":"Object which is perceived by the client without a call on its part when an event occurs."},{"type":"DcOption","subtypes":["dcOption"],"description":"Information for connection to data centre."},{"type":"Config","subtypes":["config"],"description":"Object contains info on API configuring parameters."},{"type":"NearestDc","subtypes":["nearestDc"],"description":"Object contains info on nearest data centre."},{"type":"EncryptedChat","subtypes":["encryptedChatEmpty","encryptedChatWaiting","encryptedChatRequested","encryptedChat","encryptedChatDiscarded"],"description":"Object contains info on an encrypted chat."},{"type":"InputEncryptedChat","subtypes":["inputEncryptedChat"],"description":"Object sets an encrypted chat ID."},{"type":"EncryptedFile","subtypes":["encryptedFileEmpty","encryptedFile"],"description":"Seta an encrypted file."},{"type":"InputEncryptedFile","subtypes":["inputEncryptedFileEmpty","inputEncryptedFileUploaded","inputEncryptedFile","inputEncryptedFileBigUploaded"],"description":"Object sets encrypted file for attachment"},{"type":"EncryptedMessage","subtypes":["encryptedMessage","encryptedMessageService"],"description":"Object contains encrypted message."},{"type":"InputDocument","subtypes":["inputDocumentEmpty","inputDocument"],"description":"Defines a document for subsequent interaction."},{"type":"Document","subtypes":["documentEmpty","document"],"description":"A document."},{"type":"NotifyPeer","subtypes":["notifyPeer","notifyUsers","notifyChats","notifyBroadcasts"],"description":"Object defines the set of users and/or groups that generate notifications."},{"type":"SendMessageAction","subtypes":["sendMessageTypingAction","sendMessageCancelAction","sendMessageRecordVideoAction","sendMessageUploadVideoAction","sendMessageRecordAudioAction","sendMessageUploadAudioAction","sendMessageUploadPhotoAction","sendMessageUploadDocumentAction","sendMessageGeoLocationAction","sendMessageChooseContactAction","sendMessageGamePlayAction","sendMessageRecordRoundAction","sendMessageUploadRoundAction","speakingInGroupCallAction","sendMessageHistoryImportAction"],"description":"User actions. Use this to provide users with detailed info about their chat partners' actions: typing or sending attachments of all kinds."},{"type":"InputPrivacyKey","subtypes":["inputPrivacyKeyStatusTimestamp","inputPrivacyKeyChatInvite","inputPrivacyKeyPhoneCall","inputPrivacyKeyPhoneP2P","inputPrivacyKeyForwards","inputPrivacyKeyProfilePhoto","inputPrivacyKeyPhoneNumber","inputPrivacyKeyAddedByPhone"],"description":"Privacy key"},{"type":"PrivacyKey","subtypes":["privacyKeyStatusTimestamp","privacyKeyChatInvite","privacyKeyPhoneCall","privacyKeyPhoneP2P","privacyKeyForwards","privacyKeyProfilePhoto","privacyKeyPhoneNumber","privacyKeyAddedByPhone"],"description":"Privacy key"},{"type":"InputPrivacyRule","subtypes":["inputPrivacyValueAllowContacts","inputPrivacyValueAllowAll","inputPrivacyValueAllowUsers","inputPrivacyValueDisallowContacts","inputPrivacyValueDisallowAll","inputPrivacyValueDisallowUsers","inputPrivacyValueAllowChatParticipants","inputPrivacyValueDisallowChatParticipants"],"description":"Privacy rule"},{"type":"PrivacyRule","subtypes":["privacyValueAllowContacts","privacyValueAllowAll","privacyValueAllowUsers","privacyValueDisallowContacts","privacyValueDisallowAll","privacyValueDisallowUsers","privacyValueAllowChatParticipants","privacyValueDisallowChatParticipants"],"description":"Privacy rule"},{"type":"AccountDaysTTL","subtypes":["accountDaysTTL"],"description":"Time-to-live of current account"},{"type":"DocumentAttribute","subtypes":["documentAttributeImageSize","documentAttributeAnimated","documentAttributeSticker","documentAttributeVideo","documentAttributeAudio","documentAttributeFilename","documentAttributeHasStickers"],"description":"Various possible attributes of a document (used to define if it's a sticker, a GIF, a video, a mask sticker, an image, an audio, and so on)"},{"type":"StickerPack","subtypes":["stickerPack"],"description":"Stickerpack"},{"type":"WebPage","subtypes":["webPageEmpty","webPagePending","webPage","webPageNotModified"],"description":"Instant View webpage preview"},{"type":"Authorization","subtypes":["authorization"],"description":"Represents a logged-in session"},{"type":"ReceivedNotifyMessage","subtypes":["receivedNotifyMessage"],"description":"Confirmation of message receipt"},{"type":"ExportedChatInvite","subtypes":["chatInviteExported"],"description":"Exported chat invite"},{"type":"ChatInvite","subtypes":["chatInviteAlready","chatInvite","chatInvitePeek"],"description":"Chat invite"},{"type":"InputStickerSet","subtypes":["inputStickerSetEmpty","inputStickerSetID","inputStickerSetShortName","inputStickerSetAnimatedEmoji","inputStickerSetDice"],"description":"Represents a stickerset"},{"type":"StickerSet","subtypes":["stickerSet"],"description":"Represents a stickerset (stickerpack)"},{"type":"BotCommand","subtypes":["botCommand"],"description":"Describes a bot command that can be used in a chat"},{"type":"BotInfo","subtypes":["botInfo"],"description":"Info about bots (available bot commands, etc)"},{"type":"KeyboardButton","subtypes":["keyboardButton","keyboardButtonUrl","keyboardButtonCallback","keyboardButtonRequestPhone","keyboardButtonRequestGeoLocation","keyboardButtonSwitchInline","keyboardButtonGame","keyboardButtonBuy","keyboardButtonUrlAuth","inputKeyboardButtonUrlAuth","keyboardButtonRequestPoll"],"description":"Bot or inline keyboard buttons"},{"type":"KeyboardButtonRow","subtypes":["keyboardButtonRow"],"description":"Bot or inline keyboard rows"},{"type":"ReplyMarkup","subtypes":["replyKeyboardHide","replyKeyboardForceReply","replyKeyboardMarkup","replyInlineMarkup"],"description":"Reply markup for bot and inline keyboards"},{"type":"MessageEntity","subtypes":["messageEntityUnknown","messageEntityMention","messageEntityHashtag","messageEntityBotCommand","messageEntityUrl","messageEntityEmail","messageEntityBold","messageEntityItalic","messageEntityCode","messageEntityPre","messageEntityTextUrl","messageEntityMentionName","inputMessageEntityMentionName","messageEntityPhone","messageEntityCashtag","messageEntityUnderline","messageEntityStrike","messageEntityBlockquote","messageEntityBankCard"],"description":"Message entities, representing styled text in a message"},{"type":"InputChannel","subtypes":["inputChannelEmpty","inputChannel","inputChannelFromMessage"],"description":"Represents a channel"},{"type":"MessageRange","subtypes":["messageRange"],"description":"Indicates a range of chat messages"},{"type":"ChannelMessagesFilter","subtypes":["channelMessagesFilterEmpty","channelMessagesFilter"],"description":"Filter for fetching only certain types of channel messages"},{"type":"ChannelParticipant","subtypes":["channelParticipant","channelParticipantSelf","channelParticipantCreator","channelParticipantAdmin","channelParticipantBanned","channelParticipantLeft"],"description":"Channel participant"},{"type":"ChannelParticipantsFilter","subtypes":["channelParticipantsRecent","channelParticipantsAdmins","channelParticipantsKicked","channelParticipantsBots","channelParticipantsBanned","channelParticipantsSearch","channelParticipantsContacts","channelParticipantsMentions"],"description":"Filter for fetching channel participants"},{"type":"InputBotInlineMessage","subtypes":["inputBotInlineMessageMediaAuto","inputBotInlineMessageText","inputBotInlineMessageMediaGeo","inputBotInlineMessageMediaVenue","inputBotInlineMessageMediaContact","inputBotInlineMessageGame","inputBotInlineMessageMediaInvoice"],"description":"Represents a sent inline message from the perspective of a bot"},{"type":"InputBotInlineResult","subtypes":["inputBotInlineResult","inputBotInlineResultPhoto","inputBotInlineResultDocument","inputBotInlineResultGame"],"description":"Inline bot result"},{"type":"BotInlineMessage","subtypes":["botInlineMessageMediaAuto","botInlineMessageText","botInlineMessageMediaGeo","botInlineMessageMediaVenue","botInlineMessageMediaContact","botInlineMessageMediaInvoice"],"description":"Inline message"},{"type":"BotInlineResult","subtypes":["botInlineResult","botInlineMediaResult"],"description":"Results of an inline query"},{"type":"ExportedMessageLink","subtypes":["exportedMessageLink"],"description":"HTTP link and embed info of channel message"},{"type":"MessageFwdHeader","subtypes":["messageFwdHeader"],"description":"Info about a forwarded message"},{"type":"InputBotInlineMessageID","subtypes":["inputBotInlineMessageID"],"description":"Represents a sent inline message from the perspective of a bot"},{"type":"InlineBotSwitchPM","subtypes":["inlineBotSwitchPM"],"description":"The bot requested the user to message them in private"},{"type":"TopPeer","subtypes":["topPeer"],"description":"Top peer"},{"type":"TopPeerCategory","subtypes":["topPeerCategoryBotsPM","topPeerCategoryBotsInline","topPeerCategoryCorrespondents","topPeerCategoryGroups","topPeerCategoryChannels","topPeerCategoryPhoneCalls","topPeerCategoryForwardUsers","topPeerCategoryForwardChats"],"description":"Top peer category"},{"type":"TopPeerCategoryPeers","subtypes":["topPeerCategoryPeers"],"description":"Top peers by top peer category"},{"type":"DraftMessage","subtypes":["draftMessageEmpty","draftMessage"],"description":"Represents a message draft."},{"type":"StickerSetCovered","subtypes":["stickerSetCovered","stickerSetMultiCovered"],"description":"Stickerset, with a specific sticker as preview"},{"type":"MaskCoords","subtypes":["maskCoords"],"description":"Mask coordinates (if this is a mask sticker, attached to a photo)"},{"type":"InputStickeredMedia","subtypes":["inputStickeredMediaPhoto","inputStickeredMediaDocument"],"description":"Represents a media with attached stickers"},{"type":"Game","subtypes":["game"],"description":"Indicates an already sent game"},{"type":"InputGame","subtypes":["inputGameID","inputGameShortName"],"description":"A game to send"},{"type":"HighScore","subtypes":["highScore"],"description":"Game high score"},{"type":"RichText","subtypes":["textEmpty","textPlain","textBold","textItalic","textUnderline","textStrike","textFixed","textUrl","textEmail","textConcat","textSubscript","textSuperscript","textMarked","textPhone","textImage","textAnchor"],"description":"Rich text"},{"type":"PageBlock","subtypes":["pageBlockUnsupported","pageBlockTitle","pageBlockSubtitle","pageBlockAuthorDate","pageBlockHeader","pageBlockSubheader","pageBlockParagraph","pageBlockPreformatted","pageBlockFooter","pageBlockDivider","pageBlockAnchor","pageBlockList","pageBlockBlockquote","pageBlockPullquote","pageBlockPhoto","pageBlockVideo","pageBlockCover","pageBlockEmbed","pageBlockEmbedPost","pageBlockCollage","pageBlockSlideshow","pageBlockChannel","pageBlockAudio","pageBlockKicker","pageBlockTable","pageBlockOrderedList","pageBlockDetails","pageBlockRelatedArticles","pageBlockMap"],"description":"Represents an instant view page element"},{"type":"PhoneCallDiscardReason","subtypes":["phoneCallDiscardReasonMissed","phoneCallDiscardReasonDisconnect","phoneCallDiscardReasonHangup","phoneCallDiscardReasonBusy"],"description":"Why was the phone call discarded?"},{"type":"DataJSON","subtypes":["dataJSON"],"description":"Represent a JSON-encoded object"},{"type":"LabeledPrice","subtypes":["labeledPrice"],"description":"Labeled pricetag"},{"type":"Invoice","subtypes":["invoice"],"description":"Invoice"},{"type":"PaymentCharge","subtypes":["paymentCharge"],"description":"Charged payment"},{"type":"PostAddress","subtypes":["postAddress"],"description":"Shipping address"},{"type":"PaymentRequestedInfo","subtypes":["paymentRequestedInfo"],"description":"Requested payment info"},{"type":"PaymentSavedCredentials","subtypes":["paymentSavedCredentialsCard"],"description":"Saved payment credentials"},{"type":"WebDocument","subtypes":["webDocument","webDocumentNoProxy"],"description":"Remote document"},{"type":"InputWebDocument","subtypes":["inputWebDocument"],"description":"Specifies a document that will have to be downloaded from the URL by the telegram servers"},{"type":"InputWebFileLocation","subtypes":["inputWebFileLocation","inputWebFileGeoPointLocation"],"description":"Location of remote file"},{"type":"InputPaymentCredentials","subtypes":["inputPaymentCredentialsSaved","inputPaymentCredentials","inputPaymentCredentialsApplePay","inputPaymentCredentialsGooglePay"],"description":"Payment credentials"},{"type":"ShippingOption","subtypes":["shippingOption"],"description":"Shipping options"},{"type":"InputStickerSetItem","subtypes":["inputStickerSetItem"],"description":"Sticker"},{"type":"InputPhoneCall","subtypes":["inputPhoneCall"],"description":"Phone call"},{"type":"PhoneCall","subtypes":["phoneCallEmpty","phoneCallWaiting","phoneCallRequested","phoneCallAccepted","phoneCall","phoneCallDiscarded"],"description":"Phone call"},{"type":"PhoneConnection","subtypes":["phoneConnection","phoneConnectionWebrtc"],"description":"Phone call connection"},{"type":"PhoneCallProtocol","subtypes":["phoneCallProtocol"],"description":"Phone call protocol"},{"type":"CdnPublicKey","subtypes":["cdnPublicKey"],"description":"Public key to use only during handshakes to CDN DCs."},{"type":"CdnConfig","subtypes":["cdnConfig"],"description":"Configuration for CDN file downloads."},{"type":"LangPackString","subtypes":["langPackString","langPackStringPluralized","langPackStringDeleted"],"description":"Language pack string"},{"type":"LangPackDifference","subtypes":["langPackDifference"],"description":"Language pack changes"},{"type":"LangPackLanguage","subtypes":["langPackLanguage"],"description":"Language pack language"},{"type":"ChannelAdminLogEventAction","subtypes":["channelAdminLogEventActionChangeTitle","channelAdminLogEventActionChangeAbout","channelAdminLogEventActionChangeUsername","channelAdminLogEventActionChangePhoto","channelAdminLogEventActionToggleInvites","channelAdminLogEventActionToggleSignatures","channelAdminLogEventActionUpdatePinned","channelAdminLogEventActionEditMessage","channelAdminLogEventActionDeleteMessage","channelAdminLogEventActionParticipantJoin","channelAdminLogEventActionParticipantLeave","channelAdminLogEventActionParticipantInvite","channelAdminLogEventActionParticipantToggleBan","channelAdminLogEventActionParticipantToggleAdmin","channelAdminLogEventActionChangeStickerSet","channelAdminLogEventActionTogglePreHistoryHidden","channelAdminLogEventActionDefaultBannedRights","channelAdminLogEventActionStopPoll","channelAdminLogEventActionChangeLinkedChat","channelAdminLogEventActionChangeLocation","channelAdminLogEventActionToggleSlowMode","channelAdminLogEventActionStartGroupCall","channelAdminLogEventActionDiscardGroupCall","channelAdminLogEventActionParticipantMute","channelAdminLogEventActionParticipantUnmute","channelAdminLogEventActionToggleGroupCallSetting","channelAdminLogEventActionParticipantJoinByInvite","channelAdminLogEventActionExportedInviteDelete","channelAdminLogEventActionExportedInviteRevoke","channelAdminLogEventActionExportedInviteEdit","channelAdminLogEventActionParticipantVolume","channelAdminLogEventActionChangeHistoryTTL"],"description":"Channel admin log event"},{"type":"ChannelAdminLogEvent","subtypes":["channelAdminLogEvent"],"description":"An event in a channel admin log"},{"type":"ChannelAdminLogEventsFilter","subtypes":["channelAdminLogEventsFilter"],"description":"Filter for fetching events in the channel admin log"},{"type":"PopularContact","subtypes":["popularContact"],"description":"Popular contact"},{"type":"RecentMeUrl","subtypes":["recentMeUrlUnknown","recentMeUrlUser","recentMeUrlChat","recentMeUrlChatInvite","recentMeUrlStickerSet"],"description":"Recent t.me urls"},{"type":"InputSingleMedia","subtypes":["inputSingleMedia"],"description":"A single media in an album or grouped media sent with {@link messages.sendMultiMedia}."},{"type":"WebAuthorization","subtypes":["webAuthorization"],"description":"Web authorization"},{"type":"InputMessage","subtypes":["inputMessageID","inputMessageReplyTo","inputMessagePinned","inputMessageCallbackQuery"],"description":"A message"},{"type":"InputDialogPeer","subtypes":["inputDialogPeer","inputDialogPeerFolder"],"description":"Peer, or all peers in a certain folder"},{"type":"DialogPeer","subtypes":["dialogPeer","dialogPeerFolder"],"description":"Peer, or all peers in a folder"},{"type":"FileHash","subtypes":["fileHash"],"description":"Hash of an uploaded file, to be checked for validity after download"},{"type":"InputClientProxy","subtypes":["inputClientProxy"],"description":"Info about an MTProxy used to connect."},{"type":"InputSecureFile","subtypes":["inputSecureFileUploaded","inputSecureFile"],"description":"Secure passport file, for more info see the passport docs »"},{"type":"SecureFile","subtypes":["secureFileEmpty","secureFile"],"description":"Secure passport file, for more info see the passport docs »"},{"type":"SecureData","subtypes":["secureData"],"description":"Secure passport data, for more info see the passport docs »"},{"type":"SecurePlainData","subtypes":["securePlainPhone","securePlainEmail"],"description":"Plaintext verified passport data."},{"type":"SecureValueType","subtypes":["secureValueTypePersonalDetails","secureValueTypePassport","secureValueTypeDriverLicense","secureValueTypeIdentityCard","secureValueTypeInternalPassport","secureValueTypeAddress","secureValueTypeUtilityBill","secureValueTypeBankStatement","secureValueTypeRentalAgreement","secureValueTypePassportRegistration","secureValueTypeTemporaryRegistration","secureValueTypePhone","secureValueTypeEmail"],"description":"Secure value type"},{"type":"SecureValue","subtypes":["secureValue"],"description":"Secure tgpassport value"},{"type":"InputSecureValue","subtypes":["inputSecureValue"],"description":"Secure value, for more info see the passport docs »"},{"type":"SecureValueHash","subtypes":["secureValueHash"],"description":"Secure value hash"},{"type":"SecureValueError","subtypes":["secureValueErrorData","secureValueErrorFrontSide","secureValueErrorReverseSide","secureValueErrorSelfie","secureValueErrorFile","secureValueErrorFiles","secureValueError","secureValueErrorTranslationFile","secureValueErrorTranslationFiles"],"description":"Secure value error"},{"type":"SecureCredentialsEncrypted","subtypes":["secureCredentialsEncrypted"],"description":"Encrypted secure credentials"},{"type":"SavedContact","subtypes":["savedPhoneContact"],"description":"Saved contact"},{"type":"PasswordKdfAlgo","subtypes":["passwordKdfAlgoUnknown","passwordKdfAlgoSHA256SHA256PBKDF2HMACSHA512iter100000SHA256ModPow"],"description":"Key derivation function to use when generating the password hash for SRP two-factor authorization"},{"type":"SecurePasswordKdfAlgo","subtypes":["securePasswordKdfAlgoUnknown","securePasswordKdfAlgoPBKDF2HMACSHA512iter100000","securePasswordKdfAlgoSHA512"],"description":"KDF algorithm to use for computing telegram passport hash"},{"type":"SecureSecretSettings","subtypes":["secureSecretSettings"],"description":"Telegram passport settings"},{"type":"InputCheckPasswordSRP","subtypes":["inputCheckPasswordEmpty","inputCheckPasswordSRP"],"description":"Constructors for checking the validity of a 2FA SRP password"},{"type":"SecureRequiredType","subtypes":["secureRequiredType","secureRequiredTypeOneOf"],"description":"Required secure file type"},{"type":"InputAppEvent","subtypes":["inputAppEvent"],"description":"Object contains info about an event that occured in the application."},{"type":"JSONObjectValue","subtypes":["jsonObjectValue"],"description":"JSON key: value pair"},{"type":"JSONValue","subtypes":["jsonNull","jsonBool","jsonNumber","jsonString","jsonArray","jsonObject"],"description":"JSON value"},{"type":"PageTableCell","subtypes":["pageTableCell"],"description":"Represents a table in an instant view table"},{"type":"PageTableRow","subtypes":["pageTableRow"],"description":"Table row"},{"type":"PageCaption","subtypes":["pageCaption"],"description":"Page caption"},{"type":"PageListItem","subtypes":["pageListItemText","pageListItemBlocks"],"description":"Item in block list"},{"type":"PageListOrderedItem","subtypes":["pageListOrderedItemText","pageListOrderedItemBlocks"],"description":"Represents an instant view ordered list"},{"type":"PageRelatedArticle","subtypes":["pageRelatedArticle"],"description":"Related articles"},{"type":"Page","subtypes":["page"],"description":"Instant view page"},{"type":"PollAnswer","subtypes":["pollAnswer"],"description":"Indicates a possible answer to a poll."},{"type":"Poll","subtypes":["poll"],"description":"Indicates a poll message"},{"type":"PollAnswerVoters","subtypes":["pollAnswerVoters"],"description":"How users voted on a certain poll answer"},{"type":"PollResults","subtypes":["pollResults"],"description":"Results of poll"},{"type":"ChatOnlines","subtypes":["chatOnlines"],"description":"Number of online users in a chat"},{"type":"StatsURL","subtypes":["statsURL"],"description":"URL with chat statistics"},{"type":"ChatAdminRights","subtypes":["chatAdminRights"],"description":"Represents the rights of an admin in a channel/supergroup."},{"type":"ChatBannedRights","subtypes":["chatBannedRights"],"description":"Represents the rights of a normal user in a supergroup/channel/chat."},{"type":"InputWallPaper","subtypes":["inputWallPaper","inputWallPaperSlug","inputWallPaperNoFile"],"description":"Wallpaper"},{"type":"CodeSettings","subtypes":["codeSettings"],"description":"Settings for the code type to send"},{"type":"WallPaperSettings","subtypes":["wallPaperSettings"],"description":"Wallpaper settings"},{"type":"AutoDownloadSettings","subtypes":["autoDownloadSettings"],"description":"Media autodownload settings"},{"type":"EmojiKeyword","subtypes":["emojiKeyword","emojiKeywordDeleted"],"description":"Emoji keyword"},{"type":"EmojiKeywordsDifference","subtypes":["emojiKeywordsDifference"],"description":"New emoji keywords"},{"type":"EmojiURL","subtypes":["emojiURL"],"description":"Emoji URL"},{"type":"EmojiLanguage","subtypes":["emojiLanguage"],"description":"Emoji language"},{"type":"Folder","subtypes":["folder"],"description":"A folder"},{"type":"InputFolderPeer","subtypes":["inputFolderPeer"],"description":"Peer in a folder"},{"type":"FolderPeer","subtypes":["folderPeer"],"description":"Peer associated to folder"},{"type":"UrlAuthResult","subtypes":["urlAuthResultRequest","urlAuthResultAccepted","urlAuthResultDefault"],"description":"URL authorization result"},{"type":"ChannelLocation","subtypes":["channelLocationEmpty","channelLocation"],"description":"Geographical location of supergroup (geogroups)"},{"type":"PeerLocated","subtypes":["peerLocated","peerSelfLocated"],"description":"Geolocated peer"},{"type":"RestrictionReason","subtypes":["restrictionReason"],"description":"Restriction reason"},{"type":"InputTheme","subtypes":["inputTheme","inputThemeSlug"],"description":"Cloud theme"},{"type":"Theme","subtypes":["theme"],"description":"Cloud theme"},{"type":"BaseTheme","subtypes":["baseThemeClassic","baseThemeDay","baseThemeNight","baseThemeTinted","baseThemeArctic"],"description":"Basic theme settings"},{"type":"InputThemeSettings","subtypes":["inputThemeSettings"],"description":"Theme settings"},{"type":"ThemeSettings","subtypes":["themeSettings"],"description":"Theme settings"},{"type":"WebPageAttribute","subtypes":["webPageAttributeTheme"],"description":"Webpage attributes"},{"type":"MessageUserVote","subtypes":["messageUserVote","messageUserVoteInputOption","messageUserVoteMultiple"],"description":"How a user voted in a poll"},{"type":"BankCardOpenUrl","subtypes":["bankCardOpenUrl"],"description":"Credit card info URL provided by the bank"},{"type":"DialogFilter","subtypes":["dialogFilter"],"description":"Dialog filter (folders)"},{"type":"DialogFilterSuggested","subtypes":["dialogFilterSuggested"],"description":"Suggested dialog filters (folders)"},{"type":"StatsDateRangeDays","subtypes":["statsDateRangeDays"],"description":"Channel statistics date range"},{"type":"StatsAbsValueAndPrev","subtypes":["statsAbsValueAndPrev"],"description":"Channel statistics value pair"},{"type":"StatsPercentValue","subtypes":["statsPercentValue"],"description":"Channel statistics percentage"},{"type":"StatsGraph","subtypes":["statsGraphAsync","statsGraphError","statsGraph"],"description":"Channel statistics graph"},{"type":"MessageInteractionCounters","subtypes":["messageInteractionCounters"],"description":"Message interaction counters"},{"type":"VideoSize","subtypes":["videoSize"],"description":"Represents an animated video thumbnail"},{"type":"StatsGroupTopPoster","subtypes":["statsGroupTopPoster"],"description":"Most active user in a supergroup"},{"type":"StatsGroupTopAdmin","subtypes":["statsGroupTopAdmin"],"description":"Most active admin in a supergroup"},{"type":"StatsGroupTopInviter","subtypes":["statsGroupTopInviter"],"description":"Most active inviter in a supergroup"},{"type":"GlobalPrivacySettings","subtypes":["globalPrivacySettings"],"description":"Global privacy settings"},{"type":"MessageViews","subtypes":["messageViews"],"description":"View, forward counter + info about replies of a specific message"},{"type":"MessageReplyHeader","subtypes":["messageReplyHeader"],"description":"Reply information"},{"type":"MessageReplies","subtypes":["messageReplies"],"description":"Info about post comments (for channels) or message replies (for groups)"},{"type":"PeerBlocked","subtypes":["peerBlocked"],"description":"Info about a blocked user"},{"type":"GroupCall","subtypes":["groupCallDiscarded","groupCall"]},{"type":"InputGroupCall","subtypes":["inputGroupCall"]},{"type":"GroupCallParticipant","subtypes":["groupCallParticipant"]},{"type":"InlineQueryPeerType","subtypes":["inlineQueryPeerTypeSameBotPM","inlineQueryPeerTypePM","inlineQueryPeerTypeChat","inlineQueryPeerTypeMegagroup","inlineQueryPeerTypeBroadcast"]},{"type":"ChatInviteImporter","subtypes":["chatInviteImporter"]},{"type":"ChatAdminWithInvites","subtypes":["chatAdminWithInvites"]},{"type":"GroupCallParticipantVideoSourceGroup","subtypes":["groupCallParticipantVideoSourceGroup"]},{"type":"GroupCallParticipantVideo","subtypes":["groupCallParticipantVideo"]},{"type":"BotCommandScope","subtypes":["botCommandScopeDefault","botCommandScopeUsers","botCommandScopeChats","botCommandScopeChatAdmins","botCommandScopePeer","botCommandScopePeerAdmins","botCommandScopePeerUser"]}]},"help":{"classes":[{"name":"configSimple","id":1515793004,"type":"help.ConfigSimple","arguments":[{"name":"date","type":"number"},{"name":"expires","type":"number"},{"name":"rules","type":"AccessPointRule[]"}]},{"name":"appUpdate","id":3434860080,"type":"help.AppUpdate","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"canNotSkip","type":"true","optional":true,"predicate":"flags.0","description":"Unskippable, the new info must be shown to the user (with a popup or something else)"},{"name":"id","type":"number","description":"Update ID"},{"name":"version","type":"string","description":"New version name"},{"name":"text","type":"string","description":"Text description of the update"},{"name":"entities","type":"MessageEntity[]","description":"Message entities for styled text"},{"name":"document","type":"Document","optional":true,"predicate":"flags.1","description":"Application binary"},{"name":"url","type":"string","optional":true,"predicate":"flags.2","description":"Application download URL"},{"name":"sticker","type":"Document","optional":true,"predicate":"flags.3"}],"description":"An update is available for the application."},{"name":"noAppUpdate","id":3294258486,"type":"help.AppUpdate","arguments":[],"description":"No updates are available for the application."},{"name":"inviteText","id":415997816,"type":"help.InviteText","arguments":[{"name":"message","type":"string","description":"Text of the message"}],"description":"Text of a text message with an invitation to install Telegram."},{"name":"support","id":398898678,"type":"help.Support","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number"},{"name":"user","type":"User","description":"User"}],"description":"Info on support user."},{"name":"termsOfService","id":2013922064,"type":"help.TermsOfService","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"popup","type":"true","optional":true,"predicate":"flags.0","description":"Whether a prompt must be showed to the user, in order to accept the new terms."},{"name":"id","type":"DataJSON","description":"ID of the new terms"},{"name":"text","type":"string","description":"Text of the new terms"},{"name":"entities","type":"MessageEntity[]","description":"Message entities for styled text"},{"name":"minAgeConfirm","type":"number","optional":true,"predicate":"flags.1","description":"Minimum age required to sign up to telegram, the user must confirm that they is older than the minimum age."}],"description":"Info about the latest telegram Terms Of Service"},{"name":"recentMeUrls","id":235081943,"type":"help.RecentMeUrls","arguments":[{"name":"urls","type":"RecentMeUrl[]","description":"URLs"},{"name":"chats","type":"Chat[]","description":"Chats"},{"name":"users","type":"User[]","description":"Users"}],"description":"Recent t.me URLs"},{"name":"termsOfServiceUpdateEmpty","id":3811614591,"type":"help.TermsOfServiceUpdate","arguments":[{"name":"expires","type":"number","description":"New TOS updates will have to be queried using {@link help.getTermsOfServiceUpdate} in expires seconds"}],"description":"No changes were made to telegram's terms of service"},{"name":"termsOfServiceUpdate","id":686618977,"type":"help.TermsOfServiceUpdate","arguments":[{"name":"expires","type":"number","description":"New TOS updates will have to be queried using {@link help.getTermsOfServiceUpdate} in expires seconds"},{"name":"termsOfService","type":"help.TermsOfService","description":"New terms of service"}],"description":"Info about an update of telegram's terms of service. If the terms of service are declined, then the {@link account.deleteAccount} method should be called with the reason \"Decline ToS update\""},{"name":"deepLinkInfoEmpty","id":1722786150,"type":"help.DeepLinkInfo","arguments":[],"description":"Deep link info empty"},{"name":"deepLinkInfo","id":1783556146,"type":"help.DeepLinkInfo","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"updateApp","type":"true","optional":true,"predicate":"flags.0","description":"An update of the app is required to parse this link"},{"name":"message","type":"string","description":"Message to show to the user"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.1","description":"Message entities for styled text"}],"description":"Deep linking info"},{"name":"passportConfigNotModified","id":3216634967,"type":"help.PassportConfig","arguments":[],"description":"Password configuration not modified"},{"name":"passportConfig","id":2694370991,"type":"help.PassportConfig","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"countriesLangs","type":"DataJSON","description":"Localization"}],"description":"Telegram passport configuration"},{"name":"supportName","id":2349199817,"type":"help.SupportName","arguments":[{"name":"name","type":"string","description":"Localized name"}],"description":"Localized name for telegram support"},{"name":"userInfoEmpty","id":4088278765,"type":"help.UserInfo","arguments":[],"description":"Internal use"},{"name":"userInfo","id":32192344,"type":"help.UserInfo","arguments":[{"name":"message","type":"string","description":"Info"},{"name":"entities","type":"MessageEntity[]","description":"Message entities for styled text"},{"name":"author","type":"string","description":"Author"},{"name":"date","type":"number","description":"Date"}],"description":"Internal use"},{"name":"promoDataEmpty","id":2566302837,"type":"help.PromoData","arguments":[{"name":"expires","type":"number","description":"Re-fetch PSA/MTProxy info after the specified number of seconds"}],"description":"No PSA/MTProxy info is available"},{"name":"promoData","id":2352576831,"type":"help.PromoData","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"proxy","type":"true","optional":true,"predicate":"flags.0","description":"MTProxy-related channel"},{"name":"expires","type":"number","description":"Expiry of PSA/MTProxy info"},{"name":"peer","type":"Peer","description":"MTProxy/PSA peer"},{"name":"chats","type":"Chat[]","description":"Chat info"},{"name":"users","type":"User[]","description":"User info"},{"name":"psaType","type":"string","optional":true,"predicate":"flags.1","description":"PSA type"},{"name":"psaMessage","type":"string","optional":true,"predicate":"flags.2","description":"PSA message"}],"description":"MTProxy/Public Service Announcement information"},{"name":"countryCode","id":1107543535,"type":"help.CountryCode","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"countryCode","type":"string","description":"ISO country code"},{"name":"prefixes","type":"string[]","optional":true,"predicate":"flags.0","description":"Possible phone prefixes"},{"name":"patterns","type":"string[]","optional":true,"predicate":"flags.1","description":"Phone patterns: for example, XXX XXX XXX"}],"description":"Country code and phone number pattern of a specific country"},{"name":"country","id":3280440867,"type":"help.Country","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"hidden","type":"true","optional":true,"predicate":"flags.0","description":"Whether this country should not be shown in the list"},{"name":"iso2","type":"string","description":"ISO code of country"},{"name":"defaultName","type":"string","description":"Name of the country in the country's language"},{"name":"name","type":"string","optional":true,"predicate":"flags.1","description":"Name of the country in the user's language, if different from the original name"},{"name":"countryCodes","type":"help.CountryCode[]","description":"Phone codes/patterns"}],"description":"Name, ISO code, localized name and phone codes/patterns of a specific country"},{"name":"countriesListNotModified","id":2479628082,"type":"help.CountriesList","arguments":[],"description":"The country list has not changed"},{"name":"countriesList","id":2278585758,"type":"help.CountriesList","arguments":[{"name":"countries","type":"help.Country[]","description":"Name, ISO code, localized name and phone codes/patterns of all available countries"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Name, ISO code, localized name and phone codes/patterns of all available countries"}],"methods":[{"name":"getConfig","id":3304659051,"returns":"Config","arguments":[],"description":"Returns current configuration, including data center configuration.","throws":[{"code":400,"name":"CONNECTION_API_ID_INVALID","description":"The provided API id is invalid"},{"code":400,"name":"CONNECTION_APP_VERSION_EMPTY","description":"App version is empty"},{"code":400,"name":"CONNECTION_DEVICE_MODEL_EMPTY","description":"Device model empty"},{"code":400,"name":"CONNECTION_LANG_PACK_INVALID","description":"Language pack invalid"},{"code":400,"name":"CONNECTION_LAYER_INVALID","description":"Layer invalid"},{"code":400,"name":"CONNECTION_NOT_INITED","description":"Connection not initialized"},{"code":400,"name":"CONNECTION_SYSTEM_EMPTY","description":"Connection system empty"},{"code":400,"name":"CONNECTION_SYSTEM_LANG_CODE_EMPTY","description":"The system_lang_code field is empty"},{"code":400,"name":"DATA_INVALID","description":"Encrypted data invalid"},{"code":400,"name":"INPUT_LAYER_INVALID","description":"The provided layer is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"both"},{"name":"getNearestDc","id":531836966,"returns":"NearestDc","arguments":[],"description":"Returns info on data centre nearest to the user.","available":"user"},{"name":"getAppUpdate","id":1378703997,"returns":"help.AppUpdate","arguments":[{"name":"source","type":"string","description":"Source"}],"description":"Returns information on update availability for the current application.","available":"user"},{"name":"getInviteText","id":1295590211,"returns":"help.InviteText","arguments":[],"description":"Returns localized text of a text message with an invitation.","available":"user"},{"name":"getSupport","id":2631862477,"returns":"help.Support","arguments":[],"description":"Returns the support user for the 'ask a question' feature.","available":"user"},{"name":"getAppChangelog","id":2417028975,"returns":"Updates","arguments":[{"name":"prevAppVersion","type":"string","description":"Previous app version"}],"description":"Get changelog of current app.
\nTypically, an {@link updates} constructor will be returned, containing one or more {@link updateServiceNotification} updates with app-specific changelogs.","available":"user"},{"name":"setBotUpdatesStatus","id":3961704397,"returns":"boolean","arguments":[{"name":"pendingUpdatesCount","type":"number","description":"Number of pending updates"},{"name":"message","type":"string","description":"Error message, if present"}],"description":"Informs the server about the number of pending bot updates if they haven't been processed for a long time; for bots only","available":"bot"},{"name":"getCdnConfig","id":1375900482,"returns":"CdnConfig","arguments":[],"description":"Get configuration for CDN file downloads.","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."}],"available":"both"},{"name":"getRecentMeUrls","id":1036054804,"returns":"help.RecentMeUrls","arguments":[{"name":"referer","type":"string","description":"Referer"}],"description":"Get recently used t.me links","available":"user"},{"name":"getTermsOfServiceUpdate","id":749019089,"returns":"help.TermsOfServiceUpdate","arguments":[],"description":"Look for updates of telegram's terms of service","available":"user"},{"name":"acceptTermsOfService","id":4000511898,"returns":"boolean","arguments":[{"name":"id","type":"DataJSON","description":"ID of terms of service"}],"description":"Accept the new terms of service","available":"user"},{"name":"getDeepLinkInfo","id":1072547679,"returns":"help.DeepLinkInfo","arguments":[{"name":"path","type":"string","description":"Path in t.me/path"}],"description":"Get info about a t.me link","available":"user"},{"name":"getAppConfig","id":2559656208,"returns":"JSONValue","arguments":[],"description":"Get app-specific configuration, see client configuration for more info on the result.","available":"user"},{"name":"saveAppLog","id":1862465352,"returns":"boolean","arguments":[{"name":"events","type":"InputAppEvent[]","description":"List of input events"}],"description":"Saves logs of application on the server.","available":"user"},{"name":"getPassportConfig","id":3328290056,"returns":"help.PassportConfig","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get passport configuration","available":"user"},{"name":"getSupportName","id":3546343212,"returns":"help.SupportName","arguments":[],"description":"Get localized name of the telegram support user","throws":[{"code":403,"name":"USER_INVALID","description":"Invalid user provided"}],"available":"user"},{"name":"getUserInfo","id":59377875,"returns":"help.UserInfo","arguments":[{"name":"userId","type":"InputUser","description":"User ID"}],"description":"Internal use","throws":[{"code":403,"name":"USER_INVALID","description":"Invalid user provided"}],"available":"user"},{"name":"editUserInfo","id":1723407216,"returns":"help.UserInfo","arguments":[{"name":"userId","type":"InputUser","description":"User"},{"name":"message","type":"string","description":"Message"},{"name":"entities","type":"MessageEntity[]","description":"Message entities for styled text"}],"description":"Internal use","available":"user"},{"name":"getPromoData","id":3231151137,"returns":"help.PromoData","arguments":[],"description":"Get MTProxy/Public Service Announcement information","available":"both"},{"name":"hidePromoData","id":505748629,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer","description":"Peer to hide"}],"description":"Hide MTProxy/Public Service Announcement information","available":"both"},{"name":"dismissSuggestion","id":4111317665,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer"},{"name":"suggestion","type":"string","description":"Suggestion"}],"description":"Dismiss a suggestion","available":"both"},{"name":"getCountriesList","id":1935116200,"returns":"help.CountriesList","arguments":[{"name":"langCode","type":"string","description":"Language code of the current user"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get name, ISO code, localized name and phone codes/patterns of all available countries","available":"both"}],"unions":[{"type":"ConfigSimple","subtypes":["help.configSimple"]},{"type":"AppUpdate","subtypes":["help.appUpdate","help.noAppUpdate"],"description":"Contains info on app update availability."},{"type":"InviteText","subtypes":["help.inviteText"],"description":"Object contains info on the text of a message with an invitation."},{"type":"Support","subtypes":["help.support"],"description":"Info about the support user, relevant to the current user."},{"type":"TermsOfService","subtypes":["help.termsOfService"],"description":"Contains info about the latest telegram Terms Of Service."},{"type":"RecentMeUrls","subtypes":["help.recentMeUrls"],"description":"Recent t.me URLs"},{"type":"TermsOfServiceUpdate","subtypes":["help.termsOfServiceUpdateEmpty","help.termsOfServiceUpdate"],"description":"Update of Telegram's terms of service"},{"type":"DeepLinkInfo","subtypes":["help.deepLinkInfoEmpty","help.deepLinkInfo"],"description":"Contains information about a tg:// deep link"},{"type":"PassportConfig","subtypes":["help.passportConfigNotModified","help.passportConfig"],"description":"Telegram passport configuration"},{"type":"SupportName","subtypes":["help.supportName"],"description":"Get localized name for support user"},{"type":"UserInfo","subtypes":["help.userInfoEmpty","help.userInfo"],"description":"User info"},{"type":"PromoData","subtypes":["help.promoDataEmpty","help.promoData"],"description":"Info about pinned MTProxy or Public Service Announcement peers."},{"type":"CountryCode","subtypes":["help.countryCode"],"description":"Country code and phone number pattern of a specific country"},{"type":"Country","subtypes":["help.country"],"description":"Name, ISO code, localized name and phone codes/patterns of a specific country"},{"type":"CountriesList","subtypes":["help.countriesListNotModified","help.countriesList"],"description":"Name, ISO code, localized name and phone codes/patterns of all available countries"}]},"test":{"classes":[],"methods":[{"name":"useError","id":274884761889,"returns":"Error","arguments":[]},{"name":"useConfigSimple","id":281477010689,"returns":"help.ConfigSimple","arguments":[]}],"unions":[]},"storage":{"classes":[{"name":"fileUnknown","id":2861972229,"type":"storage.FileType","arguments":[],"description":"Unknown type."},{"name":"filePartial","id":1086091090,"type":"storage.FileType","arguments":[],"description":"Part of a bigger file."},{"name":"fileJpeg","id":8322574,"type":"storage.FileType","arguments":[],"description":"JPEG image. MIME type: image/jpeg."},{"name":"fileGif","id":3403786975,"type":"storage.FileType","arguments":[],"description":"GIF image. MIME type: image/gif."},{"name":"filePng","id":172975040,"type":"storage.FileType","arguments":[],"description":"PNG image. MIME type: image/png."},{"name":"filePdf","id":2921222285,"type":"storage.FileType","arguments":[],"description":"PDF document image. MIME type: application/pdf."},{"name":"fileMp3","id":1384777335,"type":"storage.FileType","arguments":[],"description":"Mp3 audio. MIME type: audio/mpeg."},{"name":"fileMov","id":1258941372,"type":"storage.FileType","arguments":[],"description":"Quicktime video. MIME type: video/quicktime."},{"name":"fileMp4","id":3016663268,"type":"storage.FileType","arguments":[],"description":"MPEG-4 video. MIME type: video/mp4."},{"name":"fileWebp","id":276907596,"type":"storage.FileType","arguments":[],"description":"WEBP image. MIME type: image/webp."}],"methods":[],"unions":[{"type":"FileType","subtypes":["storage.fileUnknown","storage.filePartial","storage.fileJpeg","storage.fileGif","storage.filePng","storage.filePdf","storage.fileMp3","storage.fileMov","storage.fileMp4","storage.fileWebp"],"description":"Object describes the file type."}]},"auth":{"classes":[{"name":"sentCode","id":1577067778,"type":"auth.SentCode","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"type","type":"auth.SentCodeType","description":"Phone code type"},{"name":"phoneCodeHash","type":"string","description":"Phone code hash, to be stored and later re-used with {@link auth.signIn}"},{"name":"nextType","type":"auth.CodeType","optional":true,"predicate":"flags.1","description":"Phone code type that will be sent next, if the phone code is not received within timeout seconds: to send it use {@link auth.resendCode}"},{"name":"timeout","type":"number","optional":true,"predicate":"flags.2","description":"Timeout for reception of the phone code"}],"description":"Contains info about a sent verification code."},{"name":"authorization","id":3439659286,"type":"auth.Authorization","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"tmpSessions","type":"number","optional":true,"predicate":"flags.0","description":"Temporary passport sessions"},{"name":"user","type":"User","description":"Info on authorized user"}],"description":"Contains user authorization info."},{"name":"authorizationSignUpRequired","id":1148485274,"type":"auth.Authorization","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"termsOfService","type":"help.TermsOfService","optional":true,"predicate":"flags.0","description":"Telegram's terms of service: the user must read and accept the terms of service before signing up to telegram"}],"description":"An account with this phone number doesn't exist on telegram: the user has to enter basic information and sign up"},{"name":"exportedAuthorization","id":3751189549,"type":"auth.ExportedAuthorization","arguments":[{"name":"id","type":"number","description":"current user identifier"},{"name":"bytes","type":"Buffer","description":"authorizes key"}],"description":"Data for copying of authorization between data centres."},{"name":"passwordRecovery","id":326715557,"type":"auth.PasswordRecovery","arguments":[{"name":"emailPattern","type":"string","description":"The email to which the recovery code was sent must match this pattern."}],"description":"Recovery info of a 2FA password, only for accounts with a recovery email configured."},{"name":"codeTypeSms","id":1923290508,"type":"auth.CodeType","arguments":[],"description":"Type of verification code that will be sent next if you call the resendCode method: SMS code"},{"name":"codeTypeCall","id":1948046307,"type":"auth.CodeType","arguments":[],"description":"Type of verification code that will be sent next if you call the resendCode method: SMS code"},{"name":"codeTypeFlashCall","id":577556219,"type":"auth.CodeType","arguments":[],"description":"Type of verification code that will be sent next if you call the resendCode method: SMS code"},{"name":"sentCodeTypeApp","id":1035688326,"type":"auth.SentCodeType","arguments":[{"name":"length","type":"number","description":"Length of the code in bytes"}],"description":"The code was sent through the telegram app"},{"name":"sentCodeTypeSms","id":3221273506,"type":"auth.SentCodeType","arguments":[{"name":"length","type":"number","description":"Length of the code in bytes"}],"description":"The code was sent via SMS"},{"name":"sentCodeTypeCall","id":1398007207,"type":"auth.SentCodeType","arguments":[{"name":"length","type":"number","description":"Length of the verification code"}],"description":"The code will be sent via a phone call: a synthesized voice will tell the user which verification code to input."},{"name":"sentCodeTypeFlashCall","id":2869151449,"type":"auth.SentCodeType","arguments":[{"name":"pattern","type":"string","description":"pattern to match"}],"description":"The code will be sent via a flash phone call, that will be closed immediately. The phone code will then be the phone number itself, just make sure that the phone number matches the specified pattern."},{"name":"loginToken","id":1654593920,"type":"auth.LoginToken","arguments":[{"name":"expires","type":"number","description":"Expiry date of QR code"},{"name":"token","type":"Buffer","description":"Token to render in QR code"}],"description":"Login token (for QR code login)"},{"name":"loginTokenMigrateTo","id":110008598,"type":"auth.LoginToken","arguments":[{"name":"dcId","type":"number","description":"DC ID"},{"name":"token","type":"Buffer","description":"Token to use for login"}],"description":"Repeat the query to the specified DC"},{"name":"loginTokenSuccess","id":957176926,"type":"auth.LoginToken","arguments":[{"name":"authorization","type":"auth.Authorization","description":"Authorization info"}],"description":"Login via token (QR code) succeded!"}],"methods":[{"name":"sendCode","id":2792825935,"returns":"auth.SentCode","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number in international format"},{"name":"apiId","type":"number","description":"Application identifier (see App configuration)"},{"name":"apiHash","type":"string","description":"Application secret hash (see App configuration)"},{"name":"settings","type":"CodeSettings","description":"Settings for the code type to send"}],"description":"Send the verification code for login","throws":[{"code":400,"name":"API_ID_INVALID","description":"API ID invalid"},{"code":400,"name":"API_ID_PUBLISHED_FLOOD","description":"This API id was published somewhere, you can't use it now"},{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"INPUT_REQUEST_TOO_LONG","description":"The request is too big"},{"code":303,"name":"NETWORK_MIGRATE_X","description":"Repeat the query to data-center X"},{"code":303,"name":"PHONE_MIGRATE_X","description":"Repeat the query to data-center X"},{"code":400,"name":"PHONE_NUMBER_APP_SIGNUP_FORBIDDEN","description":"You can't sign up using this app"},{"code":400,"name":"PHONE_NUMBER_BANNED","description":"The provided phone number is banned from telegram"},{"code":400,"name":"PHONE_NUMBER_FLOOD","description":"You asked for the code too many times."},{"code":400,"name":"PHONE_NUMBER_INVALID","description":"Invalid phone number"},{"code":406,"name":"PHONE_PASSWORD_FLOOD","description":"You have tried logging in too many times"},{"code":400,"name":"PHONE_PASSWORD_PROTECTED","description":"This phone is password protected"},{"code":400,"name":"SMS_CODE_CREATE_FAILED","description":"An error occurred while creating the SMS code"}],"available":"user"},{"name":"signUp","id":2163139623,"returns":"auth.Authorization","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number in the international format"},{"name":"phoneCodeHash","type":"string","description":"SMS-message ID"},{"name":"firstName","type":"string","description":"New user first name"},{"name":"lastName","type":"string","description":"New user last name"}],"description":"Registers a validated phone number in the system.","throws":[{"code":400,"name":"FIRSTNAME_INVALID","description":"Invalid first name"},{"code":400,"name":"INPUT_REQUEST_TOO_LONG","description":"The request is too big"},{"code":400,"name":"LASTNAME_INVALID","description":"Invalid last name"},{"code":400,"name":"PHONE_CODE_EMPTY","description":"phone_code from a SMS is empty"},{"code":400,"name":"PHONE_CODE_EXPIRED","description":"SMS expired"},{"code":400,"name":"PHONE_CODE_INVALID","description":"Invalid SMS code was sent"},{"code":400,"name":"PHONE_NUMBER_FLOOD","description":"You asked for the code too many times."},{"code":400,"name":"PHONE_NUMBER_INVALID","description":"Invalid phone number"},{"code":400,"name":"PHONE_NUMBER_OCCUPIED","description":"The phone number is already in use"}],"available":"user"},{"name":"signIn","id":3168081281,"returns":"auth.Authorization","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number in the international format"},{"name":"phoneCodeHash","type":"string","description":"SMS-message ID, obtained from {@link auth.sendCode}"},{"name":"phoneCode","type":"string","description":"Valid numerical code from the SMS-message"}],"description":"Signs in a user with a validated phone number.","throws":[{"code":400,"name":"PHONE_CODE_EMPTY","description":"phone_code from the SMS is empty"},{"code":400,"name":"PHONE_CODE_EXPIRED","description":"SMS expired"},{"code":400,"name":"PHONE_CODE_INVALID","description":"Invalid SMS code was sent"},{"code":400,"name":"PHONE_NUMBER_INVALID","description":"Invalid phone number"},{"code":400,"name":"PHONE_NUMBER_UNOCCUPIED","description":"The code is valid but no user with the given number is registered"}],"available":"user"},{"name":"logOut","id":1461180992,"returns":"boolean","arguments":[],"description":"Logs out the user.","available":"both"},{"name":"resetAuthorizations","id":2678787354,"returns":"boolean","arguments":[],"description":"Terminates all user's authorized sessions except for the current one.","throws":[{"code":406,"name":"FRESH_RESET_AUTHORISATION_FORBIDDEN","description":"You can't logout other sessions if less than 24 hours have passed since you logged on the current session"}],"available":"user"},{"name":"exportAuthorization","id":3854565325,"returns":"auth.ExportedAuthorization","arguments":[{"name":"dcId","type":"number","description":"Number of a target data-centre"}],"description":"Returns data for copying authorization to another data-centre.","throws":[{"code":400,"name":"DC_ID_INVALID","description":"The provided DC ID is invalid"}],"available":"both"},{"name":"importAuthorization","id":3824129555,"returns":"auth.Authorization","arguments":[{"name":"id","type":"number","description":"User ID"},{"name":"bytes","type":"Buffer","description":"Authorization key"}],"description":"Logs in a user using a key transmitted from their native data-centre.","throws":[{"code":400,"name":"AUTH_BYTES_INVALID","description":"The provided authorization is invalid"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"both"},{"name":"bindTempAuthKey","id":3453233669,"returns":"boolean","arguments":[{"name":"permAuthKeyId","type":"Long","description":"Permanent auth_key_id to bind to"},{"name":"nonce","type":"Long","description":"Random long from {@link auth.bindTempAuthKey}"},{"name":"expiresAt","type":"number","description":"UNIX timestamp in seconds to invalidate temporary key, see {@link auth.bindTempAuthKey}"},{"name":"encryptedMessage","type":"Buffer","description":"See {@link auth.bindTempAuthKey}"}],"description":"Binds a temporary authorization key temp_auth_key_id to the permanent authorization key perm_auth_key_id. Each permanent key may only be bound to one temporary key at a time, binding a new temporary key overwrites the previous one.","throws":[{"code":400,"name":"ENCRYPTED_MESSAGE_INVALID","description":"Encrypted message is incorrect"},{"code":400,"name":"INPUT_REQUEST_TOO_LONG","description":"The request is too big"},{"code":400,"name":"TEMP_AUTH_KEY_ALREADY_BOUND","description":"The passed temporary key is already bound to another perm_auth_key_id"},{"code":400,"name":"TEMP_AUTH_KEY_EMPTY","description":"The request was not performed with a temporary authorization key"}],"available":"both"},{"name":"importBotAuthorization","id":1738800940,"returns":"auth.Authorization","arguments":[{"name":"flags","type":"number","description":"Reserved for future use"},{"name":"apiId","type":"number","description":"Application identifier (see. App configuration)"},{"name":"apiHash","type":"string","description":"Application identifier hash (see. App configuration)"},{"name":"botAuthToken","type":"string","description":"Bot token (see bots)"}],"description":"Login as a bot","throws":[{"code":400,"name":"ACCESS_TOKEN_EXPIRED","description":"Bot token expired"},{"code":400,"name":"ACCESS_TOKEN_INVALID","description":"The provided token is not valid"},{"code":400,"name":"API_ID_INVALID","description":"The api_id/api_hash combination is invalid"},{"code":401,"name":"AUTH_KEY_INVALID","description":"Auth key invalid"}],"available":"both"},{"name":"checkPassword","id":3515567382,"returns":"auth.Authorization","arguments":[{"name":"password","type":"InputCheckPasswordSRP","description":"The account's password (see SRP)"}],"description":"Try logging to an account protected by a 2FA password.","throws":[{"code":400,"name":"PASSWORD_HASH_INVALID","description":"The provided password isn't valid"},{"code":400,"name":"SRP_ID_INVALID","description":"Invalid SRP ID provided"},{"code":400,"name":"SRP_PASSWORD_CHANGED","description":"Password has changed"}],"available":"user"},{"name":"requestPasswordRecovery","id":3633822822,"returns":"auth.PasswordRecovery","arguments":[],"description":"Request recovery code of a 2FA password, only for accounts with a recovery email configured.","throws":[{"code":400,"name":"PASSWORD_EMPTY","description":"The provided password is empty"}],"available":"user"},{"name":"recoverPassword","id":923364464,"returns":"auth.Authorization","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"code","type":"string","description":"Code received via email"},{"name":"newSettings","type":"account.PasswordInputSettings","optional":true,"predicate":"flags.0"}],"description":"Reset the 2FA password using the recovery code sent using {@link auth.requestPasswordRecovery}.","throws":[{"code":400,"name":"CODE_EMPTY","description":"The provided code is empty"}],"available":"user"},{"name":"resendCode","id":1056025023,"returns":"auth.SentCode","arguments":[{"name":"phoneNumber","type":"string","description":"The phone number"},{"name":"phoneCodeHash","type":"string","description":"The phone code hash obtained from {@link auth.sendCode}"}],"description":"Resend the login code via another medium, the phone code type is determined by the return value of the previous auth.sendCode/auth.resendCode: see login for more info.","throws":[{"code":400,"name":"PHONE_CODE_EXPIRED","description":"The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)"},{"code":400,"name":"PHONE_CODE_HASH_EMPTY","description":"phone_code_hash is missing"},{"code":400,"name":"PHONE_NUMBER_INVALID","description":"The phone number is invalid"}],"available":"user"},{"name":"cancelCode","id":520357240,"returns":"boolean","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number"},{"name":"phoneCodeHash","type":"string","description":"Phone code hash from {@link auth.sendCode}"}],"description":"Cancel the login verification code","throws":[{"code":400,"name":"PHONE_CODE_EXPIRED","description":"The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)"},{"code":400,"name":"PHONE_NUMBER_INVALID","description":"The phone number is invalid"}],"available":"user"},{"name":"dropTempAuthKeys","id":2387124616,"returns":"boolean","arguments":[{"name":"exceptAuthKeys","type":"Long[]","description":"The auth keys that shouldn't be dropped."}],"description":"Delete all temporary authorization keys except for the ones specified","available":"both"},{"name":"exportLoginToken","id":2981369111,"returns":"auth.LoginToken","arguments":[{"name":"apiId","type":"number","description":"Application identifier (see. App configuration)"},{"name":"apiHash","type":"string","description":"Application identifier hash (see. App configuration)"},{"name":"exceptIds","type":"number[]","description":"List of already logged-in user IDs, to prevent logging in twice with the same user"}],"description":"Generate a login token, for login via QR code.
\nThe generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken URL in the QR code.","available":"user"},{"name":"importLoginToken","id":2511101156,"returns":"auth.LoginToken","arguments":[{"name":"token","type":"Buffer","description":"Login token"}],"description":"Login using a redirected login token, generated in case of DC mismatch during QR code login.","throws":[{"code":400,"name":"AUTH_TOKEN_EXPIRED","description":"The authorization token has expired"}],"available":"user"},{"name":"acceptLoginToken","id":3902057805,"returns":"Authorization","arguments":[{"name":"token","type":"Buffer","description":"Login token embedded in QR code, for more info, see login via QR code."}],"description":"Accept QR code login token, logging in the app that generated it.","throws":[{"code":400,"name":"AUTH_TOKEN_INVALIDX","description":"The specified auth token is invalid"}],"available":"user"},{"name":"checkRecoveryPassword","id":221691769,"returns":"boolean","arguments":[{"name":"code","type":"string"}]}],"unions":[{"type":"SentCode","subtypes":["auth.sentCode"],"description":"Contains info on a confirmation code message sent via SMS, phone call or Telegram."},{"type":"Authorization","subtypes":["auth.authorization","auth.authorizationSignUpRequired"],"description":"Oject contains info on user authorization."},{"type":"ExportedAuthorization","subtypes":["auth.exportedAuthorization"],"description":"Exported authorization"},{"type":"PasswordRecovery","subtypes":["auth.passwordRecovery"],"description":"Recovery info of a 2FA password, only for accounts with a recovery email configured."},{"type":"CodeType","subtypes":["auth.codeTypeSms","auth.codeTypeCall","auth.codeTypeFlashCall"],"description":"Type of verification code that will be sent next if you call the resendCode method"},{"type":"SentCodeType","subtypes":["auth.sentCodeTypeApp","auth.sentCodeTypeSms","auth.sentCodeTypeCall","auth.sentCodeTypeFlashCall"],"description":"Type of the verification code that was sent"},{"type":"LoginToken","subtypes":["auth.loginToken","auth.loginTokenMigrateTo","auth.loginTokenSuccess"],"description":"Login token (for QR code login)"}]},"contacts":{"classes":[{"name":"contactsNotModified","id":3075189202,"type":"contacts.Contacts","arguments":[],"description":"Contact list on the server is the same as the list on the client."},{"name":"contacts","id":3941105218,"type":"contacts.Contacts","arguments":[{"name":"contacts","type":"Contact[]","description":"Contact list"},{"name":"savedCount","type":"number","description":"Number of contacts that were saved successfully"},{"name":"users","type":"User[]","description":"User list"}],"description":"The current user's contact list and info on users."},{"name":"importedContacts","id":2010127419,"type":"contacts.ImportedContacts","arguments":[{"name":"imported","type":"ImportedContact[]","description":"List of succesfully imported contacts"},{"name":"popularInvites","type":"PopularContact[]","description":"Popular contacts"},{"name":"retryContacts","type":"Long[]","description":"List of contact ids that could not be imported due to system limitation and will need to be imported at a later date.
Parameter added in Layer 13"},{"name":"users","type":"User[]","description":"List of users"}],"description":"Info on succesfully imported contacts."},{"name":"blocked","id":182326673,"type":"contacts.Blocked","arguments":[{"name":"blocked","type":"PeerBlocked[]","description":"List of blocked users"},{"name":"chats","type":"Chat[]","description":"Blocked chats"},{"name":"users","type":"User[]","description":"List of users"}],"description":"Full list of blocked users."},{"name":"blockedSlice","id":3781575060,"type":"contacts.Blocked","arguments":[{"name":"count","type":"number","description":"Total number of elements in the list"},{"name":"blocked","type":"PeerBlocked[]","description":"List of blocked users"},{"name":"chats","type":"Chat[]","description":"Blocked chats"},{"name":"users","type":"User[]","description":"List of users"}],"description":"Incomplete list of blocked users."},{"name":"found","id":3004386717,"type":"contacts.Found","arguments":[{"name":"myResults","type":"Peer[]","description":"Personalized results"},{"name":"results","type":"Peer[]","description":"List of found user identifiers"},{"name":"chats","type":"Chat[]","description":"Found chats"},{"name":"users","type":"User[]","description":"List of users"}],"description":"Users found by name substring and auxiliary data."},{"name":"resolvedPeer","id":2131196633,"type":"contacts.ResolvedPeer","arguments":[{"name":"peer","type":"Peer","description":"The peer"},{"name":"chats","type":"Chat[]","description":"Chats"},{"name":"users","type":"User[]","description":"Users"}],"description":"Resolved peer"},{"name":"topPeersNotModified","id":3727060725,"type":"contacts.TopPeers","arguments":[],"description":"Top peer info hasn't changed"},{"name":"topPeers","id":1891070632,"type":"contacts.TopPeers","arguments":[{"name":"categories","type":"TopPeerCategoryPeers[]","description":"Top peers by top peer category"},{"name":"chats","type":"Chat[]","description":"Chats"},{"name":"users","type":"User[]","description":"Users"}],"description":"Top peers"},{"name":"topPeersDisabled","id":3039597469,"type":"contacts.TopPeers","arguments":[],"description":"Top peers disabled"}],"methods":[{"name":"getContactIDs","id":749357634,"returns":"number[]","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get contact by telegram IDs","available":"user"},{"name":"getStatuses","id":3299038190,"returns":"ContactStatus[]","arguments":[],"description":"Returns the list of contact statuses.","available":"user"},{"name":"getContacts","id":3223553183,"returns":"contacts.Contacts","arguments":[{"name":"hash","type":"number","description":"If there already is a full contact list on the client, a hash of a the list of contact IDs in ascending order may be passed in this parameter. If the contact set was not changed, {@link contacts.contactsNotModified} will be returned."}],"description":"Returns the current user's contact list.","available":"user"},{"name":"importContacts","id":746589157,"returns":"contacts.ImportedContacts","arguments":[{"name":"contacts","type":"InputContact[]","description":"List of contacts to import"}],"description":"Imports contacts: saves a full list on the server, adds already registered contacts to the contact list, returns added contacts and their info.","available":"user"},{"name":"deleteContacts","id":157945344,"returns":"Updates","arguments":[{"name":"id","type":"InputUser[]","description":"User ID list"}],"description":"Deletes several contacts from the list.","available":"user"},{"name":"deleteByPhones","id":269745566,"returns":"boolean","arguments":[{"name":"phones","type":"string[]","description":"Phone numbers"}],"description":"Delete contacts by phone number","available":"user"},{"name":"block","id":1758204945,"returns":"boolean","arguments":[{"name":"id","type":"InputPeer","description":"User ID"}],"description":"Adds the user to the blacklist.","throws":[{"code":400,"name":"CONTACT_ID_INVALID","description":"The provided contact ID is invalid"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"unblock","id":3198573904,"returns":"boolean","arguments":[{"name":"id","type":"InputPeer","description":"User ID"}],"description":"Deletes the user from the blacklist.","throws":[{"code":400,"name":"CONTACT_ID_INVALID","description":"The provided contact ID is invalid"}],"available":"user"},{"name":"getBlocked","id":4118557967,"returns":"contacts.Blocked","arguments":[{"name":"offset","type":"number","description":"The number of list elements to be skipped"},{"name":"limit","type":"number","description":"The number of list elements to be returned"}],"description":"Returns the list of blocked users.","available":"user"},{"name":"search","id":301470424,"returns":"contacts.Found","arguments":[{"name":"q","type":"string","description":"Target substring"},{"name":"limit","type":"number","description":"Maximum number of users to be returned"}],"description":"Returns users found by username substring.","throws":[{"code":400,"name":"QUERY_TOO_SHORT","description":"The query string is too short"},{"code":400,"name":"SEARCH_QUERY_EMPTY","description":"The search query is empty"}],"available":"user"},{"name":"resolveUsername","id":4181511075,"returns":"contacts.ResolvedPeer","arguments":[{"name":"username","type":"string","description":"@username to resolve"}],"description":"Resolve a @username to get peer info","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"CONNECTION_DEVICE_MODEL_EMPTY","description":"Device model empty"},{"code":400,"name":"CONNECTION_LAYER_INVALID","description":"Layer invalid"},{"code":400,"name":"USERNAME_INVALID","description":"The provided username is not valid"},{"code":400,"name":"USERNAME_NOT_OCCUPIED","description":"The provided username is not occupied"}],"available":"both"},{"name":"getTopPeers","id":3566742965,"returns":"contacts.TopPeers","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"correspondents","type":"true","optional":true,"predicate":"flags.0","description":"Users we've chatted most frequently with"},{"name":"botsPm","type":"true","optional":true,"predicate":"flags.1","description":"Most used bots"},{"name":"botsInline","type":"true","optional":true,"predicate":"flags.2","description":"Most used inline bots"},{"name":"phoneCalls","type":"true","optional":true,"predicate":"flags.3","description":"Most frequently called users"},{"name":"forwardUsers","type":"true","optional":true,"predicate":"flags.4","description":"Users to which the users often forwards messages to"},{"name":"forwardChats","type":"true","optional":true,"predicate":"flags.5","description":"Chats to which the users often forwards messages to"},{"name":"groups","type":"true","optional":true,"predicate":"flags.10","description":"Often-opened groups and supergroups"},{"name":"channels","type":"true","optional":true,"predicate":"flags.15","description":"Most frequently visited channels"},{"name":"offset","type":"number","description":"Offset for pagination"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get most used peers","throws":[{"code":400,"name":"TYPES_EMPTY","description":"No top peer type was provided"}],"available":"user"},{"name":"resetTopPeerRating","id":451113900,"returns":"boolean","arguments":[{"name":"category","type":"TopPeerCategory","description":"Top peer category"},{"name":"peer","type":"InputPeer","description":"Peer whose rating should be reset"}],"description":"Reset rating of top peer","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"resetSaved","id":2274703345,"returns":"boolean","arguments":[],"description":"Delete saved contacts","available":"user"},{"name":"getSaved","id":2196890527,"returns":"SavedContact[]","arguments":[],"description":"Get all contacts","throws":[{"code":403,"name":"TAKEOUT_REQUIRED","description":"A takeout session has to be initialized, first"}],"available":"user"},{"name":"toggleTopPeers","id":2232729050,"returns":"boolean","arguments":[{"name":"enabled","type":"boolean","description":"Enable/disable"}],"description":"Enable/disable top peers","available":"user"},{"name":"addContact","id":3908330448,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"addPhonePrivacyException","type":"true","optional":true,"predicate":"flags.0","description":"Allow the other user to see our phone number?"},{"name":"id","type":"InputUser","description":"Telegram ID of the other user"},{"name":"firstName","type":"string","description":"First name"},{"name":"lastName","type":"string","description":"Last name"},{"name":"phone","type":"string","description":"User's phone number"}],"description":"Add an existing telegram user as contact.","throws":[{"code":400,"name":"CONTACT_ID_INVALID","description":"The provided contact ID is invalid"},{"code":400,"name":"CONTACT_NAME_EMPTY","description":"Contact name empty"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"user"},{"name":"acceptContact","id":4164002319,"returns":"Updates","arguments":[{"name":"id","type":"InputUser","description":"The user to add as contact"}],"description":"If the {@link peerSettings} of a new user allow us to add them as contact, add that user as contact","throws":[{"code":400,"name":"CONTACT_ADD_MISSING","description":"Contact to add is missing"},{"code":400,"name":"CONTACT_ID_INVALID","description":"The provided contact ID is invalid"},{"code":400,"name":"CONTACT_REQ_MISSING","description":"Missing contact request"}],"available":"user"},{"name":"getLocated","id":3544759364,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"background","type":"true","optional":true,"predicate":"flags.1","description":"While the geolocation of the current user is public, clients should update it in the background every half-an-hour or so, while setting this flag.
Do this only if the new location is more than 1 KM away from the previous one, or if the previous location is unknown."},{"name":"geoPoint","type":"InputGeoPoint","description":"Geolocation"},{"name":"selfExpires","type":"number","optional":true,"predicate":"flags.0","description":"If set, the geolocation of the current user will be public for the specified number of seconds; pass 0x7fffffff to disable expiry, 0 to make the current geolocation private; if the flag isn't set, no changes will be applied."}],"description":"Get contacts near you","throws":[{"code":400,"name":"GEO_POINT_INVALID","description":"Invalid geoposition provided"},{"code":406,"name":"USERPIC_UPLOAD_REQUIRED","description":"You must have a profile picture to publish your geolocation"}],"available":"user"},{"name":"blockFromReplies","id":698914348,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"deleteMessage","type":"true","optional":true,"predicate":"flags.0","description":"Whether to delete the specified message as well"},{"name":"deleteHistory","type":"true","optional":true,"predicate":"flags.1","description":"Whether to delete all @replies messages from this user as well"},{"name":"reportSpam","type":"true","optional":true,"predicate":"flags.2","description":"Whether to also report this user for spam"},{"name":"msgId","type":"number","description":"ID of the message in the @replies chat"}],"description":"Stop getting notifications about thread replies of a certain user in @replies","available":"both"}],"unions":[{"type":"Contacts","subtypes":["contacts.contactsNotModified","contacts.contacts"],"description":"Info on the current user's contact list."},{"type":"ImportedContacts","subtypes":["contacts.importedContacts"],"description":"Object contains info on succesfully imported contacts."},{"type":"Blocked","subtypes":["contacts.blocked","contacts.blockedSlice"],"description":"Info on users from the current user's black list."},{"type":"Found","subtypes":["contacts.found"],"description":"Object contains info on users found by name substring and auxiliary data."},{"type":"ResolvedPeer","subtypes":["contacts.resolvedPeer"],"description":"Peer returned after resolving a @username"},{"type":"TopPeers","subtypes":["contacts.topPeersNotModified","contacts.topPeers","contacts.topPeersDisabled"],"description":"Top peers"}]},"messages":{"classes":[{"name":"dialogs","id":364538944,"type":"messages.Dialogs","arguments":[{"name":"dialogs","type":"Dialog[]","description":"List of chats"},{"name":"messages","type":"Message[]","description":"List of last messages from each chat"},{"name":"chats","type":"Chat[]","description":"List of groups mentioned in the chats"},{"name":"users","type":"User[]","description":"List of users mentioned in messages and groups"}],"description":"Full list of chats with messages and auxiliary data."},{"name":"dialogsSlice","id":1910543603,"type":"messages.Dialogs","arguments":[{"name":"count","type":"number","description":"Total number of dialogs"},{"name":"dialogs","type":"Dialog[]","description":"List of dialogs"},{"name":"messages","type":"Message[]","description":"List of last messages from dialogs"},{"name":"chats","type":"Chat[]","description":"List of chats mentioned in dialogs"},{"name":"users","type":"User[]","description":"List of users mentioned in messages and chats"}],"description":"Incomplete list of dialogs with messages and auxiliary data."},{"name":"dialogsNotModified","id":4041467286,"type":"messages.Dialogs","arguments":[{"name":"count","type":"number","description":"Number of dialogs found server-side by the query"}],"description":"Dialogs haven't changed"},{"name":"messages","id":2356252295,"type":"messages.Messages","arguments":[{"name":"messages","type":"Message[]","description":"List of messages"},{"name":"chats","type":"Chat[]","description":"List of chats mentioned in dialogs"},{"name":"users","type":"User[]","description":"List of users mentioned in messages and chats"}],"description":"Full list of messages with auxilary data."},{"name":"messagesSlice","id":978610270,"type":"messages.Messages","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"inexact","type":"true","optional":true,"predicate":"flags.1","description":"If set, indicates that the results may be inexact"},{"name":"count","type":"number","description":"Total number of messages in the list"},{"name":"nextRate","type":"number","optional":true,"predicate":"flags.0","description":"Rate to use in the offset_rate parameter in the next call to {@link messages.searchGlobal}"},{"name":"offsetIdOffset","type":"number","optional":true,"predicate":"flags.2","description":"Indicates the absolute position of messages[0] within the total result set with count count.
This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}."},{"name":"messages","type":"Message[]","description":"List of messages"},{"name":"chats","type":"Chat[]","description":"List of chats mentioned in messages"},{"name":"users","type":"User[]","description":"List of users mentioned in messages and chats"}],"description":"Incomplete list of messages and auxiliary data."},{"name":"channelMessages","id":1682413576,"type":"messages.Messages","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"inexact","type":"true","optional":true,"predicate":"flags.1","description":"If set, returned results may be inexact"},{"name":"pts","type":"number","description":"Event count after generation"},{"name":"count","type":"number","description":"Total number of results were found server-side (may not be all included here)"},{"name":"offsetIdOffset","type":"number","optional":true,"predicate":"flags.2","description":"Indicates the absolute position of messages[0] within the total result set with count count.
This is useful, for example, if the result was fetched using offset_id, and we need to display a progress/total counter (like photo 134 of 200, for all media in a chat, we could simply use photo ${offset_id_offset} of ${count}."},{"name":"messages","type":"Message[]","description":"Found messages"},{"name":"chats","type":"Chat[]","description":"Chats"},{"name":"users","type":"User[]","description":"Users"}],"description":"Channel messages"},{"name":"messagesNotModified","id":1951620897,"type":"messages.Messages","arguments":[{"name":"count","type":"number","description":"Number of results found server-side by the given query"}],"description":"No new messages matching the query were found"},{"name":"chats","id":1694474197,"type":"messages.Chats","arguments":[{"name":"chats","type":"Chat[]","description":"List of chats"}],"description":"List of chats with auxiliary data."},{"name":"chatsSlice","id":2631405892,"type":"messages.Chats","arguments":[{"name":"count","type":"number","description":"Total number of results that were found server-side (not all are included in chats)"},{"name":"chats","type":"Chat[]","description":"Chats"}],"description":"Partial list of chats, more would have to be fetched with pagination"},{"name":"chatFull","id":3856126364,"type":"messages.ChatFull","arguments":[{"name":"fullChat","type":"ChatFull","description":"Extended info on a chat"},{"name":"chats","type":"Chat[]","description":"List containing basic info on chat"},{"name":"users","type":"User[]","description":"List of users mentioned above"}],"description":"Extended info on chat and auxiliary data."},{"name":"affectedHistory","id":3025955281,"type":"messages.AffectedHistory","arguments":[{"name":"pts","type":"number","description":"Number of events occured in a text box"},{"name":"ptsCount","type":"number","description":"Number of affected events"},{"name":"offset","type":"number","description":"If a parameter contains positive value, it is necessary to repeat the method call using the given value; during the proceeding of all the history the value itself shall gradually decrease"}],"description":"Affected part of communication history with the user or in a chat."},{"name":"dhConfigNotModified","id":3236054581,"type":"messages.DhConfig","arguments":[{"name":"random","type":"Buffer","description":"Random sequence of bytes of assigned length"}],"description":"Configuring parameters did not change."},{"name":"dhConfig","id":740433629,"type":"messages.DhConfig","arguments":[{"name":"g","type":"number","description":"New value prime, see Wikipedia"},{"name":"p","type":"Buffer","description":"New value primitive root, see Wikipedia"},{"name":"version","type":"number","description":"Vestion of set of parameters"},{"name":"random","type":"Buffer","description":"Random sequence of bytes of assigned length"}],"description":"New set of configuring parameters."},{"name":"sentEncryptedMessage","id":1443858741,"type":"messages.SentEncryptedMessage","arguments":[{"name":"date","type":"number","description":"Date of sending"}],"description":"Message without file attachemts sent to an encrypted file."},{"name":"sentEncryptedFile","id":2492727090,"type":"messages.SentEncryptedMessage","arguments":[{"name":"date","type":"number","description":"Sending date"},{"name":"file","type":"EncryptedFile","description":"Attached file"}],"description":"Message with a file enclosure sent to a protected chat"},{"name":"stickersNotModified","id":4050950690,"type":"messages.Stickers","arguments":[],"description":"No new stickers were found for the given query"},{"name":"stickers","id":3831077821,"type":"messages.Stickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"stickers","type":"Document[]","description":"Stickers"}],"description":"Found stickers"},{"name":"allStickersNotModified","id":3898999491,"type":"messages.AllStickers","arguments":[],"description":"Info about all installed stickers hasn't changed"},{"name":"allStickers","id":3992797279,"type":"messages.AllStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"sets","type":"StickerSet[]","description":"All stickersets"}],"description":"Info about all installed stickers"},{"name":"affectedMessages","id":2228326789,"type":"messages.AffectedMessages","arguments":[{"name":"pts","type":"number","description":"Event count after generation"},{"name":"ptsCount","type":"number","description":"Number of events that were generated"}],"description":"Events affected by operation"},{"name":"stickerSet","id":3054118054,"type":"messages.StickerSet","arguments":[{"name":"set","type":"StickerSet","description":"The stickerset"},{"name":"packs","type":"StickerPack[]","description":"Emoji info for stickers"},{"name":"documents","type":"Document[]","description":"Stickers in stickerset"}],"description":"Stickerset and stickers inside it"},{"name":"savedGifsNotModified","id":3892468898,"type":"messages.SavedGifs","arguments":[],"description":"No new saved gifs were found"},{"name":"savedGifs","id":772213157,"type":"messages.SavedGifs","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"gifs","type":"Document[]","description":"List of saved gifs"}],"description":"Saved gifs"},{"name":"botResults","id":2491197512,"type":"messages.BotResults","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"gallery","type":"true","optional":true,"predicate":"flags.0","description":"Whether the result is a picture gallery"},{"name":"queryId","type":"Long","description":"Query ID"},{"name":"nextOffset","type":"string","optional":true,"predicate":"flags.1","description":"The next offset to use when navigating through results"},{"name":"switchPm","type":"InlineBotSwitchPM","optional":true,"predicate":"flags.2","description":"Whether the bot requested the user to message them in private"},{"name":"results","type":"BotInlineResult[]","description":"The results"},{"name":"cacheTime","type":"number","description":"Caching validity of the results"},{"name":"users","type":"User[]","description":"Users mentioned in the results"}],"description":"Result of a query to an inline bot"},{"name":"botCallbackAnswer","id":911761060,"type":"messages.BotCallbackAnswer","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"alert","type":"true","optional":true,"predicate":"flags.1","description":"Whether an alert should be shown to the user instead of a toast notification"},{"name":"hasUrl","type":"true","optional":true,"predicate":"flags.3","description":"Whether an URL is present"},{"name":"nativeUi","type":"true","optional":true,"predicate":"flags.4","description":"Whether to show games in WebView or in native UI."},{"name":"message","type":"string","optional":true,"predicate":"flags.0","description":"Alert to show"},{"name":"url","type":"string","optional":true,"predicate":"flags.2","description":"URL to open"},{"name":"cacheTime","type":"number","description":"For how long should this answer be cached"}],"description":"Callback answer sent by the bot in response to a button press"},{"name":"messageEditData","id":649453030,"type":"messages.MessageEditData","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"caption","type":"true","optional":true,"predicate":"flags.0","description":"Media caption, if the specified media's caption can be edited"}],"description":"Message edit data for media"},{"name":"peerDialogs","id":863093588,"type":"messages.PeerDialogs","arguments":[{"name":"dialogs","type":"Dialog[]","description":"Dialog info"},{"name":"messages","type":"Message[]","description":"Messages mentioned in dialog info"},{"name":"chats","type":"Chat[]","description":"Chats"},{"name":"users","type":"User[]","description":"Users"},{"name":"state","type":"updates.State","description":"Current update state of dialog"}],"description":"Dialog info of multiple peers"},{"name":"featuredStickersNotModified","id":3336309862,"type":"messages.FeaturedStickers","arguments":[{"name":"count","type":"number","description":"Total number of featured stickers"}],"description":"Featured stickers haven't changed"},{"name":"featuredStickers","id":3064709953,"type":"messages.FeaturedStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"count","type":"number","description":"Total number of featured stickers"},{"name":"sets","type":"StickerSetCovered[]","description":"Featured stickersets"},{"name":"unread","type":"Long[]","description":"IDs of new featured stickersets"}],"description":"Featured stickersets"},{"name":"recentStickersNotModified","id":186120336,"type":"messages.RecentStickers","arguments":[],"description":"No new recent sticker was found"},{"name":"recentStickers","id":586395571,"type":"messages.RecentStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"packs","type":"StickerPack[]","description":"Emojis associated to stickers"},{"name":"stickers","type":"Document[]","description":"Recent stickers"},{"name":"dates","type":"number[]","description":"When was each sticker last used"}],"description":"Recently used stickers"},{"name":"archivedStickers","id":1338747336,"type":"messages.ArchivedStickers","arguments":[{"name":"count","type":"number","description":"Number of archived stickers"},{"name":"sets","type":"StickerSetCovered[]","description":"Archived stickersets"}],"description":"Archived stickersets"},{"name":"stickerSetInstallResultSuccess","id":946083368,"type":"messages.StickerSetInstallResult","arguments":[],"description":"The stickerset was installed successfully"},{"name":"stickerSetInstallResultArchive","id":904138920,"type":"messages.StickerSetInstallResult","arguments":[{"name":"sets","type":"StickerSetCovered[]","description":"Archived stickersets"}],"description":"The stickerset was installed, but since there are too many stickersets some were archived"},{"name":"highScores","id":2587622809,"type":"messages.HighScores","arguments":[{"name":"scores","type":"HighScore[]","description":"Highscores"},{"name":"users","type":"User[]","description":"Users, associated to the highscores"}],"description":"Highscores in a game"},{"name":"favedStickersNotModified","id":2660214483,"type":"messages.FavedStickers","arguments":[],"description":"No new favorited stickers were found"},{"name":"favedStickers","id":4085198614,"type":"messages.FavedStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"packs","type":"StickerPack[]","description":"Emojis associated to stickers"},{"name":"stickers","type":"Document[]","description":"Favorited stickers"}],"description":"Favorited stickers"},{"name":"foundStickerSetsNotModified","id":223655517,"type":"messages.FoundStickerSets","arguments":[],"description":"No further results were found"},{"name":"foundStickerSets","id":1359533640,"type":"messages.FoundStickerSets","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"sets","type":"StickerSetCovered[]","description":"Found stickersets"}],"description":"Found stickersets"},{"name":"searchCounter","id":3896830975,"type":"messages.SearchCounter","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"inexact","type":"true","optional":true,"predicate":"flags.1","description":"If set, the results may be inexact"},{"name":"filter","type":"MessagesFilter","description":"Provided message filter"},{"name":"count","type":"number","description":"Number of results that were found server-side"}],"description":"Indicates how many results would be found by a {@link messages.search} call with the same parameters"},{"name":"inactiveChats","id":2837970629,"type":"messages.InactiveChats","arguments":[{"name":"dates","type":"number[]","description":"When was the chat last active"},{"name":"chats","type":"Chat[]","description":"Chat list"},{"name":"users","type":"User[]","description":"Users mentioned in the chat list"}],"description":"Inactive chat list"},{"name":"votesList","id":136574537,"type":"messages.VotesList","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"count","type":"number","description":"Total number of votes for all options (or only for the chosen option, if provided to {@link messages.getPollVotes})"},{"name":"votes","type":"MessageUserVote[]","description":"Vote info for each user"},{"name":"users","type":"User[]","description":"Info about users that voted in the poll"},{"name":"nextOffset","type":"string","optional":true,"predicate":"flags.0","description":"Offset to use with the next {@link messages.getPollVotes} request, empty string if no more results are available."}],"description":"How users voted in a poll"},{"name":"messageViews","id":3066361155,"type":"messages.MessageViews","arguments":[{"name":"views","type":"MessageViews[]","description":"View, forward counter + info about replies"},{"name":"chats","type":"Chat[]","description":"Chats mentioned in constructor"},{"name":"users","type":"User[]","description":"Users mentioned in constructor"}],"description":"View, forward counter + info about replies"},{"name":"discussionMessage","id":4124938141,"type":"messages.DiscussionMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"messages","type":"Message[]","description":"Discussion messages"},{"name":"maxId","type":"number","optional":true,"predicate":"flags.0","description":"Message ID of latest reply in this thread"},{"name":"readInboxMaxId","type":"number","optional":true,"predicate":"flags.1","description":"Message ID of latest read incoming message in this thread"},{"name":"readOutboxMaxId","type":"number","optional":true,"predicate":"flags.2","description":"Message ID of latest read outgoing message in this thread"},{"name":"chats","type":"Chat[]","description":"Chats mentioned in constructor"},{"name":"users","type":"User[]","description":"Users mentioned in constructor"}],"description":"Information about a message thread"},{"name":"historyImport","id":375566091,"type":"messages.HistoryImport","arguments":[{"name":"id","type":"Long"}]},{"name":"historyImportParsed","id":1578088377,"type":"messages.HistoryImportParsed","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"pm","type":"true","optional":true,"predicate":"flags.0"},{"name":"group","type":"true","optional":true,"predicate":"flags.1"},{"name":"title","type":"string","optional":true,"predicate":"flags.2"}]},{"name":"affectedFoundMessages","id":4019011180,"type":"messages.AffectedFoundMessages","arguments":[{"name":"pts","type":"number"},{"name":"ptsCount","type":"number"},{"name":"offset","type":"number"},{"name":"messages","type":"number[]"}]},{"name":"exportedChatInvites","id":3183881676,"type":"messages.ExportedChatInvites","arguments":[{"name":"count","type":"number"},{"name":"invites","type":"ExportedChatInvite[]"},{"name":"users","type":"User[]"}]},{"name":"exportedChatInvite","id":410107472,"type":"messages.ExportedChatInvite","arguments":[{"name":"invite","type":"ExportedChatInvite"},{"name":"users","type":"User[]"}]},{"name":"exportedChatInviteReplaced","id":572915951,"type":"messages.ExportedChatInvite","arguments":[{"name":"invite","type":"ExportedChatInvite"},{"name":"newInvite","type":"ExportedChatInvite"},{"name":"users","type":"User[]"}]},{"name":"chatInviteImporters","id":2176233482,"type":"messages.ChatInviteImporters","arguments":[{"name":"count","type":"number"},{"name":"importers","type":"ChatInviteImporter[]"},{"name":"users","type":"User[]"}]},{"name":"chatAdminsWithInvites","id":3063640791,"type":"messages.ChatAdminsWithInvites","arguments":[{"name":"admins","type":"ChatAdminWithInvites[]"},{"name":"users","type":"User[]"}]},{"name":"checkedHistoryImportPeer","id":2723014423,"type":"messages.CheckedHistoryImportPeer","arguments":[{"name":"confirmText","type":"string"}]}],"methods":[{"name":"getMessages","id":1673946374,"returns":"messages.Messages","arguments":[{"name":"id","type":"InputMessage[]","description":"Message ID list"}],"description":"Returns the list of messages by their IDs.","available":"both"},{"name":"getDialogs","id":2699967347,"returns":"messages.Dialogs","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"excludePinned","type":"true","optional":true,"predicate":"flags.0","description":"Exclude pinned dialogs"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.1","description":"Peer folder ID, for more info click here"},{"name":"offsetDate","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"offsetId","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"offsetPeer","type":"InputPeer","description":"Offset peer for pagination"},{"name":"limit","type":"number","description":"Number of list elements to be returned"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Returns the current user dialog list.","throws":[{"code":400,"name":"FOLDER_ID_INVALID","description":"Invalid folder ID"},{"code":400,"name":"INPUT_CONSTRUCTOR_INVALID","description":"The provided constructor is invalid"},{"code":400,"name":"OFFSET_PEER_ID_INVALID","description":"The provided offset peer is invalid"}],"available":"user"},{"name":"getHistory","id":3703276128,"returns":"messages.Messages","arguments":[{"name":"peer","type":"InputPeer","description":"Target peer"},{"name":"offsetId","type":"number","description":"Only return messages starting from the specified message ID"},{"name":"offsetDate","type":"number","description":"Only return messages sent before the specified date"},{"name":"addOffset","type":"number","description":"Number of list elements to be skipped, negative values are also accepted."},{"name":"limit","type":"number","description":"Number of results to return"},{"name":"maxId","type":"number","description":"If a positive value was transferred, the method will return only messages with IDs less than max_id"},{"name":"minId","type":"number","description":"If a positive value was transferred, the method will return only messages with IDs more than min_id"},{"name":"hash","type":"number","description":"Result hash"}],"description":"Gets back the conversation history with one interlocutor / within a chat","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"CONNECTION_DEVICE_MODEL_EMPTY","description":"Device model empty"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"search","id":204812012,"returns":"messages.Messages","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","description":"User or chat, histories with which are searched, or {@link inputPeerEmpty} constructor for global search"},{"name":"q","type":"string","description":"Text search request"},{"name":"fromId","type":"InputPeer","optional":true,"predicate":"flags.0","description":"Only return messages sent by the specified user ID"},{"name":"topMsgId","type":"number","optional":true,"predicate":"flags.1","description":"Thread ID"},{"name":"filter","type":"MessagesFilter","description":"Filter to return only specified message types"},{"name":"minDate","type":"number","description":"If a positive value was transferred, only messages with a sending date bigger than the transferred one will be returned"},{"name":"maxDate","type":"number","description":"If a positive value was transferred, only messages with a sending date smaller than the transferred one will be returned"},{"name":"offsetId","type":"number","description":"Only return messages starting from the specified message ID"},{"name":"addOffset","type":"number","description":"Additional offset"},{"name":"limit","type":"number","description":"Number of results to return"},{"name":"maxId","type":"number","description":"Maximum message ID to return"},{"name":"minId","type":"number","description":"Minimum message ID to return"},{"name":"hash","type":"number","description":"Hash"}],"description":"Gets back found messages","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"INPUT_CONSTRUCTOR_INVALID","description":"The provided constructor is invalid"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"PEER_ID_NOT_SUPPORTED","description":"The provided peer ID is not supported"},{"code":400,"name":"SEARCH_QUERY_EMPTY","description":"The search query is empty"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"user"},{"name":"readHistory","id":238054714,"returns":"messages.AffectedMessages","arguments":[{"name":"peer","type":"InputPeer","description":"Target user or group"},{"name":"maxId","type":"number","description":"If a positive value is passed, only messages with identifiers less or equal than the given one will be read"}],"description":"Marks message history as read.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"deleteHistory","id":469850889,"returns":"messages.AffectedHistory","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"justClear","type":"true","optional":true,"predicate":"flags.0","description":"Just clear history for the current user, without actually removing messages for every chat user"},{"name":"revoke","type":"true","optional":true,"predicate":"flags.1","description":"Whether to delete the message history for all chat participants"},{"name":"peer","type":"InputPeer","description":"User or chat, communication history of which will be deleted"},{"name":"maxId","type":"number","description":"Maximum ID of message to delete"}],"description":"Deletes communication history.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"deleteMessages","id":3851326930,"returns":"messages.AffectedMessages","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"revoke","type":"true","optional":true,"predicate":"flags.0","description":"Whether to delete messages for all participants of the chat"},{"name":"id","type":"number[]","description":"Message ID list"}],"description":"Deletes messages by their identifiers.","throws":[{"code":403,"name":"MESSAGE_DELETE_FORBIDDEN","description":"You can't delete one of the messages you tried to delete, most likely because it is a service message."}],"available":"both"},{"name":"receivedMessages","id":94983360,"returns":"ReceivedNotifyMessage[]","arguments":[{"name":"maxId","type":"number","description":"Maximum message ID available in a client."}],"description":"Confirms receipt of messages by a client, cancels PUSH-notification sending.","available":"user"},{"name":"setTyping","id":1486110434,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","description":"Target user or group"},{"name":"topMsgId","type":"number","optional":true,"predicate":"flags.0","description":"Thread ID"},{"name":"action","type":"SendMessageAction","description":"Type of action
Parameter added in Layer 17."}],"description":"Sends a current user typing event (see SendMessageAction for all event types) to a conversation partner or group.","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"},{"code":400,"name":"USER_IS_BLOCKED","description":"You were blocked by this user"},{"code":400,"name":"USER_IS_BOT","description":"Bots can't send messages to other bots"}],"available":"both"},{"name":"sendMessage","id":1376532592,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noWebpage","type":"true","optional":true,"predicate":"flags.1","description":"Set this flag to disable generation of the webpage preview"},{"name":"silent","type":"true","optional":true,"predicate":"flags.5","description":"Send this message silently (no notifications for the receivers)"},{"name":"background","type":"true","optional":true,"predicate":"flags.6","description":"Send this message as background message"},{"name":"clearDraft","type":"true","optional":true,"predicate":"flags.7","description":"Clear the draft field"},{"name":"peer","type":"InputPeer","description":"The destination where the message will be sent"},{"name":"replyToMsgId","type":"number","optional":true,"predicate":"flags.0","description":"The message ID to which this message will reply to"},{"name":"message","type":"string","description":"The message"},{"name":"randomId","type":"Long","description":"Unique client message ID required to prevent message resending"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Reply markup for sending bot buttons"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.3","description":"Message entities for sending styled text"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.10","description":"Scheduled message date for scheduled messages"}],"description":"Sends a message to a chat","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"BOT_DOMAIN_INVALID","description":"Bot domain invalid"},{"code":400,"name":"BOT_INVALID","description":"This is not a valid bot"},{"code":400,"name":"BUTTON_DATA_INVALID","description":"The data of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_TYPE_INVALID","description":"The type of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_URL_INVALID","description":"Button URL invalid"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"CHAT_RESTRICTED","description":"You can't send messages in this chat, you were restricted"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"ENCRYPTION_DECLINED","description":"The secret chat was declined"},{"code":400,"name":"ENTITY_MENTION_USER_INVALID","description":"You mentioned an invalid user"},{"code":400,"name":"FROM_MESSAGE_BOT_DISABLED","description":"Bots can't use fromMessage min constructors"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MESSAGE_EMPTY","description":"The provided message is empty"},{"code":400,"name":"MESSAGE_TOO_LONG","description":"The provided message is too long"},{"code":400,"name":"MSG_ID_INVALID","description":"Provided reply_to_msg_id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"PINNED_DIALOGS_TOO_MUCH","description":"Too many pinned dialogs"},{"code":400,"name":"REPLY_MARKUP_INVALID","description":"The provided reply markup is invalid"},{"code":400,"name":"SCHEDULE_BOT_NOT_ALLOWED","description":"Bots cannot schedule messages"},{"code":400,"name":"SCHEDULE_DATE_TOO_LATE","description":"You can't schedule a message this far in the future"},{"code":400,"name":"SCHEDULE_TOO_MUCH","description":"There are too many scheduled messages"},{"code":420,"name":"SLOWMODE_WAIT_X","description":"Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"},{"code":400,"name":"USER_IS_BLOCKED","description":"You were blocked by this user"},{"code":400,"name":"USER_IS_BOT","description":"Bots can't send messages to other bots"},{"code":400,"name":"YOU_BLOCKED_USER","description":"You blocked this user"}],"available":"both"},{"name":"sendMedia","id":881978281,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"silent","type":"true","optional":true,"predicate":"flags.5","description":"Send message silently (no notification should be triggered)"},{"name":"background","type":"true","optional":true,"predicate":"flags.6","description":"Send message in background"},{"name":"clearDraft","type":"true","optional":true,"predicate":"flags.7","description":"Clear the draft"},{"name":"peer","type":"InputPeer","description":"Destination"},{"name":"replyToMsgId","type":"number","optional":true,"predicate":"flags.0","description":"Message ID to which this message should reply to"},{"name":"media","type":"InputMedia","description":"Attached media"},{"name":"message","type":"string","description":"Caption"},{"name":"randomId","type":"Long","description":"Random ID to avoid resending the same message"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Reply markup for bot keyboards"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.3","description":"Message entities for styled text"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.10","description":"Scheduled message date for scheduled messages"}],"description":"Send a media","throws":[{"code":400,"name":"BROADCAST_PUBLIC_VOTERS_FORBIDDEN","description":"You can't forward polls with public voters"},{"code":400,"name":"BUTTON_DATA_INVALID","description":"The data of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_TYPE_INVALID","description":"The type of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_URL_INVALID","description":"Button URL invalid"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_RESTRICTED","description":"You can't send messages in this chat, you were restricted"},{"code":403,"name":"CHAT_SEND_GIFS_FORBIDDEN","description":"You can't send gifs in this chat"},{"code":403,"name":"CHAT_SEND_MEDIA_FORBIDDEN","description":"You can't send media in this chat"},{"code":403,"name":"CHAT_SEND_STICKERS_FORBIDDEN","description":"You can't send stickers in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"EXTERNAL_URL_INVALID","description":"External URL invalid"},{"code":400,"name":"FILE_PARTS_INVALID","description":"The number of file parts is invalid"},{"code":400,"name":"FILE_PART_LENGTH_INVALID","description":"The length of a file part is invalid"},{"code":400,"name":"IMAGE_PROCESS_FAILED","description":"Failure while processing image"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MD5_CHECKSUM_INVALID","description":"The MD5 checksums do not match"},{"code":400,"name":"MEDIA_CAPTION_TOO_LONG","description":"The caption is too long"},{"code":400,"name":"MEDIA_EMPTY","description":"The provided media object is invalid"},{"code":400,"name":"MEDIA_INVALID","description":"Media invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"PHOTO_EXT_INVALID","description":"The extension of the photo is invalid"},{"code":400,"name":"PHOTO_INVALID_DIMENSIONS","description":"The photo dimensions are invalid"},{"code":400,"name":"PHOTO_SAVE_FILE_INVALID","description":"Internal issues, try again later"},{"code":400,"name":"POLL_ANSWERS_INVALID","description":"Invalid poll answers were provided"},{"code":400,"name":"POLL_OPTION_DUPLICATE","description":"Duplicate poll options provided"},{"code":400,"name":"POLL_OPTION_INVALID","description":"Invalid poll option provided"},{"code":400,"name":"QUIZ_CORRECT_ANSWERS_EMPTY","description":"No correct quiz answer was specified"},{"code":400,"name":"QUIZ_CORRECT_ANSWER_INVALID","description":"An invalid value was provided to the correct_answers field"},{"code":400,"name":"REPLY_MARKUP_BUY_EMPTY","description":"Reply markup for buy button empty"},{"code":400,"name":"REPLY_MARKUP_INVALID","description":"The provided reply markup is invalid"},{"code":400,"name":"SCHEDULE_TOO_MUCH","description":"There are too many scheduled messages"},{"code":420,"name":"SLOWMODE_WAIT_X","description":"Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat."},{"code":400,"name":"TTL_MEDIA_INVALID","description":"Invalid media Time To Live was provided"},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"},{"code":400,"name":"USER_IS_BLOCKED","description":"You were blocked by this user"},{"code":400,"name":"USER_IS_BOT","description":"Bots can't send messages to other bots"},{"code":400,"name":"WEBPAGE_CURL_FAILED","description":"Failure while fetching the webpage with cURL"},{"code":400,"name":"WEBPAGE_MEDIA_EMPTY","description":"Webpage media empty"},{"code":400,"name":"YOU_BLOCKED_USER","description":"You blocked this user"}],"available":"both"},{"name":"forwardMessages","id":3657360910,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"silent","type":"true","optional":true,"predicate":"flags.5","description":"Whether to send messages silently (no notification will be triggered on the destination clients)"},{"name":"background","type":"true","optional":true,"predicate":"flags.6","description":"Whether to send the message in background"},{"name":"withMyScore","type":"true","optional":true,"predicate":"flags.8","description":"When forwarding games, whether to include your score in the game"},{"name":"fromPeer","type":"InputPeer","description":"Source of messages"},{"name":"id","type":"number[]","description":"IDs of messages"},{"name":"randomId","type":"Long[]","description":"Random ID to prevent resending of messages"},{"name":"toPeer","type":"InputPeer","description":"Destination peer"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.10","description":"Scheduled message date for scheduled messages"}],"description":"Forwards messages by their IDs.","throws":[{"code":400,"name":"BROADCAST_PUBLIC_VOTERS_FORBIDDEN","description":"You can't forward polls with public voters"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"CHAT_RESTRICTED","description":"You can't send messages in this chat, you were restricted"},{"code":403,"name":"CHAT_SEND_GIFS_FORBIDDEN","description":"You can't send gifs in this chat"},{"code":403,"name":"CHAT_SEND_MEDIA_FORBIDDEN","description":"You can't send media in this chat"},{"code":403,"name":"CHAT_SEND_POLL_FORBIDDEN","description":"You can't send polls in this chat"},{"code":403,"name":"CHAT_SEND_STICKERS_FORBIDDEN","description":"You can't send stickers in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"GROUPED_MEDIA_INVALID","description":"Invalid grouped media"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MEDIA_EMPTY","description":"The provided media object is invalid"},{"code":400,"name":"MESSAGE_IDS_EMPTY","description":"No message ids were provided"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":420,"name":"P0NY_FLOODWAIT","description":" "},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"RANDOM_ID_INVALID","description":"A provided random ID is invalid"},{"code":400,"name":"SCHEDULE_TOO_MUCH","description":"There are too many scheduled messages"},{"code":400,"name":"SLOWMODE_MULTI_MSGS_DISABLED","description":"Slowmode is enabled, you cannot forward multiple messages to this group."},{"code":420,"name":"SLOWMODE_WAIT_X","description":"Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"},{"code":400,"name":"USER_IS_BLOCKED","description":"You were blocked by this user"},{"code":400,"name":"USER_IS_BOT","description":"Bots can't send messages to other bots"},{"code":400,"name":"YOU_BLOCKED_USER","description":"You blocked this user"}],"available":"both"},{"name":"reportSpam","id":3474297563,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer","description":"Peer to report"}],"description":"Report a new incoming chat for spam, if the {@link peerSettings} of the chat allow us to do that","throws":[{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getPeerSettings","id":913498268,"returns":"PeerSettings","arguments":[{"name":"peer","type":"InputPeer","description":"The peer"}],"description":"Get peer settings","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"report","id":2303961934,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"},{"name":"id","type":"number[]","description":"IDs of messages to report"},{"name":"reason","type":"ReportReason","description":"Why are these messages being reported"},{"name":"message","type":"string"}],"description":"Report a message in a chat for violation of telegram's Terms of Service","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getChats","id":1013621127,"returns":"messages.Chats","arguments":[{"name":"id","type":"number[]","description":"List of chat IDs"}],"description":"Returns chat basic info on their IDs.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"both"},{"name":"getFullChat","id":998448230,"returns":"messages.ChatFull","arguments":[{"name":"chatId","type":"number","description":"Chat ID"}],"description":"Returns full chat info according to its ID.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"both"},{"name":"editChatTitle","id":3695519829,"returns":"Updates","arguments":[{"name":"chatId","type":"number","description":"Chat ID"},{"name":"title","type":"string","description":"New chat name, different from the old one"}],"description":"Chanages chat name and sends a service message on it.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":400,"name":"CHAT_TITLE_EMPTY","description":"No chat title provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"both"},{"name":"editChatPhoto","id":3394009560,"returns":"Updates","arguments":[{"name":"chatId","type":"number","description":"Chat ID"},{"name":"photo","type":"InputChatPhoto","description":"Photo to be set"}],"description":"Changes chat photo and sends a service message on it","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":400,"name":"INPUT_CONSTRUCTOR_INVALID","description":"The provided constructor is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","description":"Photo is too small"},{"code":400,"name":"PHOTO_EXT_INVALID","description":"The extension of the photo is invalid"},{"code":400,"name":"PHOTO_INVALID","description":"Photo invalid"}],"available":"both"},{"name":"addChatUser","id":4188056073,"returns":"Updates","arguments":[{"name":"chatId","type":"number","description":"Chat ID"},{"name":"userId","type":"InputUser","description":"User ID to be added"},{"name":"fwdLimit","type":"number","description":"Number of last messages to be forwarded"}],"description":"Adds a user to a chat and sends a service message on it.","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USERS_TOO_MUCH","description":"The maximum number of users has been exceeded (to create a chat, for example)"},{"code":400,"name":"USER_ALREADY_PARTICIPANT","description":"The user is already in the group"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"},{"code":403,"name":"USER_NOT_MUTUAL_CONTACT","description":"The provided user is not a mutual contact"},{"code":403,"name":"USER_PRIVACY_RESTRICTED","description":"The user's privacy settings do not allow you to do this"}],"available":"user"},{"name":"deleteChatUser","id":3308537242,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"revokeHistory","type":"true","optional":true,"predicate":"flags.0"},{"name":"chatId","type":"number","description":"Chat ID"},{"name":"userId","type":"InputUser","description":"User ID to be deleted"}],"description":"Deletes a user from a chat and sends a service message on it.","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"},{"code":400,"name":"USER_NOT_PARTICIPANT","description":"You're not a member of this supergroup/channel"}],"available":"both"},{"name":"createChat","id":164303470,"returns":"Updates","arguments":[{"name":"users","type":"InputUser[]","description":"List of user IDs to be invited"},{"name":"title","type":"string","description":"Chat name"}],"description":"Creates a new chat.","throws":[{"code":400,"name":"CHAT_INVALID","description":"Invalid chat"},{"code":400,"name":"CHAT_TITLE_EMPTY","description":"No chat title provided"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"USERS_TOO_FEW","description":"Not enough users (to create a chat, for example)"},{"code":403,"name":"USER_RESTRICTED","description":"You're spamreported, you can't create channels or chats."}],"available":"user"},{"name":"getDhConfig","id":651135312,"returns":"messages.DhConfig","arguments":[{"name":"version","type":"number","description":"Value of the version parameter from {@link messages.dhConfig}, avialable at the client"},{"name":"randomLength","type":"number","description":"Length of the required random sequence"}],"description":"Returns configuration parameters for Diffie-Hellman key generation. Can also return a random sequence of bytes of required length.","throws":[{"code":400,"name":"RANDOM_LENGTH_INVALID","description":"Random length invalid"}],"available":"user"},{"name":"requestEncryption","id":4132286275,"returns":"EncryptedChat","arguments":[{"name":"userId","type":"InputUser","description":"User ID"},{"name":"randomId","type":"number","description":"Unique client request ID required to prevent resending. This also doubles as the chat ID."},{"name":"gA","type":"Buffer","description":"A = g ^ a mod p, see Wikipedia"}],"description":"Sends a request to start a secret chat to the user.","throws":[{"code":400,"name":"DH_G_A_INVALID","description":"g_a invalid"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"user"},{"name":"acceptEncryption","id":1035731989,"returns":"EncryptedChat","arguments":[{"name":"peer","type":"InputEncryptedChat","description":"Secret chat ID"},{"name":"gB","type":"Buffer","description":"B = g ^ b mod p, see Wikipedia"},{"name":"keyFingerprint","type":"Long","description":"64-bit fingerprint of the received key"}],"description":"Confirms creation of a secret chat","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"ENCRYPTION_ALREADY_ACCEPTED","description":"Secret chat already accepted"},{"code":400,"name":"ENCRYPTION_ALREADY_DECLINED","description":"The secret chat was already declined"}],"available":"user"},{"name":"discardEncryption","id":4086541984,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"deleteHistory","type":"true","optional":true,"predicate":"flags.0"},{"name":"chatId","type":"number","description":"Secret chat ID"}],"description":"Cancels a request for creation and/or delete info on secret chat.","throws":[{"code":400,"name":"CHAT_ID_EMPTY","description":"The provided chat ID is empty"},{"code":400,"name":"ENCRYPTION_ALREADY_DECLINED","description":"The secret chat was already declined"},{"code":400,"name":"ENCRYPTION_ID_INVALID","description":"The provided secret chat ID is invalid"}],"available":"user"},{"name":"setEncryptedTyping","id":2031374829,"returns":"boolean","arguments":[{"name":"peer","type":"InputEncryptedChat","description":"Secret chat ID"},{"name":"typing","type":"boolean","description":"Typing.
Possible values:
{@link boolTrue}, if the user started typing and more than 5 seconds have passed since the last request
{@link boolFalse}, if the user stopped typing"}],"description":"Send typing event by the current user to a secret chat.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"}],"available":"user"},{"name":"readEncryptedHistory","id":2135648522,"returns":"boolean","arguments":[{"name":"peer","type":"InputEncryptedChat","description":"Secret chat ID"},{"name":"maxDate","type":"number","description":"Maximum date value for received messages in history"}],"description":"Marks message history within a secret chat as read.","throws":[{"code":400,"name":"MSG_WAIT_FAILED","description":"A waiting call returned an error"}],"available":"user"},{"name":"sendEncrypted","id":1157265941,"returns":"messages.SentEncryptedMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"silent","type":"true","optional":true,"predicate":"flags.0","description":"Send encrypted message without a notification"},{"name":"peer","type":"InputEncryptedChat","description":"Secret chat ID"},{"name":"randomId","type":"Long","description":"Unique client message ID, necessary to avoid message resending"},{"name":"data","type":"Buffer","description":"TL-serialization of DecryptedMessage type, encrypted with a key that was created during chat initialization"}],"description":"Sends a text message to a secret chat.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"DATA_INVALID","description":"Encrypted data invalid"},{"code":400,"name":"ENCRYPTION_DECLINED","description":"The secret chat was declined"},{"code":400,"name":"MSG_WAIT_FAILED","description":"A waiting call returned an error"}],"available":"user"},{"name":"sendEncryptedFile","id":1431914525,"returns":"messages.SentEncryptedMessage","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"silent","type":"true","optional":true,"predicate":"flags.0","description":"Whether to send the file without triggering a notification"},{"name":"peer","type":"InputEncryptedChat","description":"Secret chat ID"},{"name":"randomId","type":"Long","description":"Unique client message ID necessary to prevent message resending"},{"name":"data","type":"Buffer","description":"TL-serialization of DecryptedMessage type, encrypted with a key generated during chat initialization"},{"name":"file","type":"InputEncryptedFile","description":"File attachment for the secret chat"}],"description":"Sends a message with a file attachment to a secret chat","throws":[{"code":400,"name":"DATA_TOO_LONG","description":"Data too long"},{"code":400,"name":"ENCRYPTION_DECLINED","description":"The secret chat was declined"},{"code":400,"name":"MD5_CHECKSUM_INVALID","description":"The MD5 checksums do not match"},{"code":400,"name":"MSG_WAIT_FAILED","description":"A waiting call returned an error"}],"available":"user"},{"name":"sendEncryptedService","id":852769188,"returns":"messages.SentEncryptedMessage","arguments":[{"name":"peer","type":"InputEncryptedChat","description":"Secret chat ID"},{"name":"randomId","type":"Long","description":"Unique client message ID required to prevent message resending"},{"name":"data","type":"Buffer","description":"TL-serialization of DecryptedMessage type, encrypted with a key generated during chat initialization"}],"description":"Sends a service message to a secret chat.","throws":[{"code":400,"name":"DATA_INVALID","description":"Encrypted data invalid"},{"code":400,"name":"ENCRYPTION_DECLINED","description":"The secret chat was declined"},{"code":400,"name":"ENCRYPTION_ID_INVALID","description":"The provided secret chat ID is invalid"},{"code":400,"name":"MSG_WAIT_FAILED","description":"A waiting call returned an error"},{"code":403,"name":"USER_IS_BLOCKED","description":"You were blocked by this user"}],"available":"user"},{"name":"receivedQueue","id":1436924774,"returns":"Long[]","arguments":[{"name":"maxQts","type":"number","description":"Maximum qts value available at the client"}],"description":"Confirms receipt of messages in a secret chat by client, cancels push notifications.","throws":[{"code":400,"name":"MSG_WAIT_FAILED","description":"A waiting call returned an error"}],"available":"user"},{"name":"reportEncryptedSpam","id":1259113487,"returns":"boolean","arguments":[{"name":"peer","type":"InputEncryptedChat","description":"The secret chat to report"}],"description":"Report a secret chat for spam","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"}],"available":"user"},{"name":"readMessageContents","id":916930423,"returns":"messages.AffectedMessages","arguments":[{"name":"id","type":"number[]","description":"Message ID list"}],"description":"Notifies the sender about the recipient having listened a voice message or watched a video.","available":"user"},{"name":"getStickers","id":71126828,"returns":"messages.Stickers","arguments":[{"name":"emoticon","type":"string","description":"The emoji"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get stickers by emoji","available":"user"},{"name":"getAllStickers","id":479598769,"returns":"messages.AllStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get all installed stickers","available":"user"},{"name":"getWebPagePreview","id":2338894028,"returns":"MessageMedia","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"message","type":"string","description":"Message from which to extract the preview"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.3","description":"Message entities for styled text"}],"description":"Get preview of webpage","throws":[{"code":400,"name":"MESSAGE_EMPTY","description":"The provided message is empty"}],"available":"user"},{"name":"exportChatInvite","id":347716823,"returns":"ExportedChatInvite","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"legacyRevokePermanent","type":"true","optional":true,"predicate":"flags.2"},{"name":"peer","type":"InputPeer","description":"Chat"},{"name":"expireDate","type":"number","optional":true,"predicate":"flags.0"},{"name":"usageLimit","type":"number","optional":true,"predicate":"flags.1"}],"description":"Export an invite link for a chat","throws":[{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"both"},{"name":"checkChatInvite","id":1051570619,"returns":"ChatInvite","arguments":[{"name":"hash","type":"string","description":"Invite hash in t.me/joinchat/hash"}],"description":"Check the validity of a chat invite link and get basic info about it","throws":[{"code":400,"name":"INVITE_HASH_EMPTY","description":"The invite hash is empty"},{"code":400,"name":"INVITE_HASH_EXPIRED","description":"The invite link has expired"},{"code":400,"name":"INVITE_HASH_INVALID","description":"The invite hash is invalid"}],"available":"user"},{"name":"importChatInvite","id":1817183516,"returns":"Updates","arguments":[{"name":"hash","type":"string","description":"hash from t.me/joinchat/hash"}],"description":"Import a chat invite and join a private chat/supergroup/channel","throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","description":"You have joined too many channels/supergroups"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"INVITE_HASH_EMPTY","description":"The invite hash is empty"},{"code":400,"name":"INVITE_HASH_EXPIRED","description":"The invite link has expired"},{"code":400,"name":"INVITE_HASH_INVALID","description":"The invite hash is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USERS_TOO_MUCH","description":"The maximum number of users has been exceeded (to create a chat, for example)"},{"code":400,"name":"USER_ALREADY_PARTICIPANT","description":"The user is already in the group"},{"code":400,"name":"USER_CHANNELS_TOO_MUCH","description":"One of the users you tried to add is already in too many channels/supergroups"}],"available":"user"},{"name":"getStickerSet","id":639215886,"returns":"messages.StickerSet","arguments":[{"name":"stickerset","type":"InputStickerSet","description":"Stickerset"}],"description":"Get info about a stickerset","throws":[{"code":400,"name":"STICKERSET_INVALID","description":"The provided sticker set is invalid"}],"available":"both"},{"name":"installStickerSet","id":3348096096,"returns":"messages.StickerSetInstallResult","arguments":[{"name":"stickerset","type":"InputStickerSet","description":"Stickerset to install"},{"name":"archived","type":"boolean","description":"Whether to archive stickerset"}],"description":"Install a stickerset","throws":[{"code":400,"name":"STICKERSET_INVALID","description":"The provided sticker set is invalid"}],"available":"user"},{"name":"uninstallStickerSet","id":4184757726,"returns":"boolean","arguments":[{"name":"stickerset","type":"InputStickerSet","description":"The stickerset to uninstall"}],"description":"Uninstall a stickerset","throws":[{"code":400,"name":"STICKERSET_INVALID","description":"The provided sticker set is invalid"}],"available":"user"},{"name":"startBot","id":3873403768,"returns":"Updates","arguments":[{"name":"bot","type":"InputUser","description":"The bot"},{"name":"peer","type":"InputPeer","description":"The chat where to start the bot, can be the bot's private chat or a group"},{"name":"randomId","type":"Long","description":"Random ID to avoid resending the same message"},{"name":"startParam","type":"string","description":"Deep linking parameter"}],"description":"Start a conversation with a bot using a deep linking parameter","throws":[{"code":400,"name":"BOT_INVALID","description":"This is not a valid bot"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"START_PARAM_EMPTY","description":"The start parameter is empty"},{"code":400,"name":"START_PARAM_INVALID","description":"Start parameter invalid"},{"code":400,"name":"START_PARAM_TOO_LONG","description":"Start parameter is too long"}],"available":"user"},{"name":"getMessagesViews","id":1468322785,"returns":"messages.MessageViews","arguments":[{"name":"peer","type":"InputPeer","description":"Peer where the message was found"},{"name":"id","type":"number[]","description":"ID of message"},{"name":"increment","type":"boolean","description":"Whether to mark the message as viewed and increment the view counter"}],"description":"Get and increase the view counter of a message sent or forwarded from a channel","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"editChatAdmin","id":2850463534,"returns":"boolean","arguments":[{"name":"chatId","type":"number","description":"The ID of the group"},{"name":"userId","type":"InputUser","description":"The user to make admin"},{"name":"isAdmin","type":"boolean","description":"Whether to make them admin"}],"description":"Make a user admin in a legacy group.","throws":[{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"},{"code":400,"name":"USER_NOT_PARTICIPANT","description":"You're not a member of this supergroup/channel"}],"available":"user"},{"name":"migrateChat","id":363051235,"returns":"Updates","arguments":[{"name":"chatId","type":"number","description":"Legacy group to migrate"}],"description":"Turn a legacy group into a supergroup","throws":[{"code":403,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"searchGlobal","id":1271290010,"returns":"messages.Messages","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"folderId","type":"number","optional":true,"predicate":"flags.0","description":"Peer folder ID, for more info click here"},{"name":"q","type":"string","description":"Query"},{"name":"filter","type":"MessagesFilter","description":"Global search filter"},{"name":"minDate","type":"number","description":"If a positive value was specified, the method will return only messages with date bigger than min_date"},{"name":"maxDate","type":"number","description":"If a positive value was transferred, the method will return only messages with date smaller than max_date"},{"name":"offsetRate","type":"number","description":"Initially 0, then set to the {@link messages.messagesSlice}"},{"name":"offsetPeer","type":"InputPeer","description":"Offsets for pagination, for more info click here"},{"name":"offsetId","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"limit","type":"number","description":"Offsets for pagination, for more info click here"}],"description":"Search for messages and peers globally","throws":[{"code":400,"name":"FOLDER_ID_INVALID","description":"Invalid folder ID"},{"code":400,"name":"SEARCH_QUERY_EMPTY","description":"The search query is empty"}],"available":"user"},{"name":"reorderStickerSets","id":2016638777,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"masks","type":"true","optional":true,"predicate":"flags.0","description":"Reorder mask stickersets"},{"name":"order","type":"Long[]","description":"New stickerset order by stickerset IDs"}],"description":"Reorder installed stickersets","available":"user"},{"name":"getDocumentByHash","id":864953444,"returns":"Document","arguments":[{"name":"sha256","type":"Buffer","description":"SHA256 of file"},{"name":"size","type":"number","description":"Size of the file in bytes"},{"name":"mimeType","type":"string","description":"Mime type"}],"description":"Get a document by its SHA256 hash, mainly used for gifs","throws":[{"code":400,"name":"SHA256_HASH_INVALID","description":"The provided SHA256 hash is invalid"}],"available":"both"},{"name":"getSavedGifs","id":2210348370,"returns":"messages.SavedGifs","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get saved GIFs","available":"user"},{"name":"saveGif","id":846868683,"returns":"boolean","arguments":[{"name":"id","type":"InputDocument","description":"GIF to save"},{"name":"unsave","type":"boolean","description":"Whether to remove GIF from saved gifs list"}],"description":"Add GIF to saved gifs list","throws":[{"code":400,"name":"GIF_ID_INVALID","description":"The provided GIF ID is invalid"}],"available":"user"},{"name":"getInlineBotResults","id":1364105629,"returns":"messages.BotResults","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"bot","type":"InputUser","description":"The bot to query"},{"name":"peer","type":"InputPeer","description":"The currently opened chat"},{"name":"geoPoint","type":"InputGeoPoint","optional":true,"predicate":"flags.0","description":"The geolocation, if requested"},{"name":"query","type":"string","description":"The query"},{"name":"offset","type":"string","description":"The offset within the results, will be passed directly as-is to the bot."}],"description":"Query an inline bot","throws":[{"code":400,"name":"BOT_INLINE_DISABLED","description":"This bot can't be used in inline mode"},{"code":400,"name":"BOT_INVALID","description":"This is not a valid bot"},{"code":400,"name":"BOT_RESPONSE_TIMEOUT","description":"A timeout occurred while fetching data from the bot"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":-503,"name":"Timeout","description":"Timeout while fetching data"}],"available":"user"},{"name":"setInlineBotResults","id":3948847622,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"gallery","type":"true","optional":true,"predicate":"flags.0","description":"Set this flag if the results are composed of media files"},{"name":"private","type":"true","optional":true,"predicate":"flags.1","description":"Set this flag if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query"},{"name":"queryId","type":"Long","description":"Unique identifier for the answered query"},{"name":"results","type":"InputBotInlineResult[]","description":"Vector of results for the inline query"},{"name":"cacheTime","type":"number","description":"The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300."},{"name":"nextOffset","type":"string","optional":true,"predicate":"flags.2","description":"Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don‘t support pagination. Offset length can’t exceed 64 bytes."},{"name":"switchPm","type":"InlineBotSwitchPM","optional":true,"predicate":"flags.3","description":"If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with a certain parameter."}],"description":"Answer an inline query, for bots only","throws":[{"code":400,"name":"ARTICLE_TITLE_EMPTY","description":"The title of the article is empty"},{"code":400,"name":"BUTTON_DATA_INVALID","description":"The data of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_TYPE_INVALID","description":"The type of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_URL_INVALID","description":"Button URL invalid"},{"code":400,"name":"GIF_CONTENT_TYPE_INVALID","description":"GIF content-type invalid"},{"code":400,"name":"MESSAGE_EMPTY","description":"The provided message is empty"},{"code":400,"name":"MESSAGE_TOO_LONG","description":"The provided message is too long"},{"code":400,"name":"PHOTO_CONTENT_TYPE_INVALID","description":"Photo mime-type invalid"},{"code":400,"name":"PHOTO_CONTENT_URL_EMPTY","description":"Photo URL invalid"},{"code":400,"name":"PHOTO_INVALID","description":"Photo invalid"},{"code":400,"name":"PHOTO_THUMB_URL_EMPTY","description":"Photo thumbnail URL is empty"},{"code":400,"name":"QUERY_ID_INVALID","description":"The query ID is invalid"},{"code":400,"name":"REPLY_MARKUP_INVALID","description":"The provided reply markup is invalid"},{"code":400,"name":"RESULTS_TOO_MUCH","description":"Too many results were provided"},{"code":400,"name":"RESULT_ID_DUPLICATE","description":"You provided a duplicate result ID"},{"code":400,"name":"RESULT_TYPE_INVALID","description":"Result type invalid"},{"code":400,"name":"SEND_MESSAGE_MEDIA_INVALID","description":"Invalid media provided"},{"code":400,"name":"SEND_MESSAGE_TYPE_INVALID","description":"The message type is invalid"},{"code":400,"name":"START_PARAM_INVALID","description":"Start parameter invalid"},{"code":403,"name":"USER_BOT_INVALID","description":"This method can only be called by a bot"},{"code":400,"name":"WEBDOCUMENT_INVALID","description":"Invalid webdocument URL provided"},{"code":400,"name":"WEBDOCUMENT_MIME_INVALID","description":"Invalid webdocument mime type provided"},{"code":400,"name":"WEBDOCUMENT_SIZE_TOO_BIG","description":"Webdocument is too big!"}],"available":"bot"},{"name":"sendInlineBotResult","id":570955184,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"silent","type":"true","optional":true,"predicate":"flags.5","description":"Whether to send the message silently (no notification will be triggered on the other client)"},{"name":"background","type":"true","optional":true,"predicate":"flags.6","description":"Whether to send the message in background"},{"name":"clearDraft","type":"true","optional":true,"predicate":"flags.7","description":"Whether to clear the draft"},{"name":"hideVia","type":"true","optional":true,"predicate":"flags.11","description":"Whether to hide the via @botname in the resulting message (only for bot usernames encountered in the {@link config})"},{"name":"peer","type":"InputPeer","description":"Destination"},{"name":"replyToMsgId","type":"number","optional":true,"predicate":"flags.0","description":"ID of the message this message should reply to"},{"name":"randomId","type":"Long","description":"Random ID to avoid resending the same query"},{"name":"queryId","type":"Long","description":"Query ID from {@link messages.getInlineBotResults}"},{"name":"id","type":"string","description":"Result ID from {@link messages.getInlineBotResults}"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.10","description":"Scheduled message date for scheduled messages"}],"description":"Send a result obtained using {@link messages.getInlineBotResults}.","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_RESTRICTED","description":"You can't send messages in this chat, you were restricted"},{"code":403,"name":"CHAT_SEND_GIFS_FORBIDDEN","description":"You can't send gifs in this chat"},{"code":403,"name":"CHAT_SEND_INLINE_FORBIDDEN","description":"You can't send inline messages in this group"},{"code":403,"name":"CHAT_SEND_MEDIA_FORBIDDEN","description":"You can't send media in this chat"},{"code":403,"name":"CHAT_SEND_STICKERS_FORBIDDEN","description":"You can't send stickers in this chat."},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"INLINE_RESULT_EXPIRED","description":"The inline query expired"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MEDIA_EMPTY","description":"The provided media object is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"QUERY_ID_EMPTY","description":"The query ID is empty"},{"code":400,"name":"RESULT_ID_EMPTY","description":"Result ID empty"},{"code":420,"name":"SLOWMODE_WAIT_X","description":"Slowmode is enabled in this chat: you must wait for the specified number of seconds before sending another message to the chat."},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"},{"code":400,"name":"WEBPAGE_CURL_FAILED","description":"Failure while fetching the webpage with cURL"},{"code":400,"name":"WEBPAGE_MEDIA_EMPTY","description":"Webpage media empty"},{"code":400,"name":"YOU_BLOCKED_USER","description":"You blocked this user"}],"available":"user"},{"name":"getMessageEditData","id":4255550774,"returns":"messages.MessageEditData","arguments":[{"name":"peer","type":"InputPeer","description":"Peer where the media was sent"},{"name":"id","type":"number","description":"ID of message"}],"description":"Find out if a media message's caption can be edited","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"MESSAGE_AUTHOR_REQUIRED","description":"Message author required"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"editMessage","id":1224152952,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noWebpage","type":"true","optional":true,"predicate":"flags.1","description":"Disable webpage preview"},{"name":"peer","type":"InputPeer","description":"Where was the message sent"},{"name":"id","type":"number","description":"ID of the message to edit"},{"name":"message","type":"string","optional":true,"predicate":"flags.11","description":"New message"},{"name":"media","type":"InputMedia","optional":true,"predicate":"flags.14","description":"New attached media"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Reply markup for inline keyboards"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.3","description":"Message entities for styled text"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.15","description":"Scheduled message date for scheduled messages"}],"description":"Edit message","throws":[{"code":400,"name":"BUTTON_DATA_INVALID","description":"The data of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_TYPE_INVALID","description":"The type of one or more of the buttons you provided is invalid"},{"code":400,"name":"BUTTON_URL_INVALID","description":"Button URL invalid"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":403,"name":"INLINE_BOT_REQUIRED","description":"Only the inline bot can edit message"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MEDIA_CAPTION_TOO_LONG","description":"The caption is too long"},{"code":400,"name":"MEDIA_PREV_INVALID","description":"Previous media invalid"},{"code":403,"name":"MESSAGE_AUTHOR_REQUIRED","description":"Message author required"},{"code":400,"name":"MESSAGE_EDIT_TIME_EXPIRED","description":"You can't edit this message anymore, too much time has passed since its creation."},{"code":400,"name":"MESSAGE_EMPTY","description":"The provided message is empty"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"MESSAGE_NOT_MODIFIED","description":"The message text has not changed"},{"code":400,"name":"MESSAGE_TOO_LONG","description":"The provided message is too long"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"REPLY_MARKUP_INVALID","description":"The provided reply markup is invalid"},{"code":400,"name":"SCHEDULE_DATE_INVALID","description":"Invalid schedule date provided"},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"}],"available":"both"},{"name":"editInlineBotMessage","id":2203418042,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noWebpage","type":"true","optional":true,"predicate":"flags.1","description":"Disable webpage preview"},{"name":"id","type":"InputBotInlineMessageID","description":"Sent inline message ID"},{"name":"message","type":"string","optional":true,"predicate":"flags.11","description":"Message"},{"name":"media","type":"InputMedia","optional":true,"predicate":"flags.14","description":"Media"},{"name":"replyMarkup","type":"ReplyMarkup","optional":true,"predicate":"flags.2","description":"Reply markup for inline keyboards"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.3","description":"Message entities for styled text"}],"description":"Edit an inline bot message","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"MESSAGE_NOT_MODIFIED","description":"The message text has not changed"}],"available":"both"},{"name":"getBotCallbackAnswer","id":2470627847,"returns":"messages.BotCallbackAnswer","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"game","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is a \"play game\" button"},{"name":"peer","type":"InputPeer","description":"Where was the inline keyboard sent"},{"name":"msgId","type":"number","description":"ID of the Message with the inline keyboard"},{"name":"data","type":"Buffer","optional":true,"predicate":"flags.0","description":"Callback data"},{"name":"password","type":"InputCheckPasswordSRP","optional":true,"predicate":"flags.2","description":"For buttons {@link keyboardButtonCallback}, the SRP payload generated using SRP."}],"description":"Press an inline callback button and get a callback answer from the bot","throws":[{"code":400,"name":"BOT_RESPONSE_TIMEOUT","description":"A timeout occurred while fetching data from the bot"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"DATA_INVALID","description":"Encrypted data invalid"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":-503,"name":"Timeout","description":"Timeout while fetching data"}],"available":"user"},{"name":"setBotCallbackAnswer","id":3582923530,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"alert","type":"true","optional":true,"predicate":"flags.1","description":"Whether to show the message as a popup instead of a toast notification"},{"name":"queryId","type":"Long","description":"Query ID"},{"name":"message","type":"string","optional":true,"predicate":"flags.0","description":"Popup to show"},{"name":"url","type":"string","optional":true,"predicate":"flags.2","description":"URL to open"},{"name":"cacheTime","type":"number","description":"Cache validity"}],"description":"Set the callback answer to a user button press (bots only)","throws":[{"code":400,"name":"QUERY_ID_INVALID","description":"The query ID is invalid"},{"code":400,"name":"URL_INVALID","description":"Invalid URL provided"}],"available":"both"},{"name":"getPeerDialogs","id":3832593661,"returns":"messages.PeerDialogs","arguments":[{"name":"peers","type":"InputDialogPeer[]","description":"Peers"}],"description":"Get dialog info of specified peers","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CONNECTION_DEVICE_MODEL_EMPTY","description":"Device model empty"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"saveDraft","id":3157909835,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noWebpage","type":"true","optional":true,"predicate":"flags.1","description":"Disable generation of the webpage preview"},{"name":"replyToMsgId","type":"number","optional":true,"predicate":"flags.0","description":"Message ID the message should reply to"},{"name":"peer","type":"InputPeer","description":"Destination of the message that should be sent"},{"name":"message","type":"string","description":"The draft"},{"name":"entities","type":"MessageEntity[]","optional":true,"predicate":"flags.3","description":"Message entities for styled text"}],"description":"Save a message draft associated to a chat.","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getAllDrafts","id":1782549861,"returns":"Updates","arguments":[],"description":"Save get all message drafts.","available":"user"},{"name":"getFeaturedStickers","id":766298703,"returns":"messages.FeaturedStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get featured stickers","available":"user"},{"name":"readFeaturedStickers","id":1527873830,"returns":"boolean","arguments":[{"name":"id","type":"Long[]","description":"IDs of stickersets to mark as read"}],"description":"Mark new featured stickers as read","available":"user"},{"name":"getRecentStickers","id":1587647177,"returns":"messages.RecentStickers","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"attached","type":"true","optional":true,"predicate":"flags.0","description":"Get stickers recently attached to photo or video files"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get recent stickers","available":"user"},{"name":"saveRecentSticker","id":958863608,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"attached","type":"true","optional":true,"predicate":"flags.0","description":"Whether to add/remove stickers recently attached to photo or video files"},{"name":"id","type":"InputDocument","description":"Sticker"},{"name":"unsave","type":"boolean","description":"Whether to save or unsave the sticker"}],"description":"Add/remove sticker from recent stickers list","throws":[{"code":400,"name":"STICKER_ID_INVALID","description":"The provided sticker ID is invalid"}],"available":"user"},{"name":"clearRecentStickers","id":2308530221,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"attached","type":"true","optional":true,"predicate":"flags.0","description":"Set this flag to clear the list of stickers recently attached to photo or video files"}],"description":"Clear recent stickers","available":"user"},{"name":"getArchivedStickers","id":1475442322,"returns":"messages.ArchivedStickers","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"masks","type":"true","optional":true,"predicate":"flags.0","description":"Get mask stickers"},{"name":"offsetId","type":"Long","description":"Offsets for pagination, for more info click here"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"}],"description":"Get all archived stickers","available":"user"},{"name":"getMaskStickers","id":1706608543,"returns":"messages.AllStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get installed mask stickers","available":"user"},{"name":"getAttachedStickers","id":3428542412,"returns":"StickerSetCovered[]","arguments":[{"name":"media","type":"InputStickeredMedia","description":"Stickered media"}],"description":"Get stickers attached to a photo or video","available":"user"},{"name":"setGameScore","id":2398678208,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"editMessage","type":"true","optional":true,"predicate":"flags.0","description":"Set this flag if the game message should be automatically edited to include the current scoreboard"},{"name":"force","type":"true","optional":true,"predicate":"flags.1","description":"Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters"},{"name":"peer","type":"InputPeer","description":"Unique identifier of target chat"},{"name":"id","type":"number","description":"Identifier of the sent message"},{"name":"userId","type":"InputUser","description":"User identifier"},{"name":"score","type":"number","description":"New score"}],"description":"Use this method to set the score of the specified user in a game sent as a normal message (bots only).","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USER_BOT_REQUIRED","description":"This method can only be called by a bot"}],"available":"both"},{"name":"setInlineGameScore","id":363700068,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"editMessage","type":"true","optional":true,"predicate":"flags.0","description":"Set this flag if the game message should be automatically edited to include the current scoreboard"},{"name":"force","type":"true","optional":true,"predicate":"flags.1","description":"Set this flag if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters"},{"name":"id","type":"InputBotInlineMessageID","description":"ID of the inline message"},{"name":"userId","type":"InputUser","description":"User identifier"},{"name":"score","type":"number","description":"New score"}],"description":"Use this method to set the score of the specified user in a game sent as an inline message (bots only).","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"USER_BOT_REQUIRED","description":"This method can only be called by a bot"}],"available":"both"},{"name":"getGameHighScores","id":3894568093,"returns":"messages.HighScores","arguments":[{"name":"peer","type":"InputPeer","description":"Where was the game sent"},{"name":"id","type":"number","description":"ID of message with game media attachment"},{"name":"userId","type":"InputUser","description":"Get high scores made by a certain user"}],"description":"Get highscores of a game","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USER_BOT_REQUIRED","description":"This method can only be called by a bot"}],"available":"both"},{"name":"getInlineGameHighScores","id":258170395,"returns":"messages.HighScores","arguments":[{"name":"id","type":"InputBotInlineMessageID","description":"ID of inline message"},{"name":"userId","type":"InputUser","description":"Get high scores of a certain user"}],"description":"Get highscores of a game sent using an inline bot","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"USER_BOT_REQUIRED","description":"This method can only be called by a bot"}],"available":"both"},{"name":"getCommonChats","id":218777796,"returns":"messages.Chats","arguments":[{"name":"userId","type":"InputUser","description":"User ID"},{"name":"maxId","type":"number","description":"Maximum ID of chat to return (see pagination)"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"}],"description":"Get chats in common with a user","throws":[{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"user"},{"name":"getAllChats","id":3953659888,"returns":"messages.Chats","arguments":[{"name":"exceptIds","type":"number[]","description":"Except these chats/channels/supergroups"}],"description":"Get all chats, channels and supergroups","available":"user"},{"name":"getWebPage","id":852135825,"returns":"WebPage","arguments":[{"name":"url","type":"string","description":"URL of IV page to fetch"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get instant view page","throws":[{"code":400,"name":"WC_CONVERT_URL_INVALID","description":"WC convert URL invalid"}],"available":"user"},{"name":"toggleDialogPin","id":2805064279,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pinned","type":"true","optional":true,"predicate":"flags.0","description":"Whether to pin or unpin the dialog"},{"name":"peer","type":"InputDialogPeer","description":"The dialog to pin"}],"description":"Pin/unpin a dialog","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"reorderPinnedDialogs","id":991616823,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"force","type":"true","optional":true,"predicate":"flags.0","description":"If set, dialogs pinned server-side but not present in the order field will be unpinned."},{"name":"folderId","type":"number","description":"Peer folder ID, for more info click here"},{"name":"order","type":"InputDialogPeer[]","description":"New dialog order"}],"description":"Reorder pinned dialogs","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getPinnedDialogs","id":3602468338,"returns":"messages.PeerDialogs","arguments":[{"name":"folderId","type":"number","description":"Peer folder ID, for more info click here"}],"description":"Get pinned dialogs","throws":[{"code":400,"name":"FOLDER_ID_INVALID","description":"Invalid folder ID"}],"available":"user"},{"name":"setBotShippingResults","id":3858133754,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"queryId","type":"Long","description":"Unique identifier for the query to be answered"},{"name":"error","type":"string","optional":true,"predicate":"flags.0","description":"Error message in human readable form that explains why it is impossible to complete the order (e.g. \"Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user."},{"name":"shippingOptions","type":"ShippingOption[]","optional":true,"predicate":"flags.1","description":"A vector of available shipping options."}],"description":"If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the bot will receive an {@link updateBotShippingQuery} update. Use this method to reply to shipping queries.","throws":[{"code":400,"name":"QUERY_ID_INVALID","description":"The query ID is invalid"}],"available":"both"},{"name":"setBotPrecheckoutResults","id":163765653,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"success","type":"true","optional":true,"predicate":"flags.1","description":"Set this flag if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order, otherwise do not set it, and set the error field, instead"},{"name":"queryId","type":"Long","description":"Unique identifier for the query to be answered"},{"name":"error","type":"string","optional":true,"predicate":"flags.0","description":"Required if the success isn't set. Error message in human readable form that explains the reason for failure to proceed with the checkout (e.g. \"Sorry, somebody just bought the last of our amazing black T-shirts while you were busy filling out your payment details. Please choose a different color or garment!\"). Telegram will display this message to the user."}],"description":"Once the user has confirmed their payment and shipping details, the bot receives an {@link updateBotPrecheckoutQuery} update.
\nUse this method to respond to such pre-checkout queries.
\nNote: Telegram must receive an answer within 10 seconds after the pre-checkout query was sent.","throws":[{"code":400,"name":"ERROR_TEXT_EMPTY","description":"The provided error message is empty"}],"available":"both"},{"name":"uploadMedia","id":1369162417,"returns":"MessageMedia","arguments":[{"name":"peer","type":"InputPeer","description":"The chat, can be an {@link inputPeerEmpty} for bots"},{"name":"media","type":"InputMedia","description":"File uploaded in chunks as described in files »"}],"description":"Upload a file and associate it to a chat (without actually sending it to the chat)","throws":[{"code":400,"name":"BOT_MISSING","description":"This method can only be run by a bot"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"FILE_PARTS_INVALID","description":"The number of file parts is invalid"},{"code":400,"name":"IMAGE_PROCESS_FAILED","description":"Failure while processing image"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MEDIA_INVALID","description":"Media invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"PHOTO_EXT_INVALID","description":"The extension of the photo is invalid"},{"code":400,"name":"PHOTO_SAVE_FILE_INVALID","description":"Internal issues, try again later"},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"},{"code":400,"name":"WEBPAGE_CURL_FAILED","description":"Failure while fetching the webpage with cURL"}],"available":"both"},{"name":"sendScreenshotNotification","id":3380473888,"returns":"Updates","arguments":[{"name":"peer","type":"InputPeer","description":"Other user"},{"name":"replyToMsgId","type":"number","description":"ID of message that was screenshotted, can be 0"},{"name":"randomId","type":"Long","description":"Random ID to avoid message resending"}],"description":"Notify the other user in a private chat that a screenshot of the chat was taken","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getFavedStickers","id":567151374,"returns":"messages.FavedStickers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get faved stickers","available":"user"},{"name":"faveSticker","id":3120547163,"returns":"boolean","arguments":[{"name":"id","type":"InputDocument","description":"Sticker to mark as favorite"},{"name":"unfave","type":"boolean","description":"Unfavorite"}],"description":"Mark a sticker as favorite","throws":[{"code":400,"name":"STICKER_ID_INVALID","description":"The provided sticker ID is invalid"}],"available":"user"},{"name":"getUnreadMentions","id":1180140658,"returns":"messages.Messages","arguments":[{"name":"peer","type":"InputPeer","description":"Peer where to look for mentions"},{"name":"offsetId","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"addOffset","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"},{"name":"maxId","type":"number","description":"Maximum message ID to return, see pagination"},{"name":"minId","type":"number","description":"Minimum message ID to return, see pagination"}],"description":"Get unread messages where we were mentioned","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"readMentions","id":251759059,"returns":"messages.AffectedHistory","arguments":[{"name":"peer","type":"InputPeer","description":"Dialog"}],"description":"Mark mentions as read","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getRecentLocations","id":3150207753,"returns":"messages.Messages","arguments":[{"name":"peer","type":"InputPeer","description":"User"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get live location history of a certain user","available":"user"},{"name":"sendMultiMedia","id":3422621899,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"silent","type":"true","optional":true,"predicate":"flags.5","description":"Whether to send the album silently (no notification triggered)"},{"name":"background","type":"true","optional":true,"predicate":"flags.6","description":"Send in background?"},{"name":"clearDraft","type":"true","optional":true,"predicate":"flags.7","description":"Whether to clear drafts"},{"name":"peer","type":"InputPeer","description":"The destination chat"},{"name":"replyToMsgId","type":"number","optional":true,"predicate":"flags.0","description":"The message to reply to"},{"name":"multiMedia","type":"InputSingleMedia[]","description":"The medias to send"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.10","description":"Scheduled message date for scheduled messages"}],"description":"Send an album or grouped media","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"MEDIA_EMPTY","description":"The provided media object is invalid"},{"code":400,"name":"MEDIA_INVALID","description":"Media invalid"},{"code":400,"name":"MULTI_MEDIA_TOO_LONG","description":"Too many media files for album"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"RANDOM_ID_EMPTY","description":"Random ID empty"}],"available":"both"},{"name":"uploadEncryptedFile","id":1347929239,"returns":"EncryptedFile","arguments":[{"name":"peer","type":"InputEncryptedChat","description":"The secret chat to associate the file to"},{"name":"file","type":"InputEncryptedFile","description":"The file"}],"description":"Upload encrypted file and associate it to a secret chat","available":"user"},{"name":"searchStickerSets","id":3266826379,"returns":"messages.FoundStickerSets","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"excludeFeatured","type":"true","optional":true,"predicate":"flags.0","description":"Exclude featured stickersets from results"},{"name":"q","type":"string","description":"Query string"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Search for stickersets","available":"user"},{"name":"getSplitRanges","id":486505992,"returns":"MessageRange[]","arguments":[],"description":"Get message ranges for saving the user's chat history","available":"user"},{"name":"markDialogUnread","id":3263617423,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"unread","type":"true","optional":true,"predicate":"flags.0","description":"Mark as unread/read"},{"name":"peer","type":"InputDialogPeer","description":"Dialog"}],"description":"Manually mark dialog as unread","available":"user"},{"name":"getDialogUnreadMarks","id":585256482,"returns":"DialogPeer[]","arguments":[],"description":"Get dialogs manually marked as unread","available":"user"},{"name":"clearAllDrafts","id":2119757468,"returns":"boolean","arguments":[],"description":"Clear all drafts.","available":"user"},{"name":"updatePinnedMessage","id":3534419948,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"silent","type":"true","optional":true,"predicate":"flags.0","description":"Pin the message silently, without triggering a notification"},{"name":"unpin","type":"true","optional":true,"predicate":"flags.1","description":"Whether the message should unpinned or pinned"},{"name":"pmOneside","type":"true","optional":true,"predicate":"flags.2","description":"Whether the message should only be pinned on the local side of a one-to-one chat"},{"name":"peer","type":"InputPeer","description":"The peer where to pin the message"},{"name":"id","type":"number","description":"The message to pin or unpin"}],"description":"Pin a message","throws":[{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"PIN_RESTRICTED","description":"You can't pin messages"}],"available":"both"},{"name":"sendVote","id":283795844,"returns":"Updates","arguments":[{"name":"peer","type":"InputPeer","description":"The chat where the poll was sent"},{"name":"msgId","type":"number","description":"The message ID of the poll"},{"name":"options","type":"Buffer[]","description":"The options that were chosen"}],"description":"Vote in a {@link poll}","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"MESSAGE_POLL_CLOSED","description":"Poll closed"},{"code":400,"name":"OPTIONS_TOO_MUCH","description":"Too many options provided"},{"code":400,"name":"OPTION_INVALID","description":"Invalid option selected"},{"code":400,"name":"REVOTE_NOT_ALLOWED","description":"You cannot change your vote"}],"available":"user"},{"name":"getPollResults","id":1941660731,"returns":"Updates","arguments":[{"name":"peer","type":"InputPeer","description":"Peer where the poll was found"},{"name":"msgId","type":"number","description":"Message ID of poll message"}],"description":"Get poll results","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"}],"available":"user"},{"name":"getOnlines","id":1848369232,"returns":"ChatOnlines","arguments":[{"name":"peer","type":"InputPeer","description":"The chat"}],"description":"Get count of online users in a chat","throws":[{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getStatsURL","id":2167155430,"returns":"StatsURL","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"dark","type":"true","optional":true,"predicate":"flags.0","description":"Pass true if a URL with the dark theme must be returned"},{"name":"peer","type":"InputPeer","description":"Chat identifier"},{"name":"params","type":"string","description":"Parameters from tg://statsrefresh?params=****** link"}],"description":"Returns URL with the chat statistics. Currently this method can be used only for channels","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"editChatAbout","id":3740665751,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer","description":"The group/supergroup/channel."},{"name":"about","type":"string","description":"The new description"}],"description":"Edit the description of a group/supergroup/channel.","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ABOUT_NOT_MODIFIED","description":"About text has not changed"},{"code":400,"name":"CHAT_ABOUT_TOO_LONG","description":"Chat about too long"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"both"},{"name":"editChatDefaultBannedRights","id":2777049921,"returns":"Updates","arguments":[{"name":"peer","type":"InputPeer","description":"The peer"},{"name":"bannedRights","type":"ChatBannedRights","description":"The new global rights"}],"description":"Edit the default banned rights of a channel/supergroup/group.","throws":[{"code":400,"name":"BANNED_RIGHTS_INVALID","description":"You provided some invalid flags in the banned rights"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"UNTIL_DATE_INVALID","description":"Invalid until date provided"}],"available":"both"},{"name":"getEmojiKeywords","id":899735650,"returns":"EmojiKeywordsDifference","arguments":[{"name":"langCode","type":"string","description":"Language code"}],"description":"Get localized emoji keywords","available":"user"},{"name":"getEmojiKeywordsDifference","id":352892591,"returns":"EmojiKeywordsDifference","arguments":[{"name":"langCode","type":"string","description":"Language code"},{"name":"fromVersion","type":"number","description":"Previous emoji keyword localization version"}],"description":"Get changed emoji keywords","available":"user"},{"name":"getEmojiKeywordsLanguages","id":1318675378,"returns":"EmojiLanguage[]","arguments":[{"name":"langCodes","type":"string[]","description":"Language codes"}],"description":"Get info about an emoji keyword localization","available":"user"},{"name":"getEmojiURL","id":3585149990,"returns":"EmojiURL","arguments":[{"name":"langCode","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 into translation platform and suggest new emoji replacements. The URL will be valid for 30 seconds after generation","available":"user"},{"name":"getSearchCounters","id":1932455680,"returns":"messages.SearchCounter[]","arguments":[{"name":"peer","type":"InputPeer","description":"Peer where to search"},{"name":"filters","type":"MessagesFilter[]","description":"Search filters"}],"description":"Get the number of results that would be found by a {@link messages.search} call with the same parameters","available":"user"},{"name":"requestUrlAuth","id":428848198,"returns":"UrlAuthResult","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"peer","type":"InputPeer","optional":true,"predicate":"flags.1","description":"Peer where the message is located"},{"name":"msgId","type":"number","optional":true,"predicate":"flags.1","description":"The message"},{"name":"buttonId","type":"number","optional":true,"predicate":"flags.1","description":"The ID of the button with the authorization request"},{"name":"url","type":"string","optional":true,"predicate":"flags.2"}],"description":"Get more info about a Seamless Telegram Login authorization request, for more info click here »","available":"user"},{"name":"acceptUrlAuth","id":2972479781,"returns":"UrlAuthResult","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"writeAllowed","type":"true","optional":true,"predicate":"flags.0","description":"Set this flag to allow the bot to send messages to you (if requested)"},{"name":"peer","type":"InputPeer","optional":true,"predicate":"flags.1","description":"The location of the message"},{"name":"msgId","type":"number","optional":true,"predicate":"flags.1","description":"Message ID of the message with the login button"},{"name":"buttonId","type":"number","optional":true,"predicate":"flags.1","description":"ID of the login button"},{"name":"url","type":"string","optional":true,"predicate":"flags.2"}],"description":"Use this to accept a Seamless Telegram Login authorization request, for more info click here »","available":"user"},{"name":"hidePeerSettingsBar","id":1336717624,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"}],"description":"Should be called after the user hides the report spam/add as contact bar of a new chat, effectively prevents the user from executing the actions specified in the {@link peerSettings}.","available":"user"},{"name":"getScheduledHistory","id":3804391515,"returns":"messages.Messages","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get scheduled messages","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"getScheduledMessages","id":3183150180,"returns":"messages.Messages","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"},{"name":"id","type":"number[]","description":"IDs of scheduled messages"}],"description":"Get scheduled messages","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"sendScheduledMessages","id":3174597898,"returns":"Updates","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"},{"name":"id","type":"number[]","description":"Scheduled message IDs"}],"description":"Send scheduled messages right away","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"}],"available":"user"},{"name":"deleteScheduledMessages","id":1504586518,"returns":"Updates","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"},{"name":"id","type":"number[]","description":"Scheduled message IDs"}],"description":"Delete scheduled messages","available":"user"},{"name":"getPollVotes","id":3094231054,"returns":"messages.VotesList","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"peer","type":"InputPeer","description":"Chat where the poll was sent"},{"name":"id","type":"number","description":"Message ID"},{"name":"option","type":"Buffer","optional":true,"predicate":"flags.0","description":"Get only results for the specified poll option"},{"name":"offset","type":"string","optional":true,"predicate":"flags.1","description":"Offset for results, taken from the next_offset field of {@link messages.votesList}, initially an empty string.
Note: if no more results are available, the method call will return an empty next_offset; thus, avoid providing the next_offset returned in {@link messages.votesList} if it is empty, to avoid an infinite loop."},{"name":"limit","type":"number","description":"Number of results to return"}],"description":"Get poll results for non-anonymous polls","throws":[{"code":403,"name":"BROADCAST_FORBIDDEN","description":" "},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":403,"name":"POLL_VOTE_REQUIRED","description":"Cast a vote in the poll before calling this method"}],"available":"user"},{"name":"toggleStickerSets","id":3037016042,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"uninstall","type":"true","optional":true,"predicate":"flags.0","description":"Uninstall the specified stickersets"},{"name":"archive","type":"true","optional":true,"predicate":"flags.1","description":"Archive the specified stickersets"},{"name":"unarchive","type":"true","optional":true,"predicate":"flags.2","description":"Unarchive the specified stickersets"},{"name":"stickersets","type":"InputStickerSet[]","description":"Stickersets to act upon"}],"description":"Apply changes to multiple stickersets","available":"user"},{"name":"getDialogFilters","id":4053719405,"returns":"DialogFilter[]","arguments":[],"description":"Get folders","available":"user"},{"name":"getSuggestedDialogFilters","id":2728186924,"returns":"DialogFilterSuggested[]","arguments":[],"description":"Get suggested folders","available":"user"},{"name":"updateDialogFilter","id":450142282,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"number","description":"Folder ID"},{"name":"filter","type":"DialogFilter","optional":true,"predicate":"flags.0","description":"Folder info"}],"description":"Update folder","throws":[{"code":400,"name":"FILTER_ID_INVALID","description":"The specified filter ID is invalid"}],"available":"user"},{"name":"updateDialogFiltersOrder","id":3311649252,"returns":"boolean","arguments":[{"name":"order","type":"number[]","description":"New folder order"}],"description":"Reorder folders","available":"user"},{"name":"getOldFeaturedStickers","id":1608974939,"returns":"messages.FeaturedStickers","arguments":[{"name":"offset","type":"number","description":"Offset"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Method for fetching previously featured stickers","available":"user"},{"name":"getReplies","id":615875002,"returns":"messages.Messages","arguments":[{"name":"peer","type":"InputPeer","description":"Peer"},{"name":"msgId","type":"number","description":"Message ID"},{"name":"offsetId","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"offsetDate","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"addOffset","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"},{"name":"maxId","type":"number","description":"If a positive value was transferred, the method will return only messages with ID smaller than max_id"},{"name":"minId","type":"number","description":"If a positive value was transferred, the method will return only messages with ID bigger than min_id"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get messages in a reply thread","available":"both"},{"name":"getDiscussionMessage","id":1147761405,"returns":"messages.DiscussionMessage","arguments":[{"name":"peer","type":"InputPeer","description":"Channel ID"},{"name":"msgId","type":"number","description":"Message ID"}],"description":"Get discussion message from the associated discussion group of a channel to show it on top of the comment section, without actually joining the group","available":"both"},{"name":"readDiscussion","id":4147227124,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer","description":"Group ID"},{"name":"msgId","type":"number","description":"ID of message that started the thread"},{"name":"readMaxId","type":"number","description":"ID up to which thread messages were read"}],"description":"Mark a thread as read","available":"both"},{"name":"unpinAllMessages","id":4029004939,"returns":"messages.AffectedHistory","arguments":[{"name":"peer","type":"InputPeer","description":"Chat where to unpin"}],"description":"Unpin all pinned messages","available":"both"},{"name":"deleteChat","id":2200206609,"returns":"boolean","arguments":[{"name":"chatId","type":"number"}]},{"name":"deletePhoneCallHistory","id":4190888969,"returns":"messages.AffectedFoundMessages","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"revoke","type":"true","optional":true,"predicate":"flags.0"}]},{"name":"checkHistoryImport","id":1140726259,"returns":"messages.HistoryImportParsed","arguments":[{"name":"importHead","type":"string"}]},{"name":"initHistoryImport","id":873008187,"returns":"messages.HistoryImport","arguments":[{"name":"peer","type":"InputPeer"},{"name":"file","type":"InputFile"},{"name":"mediaCount","type":"number"}]},{"name":"uploadImportedMedia","id":713433234,"returns":"MessageMedia","arguments":[{"name":"peer","type":"InputPeer"},{"name":"importId","type":"Long"},{"name":"fileName","type":"string"},{"name":"media","type":"InputMedia"}]},{"name":"startHistoryImport","id":3023958852,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer"},{"name":"importId","type":"Long"}]},{"name":"getExportedChatInvites","id":2729812982,"returns":"messages.ExportedChatInvites","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"revoked","type":"true","optional":true,"predicate":"flags.3"},{"name":"peer","type":"InputPeer"},{"name":"adminId","type":"InputUser"},{"name":"offsetDate","type":"number","optional":true,"predicate":"flags.2"},{"name":"offsetLink","type":"string","optional":true,"predicate":"flags.2"},{"name":"limit","type":"number"}]},{"name":"getExportedChatInvite","id":1937010524,"returns":"messages.ExportedChatInvite","arguments":[{"name":"peer","type":"InputPeer"},{"name":"link","type":"string"}]},{"name":"editExportedChatInvite","id":48562110,"returns":"messages.ExportedChatInvite","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"revoked","type":"true","optional":true,"predicate":"flags.2"},{"name":"peer","type":"InputPeer"},{"name":"link","type":"string"},{"name":"expireDate","type":"number","optional":true,"predicate":"flags.0"},{"name":"usageLimit","type":"number","optional":true,"predicate":"flags.1"}]},{"name":"deleteRevokedExportedChatInvites","id":1452833749,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer"},{"name":"adminId","type":"InputUser"}]},{"name":"deleteExportedChatInvite","id":3563365419,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer"},{"name":"link","type":"string"}]},{"name":"getAdminsWithInvites","id":958457583,"returns":"messages.ChatAdminsWithInvites","arguments":[{"name":"peer","type":"InputPeer"}]},{"name":"getChatInviteImporters","id":654013065,"returns":"messages.ChatInviteImporters","arguments":[{"name":"peer","type":"InputPeer"},{"name":"link","type":"string"},{"name":"offsetDate","type":"number"},{"name":"offsetUser","type":"InputUser"},{"name":"limit","type":"number"}]},{"name":"setHistoryTTL","id":3087949796,"returns":"Updates","arguments":[{"name":"peer","type":"InputPeer"},{"name":"period","type":"number"}]},{"name":"checkHistoryImportPeer","id":1573261059,"returns":"messages.CheckedHistoryImportPeer","arguments":[{"name":"peer","type":"InputPeer"}]}],"unions":[{"type":"Dialogs","subtypes":["messages.dialogs","messages.dialogsSlice","messages.dialogsNotModified"],"description":"Object contains a list of chats with messages and auxiliary data."},{"type":"Messages","subtypes":["messages.messages","messages.messagesSlice","messages.channelMessages","messages.messagesNotModified"],"description":"Object contains infor on list of messages with auxiliary data."},{"type":"Chats","subtypes":["messages.chats","messages.chatsSlice"],"description":"Object contains list of chats with auxiliary data."},{"type":"ChatFull","subtypes":["messages.chatFull"],"description":"Object contains extended info on chat with auxiliary data."},{"type":"AffectedHistory","subtypes":["messages.affectedHistory"],"description":"Object contains info on affected part of communication history with the user or in a chat."},{"type":"DhConfig","subtypes":["messages.dhConfigNotModified","messages.dhConfig"],"description":"Contains info on cofiguring parameters for key generation by Diffie-Hellman protocol."},{"type":"SentEncryptedMessage","subtypes":["messages.sentEncryptedMessage","messages.sentEncryptedFile"],"description":"Contains info on message sent to an encrypted chat."},{"type":"Stickers","subtypes":["messages.stickersNotModified","messages.stickers"],"description":"Stickers"},{"type":"AllStickers","subtypes":["messages.allStickersNotModified","messages.allStickers"],"description":"All stickers"},{"type":"AffectedMessages","subtypes":["messages.affectedMessages"],"description":"Messages affected by changes"},{"type":"StickerSet","subtypes":["messages.stickerSet"],"description":"Stickerset"},{"type":"SavedGifs","subtypes":["messages.savedGifsNotModified","messages.savedGifs"],"description":"Saved GIFs"},{"type":"BotResults","subtypes":["messages.botResults"],"description":"Result of a query to an inline bot"},{"type":"BotCallbackAnswer","subtypes":["messages.botCallbackAnswer"],"description":"Callback answer of bot"},{"type":"MessageEditData","subtypes":["messages.messageEditData"],"description":"Message edit data for media"},{"type":"PeerDialogs","subtypes":["messages.peerDialogs"],"description":"List of dialogs"},{"type":"FeaturedStickers","subtypes":["messages.featuredStickersNotModified","messages.featuredStickers"],"description":"Featured stickers"},{"type":"RecentStickers","subtypes":["messages.recentStickersNotModified","messages.recentStickers"],"description":"Recent stickers"},{"type":"ArchivedStickers","subtypes":["messages.archivedStickers"],"description":"Archived stickers"},{"type":"StickerSetInstallResult","subtypes":["messages.stickerSetInstallResultSuccess","messages.stickerSetInstallResultArchive"],"description":"Result of stickerset installation process"},{"type":"HighScores","subtypes":["messages.highScores"],"description":"High scores (in games)"},{"type":"FavedStickers","subtypes":["messages.favedStickersNotModified","messages.favedStickers"],"description":"Favorited stickers"},{"type":"FoundStickerSets","subtypes":["messages.foundStickerSetsNotModified","messages.foundStickerSets"],"description":"Found stickersets"},{"type":"SearchCounter","subtypes":["messages.searchCounter"],"description":"Number of results that would be returned by a search"},{"type":"InactiveChats","subtypes":["messages.inactiveChats"],"description":"Inactive chat list"},{"type":"VotesList","subtypes":["messages.votesList"],"description":"How users voted in a poll"},{"type":"MessageViews","subtypes":["messages.messageViews"],"description":"View, forward counter + info about replies"},{"type":"DiscussionMessage","subtypes":["messages.discussionMessage"],"description":"Info about a message thread"},{"type":"HistoryImport","subtypes":["messages.historyImport"]},{"type":"HistoryImportParsed","subtypes":["messages.historyImportParsed"]},{"type":"AffectedFoundMessages","subtypes":["messages.affectedFoundMessages"]},{"type":"ExportedChatInvites","subtypes":["messages.exportedChatInvites"]},{"type":"ExportedChatInvite","subtypes":["messages.exportedChatInvite","messages.exportedChatInviteReplaced"]},{"type":"ChatInviteImporters","subtypes":["messages.chatInviteImporters"]},{"type":"ChatAdminsWithInvites","subtypes":["messages.chatAdminsWithInvites"]},{"type":"CheckedHistoryImportPeer","subtypes":["messages.checkedHistoryImportPeer"]}]},"updates":{"classes":[{"name":"state","id":2775329342,"type":"updates.State","arguments":[{"name":"pts","type":"number","description":"Number of events occured in a text box"},{"name":"qts","type":"number","description":"Position in a sequence of updates in secret chats. For further detailes refer to article secret chats
Parameter was added in eigth layer."},{"name":"date","type":"number","description":"Date of condition"},{"name":"seq","type":"number","description":"Number of sent updates"},{"name":"unreadCount","type":"number","description":"Number of unread messages"}],"description":"Updates state."},{"name":"differenceEmpty","id":1567990072,"type":"updates.Difference","arguments":[{"name":"date","type":"number","description":"Current date"},{"name":"seq","type":"number","description":"Number of sent updates"}],"description":"No events."},{"name":"difference","id":16030880,"type":"updates.Difference","arguments":[{"name":"newMessages","type":"Message[]","description":"List of new messages"},{"name":"newEncryptedMessages","type":"EncryptedMessage[]","description":"List of new encrypted secret chat messages"},{"name":"otherUpdates","type":"Update[]","description":"List of updates"},{"name":"chats","type":"Chat[]","description":"List of chats mentioned in events"},{"name":"users","type":"User[]","description":"List of users mentioned in events"},{"name":"state","type":"updates.State","description":"Current state"}],"description":"Full list of occurred events."},{"name":"differenceSlice","id":2835028353,"type":"updates.Difference","arguments":[{"name":"newMessages","type":"Message[]","description":"List of new messgaes"},{"name":"newEncryptedMessages","type":"EncryptedMessage[]","description":"New messages from the encrypted event sequence"},{"name":"otherUpdates","type":"Update[]","description":"List of updates"},{"name":"chats","type":"Chat[]","description":"List of chats mentioned in events"},{"name":"users","type":"User[]","description":"List of users mentioned in events"},{"name":"intermediateState","type":"updates.State","description":"Intermediary state"}],"description":"Incomplete list of occurred events."},{"name":"differenceTooLong","id":1258196845,"type":"updates.Difference","arguments":[{"name":"pts","type":"number","description":"The new state to use."}],"description":"The difference is too long, and the specified state must be used to refetch updates."},{"name":"channelDifferenceEmpty","id":1041346555,"type":"updates.ChannelDifference","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"final","type":"true","optional":true,"predicate":"flags.0","description":"Whether there are more updates that must be fetched (always false)"},{"name":"pts","type":"number","description":"The latest PTS"},{"name":"timeout","type":"number","optional":true,"predicate":"flags.1","description":"Clients are supposed to refetch the channel difference after timeout seconds have elapsed"}],"description":"There are no new updates"},{"name":"channelDifferenceTooLong","id":2763835134,"type":"updates.ChannelDifference","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"final","type":"true","optional":true,"predicate":"flags.0","description":"Whether there are more updates that must be fetched (always false)"},{"name":"timeout","type":"number","optional":true,"predicate":"flags.1","description":"Clients are supposed to refetch the channel difference after timeout seconds have elapsed"},{"name":"dialog","type":"Dialog","description":"Dialog containing the latest PTS that can be used to reset the channel state"},{"name":"messages","type":"Message[]","description":"The latest messages"},{"name":"chats","type":"Chat[]","description":"Chats from messages"},{"name":"users","type":"User[]","description":"Users from messages"}],"description":"The provided pts + limit < remote pts. Simply, there are too many updates to be fetched (more than limit), the client has to resolve the update gap in one of the following ways:"},{"name":"channelDifference","id":543450958,"type":"updates.ChannelDifference","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"final","type":"true","optional":true,"predicate":"flags.0","description":"Whether there are more updates to be fetched using getDifference, starting from the provided pts"},{"name":"pts","type":"number","description":"The PTS from which to start getting updates the next time"},{"name":"timeout","type":"number","optional":true,"predicate":"flags.1","description":"Clients are supposed to refetch the channel difference after timeout seconds have elapsed"},{"name":"newMessages","type":"Message[]","description":"New messages"},{"name":"otherUpdates","type":"Update[]","description":"Other updates"},{"name":"chats","type":"Chat[]","description":"Chats"},{"name":"users","type":"User[]","description":"Users"}],"description":"The new updates"}],"methods":[{"name":"getState","id":3990128682,"returns":"updates.State","arguments":[],"description":"Returns a current state of updates.","available":"both"},{"name":"getDifference","id":630429265,"returns":"updates.Difference","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"pts","type":"number","description":"PTS, see updates."},{"name":"ptsTotalLimit","type":"number","optional":true,"predicate":"flags.0","description":"For fast updating: if provided and pts + pts_total_limit < remote pts, {@link updates.differenceTooLong} will be returned.
Simply tells the server to not return the difference if it is bigger than pts_total_limit
If the remote pts is too big (> ~4000000), this field will default to 1000000"},{"name":"date","type":"number","description":"date, see updates."},{"name":"qts","type":"number","description":"QTS, see updates."}],"description":"Get new updates.","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"CDN_METHOD_INVALID","description":"You can't call this method in a CDN DC"},{"code":400,"name":"DATE_EMPTY","description":"Date empty"},{"code":400,"name":"PERSISTENT_TIMESTAMP_EMPTY","description":"Persistent timestamp empty"},{"code":400,"name":"PERSISTENT_TIMESTAMP_INVALID","description":"Persistent timestamp invalid"}],"available":"both"},{"name":"getChannelDifference","id":51854712,"returns":"updates.ChannelDifference","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"force","type":"true","optional":true,"predicate":"flags.0","description":"Set to true to skip some possibly unneeded updates and reduce server-side load"},{"name":"channel","type":"InputChannel","description":"The channel"},{"name":"filter","type":"ChannelMessagesFilter","description":"Messsage filter"},{"name":"pts","type":"number","description":"Persistent timestamp (see updates)"},{"name":"limit","type":"number","description":"How many updates to fetch, max 100000
Ordinary (non-bot) users are supposed to pass 10-100"}],"description":"Returns the difference between the current state of updates of a certain channel and transmitted.","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":403,"name":"CHANNEL_PUBLIC_GROUP_NA","description":"channel/supergroup not available"},{"code":400,"name":"FROM_MESSAGE_BOT_DISABLED","description":"Bots can't use fromMessage min constructors"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PERSISTENT_TIMESTAMP_EMPTY","description":"Persistent timestamp empty"},{"code":400,"name":"PERSISTENT_TIMESTAMP_INVALID","description":"Persistent timestamp invalid"},{"code":400,"name":"PINNED_DIALOGS_TOO_MUCH","description":"Too many pinned dialogs"},{"code":400,"name":"RANGES_INVALID","description":"Invalid range provided"}],"available":"both"}],"unions":[{"type":"State","subtypes":["updates.state"],"description":"Object contains info on state for further updates."},{"type":"Difference","subtypes":["updates.differenceEmpty","updates.difference","updates.differenceSlice","updates.differenceTooLong"],"description":"Occurred changes."},{"type":"ChannelDifference","subtypes":["updates.channelDifferenceEmpty","updates.channelDifferenceTooLong","updates.channelDifference"],"description":"Contains the difference (new messages) between our local channel state and the remote state"}]},"photos":{"classes":[{"name":"photos","id":2378853029,"type":"photos.Photos","arguments":[{"name":"photos","type":"Photo[]","description":"List of photos"},{"name":"users","type":"User[]","description":"List of mentioned users"}],"description":"Full list of photos with auxiliary data."},{"name":"photosSlice","id":352657236,"type":"photos.Photos","arguments":[{"name":"count","type":"number","description":"Total number of photos"},{"name":"photos","type":"Photo[]","description":"List of photos"},{"name":"users","type":"User[]","description":"List of mentioned users"}],"description":"Incomplete list of photos with auxiliary data."},{"name":"photo","id":539045032,"type":"photos.Photo","arguments":[{"name":"photo","type":"Photo","description":"Photo"},{"name":"users","type":"User[]","description":"Users"}],"description":"Photo with auxiliary data."}],"methods":[{"name":"updateProfilePhoto","id":1926525996,"returns":"photos.Photo","arguments":[{"name":"id","type":"InputPhoto","description":"Input photo"}],"description":"Installs a previously uploaded photo as a profile photo.","throws":[{"code":400,"name":"FILE_PARTS_INVALID","description":"The number of file parts is invalid"},{"code":400,"name":"IMAGE_PROCESS_FAILED","description":"Failure while processing image"},{"code":400,"name":"LOCATION_INVALID","description":"The provided location is invalid"},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","description":"Photo is too small"},{"code":400,"name":"PHOTO_EXT_INVALID","description":"The extension of the photo is invalid"},{"code":400,"name":"PHOTO_ID_INVALID","description":"Photo ID invalid"}],"available":"user"},{"name":"uploadProfilePhoto","id":2314407785,"returns":"photos.Photo","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"file","type":"InputFile","optional":true,"predicate":"flags.0","description":"File saved in parts by means of {@link upload.saveFilePart} method"},{"name":"video","type":"InputFile","optional":true,"predicate":"flags.1","description":"Animated profile picture video"},{"name":"videoStartTs","type":"Double","optional":true,"predicate":"flags.2","description":"Floating point UNIX timestamp in seconds, indicating the frame of the video that should be used as static preview."}],"description":"Updates current user profile photo.","throws":[{"code":400,"name":"FILE_PARTS_INVALID","description":"The number of file parts is invalid"},{"code":400,"name":"IMAGE_PROCESS_FAILED","description":"Failure while processing image"},{"code":400,"name":"PHOTO_CROP_FILE_MISSING","description":"Photo crop file missing"},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","description":"Photo is too small"},{"code":400,"name":"PHOTO_EXT_INVALID","description":"The extension of the photo is invalid"},{"code":400,"name":"PHOTO_FILE_MISSING","description":"Profile photo file missing"},{"code":400,"name":"VIDEO_FILE_INVALID","description":"The specified video file is invalid"}],"available":"user"},{"name":"deletePhotos","id":2278522671,"returns":"Long[]","arguments":[{"name":"id","type":"InputPhoto[]","description":"Input photos to delete"}],"description":"Deletes profile photos.","available":"user"},{"name":"getUserPhotos","id":2446144168,"returns":"photos.Photos","arguments":[{"name":"userId","type":"InputUser","description":"User ID"},{"name":"offset","type":"number","description":"Number of list elements to be skipped"},{"name":"maxId","type":"Long","description":"If a positive value was transferred, the method will return only photos with IDs less than the set one"},{"name":"limit","type":"number","description":"Number of list elements to be returned"}],"description":"Returns the list of user photos.","throws":[{"code":400,"name":"MAX_ID_INVALID","description":"The provided max ID is invalid"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"both"}],"unions":[{"type":"Photos","subtypes":["photos.photos","photos.photosSlice"],"description":"Object contains list of photos with auxiliary data."},{"type":"Photo","subtypes":["photos.photo"],"description":"Photo with auxiliary data."}]},"upload":{"classes":[{"name":"file","id":157948117,"type":"upload.File","arguments":[{"name":"type","type":"storage.FileType","description":"File type"},{"name":"mtime","type":"number","description":"Modification type"},{"name":"bytes","type":"Buffer","description":"Binary data, file content"}],"description":"File content."},{"name":"fileCdnRedirect","id":4052539972,"type":"upload.File","arguments":[{"name":"dcId","type":"number","description":"CDN DC ID"},{"name":"fileToken","type":"Buffer","description":"File token (see CDN files)"},{"name":"encryptionKey","type":"Buffer","description":"Encryption key (see CDN files)"},{"name":"encryptionIv","type":"Buffer","description":"Encryption IV (see CDN files)"},{"name":"fileHashes","type":"FileHash[]","description":"File hashes (see CDN files)"}],"description":"The file must be downloaded from a CDN DC."},{"name":"webFile","id":568808380,"type":"upload.WebFile","arguments":[{"name":"size","type":"number","description":"File size"},{"name":"mimeType","type":"string","description":"Mime type"},{"name":"fileType","type":"storage.FileType","description":"File type"},{"name":"mtime","type":"number","description":"Modified time"},{"name":"bytes","type":"Buffer","description":"Data"}],"description":"Represents a chunk of an HTTP webfile downloaded through telegram's secure MTProto servers"},{"name":"cdnFileReuploadNeeded","id":4004045934,"type":"upload.CdnFile","arguments":[{"name":"requestToken","type":"Buffer","description":"Request token (see CDN)"}],"description":"The file was cleared from the temporary RAM cache of the CDN and has to be reuploaded."},{"name":"cdnFile","id":2845821519,"type":"upload.CdnFile","arguments":[{"name":"bytes","type":"Buffer","description":"The data"}],"description":"Represent a chunk of a CDN file."}],"methods":[{"name":"saveFilePart","id":3003426337,"returns":"boolean","arguments":[{"name":"fileId","type":"Long","description":"Random file identifier created by the client"},{"name":"filePart","type":"number","description":"Numerical order of a part"},{"name":"bytes","type":"Buffer","description":"Binary data, contend of a part"}],"description":"Saves a part of file for futher sending to one of the methods.","throws":[{"code":400,"name":"FILE_PART_EMPTY","description":"The provided file part is empty"},{"code":400,"name":"FILE_PART_INVALID","description":"The file part number is invalid"}],"available":"both"},{"name":"getFile","id":2975505148,"returns":"upload.File","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"precise","type":"true","optional":true,"predicate":"flags.0","description":"Disable some checks on limit and offset values, useful for example to stream videos by keyframes"},{"name":"cdnSupported","type":"true","optional":true,"predicate":"flags.1","description":"Whether the current client supports CDN downloads"},{"name":"location","type":"InputFileLocation","description":"File location"},{"name":"offset","type":"number","description":"Number of bytes to be skipped"},{"name":"limit","type":"number","description":"Number of bytes to be returned"}],"description":"Returns content of a whole file or its part.","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":406,"name":"FILEREF_UPGRADE_NEEDED","description":"The client has to be updated in order to support file references"},{"code":400,"name":"FILE_ID_INVALID","description":"The provided file id is invalid"},{"code":400,"name":"FILE_REFERENCE_*","description":"The file reference expired, it must be refreshed"},{"code":400,"name":"FILE_REFERENCE_EXPIRED","description":"File reference expired, it must be refetched as described in https://core.telegram.org/api/file_reference"},{"code":400,"name":"LIMIT_INVALID","description":"The provided limit is invalid"},{"code":400,"name":"LOCATION_INVALID","description":"The provided location is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"OFFSET_INVALID","description":"The provided offset is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"both"},{"name":"saveBigFilePart","id":3732629309,"returns":"boolean","arguments":[{"name":"fileId","type":"Long","description":"Random file id, created by the client"},{"name":"filePart","type":"number","description":"Part sequence number"},{"name":"fileTotalParts","type":"number","description":"Total number of parts"},{"name":"bytes","type":"Buffer","description":"Binary data, part contents"}],"description":"Saves a part of a large file (over 10Mb in size) to be later passed to one of the methods.","throws":[{"code":400,"name":"FILE_PARTS_INVALID","description":"The number of file parts is invalid"},{"code":400,"name":"FILE_PART_EMPTY","description":"The provided file part is empty"},{"code":400,"name":"FILE_PART_INVALID","description":"The file part number is invalid"},{"code":400,"name":"FILE_PART_SIZE_CHANGED","description":"Provided file part size has changed"},{"code":400,"name":"FILE_PART_SIZE_INVALID","description":"The provided file part size is invalid"},{"code":400,"name":"FILE_PART_TOO_BIG","description":"The uploaded file part is too big"}],"available":"both"},{"name":"getWebFile","id":619086221,"returns":"upload.WebFile","arguments":[{"name":"location","type":"InputWebFileLocation","description":"The file to download"},{"name":"offset","type":"number","description":"Number of bytes to be skipped"},{"name":"limit","type":"number","description":"Number of bytes to be returned"}],"description":"Returns content of an HTTP file or a part, by proxying the request through telegram.","throws":[{"code":400,"name":"LOCATION_INVALID","description":"The provided location is invalid"}],"available":"user"},{"name":"getCdnFile","id":536919235,"returns":"upload.CdnFile","arguments":[{"name":"fileToken","type":"Buffer","description":"File token"},{"name":"offset","type":"number","description":"Offset of chunk to download"},{"name":"limit","type":"number","description":"Length of chunk to download"}],"description":"Download a CDN file.","available":"user"},{"name":"reuploadCdnFile","id":2603046056,"returns":"FileHash[]","arguments":[{"name":"fileToken","type":"Buffer","description":"File token"},{"name":"requestToken","type":"Buffer","description":"Request token"}],"description":"Request a reupload of a certain file to a CDN DC.","throws":[{"code":400,"name":"RSA_DECRYPT_FAILED","description":"Internal RSA decryption failed"}],"available":"both"},{"name":"getCdnFileHashes","id":1302676017,"returns":"FileHash[]","arguments":[{"name":"fileToken","type":"Buffer","description":"File"},{"name":"offset","type":"number","description":"Offset from which to start getting hashes"}],"description":"Get SHA256 hashes for verifying downloaded CDN files","throws":[{"code":400,"name":"CDN_METHOD_INVALID","description":"You can't call this method in a CDN DC"},{"code":400,"name":"RSA_DECRYPT_FAILED","description":"Internal RSA decryption failed"}],"available":"both"},{"name":"getFileHashes","id":3338819889,"returns":"FileHash[]","arguments":[{"name":"location","type":"InputFileLocation","description":"File"},{"name":"offset","type":"number","description":"Offset from which to get file hashes"}],"description":"Get SHA256 hashes for verifying downloaded files","throws":[{"code":400,"name":"LOCATION_INVALID","description":"The provided location is invalid"}],"available":"both"}],"unions":[{"type":"File","subtypes":["upload.file","upload.fileCdnRedirect"],"description":"Contains info on file."},{"type":"WebFile","subtypes":["upload.webFile"],"description":"Remote file"},{"type":"CdnFile","subtypes":["upload.cdnFileReuploadNeeded","upload.cdnFile"],"description":"Represents the download status of a CDN file"}]},"account":{"classes":[{"name":"privacyRules","id":1352683077,"type":"account.PrivacyRules","arguments":[{"name":"rules","type":"PrivacyRule[]","description":"Privacy rules"},{"name":"chats","type":"Chat[]","description":"Chats to which the rules apply"},{"name":"users","type":"User[]","description":"Users to which the rules apply"}],"description":"Privacy rules"},{"name":"authorizations","id":307276766,"type":"account.Authorizations","arguments":[{"name":"authorizations","type":"Authorization[]","description":"Logged-in sessions"}],"description":"Logged-in sessions"},{"name":"password","id":408623183,"type":"account.Password","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"hasRecovery","type":"true","optional":true,"predicate":"flags.0","description":"Whether the user has a recovery method configured"},{"name":"hasSecureValues","type":"true","optional":true,"predicate":"flags.1","description":"Whether telegram passport is enabled"},{"name":"hasPassword","type":"true","optional":true,"predicate":"flags.2","description":"Whether the user has a password"},{"name":"currentAlgo","type":"PasswordKdfAlgo","optional":true,"predicate":"flags.2","description":"The KDF algorithm for SRP two-factor authentication of the current password"},{"name":"srpB","type":"Buffer","optional":true,"predicate":"flags.2","description":"Srp B param for SRP authorization"},{"name":"srpId","type":"Long","optional":true,"predicate":"flags.2","description":"Srp ID param for SRP authorization"},{"name":"hint","type":"string","optional":true,"predicate":"flags.3","description":"Text hint for the password"},{"name":"emailUnconfirmedPattern","type":"string","optional":true,"predicate":"flags.4","description":"A password recovery email with the specified pattern is still awaiting verification"},{"name":"newAlgo","type":"PasswordKdfAlgo","description":"The KDF algorithm for SRP two-factor authentication to use when creating new passwords"},{"name":"newSecureAlgo","type":"SecurePasswordKdfAlgo","description":"The KDF algorithm for telegram passport"},{"name":"secureRandom","type":"Buffer","description":"Secure random string"},{"name":"pendingResetDate","type":"number","optional":true,"predicate":"flags.5"}],"description":"Configuration for two-factor authorization"},{"name":"passwordSettings","id":2589733861,"type":"account.PasswordSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"email","type":"string","optional":true,"predicate":"flags.0","description":"2FA Recovery email"},{"name":"secureSettings","type":"SecureSecretSettings","optional":true,"predicate":"flags.1","description":"Telegram passport settings"}],"description":"Private info associated to the password info (recovery email, telegram passport info & so on)"},{"name":"passwordInputSettings","id":3258394569,"type":"account.PasswordInputSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"newAlgo","type":"PasswordKdfAlgo","optional":true,"predicate":"flags.0","description":"The SRP algorithm to use"},{"name":"newPasswordHash","type":"Buffer","optional":true,"predicate":"flags.0","description":"The computed password hash"},{"name":"hint","type":"string","optional":true,"predicate":"flags.0","description":"Text hint for the password"},{"name":"email","type":"string","optional":true,"predicate":"flags.1","description":"Password recovery email"},{"name":"newSecureSettings","type":"SecureSecretSettings","optional":true,"predicate":"flags.2","description":"Telegram passport settings"}],"description":"Settings for setting up a new password"},{"name":"tmpPassword","id":3680828724,"type":"account.TmpPassword","arguments":[{"name":"tmpPassword","type":"Buffer","description":"Temporary password"},{"name":"validUntil","type":"number","description":"Validity period"}],"description":"Temporary payment password"},{"name":"webAuthorizations","id":3981887996,"type":"account.WebAuthorizations","arguments":[{"name":"authorizations","type":"WebAuthorization[]","description":"Web authorization list"},{"name":"users","type":"User[]","description":"Users"}],"description":"Web authorizations"},{"name":"authorizationForm","id":2905480408,"type":"account.AuthorizationForm","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"requiredTypes","type":"SecureRequiredType[]","description":"Required Telegram Passport documents"},{"name":"values","type":"SecureValue[]","description":"Already submitted Telegram Passport documents"},{"name":"errors","type":"SecureValueError[]","description":"Telegram Passport errors"},{"name":"users","type":"User[]","description":"Info about the bot to which the form will be submitted"},{"name":"privacyPolicyUrl","type":"string","optional":true,"predicate":"flags.0","description":"URL of the service's privacy policy"}],"description":"Telegram Passport authorization form"},{"name":"sentEmailCode","id":2166326607,"type":"account.SentEmailCode","arguments":[{"name":"emailPattern","type":"string","description":"The email (to which the code was sent) must match this pattern"},{"name":"length","type":"number","description":"The length of the verification code"}],"description":"The sent email code"},{"name":"takeout","id":1304052993,"type":"account.Takeout","arguments":[{"name":"id","type":"Long","description":"Takeout ID"}],"description":"Takout info"},{"name":"wallPapersNotModified","id":471437699,"type":"account.WallPapers","arguments":[],"description":"No new wallpapers were found"},{"name":"wallPapers","id":1881892265,"type":"account.WallPapers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"wallpapers","type":"WallPaper[]","description":"Wallpapers"}],"description":"Installed wallpapers"},{"name":"autoDownloadSettings","id":1674235686,"type":"account.AutoDownloadSettings","arguments":[{"name":"low","type":"AutoDownloadSettings","description":"Low data usage preset"},{"name":"medium","type":"AutoDownloadSettings","description":"Medium data usage preset"},{"name":"high","type":"AutoDownloadSettings","description":"High data usage preset"}],"description":"Media autodownload settings"},{"name":"themesNotModified","id":4095653410,"type":"account.Themes","arguments":[],"description":"No new themes were installed"},{"name":"themes","id":2137482273,"type":"account.Themes","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"},{"name":"themes","type":"Theme[]","description":"Themes"}],"description":"Installed themes"},{"name":"contentSettings","id":1474462241,"type":"account.ContentSettings","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"sensitiveEnabled","type":"true","optional":true,"predicate":"flags.0","description":"Whether viewing of sensitive (NSFW) content is enabled"},{"name":"sensitiveCanChange","type":"true","optional":true,"predicate":"flags.1","description":"Whether the current client can change the sensitive content settings to view NSFW content"}],"description":"Sensitive content settings"},{"name":"resetPasswordFailedWait","id":3816265825,"type":"account.ResetPasswordResult","arguments":[{"name":"retryDate","type":"number"}]},{"name":"resetPasswordRequestedWait","id":3924819069,"type":"account.ResetPasswordResult","arguments":[{"name":"untilDate","type":"number"}]},{"name":"resetPasswordOk","id":3911636542,"type":"account.ResetPasswordResult","arguments":[]}],"methods":[{"name":"registerDevice","id":1754754159,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"noMuted","type":"true","optional":true,"predicate":"flags.0","description":"Avoid receiving (silent and invisible background) notifications. Useful to save battery."},{"name":"tokenType","type":"number","description":"Device token type.
Possible values:
1 - APNS (device token for apple push)
2 - FCM (firebase token for google firebase)
3 - MPNS (channel URI for microsoft push)
4 - Simple push (endpoint for firefox's simple push API)
5 - Ubuntu phone (token for ubuntu push)
6 - Blackberry (token for blackberry push)
7 - Unused
8 - WNS (windows push)
9 - APNS VoIP (token for apple push VoIP)
10 - Web push (web push, see below)
11 - MPNS VoIP (token for microsoft push VoIP)
12 - Tizen (token for tizen push)

For 10 web push, the token must be a JSON-encoded object containing the keys described in PUSH updates"},{"name":"token","type":"string","description":"Device token"},{"name":"appSandbox","type":"boolean","description":"If {@link boolTrue} is transmitted, a sandbox-certificate will be used during transmission."},{"name":"secret","type":"Buffer","description":"For FCM and APNS VoIP, optional encryption key used to encrypt push notifications"},{"name":"otherUids","type":"number[]","description":"List of user identifiers of other users currently using the client"}],"description":"Register device to receive PUSH notifications","throws":[{"code":400,"name":"TOKEN_INVALID","description":"The provided token is invalid"}],"available":"user"},{"name":"unregisterDevice","id":813089983,"returns":"boolean","arguments":[{"name":"tokenType","type":"number","description":"Device token type.
Possible values:
1 - APNS (device token for apple push)
2 - FCM (firebase token for google firebase)
3 - MPNS (channel URI for microsoft push)
4 - Simple push (endpoint for firefox's simple push API)
5 - Ubuntu phone (token for ubuntu push)
6 - Blackberry (token for blackberry push)
7 - Unused
8 - WNS (windows push)
9 - APNS VoIP (token for apple push VoIP)
10 - Web push (web push, see below)
11 - MPNS VoIP (token for microsoft push VoIP)
12 - Tizen (token for tizen push)

For 10 web push, the token must be a JSON-encoded object containing the keys described in PUSH updates"},{"name":"token","type":"string","description":"Device token"},{"name":"otherUids","type":"number[]","description":"List of user identifiers of other users currently using the client"}],"description":"Deletes a device by its token, stops sending PUSH-notifications to it.","throws":[{"code":400,"name":"TOKEN_INVALID","description":"The provided token is invalid"}],"available":"user"},{"name":"updateNotifySettings","id":2227067795,"returns":"boolean","arguments":[{"name":"peer","type":"InputNotifyPeer","description":"Notification source"},{"name":"settings","type":"InputPeerNotifySettings","description":"Notification settings"}],"description":"Edits notification settings from a given user/group, from all users/all groups.","throws":[{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"SETTINGS_INVALID","description":"Invalid settings were provided"}],"available":"user"},{"name":"getNotifySettings","id":313765169,"returns":"PeerNotifySettings","arguments":[{"name":"peer","type":"InputNotifyPeer","description":"Notification source"}],"description":"Gets current notification settings for a given user/group, from all users/all groups.","throws":[{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"resetNotifySettings","id":3682473799,"returns":"boolean","arguments":[],"description":"Resets all notification settings from users and groups.","available":"user"},{"name":"updateProfile","id":2018596725,"returns":"User","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"firstName","type":"string","optional":true,"predicate":"flags.0","description":"New user first name"},{"name":"lastName","type":"string","optional":true,"predicate":"flags.1","description":"New user last name"},{"name":"about","type":"string","optional":true,"predicate":"flags.2","description":"New bio"}],"description":"Updates user profile.","throws":[{"code":400,"name":"ABOUT_TOO_LONG","description":"About string too long"},{"code":400,"name":"FIRSTNAME_INVALID","description":"The first name is invalid"}],"available":"user"},{"name":"updateStatus","id":1713919532,"returns":"boolean","arguments":[{"name":"offline","type":"boolean","description":"If {@link boolTrue} is transmitted, user status will change to {@link userStatusOffline}."}],"description":"Updates online user status.","available":"user"},{"name":"getWallPapers","id":2864387939,"returns":"account.WallPapers","arguments":[{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Returns a list of available wallpapers.","available":"user"},{"name":"reportPeer","id":3317316998,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer","description":"The peer to report"},{"name":"reason","type":"ReportReason","description":"The reason why this peer is being reported"},{"name":"message","type":"string"}],"description":"Report a peer for violation of telegram's Terms of Service","throws":[{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"}],"available":"user"},{"name":"checkUsername","id":655677548,"returns":"boolean","arguments":[{"name":"username","type":"string","description":"username
Accepted characters: A-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters."}],"description":"Validates a username and checks availability.","throws":[{"code":400,"name":"USERNAME_INVALID","description":"Unacceptable username"}],"available":"user"},{"name":"updateUsername","id":1040964988,"returns":"User","arguments":[{"name":"username","type":"string","description":"username or empty string if username is to be removed
Accepted characters: a-z (case-insensitive), 0-9 and underscores.
Length: 5-32 characters."}],"description":"Changes username for the current user.","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"USERNAME_INVALID","description":"Unacceptable username"},{"code":400,"name":"USERNAME_NOT_MODIFIED","description":"Username is not different from the current username"},{"code":400,"name":"USERNAME_OCCUPIED","description":"Username is taken"}],"available":"user"},{"name":"getPrivacy","id":3671837008,"returns":"account.PrivacyRules","arguments":[{"name":"key","type":"InputPrivacyKey","description":"Peer category whose privacy settings should be fetched"}],"description":"Get privacy settings of current account","throws":[{"code":400,"name":"PRIVACY_KEY_INVALID","description":"The privacy key is invalid"}],"available":"user"},{"name":"setPrivacy","id":3388480744,"returns":"account.PrivacyRules","arguments":[{"name":"key","type":"InputPrivacyKey","description":"Peers to which the privacy rules apply"},{"name":"rules","type":"InputPrivacyRule[]","description":"New privacy rules"}],"description":"Change privacy settings of current account","throws":[{"code":400,"name":"PRIVACY_KEY_INVALID","description":"The privacy key is invalid"},{"code":400,"name":"PRIVACY_VALUE_INVALID","description":"The specified privacy rule combination is invalid"}],"available":"user"},{"name":"deleteAccount","id":1099779595,"returns":"boolean","arguments":[{"name":"reason","type":"string","description":"Why is the account being deleted, can be empty"}],"description":"Delete the user's account from the telegram servers. Can be used, for example, to delete the account of a user that provided the login code, but forgot the 2FA password and no recovery method is configured.","throws":[{"code":420,"name":"2FA_CONFIRM_WAIT_X","description":"Since this account is active and protected by a 2FA password, we will delete it in 1 week for security purposes. You can cancel this process at any time, you'll be able to reset your account in X seconds."}],"available":"user"},{"name":"getAccountTTL","id":150761757,"returns":"AccountDaysTTL","arguments":[],"description":"Get days to live of account","available":"user"},{"name":"setAccountTTL","id":608323678,"returns":"boolean","arguments":[{"name":"ttl","type":"AccountDaysTTL","description":"Time to live in days"}],"description":"Set account self-destruction period","throws":[{"code":400,"name":"TTL_DAYS_INVALID","description":"The provided TTL is invalid"}],"available":"user"},{"name":"sendChangePhoneCode","id":2186758885,"returns":"auth.SentCode","arguments":[{"name":"phoneNumber","type":"string","description":"New phone number"},{"name":"settings","type":"CodeSettings","description":"Phone code settings"}],"description":"Verify a new phone number to associate to the current account","throws":[{"code":400,"name":"PHONE_NUMBER_INVALID","description":"The phone number is invalid"}],"available":"user"},{"name":"changePhone","id":1891839707,"returns":"User","arguments":[{"name":"phoneNumber","type":"string","description":"New phone number"},{"name":"phoneCodeHash","type":"string","description":"Phone code hash received when calling {@link account.sendChangePhoneCode}"},{"name":"phoneCode","type":"string","description":"Phone code received when calling {@link account.sendChangePhoneCode}"}],"description":"Change the phone number of the current account","throws":[{"code":400,"name":"PHONE_CODE_EMPTY","description":"phone_code is missing"},{"code":400,"name":"PHONE_NUMBER_INVALID","description":"The phone number is invalid"}],"available":"user"},{"name":"updateDeviceLocked","id":954152242,"returns":"boolean","arguments":[{"name":"period","type":"number","description":"Inactivity period after which to start hiding message texts in PUSH notifications."}],"description":"When client-side passcode lock feature is enabled, will not show message texts in incoming PUSH notifications.","available":"user"},{"name":"getAuthorizations","id":3810574680,"returns":"account.Authorizations","arguments":[],"description":"Get logged-in sessions","available":"user"},{"name":"resetAuthorization","id":3749180348,"returns":"boolean","arguments":[{"name":"hash","type":"Long","description":"Session hash"}],"description":"Log out an active authorized session by its hash","throws":[{"code":406,"name":"FRESH_RESET_AUTHORISATION_FORBIDDEN","description":"You can't logout other sessions if less than 24 hours have passed since you logged on the current session"},{"code":400,"name":"HASH_INVALID","description":"The provided hash is invalid"}],"available":"user"},{"name":"getPassword","id":1418342645,"returns":"account.Password","arguments":[],"description":"Obtain configuration for two-factor authorization with password","available":"user"},{"name":"getPasswordSettings","id":2631199481,"returns":"account.PasswordSettings","arguments":[{"name":"password","type":"InputCheckPasswordSRP","description":"The password (see SRP)"}],"description":"Get private info associated to the password info (recovery email, telegram passport info & so on)","throws":[{"code":400,"name":"PASSWORD_HASH_INVALID","description":"The provided password hash is invalid"}],"available":"user"},{"name":"updatePasswordSettings","id":2778402863,"returns":"boolean","arguments":[{"name":"password","type":"InputCheckPasswordSRP","description":"The old password (see SRP)"},{"name":"newSettings","type":"account.PasswordInputSettings","description":"The new password (see SRP)"}],"description":"Set a new 2FA password","throws":[{"code":400,"name":"EMAIL_UNCONFIRMED","description":"Email unconfirmed"},{"code":400,"name":"EMAIL_UNCONFIRMED_X","description":"The provided email isn't confirmed, X is the length of the verification code that was just sent to the email: use {@link account.verifyEmail} to enter the received verification code and enable the recovery email."},{"code":400,"name":"NEW_SALT_INVALID","description":"The new salt is invalid"},{"code":400,"name":"NEW_SETTINGS_INVALID","description":"The new password settings are invalid"},{"code":400,"name":"PASSWORD_HASH_INVALID","description":"The old password hash is invalid"},{"code":400,"name":"SRP_ID_INVALID","description":"Invalid SRP ID provided"}],"available":"user"},{"name":"sendConfirmPhoneCode","id":457157256,"returns":"auth.SentCode","arguments":[{"name":"hash","type":"string","description":"The hash from the service notification, for more info click here »"},{"name":"settings","type":"CodeSettings","description":"Phone code settings"}],"description":"Send confirmation code to cancel account deletion, for more info click here »","throws":[{"code":400,"name":"HASH_INVALID","description":"The provided hash is invalid"}],"available":"user"},{"name":"confirmPhone","id":1596029123,"returns":"boolean","arguments":[{"name":"phoneCodeHash","type":"string","description":"Phone code hash, for more info click here »"},{"name":"phoneCode","type":"string","description":"SMS code, for more info click here »"}],"description":"Confirm a phone number to cancel account deletion, for more info click here »","throws":[{"code":400,"name":"CODE_HASH_INVALID","description":"Code hash invalid"},{"code":400,"name":"PHONE_CODE_EMPTY","description":"phone_code is missing"}],"available":"user"},{"name":"getTmpPassword","id":1151208273,"returns":"account.TmpPassword","arguments":[{"name":"password","type":"InputCheckPasswordSRP","description":"SRP password parameters"},{"name":"period","type":"number","description":"Time during which the temporary password will be valid, in seconds; should be between 60 and 86400"}],"description":"Get temporary payment password","throws":[{"code":400,"name":"PASSWORD_HASH_INVALID","description":"The provided password hash is invalid"},{"code":400,"name":"TMP_PASSWORD_DISABLED","description":"The temporary password is disabled"}],"available":"user"},{"name":"getWebAuthorizations","id":405695855,"returns":"account.WebAuthorizations","arguments":[],"description":"Get web login widget authorizations","available":"user"},{"name":"resetWebAuthorization","id":755087855,"returns":"boolean","arguments":[{"name":"hash","type":"Long","description":"{@link webAuthorization} hash"}],"description":"Log out an active web telegram login session","available":"user"},{"name":"resetWebAuthorizations","id":1747789204,"returns":"boolean","arguments":[],"description":"Reset all active web telegram login sessions","available":"user"},{"name":"getAllSecureValues","id":2995305597,"returns":"SecureValue[]","arguments":[],"description":"Get all saved Telegram Passport documents, for more info see the passport docs »","available":"user"},{"name":"getSecureValue","id":1936088002,"returns":"SecureValue[]","arguments":[{"name":"types","type":"SecureValueType[]","description":"Requested value types"}],"description":"Get saved Telegram Passport document, for more info see the passport docs »","available":"user"},{"name":"saveSecureValue","id":2308956957,"returns":"SecureValue","arguments":[{"name":"value","type":"InputSecureValue","description":"Secure value, for more info see the passport docs »"},{"name":"secureSecretId","type":"Long","description":"Passport secret hash, for more info see the passport docs »"}],"description":"Securely save Telegram Passport document, for more info see the passport docs »","available":"user"},{"name":"deleteSecureValue","id":3095444555,"returns":"boolean","arguments":[{"name":"types","type":"SecureValueType[]","description":"Document types to delete"}],"description":"Delete stored Telegram Passport documents, for more info see the passport docs »","available":"user"},{"name":"getAuthorizationForm","id":3094063329,"returns":"account.AuthorizationForm","arguments":[{"name":"botId","type":"number","description":"User identifier of the service's bot"},{"name":"scope","type":"string","description":"Telegram Passport element types requested by the service"},{"name":"publicKey","type":"string","description":"Service's public key"}],"description":"Returns a Telegram Passport authorization form for sharing data with a service","available":"user"},{"name":"acceptAuthorization","id":3875699860,"returns":"boolean","arguments":[{"name":"botId","type":"number","description":"Bot ID"},{"name":"scope","type":"string","description":"Telegram Passport element types requested by the service"},{"name":"publicKey","type":"string","description":"Service's public key"},{"name":"valueHashes","type":"SecureValueHash[]","description":"Types of values sent and their hashes"},{"name":"credentials","type":"SecureCredentialsEncrypted","description":"Encrypted values"}],"description":"Sends a Telegram Passport authorization form, effectively sharing data with the service","available":"user"},{"name":"sendVerifyPhoneCode","id":2778945273,"returns":"auth.SentCode","arguments":[{"name":"phoneNumber","type":"string","description":"The phone number to verify"},{"name":"settings","type":"CodeSettings","description":"Phone code settings"}],"description":"Send the verification phone code for telegram passport.","available":"user"},{"name":"verifyPhone","id":1305716726,"returns":"boolean","arguments":[{"name":"phoneNumber","type":"string","description":"Phone number"},{"name":"phoneCodeHash","type":"string","description":"Phone code hash received from the call to {@link account.sendVerifyPhoneCode}"},{"name":"phoneCode","type":"string","description":"Code received after the call to {@link account.sendVerifyPhoneCode}"}],"description":"Verify a phone number for telegram passport.","throws":[{"code":400,"name":"PHONE_CODE_EXPIRED","description":"The phone code you provided has expired, this may happen if it was sent to any chat on telegram (if the code is sent through a telegram chat (not the official account) to avoid it append or prepend to the code some chars)"}],"available":"user"},{"name":"sendVerifyEmailCode","id":1880182943,"returns":"account.SentEmailCode","arguments":[{"name":"email","type":"string","description":"The email where to send the code"}],"description":"Send the verification email code for telegram passport.","available":"user"},{"name":"verifyEmail","id":3971627483,"returns":"boolean","arguments":[{"name":"email","type":"string","description":"The email to verify"},{"name":"code","type":"string","description":"The verification code that was received"}],"description":"Verify an email address for telegram passport.","throws":[{"code":400,"name":"EMAIL_VERIFY_EXPIRED","description":"The verification email has expired"}],"available":"user"},{"name":"initTakeoutSession","id":4032514052,"returns":"account.Takeout","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"contacts","type":"true","optional":true,"predicate":"flags.0","description":"Whether to export contacts"},{"name":"messageUsers","type":"true","optional":true,"predicate":"flags.1","description":"Whether to export messages in private chats"},{"name":"messageChats","type":"true","optional":true,"predicate":"flags.2","description":"Whether to export messages in legacy groups"},{"name":"messageMegagroups","type":"true","optional":true,"predicate":"flags.3","description":"Whether to export messages in supergroups"},{"name":"messageChannels","type":"true","optional":true,"predicate":"flags.4","description":"Whether to export messages in channels"},{"name":"files","type":"true","optional":true,"predicate":"flags.5","description":"Whether to export files"},{"name":"fileMaxSize","type":"number","optional":true,"predicate":"flags.5","description":"Maximum size of files to export"}],"description":"Intialize account takeout session","throws":[{"code":420,"name":"TAKEOUT_INIT_DELAY_X","description":"Wait X seconds before initing takeout"}],"available":"user"},{"name":"finishTakeoutSession","id":489050862,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"success","type":"true","optional":true,"predicate":"flags.0","description":"Data exported successfully"}],"description":"Finish account takeout session","throws":[{"code":403,"name":"TAKEOUT_REQUIRED","description":"A takeout session has to be initialized, first"}],"available":"user"},{"name":"confirmPasswordEmail","id":2413762848,"returns":"boolean","arguments":[{"name":"code","type":"string","description":"The phone code that was received after setting a recovery email"}],"description":"Verify an email to use as 2FA recovery method.","throws":[{"code":400,"name":"CODE_INVALID","description":"Code invalid"},{"code":400,"name":"EMAIL_HASH_EXPIRED","description":"Email hash expired"}],"available":"user"},{"name":"resendPasswordEmail","id":2055154197,"returns":"boolean","arguments":[],"description":"Resend the code to verify an email to use as 2FA recovery method.","available":"user"},{"name":"cancelPasswordEmail","id":3251361206,"returns":"boolean","arguments":[],"description":"Cancel the code that was sent to verify an email to use as 2FA recovery method.","available":"user"},{"name":"getContactSignUpNotification","id":2668087080,"returns":"boolean","arguments":[],"description":"Whether the user will receive notifications when contacts sign up","available":"user"},{"name":"setContactSignUpNotification","id":3488890721,"returns":"boolean","arguments":[{"name":"silent","type":"boolean","description":"Whether to disable contact sign up notifications"}],"description":"Toggle contact sign up notifications","available":"user"},{"name":"getNotifyExceptions","id":1398240377,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"compareSound","type":"true","optional":true,"predicate":"flags.1","description":"If true, chats with non-default sound will also be returned"},{"name":"peer","type":"InputNotifyPeer","optional":true,"predicate":"flags.0","description":"If specified, only chats of the specified category will be returned"}],"description":"Returns list of chats with non-default notification settings","available":"user"},{"name":"getWallPaper","id":4237155306,"returns":"WallPaper","arguments":[{"name":"wallpaper","type":"InputWallPaper","description":"The wallpaper to get info about"}],"description":"Get info about a certain wallpaper","available":"user"},{"name":"uploadWallPaper","id":3716494945,"returns":"WallPaper","arguments":[{"name":"file","type":"InputFile","description":"The JPG/PNG wallpaper"},{"name":"mimeType","type":"string","description":"MIME type of uploaded wallpaper"},{"name":"settings","type":"WallPaperSettings","description":"Wallpaper settings"}],"description":"Create and upload a new wallpaper","available":"user"},{"name":"saveWallPaper","id":1817860919,"returns":"boolean","arguments":[{"name":"wallpaper","type":"InputWallPaper","description":"Wallpaper to save"},{"name":"unsave","type":"boolean","description":"Uninstall wallpaper?"},{"name":"settings","type":"WallPaperSettings","description":"Wallpaper settings"}],"description":"Install/uninstall wallpaper","available":"user"},{"name":"installWallPaper","id":4276967273,"returns":"boolean","arguments":[{"name":"wallpaper","type":"InputWallPaper","description":"Wallpaper to install"},{"name":"settings","type":"WallPaperSettings","description":"Wallpaper settings"}],"description":"Install wallpaper","available":"user"},{"name":"resetWallPapers","id":3141244932,"returns":"boolean","arguments":[],"description":"Delete installed wallpapers","available":"user"},{"name":"getAutoDownloadSettings","id":1457130303,"returns":"account.AutoDownloadSettings","arguments":[],"description":"Get media autodownload settings","available":"user"},{"name":"saveAutoDownloadSettings","id":1995661875,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"low","type":"true","optional":true,"predicate":"flags.0","description":"Whether to save settings in the low data usage preset"},{"name":"high","type":"true","optional":true,"predicate":"flags.1","description":"Whether to save settings in the high data usage preset"},{"name":"settings","type":"AutoDownloadSettings","description":"Media autodownload settings"}],"description":"Change media autodownload settings","available":"user"},{"name":"uploadTheme","id":473805619,"returns":"Document","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"file","type":"InputFile","description":"Theme file uploaded as described in files »"},{"name":"thumb","type":"InputFile","optional":true,"predicate":"flags.0","description":"Thumbnail"},{"name":"fileName","type":"string","description":"File name"},{"name":"mimeType","type":"string","description":"MIME type, must be application/x-tgtheme-{format}, where format depends on the client"}],"description":"Upload theme","throws":[{"code":400,"name":"THEME_FILE_INVALID","description":"Invalid theme file provided"}],"available":"user"},{"name":"createTheme","id":2217919007,"returns":"Theme","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"slug","type":"string","description":"Unique theme ID"},{"name":"title","type":"string","description":"Theme name"},{"name":"document","type":"InputDocument","optional":true,"predicate":"flags.2","description":"Theme file"},{"name":"settings","type":"InputThemeSettings","optional":true,"predicate":"flags.3","description":"Theme settings"}],"description":"Create a theme","available":"user"},{"name":"updateTheme","id":1555261397,"returns":"Theme","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"format","type":"string","description":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"theme","type":"InputTheme","description":"Theme to update"},{"name":"slug","type":"string","optional":true,"predicate":"flags.0","description":"Unique theme ID"},{"name":"title","type":"string","optional":true,"predicate":"flags.1","description":"Theme name"},{"name":"document","type":"InputDocument","optional":true,"predicate":"flags.2","description":"Theme file"},{"name":"settings","type":"InputThemeSettings","optional":true,"predicate":"flags.3","description":"Theme settings"}],"description":"Update theme","available":"user"},{"name":"saveTheme","id":4065792108,"returns":"boolean","arguments":[{"name":"theme","type":"InputTheme","description":"Theme to save"},{"name":"unsave","type":"boolean","description":"Unsave"}],"description":"Save a theme","available":"user"},{"name":"installTheme","id":2061776695,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"dark","type":"true","optional":true,"predicate":"flags.0","description":"Whether to install the dark version"},{"name":"format","type":"string","optional":true,"predicate":"flags.1","description":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"theme","type":"InputTheme","optional":true,"predicate":"flags.1","description":"Theme to install"}],"description":"Install a theme","available":"user"},{"name":"getTheme","id":2375906347,"returns":"Theme","arguments":[{"name":"format","type":"string","description":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"theme","type":"InputTheme","description":"Theme"},{"name":"documentId","type":"Long","description":"Document ID"}],"description":"Get theme information","throws":[{"code":400,"name":"THEME_FORMAT_INVALID","description":"Invalid theme format provided"},{"code":400,"name":"THEME_INVALID","description":"Invalid theme provided"}],"available":"user"},{"name":"getThemes","id":676939512,"returns":"account.Themes","arguments":[{"name":"format","type":"string","description":"Theme format, a string that identifies the theming engines supported by the client"},{"name":"hash","type":"number","description":"Hash for pagination, for more info click here"}],"description":"Get installed themes","available":"user"},{"name":"setContentSettings","id":3044323691,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"sensitiveEnabled","type":"true","optional":true,"predicate":"flags.0","description":"Enable NSFW content"}],"description":"Set sensitive content settings (for viewing or hiding NSFW content)","available":"user"},{"name":"getContentSettings","id":2342210990,"returns":"account.ContentSettings","arguments":[],"description":"Get sensitive content settings","available":"user"},{"name":"getMultiWallPapers","id":1705865692,"returns":"WallPaper[]","arguments":[{"name":"wallpapers","type":"InputWallPaper[]","description":"Wallpapers to fetch info about"}],"description":"Get info about multiple wallpapers","available":"user"},{"name":"getGlobalPrivacySettings","id":3945483510,"returns":"GlobalPrivacySettings","arguments":[],"description":"Get global privacy settings","available":"both"},{"name":"setGlobalPrivacySettings","id":517647042,"returns":"GlobalPrivacySettings","arguments":[{"name":"settings","type":"GlobalPrivacySettings","description":"Global privacy settings"}],"description":"Set global privacy settings","available":"both"},{"name":"reportProfilePhoto","id":4203529973,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer"},{"name":"photoId","type":"InputPhoto"},{"name":"reason","type":"ReportReason"},{"name":"message","type":"string"}]},{"name":"resetPassword","id":2466827803,"returns":"account.ResetPasswordResult","arguments":[]},{"name":"declinePasswordReset","id":1284770294,"returns":"boolean","arguments":[]}],"unions":[{"type":"PrivacyRules","subtypes":["account.privacyRules"],"description":"Privacy rules"},{"type":"Authorizations","subtypes":["account.authorizations"],"description":"Logged-in sessions"},{"type":"Password","subtypes":["account.password"],"description":"Configuration for two-factor authorization"},{"type":"PasswordSettings","subtypes":["account.passwordSettings"],"description":"Private info associated to the password info (recovery email, telegram passport info & so on)"},{"type":"PasswordInputSettings","subtypes":["account.passwordInputSettings"],"description":"Constructor for setting up a new 2FA SRP password"},{"type":"TmpPassword","subtypes":["account.tmpPassword"],"description":"Temporary password"},{"type":"WebAuthorizations","subtypes":["account.webAuthorizations"],"description":"Web authorizations"},{"type":"AuthorizationForm","subtypes":["account.authorizationForm"],"description":"Authorization form"},{"type":"SentEmailCode","subtypes":["account.sentEmailCode"],"description":"The email code that was sent"},{"type":"Takeout","subtypes":["account.takeout"],"description":"Takeout info"},{"type":"WallPapers","subtypes":["account.wallPapersNotModified","account.wallPapers"],"description":"Wallpapers"},{"type":"AutoDownloadSettings","subtypes":["account.autoDownloadSettings"],"description":"Media autodownload settings"},{"type":"Themes","subtypes":["account.themesNotModified","account.themes"],"description":"Installed themes"},{"type":"ContentSettings","subtypes":["account.contentSettings"],"description":"Sensitive content settings"},{"type":"ResetPasswordResult","subtypes":["account.resetPasswordFailedWait","account.resetPasswordRequestedWait","account.resetPasswordOk"]}]},"channels":{"classes":[{"name":"channelParticipants","id":2595290799,"type":"channels.ChannelParticipants","arguments":[{"name":"count","type":"number","description":"Total number of participants that correspond to the given query"},{"name":"participants","type":"ChannelParticipant[]","description":"Participants"},{"name":"chats","type":"Chat[]"},{"name":"users","type":"User[]","description":"Users mentioned in participant info"}],"description":"Represents multiple channel participants"},{"name":"channelParticipantsNotModified","id":4028055529,"type":"channels.ChannelParticipants","arguments":[],"description":"No new participant info could be found"},{"name":"channelParticipant","id":3753378583,"type":"channels.ChannelParticipant","arguments":[{"name":"participant","type":"ChannelParticipant","description":"The channel participant"},{"name":"chats","type":"Chat[]"},{"name":"users","type":"User[]","description":"Users"}],"description":"Represents a channel participant"},{"name":"adminLogResults","id":3985307469,"type":"channels.AdminLogResults","arguments":[{"name":"events","type":"ChannelAdminLogEvent[]","description":"Admin log events"},{"name":"chats","type":"Chat[]","description":"Chats mentioned in events"},{"name":"users","type":"User[]","description":"Users mentioned in events"}],"description":"Admin log events"}],"methods":[{"name":"readHistory","id":3423619383,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"maxId","type":"number","description":"ID of message up to which messages should be marked as read"}],"description":"Mark channel/supergroup history as read","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"user"},{"name":"deleteMessages","id":2227305806,"returns":"messages.AffectedMessages","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"id","type":"number[]","description":"IDs of messages to delete"}],"description":"Delete messages in a channel/supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":403,"name":"MESSAGE_DELETE_FORBIDDEN","description":"You can't delete one of the messages you tried to delete, most likely because it is a service message."},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"both"},{"name":"deleteUserHistory","id":3507345179,"returns":"messages.AffectedHistory","arguments":[{"name":"channel","type":"InputChannel","description":"Supergroup"},{"name":"userId","type":"InputUser","description":"User whose messages should be deleted"}],"description":"Delete all messages sent by a certain user in a supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"user"},{"name":"reportSpam","id":4261967888,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"Supergroup"},{"name":"userId","type":"InputUser","description":"ID of the user that sent the spam messages"},{"name":"id","type":"number[]","description":"IDs of spam messages"}],"description":"Reports some messages from a user in a supergroup as spam; requires administrator rights in the supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"user"},{"name":"getMessages","id":2911672867,"returns":"messages.Messages","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"id","type":"InputMessage[]","description":"IDs of messages to get"}],"description":"Get channel/supergroup messages","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MESSAGE_IDS_EMPTY","description":"No message ids were provided"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"both"},{"name":"getParticipants","id":306054633,"returns":"channels.ChannelParticipants","arguments":[{"name":"channel","type":"InputChannel","description":"Channel"},{"name":"filter","type":"ChannelParticipantsFilter","description":"Which participant types to fetch"},{"name":"offset","type":"number","description":"Offset"},{"name":"limit","type":"number","description":"Limit"},{"name":"hash","type":"number","description":"Hash"}],"description":"Get the participants of a supergroup/channel","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"INPUT_CONSTRUCTOR_INVALID","description":"The provided constructor is invalid"}],"available":"both"},{"name":"getParticipant","id":2695589062,"returns":"channels.ChannelParticipant","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"participant","type":"InputPeer"}],"description":"Get info about a channel/supergroup participant","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"},{"code":400,"name":"USER_NOT_PARTICIPANT","description":"You're not a member of this supergroup/channel"}],"available":"both"},{"name":"getChannels","id":176122811,"returns":"messages.Chats","arguments":[{"name":"id","type":"InputChannel[]","description":"IDs of channels/supergroups to get info about"}],"description":"Get info about channels/supergroups","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"both"},{"name":"getFullChannel","id":141781513,"returns":"messages.ChatFull","arguments":[{"name":"channel","type":"InputChannel","description":"The channel to get info about"}],"description":"Get full info about a channel","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":403,"name":"CHANNEL_PUBLIC_GROUP_NA","description":"channel/supergroup not available"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"both"},{"name":"createChannel","id":1029681423,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"broadcast","type":"true","optional":true,"predicate":"flags.0","description":"Whether to create a channel"},{"name":"megagroup","type":"true","optional":true,"predicate":"flags.1","description":"Whether to create a supergroup"},{"name":"forImport","type":"true","optional":true,"predicate":"flags.3"},{"name":"title","type":"string","description":"Channel title"},{"name":"about","type":"string","description":"Channel description"},{"name":"geoPoint","type":"InputGeoPoint","optional":true,"predicate":"flags.2","description":"Geogroup location"},{"name":"address","type":"string","optional":true,"predicate":"flags.2","description":"Geogroup address"}],"description":"Create a supergroup/channel.","throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","description":"You have joined too many channels/supergroups"},{"code":400,"name":"CHAT_ABOUT_TOO_LONG","description":"Chat about too long"},{"code":400,"name":"CHAT_TITLE_EMPTY","description":"No chat title provided"},{"code":403,"name":"USER_RESTRICTED","description":"You're spamreported, you can't create channels or chats."}],"available":"user"},{"name":"editAdmin","id":3543959810,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"The supergroup/channel."},{"name":"userId","type":"InputUser","description":"The ID of the user whose admin rights should be modified"},{"name":"adminRights","type":"ChatAdminRights","description":"The admin rights"},{"name":"rank","type":"string","description":"Indicates the role (rank) of the admin in the group: just an arbitrary string"}],"description":"Modify the admin rights of a user in a supergroup/channel.","throws":[{"code":400,"name":"ADMINS_TOO_MUCH","description":"There are too many admins"},{"code":400,"name":"BOTS_TOO_MUCH","description":"There are too many bots in this chat/channel"},{"code":400,"name":"BOT_CHANNELS_NA","description":"Bots can't edit admin privileges"},{"code":400,"name":"BOT_GROUPS_BLOCKED","description":"This bot can't be added to groups"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":403,"name":"CHAT_ADMIN_INVITE_REQUIRED","description":"You do not have the rights to do this"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":406,"name":"FRESH_CHANGE_ADMINS_FORBIDDEN","description":"You were just elected admin, you can't add or modify other admins yet"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":403,"name":"RIGHT_FORBIDDEN","description":"Your admin rights do not allow you to do this"},{"code":400,"name":"USERS_TOO_MUCH","description":"The maximum number of users has been exceeded (to create a chat, for example)"},{"code":400,"name":"USER_BLOCKED","description":"User blocked"},{"code":403,"name":"USER_CHANNELS_TOO_MUCH","description":"One of the users you tried to add is already in too many channels/supergroups"},{"code":400,"name":"USER_CREATOR","description":"You can't leave this channel, because you're its creator"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"},{"code":400,"name":"USER_NOT_MUTUAL_CONTACT","description":"The provided user is not a mutual contact"},{"code":403,"name":"USER_PRIVACY_RESTRICTED","description":"The user's privacy settings do not allow you to do this"},{"code":403,"name":"USER_RESTRICTED","description":"You're spamreported, you can't create channels or chats."}],"available":"both"},{"name":"editTitle","id":1450044624,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"title","type":"string","description":"New name"}],"description":"Edit the name of a channel/supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":400,"name":"CHAT_TITLE_EMPTY","description":"No chat title provided"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"}],"available":"both"},{"name":"editPhoto","id":4046346185,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup whose photo should be edited"},{"name":"photo","type":"InputChatPhoto","description":"New photo"}],"description":"Change the photo of a channel/supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"PHOTO_CROP_SIZE_SMALL","description":"Photo is too small"},{"code":400,"name":"PHOTO_EXT_INVALID","description":"The extension of the photo is invalid"},{"code":400,"name":"PHOTO_INVALID","description":"Photo invalid"}],"available":"both"},{"name":"checkUsername","id":283557164,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"The channel/supergroup that will assigned the specified username"},{"name":"username","type":"string","description":"The username to check"}],"description":"Check if a username is free and can be assigned to a channel/supergroup","throws":[{"code":400,"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","description":"You're admin of too many public channels, make some channels private to change the username of this channel"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"USERNAME_INVALID","description":"The provided username is not valid"}],"available":"user"},{"name":"updateUsername","id":890549214,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"Channel"},{"name":"username","type":"string","description":"New username"}],"description":"Change the username of a supergroup/channel","throws":[{"code":400,"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","description":"You're admin of too many public channels, make some channels private to change the username of this channel"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"USERNAME_INVALID","description":"The provided username is not valid"},{"code":400,"name":"USERNAME_NOT_MODIFIED","description":"The username was not modified"},{"code":400,"name":"USERNAME_OCCUPIED","description":"The provided username is already occupied"}],"available":"user"},{"name":"joinChannel","id":615851205,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup to join"}],"description":"Join a channel/supergroup","throws":[{"code":400,"name":"CHANNELS_TOO_MUCH","description":"You have joined too many channels/supergroups"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"INVITE_HASH_EMPTY","description":"The invite hash is empty"},{"code":400,"name":"INVITE_HASH_EXPIRED","description":"The invite link has expired"},{"code":400,"name":"INVITE_HASH_INVALID","description":"The invite hash is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"USERS_TOO_MUCH","description":"The maximum number of users has been exceeded (to create a chat, for example)"},{"code":400,"name":"USER_ALREADY_PARTICIPANT","description":"The user is already in the group"},{"code":400,"name":"USER_CHANNELS_TOO_MUCH","description":"One of the users you tried to add is already in too many channels/supergroups"}],"available":"user"},{"name":"leaveChannel","id":4164332181,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup to leave"}],"description":"Leave a channel/supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":403,"name":"CHANNEL_PUBLIC_GROUP_NA","description":"channel/supergroup not available"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"USER_CREATOR","description":"You can't leave this channel, because you're its creator"},{"code":400,"name":"USER_NOT_PARTICIPANT","description":"You're not a member of this supergroup/channel"}],"available":"both"},{"name":"inviteToChannel","id":429865580,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"users","type":"InputUser[]","description":"Users to invite"}],"description":"Invite users to a channel/supergroup","throws":[{"code":400,"name":"BOTS_TOO_MUCH","description":"There are too many bots in this chat/channel"},{"code":400,"name":"BOT_GROUPS_BLOCKED","description":"This bot can't be added to groups"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_INVALID","description":"Invalid chat"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"INPUT_USER_DEACTIVATED","description":"The specified user was deleted"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"USERS_TOO_MUCH","description":"The maximum number of users has been exceeded (to create a chat, for example)"},{"code":400,"name":"USER_BANNED_IN_CHANNEL","description":"You're banned from sending messages in supergroups/channels"},{"code":400,"name":"USER_BLOCKED","description":"User blocked"},{"code":400,"name":"USER_BOT","description":"Bots can only be admins in channels."},{"code":403,"name":"USER_CHANNELS_TOO_MUCH","description":"One of the users you tried to add is already in too many channels/supergroups"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"},{"code":400,"name":"USER_KICKED","description":"This user was kicked from this supergroup/channel"},{"code":400,"name":"USER_NOT_MUTUAL_CONTACT","description":"The provided user is not a mutual contact"},{"code":403,"name":"USER_PRIVACY_RESTRICTED","description":"The user's privacy settings do not allow you to do this"}],"available":"user"},{"name":"deleteChannel","id":3222347747,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup to delete"}],"description":"Delete a channel/supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHANNEL_TOO_LARGE","description":"Channel is too large to be deleted; this error is issued when trying to delete channels with more than 1000 members (subject to change)"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"}],"available":"user"},{"name":"exportMessageLink","id":3862932971,"returns":"ExportedMessageLink","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"grouped","type":"true","optional":true,"predicate":"flags.0","description":"Whether to include other grouped media (for albums)"},{"name":"thread","type":"true","optional":true,"predicate":"flags.1","description":"Whether to also include a thread ID, if available, inside of the link"},{"name":"channel","type":"InputChannel","description":"Channel"},{"name":"id","type":"number","description":"Message ID"}],"description":"Get link and embed info of a message in a channel/supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"user"},{"name":"toggleSignatures","id":527021574,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel"},{"name":"enabled","type":"boolean","description":"Value"}],"description":"Enable/disable message signatures in channels","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"}],"available":"user"},{"name":"getAdminedPublicChannels","id":4172297903,"returns":"messages.Chats","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"byLocation","type":"true","optional":true,"predicate":"flags.0","description":"Get geogroups"},{"name":"checkLimit","type":"true","optional":true,"predicate":"flags.1","description":"If set and the user has reached the limit of owned public channels/supergroups/geogroups, instead of returning the channel list one of the specified {@link channels.getAdminedPublicChannels} will be returned.
Useful to check if a new public channel can indeed be created, even before asking the user to enter a channel username to use in {@link channels.checkUsername}/{@link channels.updateUsername}."}],"description":"Get channels/supergroups/geogroups we're admin in. Usually called when the user exceeds the {@link config} for owned public channels/supergroups/geogroups, and the user is given the choice to remove one of their channels/supergroups/geogroups.","throws":[{"code":400,"name":"CHANNELS_ADMIN_LOCATED_TOO_MUCH","description":"Returned if both the check_limit and the by_location flags are set and the user has reached the limit of public geogroups"},{"code":400,"name":"CHANNELS_ADMIN_PUBLIC_TOO_MUCH","description":"Returned if the check_limit flag is set and the user has reached the limit of public channels/supergroups"}],"available":"user"},{"name":"editBanned","id":2531708289,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"The supergroup/channel."},{"name":"participant","type":"InputPeer"},{"name":"bannedRights","type":"ChatBannedRights","description":"The banned rights"}],"description":"Ban/unban/kick a user in a supergroup/channel.","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"PINNED_DIALOGS_TOO_MUCH","description":"Too many pinned dialogs"},{"code":400,"name":"USER_ADMIN_INVALID","description":"You're not an admin"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"both"},{"name":"getAdminLog","id":870184064,"returns":"channels.AdminLogResults","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"channel","type":"InputChannel","description":"Channel"},{"name":"q","type":"string","description":"Search query, can be empty"},{"name":"eventsFilter","type":"ChannelAdminLogEventsFilter","optional":true,"predicate":"flags.0","description":"Event filter"},{"name":"admins","type":"InputUser[]","optional":true,"predicate":"flags.1","description":"Only show events from these admins"},{"name":"maxId","type":"Long","description":"Maximum ID of message to return (see pagination)"},{"name":"minId","type":"Long","description":"Minimum ID of message to return (see pagination)"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"}],"description":"Get the admin log of a channel/supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":403,"name":"CHAT_WRITE_FORBIDDEN","description":"You can't write in this chat"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"user"},{"name":"setStickers","id":3935085817,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"Supergroup"},{"name":"stickerset","type":"InputStickerSet","description":"The stickerset to associate"}],"description":"Associate a stickerset to the supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"PARTICIPANTS_TOO_FEW","description":"Not enough participants"}],"available":"both"},{"name":"readMessageContents","id":3937786936,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"id","type":"number[]","description":"IDs of messages whose contents should be marked as read"}],"description":"Mark channel/supergroup message contents as read","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"user"},{"name":"deleteHistory","id":2939592002,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"Supergroup whose history must be deleted"},{"name":"maxId","type":"number","description":"ID of message up to which the history must be deleted"}],"description":"Delete the history of a supergroup","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"}],"available":"user"},{"name":"togglePreHistoryHidden","id":3938171212,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel/supergroup"},{"name":"enabled","type":"boolean","description":"Hide/unhide"}],"description":"Hide/unhide message history for new channel/supergroup users","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_ID_INVALID","description":"The provided chat id is invalid"},{"code":400,"name":"CHAT_LINK_EXISTS","description":"The chat is public, you can't hide the history to new users"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"}],"available":"user"},{"name":"getLeftChannels","id":2202135744,"returns":"messages.Chats","arguments":[{"name":"offset","type":"number","description":"Offset for pagination"}],"description":"Get a list of channels/supergroups we left","throws":[{"code":403,"name":"TAKEOUT_REQUIRED","description":"A takeout session has to be initialized, first"}],"available":"user"},{"name":"getGroupsForDiscussion","id":4124758904,"returns":"messages.Chats","arguments":[],"description":"Get all groups that can be used as discussion groups.","available":"user"},{"name":"setDiscussionGroup","id":1079520178,"returns":"boolean","arguments":[{"name":"broadcast","type":"InputChannel","description":"Channel"},{"name":"group","type":"InputChannel","description":"Discussion group to associate to the channel"}],"description":"Associate a group to a channel as discussion group for that channel","throws":[{"code":400,"name":"BROADCAST_ID_INVALID","description":"Broadcast ID invalid"},{"code":400,"name":"LINK_NOT_MODIFIED","description":"Discussion link not modified"},{"code":400,"name":"MEGAGROUP_ID_INVALID","description":"Invalid supergroup ID"}],"available":"user"},{"name":"editCreator","id":2402864415,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"Channel"},{"name":"userId","type":"InputUser","description":"New channel owner"},{"name":"password","type":"InputCheckPasswordSRP","description":"2FA password of account"}],"description":"Transfer channel ownership","throws":[{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"PASSWORD_HASH_INVALID","description":"The provided password hash is invalid"},{"code":400,"name":"PASSWORD_MISSING","description":"You must enable 2FA in order to transfer ownership of a channel"},{"code":400,"name":"PASSWORD_TOO_FRESH_X","description":"The password was modified less than 24 hours ago, try again in X seconds"},{"code":400,"name":"SESSION_TOO_FRESH_X","description":"This session was created less than 24 hours ago, try again in X seconds"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"user"},{"name":"editLocation","id":1491484525,"returns":"boolean","arguments":[{"name":"channel","type":"InputChannel","description":"Geogroup"},{"name":"geoPoint","type":"InputGeoPoint","description":"New geolocation"},{"name":"address","type":"string","description":"Address string"}],"description":"Edit location of geo group","throws":[{"code":400,"name":"MEGAGROUP_REQUIRED","description":"You can only use this method on a supergroup"}],"available":"user"},{"name":"toggleSlowMode","id":3990134512,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel","description":"The supergroup"},{"name":"seconds","type":"number","description":"Users will only be able to send one message every seconds seconds, 0 to disable the limitation"}],"description":"Toggle supergroup slow mode: if enabled, users will only be able to send one message every seconds seconds","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"},{"code":400,"name":"CHAT_NOT_MODIFIED","description":"The pinned message wasn't modified"},{"code":400,"name":"INPUT_METHOD_INVALID_1192227_X","description":"Invalid method"},{"code":400,"name":"INPUT_METHOD_INVALID_1604042050_X","description":"Invalid method"},{"code":400,"name":"SECONDS_INVALID","description":"Invalid duration provided"}],"available":"user"},{"name":"getInactiveChannels","id":300429806,"returns":"messages.InactiveChats","arguments":[],"description":"Get inactive channels and supergroups","available":"user"},{"name":"convertToGigagroup","id":187239529,"returns":"Updates","arguments":[{"name":"channel","type":"InputChannel"}]}],"unions":[{"type":"ChannelParticipants","subtypes":["channels.channelParticipants","channels.channelParticipantsNotModified"],"description":"Channel/supergroup participants"},{"type":"ChannelParticipant","subtypes":["channels.channelParticipant"],"description":"Channel participant"},{"type":"AdminLogResults","subtypes":["channels.adminLogResults"],"description":"Admin log events"}]},"payments":{"classes":[{"name":"paymentForm","id":2366317589,"type":"payments.PaymentForm","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"canSaveCredentials","type":"true","optional":true,"predicate":"flags.2","description":"Whether the user can choose to save credentials."},{"name":"passwordMissing","type":"true","optional":true,"predicate":"flags.3","description":"Indicates that the user can save payment credentials, but only after setting up a 2FA password (currently the account doesn't have a 2FA password)"},{"name":"formId","type":"Long"},{"name":"botId","type":"number","description":"Bot ID"},{"name":"invoice","type":"Invoice","description":"Invoice"},{"name":"providerId","type":"number","description":"Payment provider ID."},{"name":"url","type":"string","description":"Payment form URL"},{"name":"nativeProvider","type":"string","optional":true,"predicate":"flags.4","description":"Payment provider name.
One of the following:
- stripe"},{"name":"nativeParams","type":"DataJSON","optional":true,"predicate":"flags.4","description":"Contains information about the payment provider, if available, to support it natively without the need for opening the URL.
A JSON object that can contain the following fields:

- apple_pay_merchant_id: Apple Pay merchant ID
- google_pay_public_key: Google Pay public key
- need_country: True, if the user country must be provided,
- need_zip: True, if the user ZIP/postal code must be provided,
- need_cardholder_name: True, if the cardholder name must be provided"},{"name":"savedInfo","type":"PaymentRequestedInfo","optional":true,"predicate":"flags.0","description":"Saved server-side order information"},{"name":"savedCredentials","type":"PaymentSavedCredentials","optional":true,"predicate":"flags.1","description":"Contains information about saved card credentials"},{"name":"users","type":"User[]","description":"Users"}],"description":"Payment form"},{"name":"validatedRequestedInfo","id":3510966403,"type":"payments.ValidatedRequestedInfo","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"id","type":"string","optional":true,"predicate":"flags.0","description":"ID"},{"name":"shippingOptions","type":"ShippingOption[]","optional":true,"predicate":"flags.1","description":"Shipping options"}],"description":"Validated user-provided info"},{"name":"paymentResult","id":1314881805,"type":"payments.PaymentResult","arguments":[{"name":"updates","type":"Updates","description":"Info about the payment"}],"description":"Payment result"},{"name":"paymentVerificationNeeded","id":3628142905,"type":"payments.PaymentResult","arguments":[{"name":"url","type":"string","description":"URL for additional payment credentials verification"}],"description":"Payment was not successful, additional verification is needed"},{"name":"paymentReceipt","id":280319440,"type":"payments.PaymentReceipt","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"date","type":"number","description":"Date of generation"},{"name":"botId","type":"number","description":"Bot ID"},{"name":"providerId","type":"number","description":"Provider ID"},{"name":"title","type":"string"},{"name":"description","type":"string"},{"name":"photo","type":"WebDocument","optional":true,"predicate":"flags.2"},{"name":"invoice","type":"Invoice","description":"Invoice"},{"name":"info","type":"PaymentRequestedInfo","optional":true,"predicate":"flags.0","description":"Info"},{"name":"shipping","type":"ShippingOption","optional":true,"predicate":"flags.1","description":"Selected shipping option"},{"name":"tipAmount","type":"Long","optional":true,"predicate":"flags.3"},{"name":"currency","type":"string","description":"Three-letter ISO 4217 currency code"},{"name":"totalAmount","type":"Long","description":"Total amount in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)."},{"name":"credentialsTitle","type":"string","description":"Payment credential name"},{"name":"users","type":"User[]","description":"Users"}],"description":"Receipt"},{"name":"savedInfo","id":4220511292,"type":"payments.SavedInfo","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"hasSavedCredentials","type":"true","optional":true,"predicate":"flags.1","description":"Whether the user has some saved payment credentials"},{"name":"savedInfo","type":"PaymentRequestedInfo","optional":true,"predicate":"flags.0","description":"Saved server-side order information"}],"description":"Saved server-side order information"},{"name":"bankCardData","id":1042605427,"type":"payments.BankCardData","arguments":[{"name":"title","type":"string","description":"Credit card title"},{"name":"openUrls","type":"BankCardOpenUrl[]","description":"Info URL(s) provided by the card's bank(s)"}],"description":"Credit card info, provided by the card's bank(s)"}],"methods":[{"name":"getPaymentForm","id":2318613645,"returns":"payments.PaymentForm","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"peer","type":"InputPeer"},{"name":"msgId","type":"number","description":"Message ID of payment form"},{"name":"themeParams","type":"DataJSON","optional":true,"predicate":"flags.0"}],"description":"Get a payment form","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"}],"available":"user"},{"name":"getPaymentReceipt","id":611897804,"returns":"payments.PaymentReceipt","arguments":[{"name":"peer","type":"InputPeer"},{"name":"msgId","type":"number","description":"Message ID of receipt"}],"description":"Get payment receipt","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"}],"available":"user"},{"name":"validateRequestedInfo","id":3675271536,"returns":"payments.ValidatedRequestedInfo","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"save","type":"true","optional":true,"predicate":"flags.0","description":"Save order information to re-use it for future orders"},{"name":"peer","type":"InputPeer"},{"name":"msgId","type":"number","description":"Message ID of payment form"},{"name":"info","type":"PaymentRequestedInfo","description":"Requested order information"}],"description":"Submit requested order information for validation","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"}],"available":"user"},{"name":"sendPaymentForm","id":818134173,"returns":"payments.PaymentResult","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"formId","type":"Long"},{"name":"peer","type":"InputPeer"},{"name":"msgId","type":"number","description":"Message ID of form"},{"name":"requestedInfoId","type":"string","optional":true,"predicate":"flags.0","description":"ID of saved and validated {@link payments.validatedRequestedInfo}"},{"name":"shippingOptionId","type":"string","optional":true,"predicate":"flags.1","description":"Chosen shipping option ID"},{"name":"credentials","type":"InputPaymentCredentials","description":"Payment credentials"},{"name":"tipAmount","type":"Long","optional":true,"predicate":"flags.2"}],"description":"Send compiled payment form","throws":[{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"}],"available":"user"},{"name":"getSavedInfo","id":578650699,"returns":"payments.SavedInfo","arguments":[],"description":"Get saved payment information","available":"user"},{"name":"clearSavedInfo","id":3627905217,"returns":"boolean","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"credentials","type":"true","optional":true,"predicate":"flags.0","description":"Remove saved payment credentials"},{"name":"info","type":"true","optional":true,"predicate":"flags.1","description":"Clear the last order settings saved by the user"}],"description":"Clear saved payment information","available":"user"},{"name":"getBankCardData","id":779736953,"returns":"payments.BankCardData","arguments":[{"name":"number","type":"string","description":"Credit card number"}],"description":"Get info about a credit card","available":"user"}],"unions":[{"type":"PaymentForm","subtypes":["payments.paymentForm"],"description":"Payment form"},{"type":"ValidatedRequestedInfo","subtypes":["payments.validatedRequestedInfo"],"description":"Validated requested info"},{"type":"PaymentResult","subtypes":["payments.paymentResult","payments.paymentVerificationNeeded"],"description":"Payment result"},{"type":"PaymentReceipt","subtypes":["payments.paymentReceipt"],"description":"Payment receipt"},{"type":"SavedInfo","subtypes":["payments.savedInfo"],"description":"Saved payment info"},{"type":"BankCardData","subtypes":["payments.bankCardData"],"description":"Credit card info, provided by the card's bank(s)"}]},"phone":{"classes":[{"name":"phoneCall","id":3968000320,"type":"phone.PhoneCall","arguments":[{"name":"phoneCall","type":"PhoneCall","description":"The VoIP phone call"},{"name":"users","type":"User[]","description":"VoIP phone call participants"}],"description":"A VoIP phone call"},{"name":"groupCall","id":2658302637,"type":"phone.GroupCall","arguments":[{"name":"call","type":"GroupCall"},{"name":"participants","type":"GroupCallParticipant[]"},{"name":"participantsNextOffset","type":"string"},{"name":"chats","type":"Chat[]"},{"name":"users","type":"User[]"}]},{"name":"groupParticipants","id":4101460406,"type":"phone.GroupParticipants","arguments":[{"name":"count","type":"number"},{"name":"participants","type":"GroupCallParticipant[]"},{"name":"nextOffset","type":"string"},{"name":"chats","type":"Chat[]"},{"name":"users","type":"User[]"},{"name":"version","type":"number"}]},{"name":"joinAsPeers","id":2951045695,"type":"phone.JoinAsPeers","arguments":[{"name":"peers","type":"Peer[]"},{"name":"chats","type":"Chat[]"},{"name":"users","type":"User[]"}]},{"name":"exportedGroupCallInvite","id":541839704,"type":"phone.ExportedGroupCallInvite","arguments":[{"name":"link","type":"string"}]}],"methods":[{"name":"getCallConfig","id":1430593449,"returns":"DataJSON","arguments":[],"description":"Get phone call configuration to be passed to libtgvoip's shared config","available":"user"},{"name":"requestCall","id":1124046573,"returns":"phone.PhoneCall","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"video","type":"true","optional":true,"predicate":"flags.0","description":"Whether to start a video call"},{"name":"userId","type":"InputUser","description":"Destination of the phone call"},{"name":"randomId","type":"number","description":"Random ID to avoid resending the same object"},{"name":"gAHash","type":"Buffer","description":"Parameter for E2E encryption key exchange »"},{"name":"protocol","type":"PhoneCallProtocol","description":"Phone call settings"}],"description":"Start a telegram phone call","throws":[{"code":400,"name":"CALL_PROTOCOL_FLAGS_INVALID","description":"Call protocol flags invalid"},{"code":400,"name":"PARTICIPANT_VERSION_OUTDATED","description":"The other participant does not use an up to date telegram client with support for calls"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"},{"code":403,"name":"USER_IS_BLOCKED","description":"You were blocked by this user"},{"code":403,"name":"USER_PRIVACY_RESTRICTED","description":"The user's privacy settings do not allow you to do this"}],"available":"user"},{"name":"acceptCall","id":1003664544,"returns":"phone.PhoneCall","arguments":[{"name":"peer","type":"InputPhoneCall","description":"The call to accept"},{"name":"gB","type":"Buffer","description":"Parameter for E2E encryption key exchange »"},{"name":"protocol","type":"PhoneCallProtocol","description":"Phone call settings"}],"description":"Accept incoming call","throws":[{"code":400,"name":"CALL_ALREADY_ACCEPTED","description":"The call was already accepted"},{"code":400,"name":"CALL_ALREADY_DECLINED","description":"The call was already declined"},{"code":400,"name":"CALL_PEER_INVALID","description":"The provided call peer object is invalid"},{"code":400,"name":"CALL_PROTOCOL_FLAGS_INVALID","description":"Call protocol flags invalid"}],"available":"user"},{"name":"confirmCall","id":788404002,"returns":"phone.PhoneCall","arguments":[{"name":"peer","type":"InputPhoneCall","description":"The phone call"},{"name":"gA","type":"Buffer","description":"Parameter for E2E encryption key exchange »"},{"name":"keyFingerprint","type":"Long","description":"Key fingerprint"},{"name":"protocol","type":"PhoneCallProtocol","description":"Phone call settings"}],"description":"Complete phone call E2E encryption key exchange »","throws":[{"code":400,"name":"CALL_ALREADY_DECLINED","description":"The call was already declined"},{"code":400,"name":"CALL_PEER_INVALID","description":"The provided call peer object is invalid"}],"available":"user"},{"name":"receivedCall","id":399855457,"returns":"boolean","arguments":[{"name":"peer","type":"InputPhoneCall","description":"The phone call we're currently in"}],"description":"Optional: notify the server that the user is currently busy in a call: this will automatically refuse all incoming phone calls until the current phone call is ended.","throws":[{"code":400,"name":"CALL_ALREADY_DECLINED","description":"The call was already declined"},{"code":400,"name":"CALL_PEER_INVALID","description":"The provided call peer object is invalid"}],"available":"user"},{"name":"discardCall","id":2999697856,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"video","type":"true","optional":true,"predicate":"flags.0","description":"Whether this is a video call"},{"name":"peer","type":"InputPhoneCall","description":"The phone call"},{"name":"duration","type":"number","description":"Call duration"},{"name":"reason","type":"PhoneCallDiscardReason","description":"Why was the call discarded"},{"name":"connectionId","type":"Long","description":"Preferred libtgvoip relay ID"}],"description":"Refuse or end running call","throws":[{"code":400,"name":"CALL_ALREADY_ACCEPTED","description":"The call was already accepted"},{"code":400,"name":"CALL_PEER_INVALID","description":"The provided call peer object is invalid"}],"available":"user"},{"name":"setCallRating","id":1508562471,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"userInitiative","type":"true","optional":true,"predicate":"flags.0","description":"Whether the user decided on their own initiative to rate the call"},{"name":"peer","type":"InputPhoneCall","description":"The call to rate"},{"name":"rating","type":"number","description":"Rating in 1-5 stars"},{"name":"comment","type":"string","description":"An additional comment"}],"description":"Rate a call","throws":[{"code":400,"name":"CALL_PEER_INVALID","description":"The provided call peer object is invalid"}],"available":"user"},{"name":"saveCallDebug","id":662363518,"returns":"boolean","arguments":[{"name":"peer","type":"InputPhoneCall","description":"Phone call"},{"name":"debug","type":"DataJSON","description":"Debug statistics obtained from libtgvoip"}],"description":"Send phone call debug data to server","throws":[{"code":400,"name":"CALL_PEER_INVALID","description":"The provided call peer object is invalid"},{"code":400,"name":"DATA_JSON_INVALID","description":"The provided JSON data is invalid"}],"available":"user"},{"name":"sendSignalingData","id":4286223235,"returns":"boolean","arguments":[{"name":"peer","type":"InputPhoneCall","description":"Phone call"},{"name":"data","type":"Buffer","description":"Signaling payload"}],"description":"Send VoIP signaling data","available":"both"},{"name":"createGroupCall","id":1221445336,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"peer","type":"InputPeer"},{"name":"randomId","type":"number"},{"name":"title","type":"string","optional":true,"predicate":"flags.0"},{"name":"scheduleDate","type":"number","optional":true,"predicate":"flags.1"}]},{"name":"joinGroupCall","id":2972909435,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"muted","type":"true","optional":true,"predicate":"flags.0"},{"name":"videoStopped","type":"true","optional":true,"predicate":"flags.2"},{"name":"call","type":"InputGroupCall"},{"name":"joinAs","type":"InputPeer"},{"name":"inviteHash","type":"string","optional":true,"predicate":"flags.1"},{"name":"params","type":"DataJSON"}]},{"name":"leaveGroupCall","id":1342404601,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"source","type":"number"}]},{"name":"inviteToGroupCall","id":2067345760,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"users","type":"InputUser[]"}]},{"name":"discardGroupCall","id":2054648117,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"}]},{"name":"toggleGroupCallSettings","id":1958458429,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"resetInviteHash","type":"true","optional":true,"predicate":"flags.1"},{"name":"call","type":"InputGroupCall"},{"name":"joinMuted","type":"boolean","optional":true,"predicate":"flags.0"}]},{"name":"getGroupCall","id":68699611,"returns":"phone.GroupCall","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"limit","type":"number"}]},{"name":"getGroupParticipants","id":3310934187,"returns":"phone.GroupParticipants","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"ids","type":"InputPeer[]"},{"name":"sources","type":"number[]"},{"name":"offset","type":"string"},{"name":"limit","type":"number"}]},{"name":"checkGroupCall","id":3046963575,"returns":"number[]","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"sources","type":"number[]"}]},{"name":"toggleGroupCallRecord","id":3224004311,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"start","type":"true","optional":true,"predicate":"flags.0"},{"name":"call","type":"InputGroupCall"},{"name":"title","type":"string","optional":true,"predicate":"flags.1"}]},{"name":"editGroupCallParticipant","id":2770811583,"returns":"Updates","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"call","type":"InputGroupCall"},{"name":"participant","type":"InputPeer"},{"name":"muted","type":"boolean","optional":true,"predicate":"flags.0"},{"name":"volume","type":"number","optional":true,"predicate":"flags.1"},{"name":"raiseHand","type":"boolean","optional":true,"predicate":"flags.2"},{"name":"videoStopped","type":"boolean","optional":true,"predicate":"flags.3"},{"name":"videoPaused","type":"boolean","optional":true,"predicate":"flags.4"},{"name":"presentationPaused","type":"boolean","optional":true,"predicate":"flags.5"}]},{"name":"editGroupCallTitle","id":480685066,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"title","type":"string"}]},{"name":"getGroupCallJoinAs","id":4017889594,"returns":"phone.JoinAsPeers","arguments":[{"name":"peer","type":"InputPeer"}]},{"name":"exportGroupCallInvite","id":3869926527,"returns":"phone.ExportedGroupCallInvite","arguments":[{"name":"flags","type":"$FlagsBitField"},{"name":"canSelfUnmute","type":"true","optional":true,"predicate":"flags.0"},{"name":"call","type":"InputGroupCall"}]},{"name":"toggleGroupCallStartSubscription","id":563885286,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"subscribed","type":"boolean"}]},{"name":"startScheduledGroupCall","id":1451287362,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"}]},{"name":"saveDefaultGroupCallJoinAs","id":1465786252,"returns":"boolean","arguments":[{"name":"peer","type":"InputPeer"},{"name":"joinAs","type":"InputPeer"}]},{"name":"joinGroupCallPresentation","id":3421137860,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"},{"name":"params","type":"DataJSON"}]},{"name":"leaveGroupCallPresentation","id":475058500,"returns":"Updates","arguments":[{"name":"call","type":"InputGroupCall"}]}],"unions":[{"type":"PhoneCall","subtypes":["phone.phoneCall"],"description":"Phone call"},{"type":"GroupCall","subtypes":["phone.groupCall"]},{"type":"GroupParticipants","subtypes":["phone.groupParticipants"]},{"type":"JoinAsPeers","subtypes":["phone.joinAsPeers"]},{"type":"ExportedGroupCallInvite","subtypes":["phone.exportedGroupCallInvite"]}]},"stats":{"classes":[{"name":"broadcastStats","id":3187114900,"type":"stats.BroadcastStats","arguments":[{"name":"period","type":"StatsDateRangeDays","description":"Period in consideration"},{"name":"followers","type":"StatsAbsValueAndPrev","description":"Follower count change for period in consideration"},{"name":"viewsPerPost","type":"StatsAbsValueAndPrev","description":"total_viewcount/postcount, for posts posted during the period in consideration (views_per_post).
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)."},{"name":"sharesPerPost","type":"StatsAbsValueAndPrev","description":"total_viewcount/postcount, for posts posted during the period in consideration (views_per_post).
Note that in this case, current refers to the period in consideration (min_date till max_date), and prev refers to the previous period ((min_date - (max_date - min_date)) till min_date)"},{"name":"enabledNotifications","type":"StatsPercentValue","description":"Percentage of subscribers with enabled notifications"},{"name":"growthGraph","type":"StatsGraph","description":"Channel growth graph (absolute subscriber count)"},{"name":"followersGraph","type":"StatsGraph","description":"Followers growth graph (relative subscriber count)"},{"name":"muteGraph","type":"StatsGraph","description":"Muted users graph (relative)"},{"name":"topHoursGraph","type":"StatsGraph","description":"Views per hour graph (absolute)"},{"name":"interactionsGraph","type":"StatsGraph","description":"Interactions graph (absolute)"},{"name":"ivInteractionsGraph","type":"StatsGraph","description":"IV interactions graph (absolute)"},{"name":"viewsBySourceGraph","type":"StatsGraph","description":"Views by source graph (absolute)"},{"name":"newFollowersBySourceGraph","type":"StatsGraph","description":"New followers by source graph (absolute)"},{"name":"languagesGraph","type":"StatsGraph","description":"Subscriber language graph (piechart)"},{"name":"recentMessageInteractions","type":"MessageInteractionCounters[]","description":"Recent message interactions"}],"description":"Channel statistics."},{"name":"megagroupStats","id":4018141462,"type":"stats.MegagroupStats","arguments":[{"name":"period","type":"StatsDateRangeDays","description":"Period in consideration"},{"name":"members","type":"StatsAbsValueAndPrev","description":"Member count change for period in consideration"},{"name":"messages","type":"StatsAbsValueAndPrev","description":"Message number change for period in consideration"},{"name":"viewers","type":"StatsAbsValueAndPrev","description":"Number of users that viewed messages, for range in consideration"},{"name":"posters","type":"StatsAbsValueAndPrev","description":"Number of users that posted messages, for range in consideration"},{"name":"growthGraph","type":"StatsGraph","description":"Supergroup growth graph (absolute subscriber count)"},{"name":"membersGraph","type":"StatsGraph","description":"Members growth (relative subscriber count)"},{"name":"newMembersBySourceGraph","type":"StatsGraph","description":"New members by source graph"},{"name":"languagesGraph","type":"StatsGraph","description":"Subscriber language graph (piechart)"},{"name":"messagesGraph","type":"StatsGraph","description":"Message activity graph (stacked bar graph, message type)"},{"name":"actionsGraph","type":"StatsGraph","description":"Group activity graph (deleted, modified messages, blocked users)"},{"name":"topHoursGraph","type":"StatsGraph","description":"Activity per hour graph (absolute)"},{"name":"weekdaysGraph","type":"StatsGraph","description":"Activity per day of week graph (absolute)"},{"name":"topPosters","type":"StatsGroupTopPoster[]","description":"Info about most active group members"},{"name":"topAdmins","type":"StatsGroupTopAdmin[]","description":"Info about most active group admins"},{"name":"topInviters","type":"StatsGroupTopInviter[]","description":"Info about most active group inviters"},{"name":"users","type":"User[]","description":"Info about users mentioned in statistics"}],"description":"Supergroup statistics"},{"name":"messageStats","id":2308567701,"type":"stats.MessageStats","arguments":[{"name":"viewsGraph","type":"StatsGraph","description":"Message view graph"}],"description":"Message statistics"}],"methods":[{"name":"getBroadcastStats","id":2873246746,"returns":"stats.BroadcastStats","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"dark","type":"true","optional":true,"predicate":"flags.0","description":"Whether to enable dark theme for graph colors"},{"name":"channel","type":"InputChannel","description":"The channel"}],"description":"Get channel statistics","throws":[{"code":400,"name":"BROADCAST_REQUIRED","description":"This method can only be called on a channel, please use stats.getMegagroupStats for supergroups"},{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"}],"available":"user"},{"name":"loadAsyncGraph","id":1646092192,"returns":"StatsGraph","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"token","type":"string","description":"Graph token from {@link statsGraphAsync} constructor"},{"name":"x","type":"Long","optional":true,"predicate":"flags.0","description":"Zoom value, if required"}],"description":"Load channel statistics graph asynchronously","throws":[{"code":400,"name":"GRAPH_INVALID_RELOAD","description":"Invalid graph token provided, please reload the stats and provide the updated token"},{"code":400,"name":"GRAPH_OUTDATED_RELOAD","description":"The graph is outdated, please get a new async token using stats.getBroadcastStats"}],"available":"user"},{"name":"getMegagroupStats","id":3705636359,"returns":"stats.MegagroupStats","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"dark","type":"true","optional":true,"predicate":"flags.0","description":"Whether to enable dark theme for graph colors"},{"name":"channel","type":"InputChannel","description":"Supergroup ID"}],"description":"Get supergroup statistics","available":"both"},{"name":"getMessagePublicForwards","id":1445996571,"returns":"messages.Messages","arguments":[{"name":"channel","type":"InputChannel","description":"Source channel"},{"name":"msgId","type":"number","description":"Source message ID"},{"name":"offsetRate","type":"number","description":"Initially 0, then set to the next_rate parameter of {@link messages.messagesSlice}"},{"name":"offsetPeer","type":"InputPeer","description":"Offsets for pagination, for more info click here"},{"name":"offsetId","type":"number","description":"Offsets for pagination, for more info click here"},{"name":"limit","type":"number","description":"Maximum number of results to return, see pagination"}],"description":"Obtains a list of messages, indicating to which other public channels was a channel message forwarded.
\nWill return a list of {@link message} with peer_id equal to the public channel to which this message was forwarded.","throws":[{"code":400,"name":"CHANNEL_INVALID","description":"The provided channel is invalid"},{"code":400,"name":"MESSAGE_ID_INVALID","description":"The provided message id is invalid"}],"available":"both"},{"name":"getMessageStats","id":3068175349,"returns":"stats.MessageStats","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"dark","type":"true","optional":true,"predicate":"flags.0","description":"Whether to enable dark theme for graph colors"},{"name":"channel","type":"InputChannel","description":"Channel ID"},{"name":"msgId","type":"number","description":"Message ID"}],"description":"Get message statistics","throws":[{"code":400,"name":"CHAT_ADMIN_REQUIRED","description":"You must be an admin in this chat to do this"}],"available":"both"}],"unions":[{"type":"BroadcastStats","subtypes":["stats.broadcastStats"],"description":"Channel statistics"},{"type":"MegagroupStats","subtypes":["stats.megagroupStats"],"description":"Supergroup statistics"},{"type":"MessageStats","subtypes":["stats.messageStats"],"description":"Message statistics"}]},"stickers":{"classes":[{"name":"suggestedShortName","id":2248056895,"type":"stickers.SuggestedShortName","arguments":[{"name":"shortName","type":"string"}]}],"methods":[{"name":"createStickerSet","id":2418125671,"returns":"messages.StickerSet","arguments":[{"name":"flags","type":"$FlagsBitField","description":"Flags, see TL conditional fields"},{"name":"masks","type":"true","optional":true,"predicate":"flags.0","description":"Whether this is a mask stickerset"},{"name":"animated","type":"true","optional":true,"predicate":"flags.1","description":"Whether this is an animated stickerset"},{"name":"userId","type":"InputUser","description":"Stickerset owner"},{"name":"title","type":"string","description":"Stickerset name, 1-64 chars"},{"name":"shortName","type":"string","description":"Sticker set name. Can contain only English letters, digits and underscores. Must end with \"by\" ( is case insensitive); 1-64 characters"},{"name":"thumb","type":"InputDocument","optional":true,"predicate":"flags.2","description":"Thumbnail"},{"name":"stickers","type":"InputStickerSetItem[]","description":"Stickers"},{"name":"software","type":"string","optional":true,"predicate":"flags.3"}],"description":"Create a stickerset, bots only.","throws":[{"code":400,"name":"BOT_MISSING","description":"This method can only be run by a bot"},{"code":400,"name":"PACK_SHORT_NAME_INVALID","description":"Short pack name invalid"},{"code":400,"name":"PACK_SHORT_NAME_OCCUPIED","description":"A stickerpack with this name already exists"},{"code":400,"name":"PACK_TITLE_INVALID","description":"The stickerpack title is invalid"},{"code":400,"name":"PEER_ID_INVALID","description":"The provided peer id is invalid"},{"code":400,"name":"SHORTNAME_OCCUPY_FAILED","description":"An internal error occurred"},{"code":400,"name":"STICKERS_EMPTY","description":"No sticker provided"},{"code":400,"name":"STICKER_EMOJI_INVALID","description":"Sticker emoji invalid"},{"code":400,"name":"STICKER_FILE_INVALID","description":"Sticker file invalid"},{"code":400,"name":"STICKER_PNG_DIMENSIONS","description":"Sticker png dimensions invalid"},{"code":400,"name":"STICKER_PNG_NOPNG","description":"One of the specified stickers is not a valid PNG file"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"both"},{"name":"removeStickerFromSet","id":4151709521,"returns":"messages.StickerSet","arguments":[{"name":"sticker","type":"InputDocument","description":"The sticker to remove"}],"description":"Remove a sticker from the set where it belongs, bots only. The sticker set must have been created by the bot.","throws":[{"code":400,"name":"BOT_MISSING","description":"This method can only be run by a bot"},{"code":400,"name":"STICKER_INVALID","description":"The provided sticker is invalid"}],"available":"both"},{"name":"changeStickerPosition","id":4290172106,"returns":"messages.StickerSet","arguments":[{"name":"sticker","type":"InputDocument","description":"The sticker"},{"name":"position","type":"number","description":"The new position of the sticker, zero-based"}],"description":"Changes the absolute position of a sticker in the set to which it belongs; for bots only. The sticker set must have been created by the bot","throws":[{"code":400,"name":"BOT_MISSING","description":"This method can only be run by a bot"},{"code":400,"name":"STICKER_INVALID","description":"The provided sticker is invalid"}],"available":"both"},{"name":"addStickerToSet","id":2253651646,"returns":"messages.StickerSet","arguments":[{"name":"stickerset","type":"InputStickerSet","description":"The stickerset"},{"name":"sticker","type":"InputStickerSetItem","description":"The sticker"}],"description":"Add a sticker to a stickerset, bots only. The sticker set must have been created by the bot.","throws":[{"code":400,"name":"BOT_MISSING","description":"This method can only be run by a bot"},{"code":400,"name":"STICKERSET_INVALID","description":"The provided sticker set is invalid"}],"available":"both"},{"name":"setStickerSetThumb","id":2587250224,"returns":"messages.StickerSet","arguments":[{"name":"stickerset","type":"InputStickerSet","description":"Stickerset"},{"name":"thumb","type":"InputDocument","description":"Thumbnail"}],"description":"Set stickerset thumbnail","throws":[{"code":400,"name":"STICKERSET_INVALID","description":"The provided sticker set is invalid"}],"available":"both"},{"name":"checkShortName","id":676017721,"returns":"boolean","arguments":[{"name":"shortName","type":"string"}]},{"name":"suggestShortName","id":1303364867,"returns":"stickers.SuggestedShortName","arguments":[{"name":"title","type":"string"}]}],"unions":[{"type":"SuggestedShortName","subtypes":["stickers.suggestedShortName"]}]},"users":{"classes":[],"methods":[{"name":"getUsers","id":227648840,"returns":"User[]","arguments":[{"name":"id","type":"InputUser[]","description":"List of user identifiers"}],"description":"Returns basic user info according to their identifiers.","throws":[{"code":401,"name":"AUTH_KEY_PERM_EMPTY","description":"The temporary auth key must be binded to the permanent auth key to use these methods."},{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"CONNECTION_NOT_INITED","description":"Connection not initialized"},{"code":400,"name":"INPUT_LAYER_INVALID","description":"The provided layer is invalid"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"}],"available":"both"},{"name":"getFullUser","id":3392185777,"returns":"UserFull","arguments":[{"name":"id","type":"InputUser","description":"User ID"}],"description":"Returns extended user info by ID.","throws":[{"code":400,"name":"CHANNEL_PRIVATE","description":"You haven't joined this channel/supergroup"},{"code":400,"name":"MSG_ID_INVALID","description":"Invalid message ID provided"},{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"both"},{"name":"setSecureValueErrors","id":2429064373,"returns":"boolean","arguments":[{"name":"id","type":"InputUser","description":"The user"},{"name":"errors","type":"SecureValueError[]","description":"Errors"}],"description":"Notify the user that the sent passport data contains some errors The user will not be able to re-submit their Passport data to you until the errors are fixed (the contents of the field for which you returned the error must change).","throws":[{"code":400,"name":"USER_ID_INVALID","description":"The provided user ID is invalid"}],"available":"both"}],"unions":[]},"bots":{"classes":[],"methods":[{"name":"sendCustomRequest","id":2854709741,"returns":"DataJSON","arguments":[{"name":"customMethod","type":"string","description":"The method name"},{"name":"params","type":"DataJSON","description":"JSON-serialized method parameters"}],"description":"Sends a custom request; for bots only","throws":[{"code":400,"name":"METHOD_INVALID","description":"The specified method is invalid"},{"code":400,"name":"USER_BOT_INVALID","description":"This method can only be called by a bot"}],"available":"bot"},{"name":"answerWebhookJSONQuery","id":3860938573,"returns":"boolean","arguments":[{"name":"queryId","type":"Long","description":"Identifier of a custom query"},{"name":"data","type":"DataJSON","description":"JSON-serialized answer to the query"}],"description":"Answers a custom query; for bots only","throws":[{"code":400,"name":"QUERY_ID_INVALID","description":"The query ID is invalid"},{"code":400,"name":"USER_BOT_INVALID","description":"This method can only be called by a bot"}],"available":"bot"},{"name":"setBotCommands","id":85399130,"returns":"boolean","arguments":[{"name":"scope","type":"BotCommandScope"},{"name":"langCode","type":"string"},{"name":"commands","type":"BotCommand[]","description":"Bot commands"}],"description":"Set bot command list","available":"both"},{"name":"resetBotCommands","id":1032708345,"returns":"boolean","arguments":[{"name":"scope","type":"BotCommandScope"},{"name":"langCode","type":"string"}]},{"name":"getBotCommands","id":3813412310,"returns":"BotCommand[]","arguments":[{"name":"scope","type":"BotCommandScope"},{"name":"langCode","type":"string"}]}],"unions":[]},"langpack":{"classes":[],"methods":[{"name":"getLangPack","id":4075959050,"returns":"LangPackDifference","arguments":[{"name":"langPack","type":"string","description":"Language pack name"},{"name":"langCode","type":"string","description":"Language code"}],"description":"Get localization pack strings","throws":[{"code":400,"name":"LANG_PACK_INVALID","description":"The provided language pack is invalid"}],"available":"user"},{"name":"getStrings","id":4025104387,"returns":"LangPackString[]","arguments":[{"name":"langPack","type":"string","description":"Language pack name"},{"name":"langCode","type":"string","description":"Language code"},{"name":"keys","type":"string[]","description":"Strings to get"}],"description":"Get strings from a language pack","throws":[{"code":400,"name":"LANG_PACK_INVALID","description":"The provided language pack is invalid"}],"available":"user"},{"name":"getDifference","id":3449309861,"returns":"LangPackDifference","arguments":[{"name":"langPack","type":"string","description":"Language pack"},{"name":"langCode","type":"string","description":"Language code"},{"name":"fromVersion","type":"number","description":"Previous localization pack version"}],"description":"Get new strings in languagepack","throws":[{"code":400,"name":"LANG_PACK_INVALID","description":"The provided language pack is invalid"}],"available":"user"},{"name":"getLanguages","id":1120311183,"returns":"LangPackLanguage[]","arguments":[{"name":"langPack","type":"string","description":"Language pack"}],"description":"Get information about all languages in a localization pack","throws":[{"code":400,"name":"LANG_PACK_INVALID","description":"The provided language pack is invalid"}],"available":"user"},{"name":"getLanguage","id":1784243458,"returns":"LangPackLanguage","arguments":[{"name":"langPack","type":"string","description":"Language pack name"},{"name":"langCode","type":"string","description":"Language code"}],"description":"Get information about a language in a localization pack","available":"user"}],"unions":[]},"folders":{"classes":[],"methods":[{"name":"editPeerFolders","id":1749536939,"returns":"Updates","arguments":[{"name":"folderPeers","type":"InputFolderPeer[]","description":"New peer list"}],"description":"Edit peers in peer folder","throws":[{"code":400,"name":"FOLDER_ID_INVALID","description":"Invalid folder ID"}],"available":"user"},{"name":"deleteFolder","id":472471681,"returns":"Updates","arguments":[{"name":"folderId","type":"number","description":"Peer folder ID, for more info click here"}],"description":"Delete a peer folder","available":"user"}],"unions":[]}}} \ No newline at end of file