From 81e94bf4a290056abc5c954ebe8ed3e43e10c873 Mon Sep 17 00:00:00 2001 From: al3x5dev Date: Sat, 18 Apr 2026 04:28:28 -0400 Subject: [PATCH] remove api.json --- api.json | 19021 ----------------------------------------------------- 1 file changed, 19021 deletions(-) delete mode 100644 api.json diff --git a/api.json b/api.json deleted file mode 100644 index 4c3af48..0000000 --- a/api.json +++ /dev/null @@ -1,19021 +0,0 @@ -{ - "version": "Bot API 9.4", - "release_date": "February 9, 2026", - "methods": { - "getUpdates": { - "href": "https://core.telegram.org/bots/api#getupdates", - "description": [ - "Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects." - ], - "returns": [ - "Array" - ], - "parameters": { - "offset": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the first update to be returned. Must be greater by one than the highest among the identifiers of previously received updates. By default, updates starting with the earliest unconfirmed update are returned. An update is considered confirmed as soon as getUpdates is called with an offset higher than its update_id. The negative offset can be specified to retrieve updates starting from -offset update from the end of the updates queue. All previous updates will be forgotten." - }, - "limit": { - "type": [ - "Integer" - ], - "required": false, - "description": "Limits the number of updates to be retrieved. Values between 1-100 are accepted. Defaults to 100." - }, - "timeout": { - "type": [ - "Integer" - ], - "required": false, - "description": "Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling. Should be positive, short polling should be used for testing purposes only." - }, - "allowed_updates": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of the update types you want your bot to receive. For example, specify [\"message\", \"edited_channel_post\", \"callback_query\"] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all update types except chat_member, message_reaction, and message_reaction_count (default). If not specified, the previous setting will be used.Please note that this parameter doesn't affect updates created before the call to getUpdates, so unwanted updates may be received for a short period of time." - } - } - }, - "setWebhook": { - "href": "https://core.telegram.org/bots/api#setwebhook", - "description": [ - "Use this method to specify a URL and receive incoming updates via an outgoing webhook. Whenever there is an update for the bot, we will send an HTTPS POST request to the specified URL, containing a JSON-serialized Update. In case of an unsuccessful request (a request with response HTTP status code different from 2XY), we will repeat the request and give up after a reasonable amount of attempts. Returns True on success.", - "If you'd like to make sure that the webhook was set by you, you can specify secret data in the parameter secret_token. If specified, the request will contain a header \u201cX-Telegram-Bot-Api-Secret-Token\u201d with the secret token as content." - ], - "returns": [ - "True" - ], - "parameters": { - "url": { - "type": [ - "String" - ], - "required": true, - "description": "HTTPS URL to send updates to. Use an empty string to remove webhook integration" - }, - "certificate": { - "type": [ - "InputFile" - ], - "required": false, - "description": "Upload your public key certificate so that the root certificate in use can be checked. See our self-signed guide for details." - }, - "ip_address": { - "type": [ - "String" - ], - "required": false, - "description": "The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS" - }, - "max_connections": { - "type": [ - "Integer" - ], - "required": false, - "description": "The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to 40. Use lower values to limit the load on your bot's server, and higher values to increase your bot's throughput." - }, - "allowed_updates": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of the update types you want your bot to receive. For example, specify [\"message\", \"edited_channel_post\", \"callback_query\"] to only receive updates of these types. See Update for a complete list of available update types. Specify an empty list to receive all update types except chat_member, message_reaction, and message_reaction_count (default). If not specified, the previous setting will be used.Please note that this parameter doesn't affect updates created before the call to the setWebhook, so unwanted updates may be received for a short period of time." - }, - "drop_pending_updates": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to drop all pending updates" - }, - "secret_token": { - "type": [ - "String" - ], - "required": false, - "description": "A secret token to be sent in a header \u201cX-Telegram-Bot-Api-Secret-Token\u201d in every webhook request, 1-256 characters. Only characters A-Z, a-z, 0-9, _ and - are allowed. The header is useful to ensure that the request comes from a webhook set by you." - } - } - }, - "deleteWebhook": { - "href": "https://core.telegram.org/bots/api#deletewebhook", - "description": [ - "Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "drop_pending_updates": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to drop all pending updates" - } - } - }, - "getWebhookInfo": { - "href": "https://core.telegram.org/bots/api#getwebhookinfo", - "description": [ - "Use this method to get current webhook status. Requires no parameters. On success, returns a WebhookInfo object. If the bot is using getUpdates, will return an object with the url field empty." - ], - "returns": [ - "WebhookInfo" - ] - }, - "getMe": { - "href": "https://core.telegram.org/bots/api#getme", - "description": [ - "A simple method for testing your bot's authentication token. Requires no parameters. Returns basic information about the bot in form of a User object." - ], - "returns": [ - "User" - ] - }, - "logOut": { - "href": "https://core.telegram.org/bots/api#logout", - "description": [ - "Use this method to log out from the cloud Bot API server before launching the bot locally. You must log out the bot before running it locally, otherwise there is no guarantee that the bot will receive updates. After a successful call, you can immediately log in on a local server, but will not be able to log in back to the cloud Bot API server for 10 minutes. Returns True on success. Requires no parameters." - ], - "returns": [ - "True" - ] - }, - "close": { - "href": "https://core.telegram.org/bots/api#close", - "description": [ - "Use this method to close the bot instance before moving it from one local server to another. You need to delete the webhook before calling this method to ensure that the bot isn't launched again after server restart. The method will return error 429 in the first 10 minutes after the bot is launched. Returns True on success. Requires no parameters." - ], - "returns": [ - "True" - ] - }, - "sendMessage": { - "href": "https://core.telegram.org/bots/api#sendmessage", - "description": [ - "Use this method to send text messages. On success, the sent Message is returned." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "text": { - "type": [ - "String" - ], - "required": true, - "description": "Text of the message to be sent, 1-4096 characters after entities parsing" - }, - "parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the message text. See formatting options for more details." - }, - "entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode" - }, - "link_preview_options": { - "type": [ - "LinkPreviewOptions" - ], - "required": false, - "description": "Link preview generation options for the message" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "forwardMessage": { - "href": "https://core.telegram.org/bots/api#forwardmessage", - "description": [ - "Use this method to forward messages of any kind. Service messages and messages with protected content can't be forwarded. On success, the sent Message is returned." - ], - "returns": [ - "Message" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be forwarded; required if the message is forwarded to a direct messages chat" - }, - "from_chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)" - }, - "video_start_timestamp": { - "type": [ - "Integer" - ], - "required": false, - "description": "New start timestamp for the forwarded video in the message" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the forwarded message from forwarding and saving" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; only available when forwarding to private chats" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Message identifier in the chat specified in from_chat_id" - } - } - }, - "forwardMessages": { - "href": "https://core.telegram.org/bots/api#forwardmessages", - "description": [ - "Use this method to forward multiple messages of any kind. If some of the specified messages can't be found or forwarded, they are skipped. Service messages and messages with protected content can't be forwarded. Album grouping is kept for forwarded messages. On success, an array of MessageId of the sent messages is returned." - ], - "returns": [ - "Array" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the messages will be forwarded; required if the messages are forwarded to a direct messages chat" - }, - "from_chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the chat where the original messages were sent (or channel username in the format @channelusername)" - }, - "message_ids": { - "type": [ - "Array" - ], - "required": true, - "description": "A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to forward. The identifiers must be specified in a strictly increasing order." - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the messages silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the forwarded messages from forwarding and saving" - } - } - }, - "copyMessage": { - "href": "https://core.telegram.org/bots/api#copymessage", - "description": [ - "Use this method to copy messages of any kind. Service messages, paid media messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz poll can be copied only if the value of the field correct_option_id is known to the bot. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message. Returns the MessageId of the sent message on success." - ], - "returns": [ - "MessageId" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "from_chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Message identifier in the chat specified in from_chat_id" - }, - "video_start_timestamp": { - "type": [ - "Integer" - ], - "required": false, - "description": "New start timestamp for the copied video in the message" - }, - "caption": { - "type": [ - "String" - ], - "required": false, - "description": "New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept" - }, - "parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the new caption. See formatting options for more details." - }, - "caption_entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in the new caption, which can be specified instead of parse_mode" - }, - "show_caption_above_media": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified." - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; only available when copying to private chats" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "copyMessages": { - "href": "https://core.telegram.org/bots/api#copymessages", - "description": [ - "Use this method to copy messages of any kind. If some of the specified messages can't be found or copied, they are skipped. Service messages, paid media messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz poll can be copied only if the value of the field correct_option_id is known to the bot. The method is analogous to the method forwardMessages, but the copied messages don't have a link to the original message. Album grouping is kept for copied messages. On success, an array of MessageId of the sent messages is returned." - ], - "returns": [ - "Array" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the messages will be sent; required if the messages are sent to a direct messages chat" - }, - "from_chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the chat where the original messages were sent (or channel username in the format @channelusername)" - }, - "message_ids": { - "type": [ - "Array" - ], - "required": true, - "description": "A JSON-serialized list of 1-100 identifiers of messages in the chat from_chat_id to copy. The identifiers must be specified in a strictly increasing order." - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the messages silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent messages from forwarding and saving" - }, - "remove_caption": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to copy the messages without their captions" - } - } - }, - "sendPhoto": { - "href": "https://core.telegram.org/bots/api#sendphoto", - "description": [ - "Use this method to send photos. On success, the sent Message is returned." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "photo": { - "type": [ - "InputFile", - "String" - ], - "required": true, - "description": "Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data. The photo must be at most 10 MB in size. The photo's width and height must not exceed 10000 in total. Width and height ratio must be at most 20. More information on Sending Files \u00bb" - }, - "caption": { - "type": [ - "String" - ], - "required": false, - "description": "Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing" - }, - "parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the photo caption. See formatting options for more details." - }, - "caption_entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" - }, - "show_caption_above_media": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True, if the caption must be shown above the message media" - }, - "has_spoiler": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the photo needs to be covered with a spoiler animation" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "sendAudio": { - "href": "https://core.telegram.org/bots/api#sendaudio", - "description": [ - "Use this method to send audio files, if you want Telegram clients to display them in the music player. Your audio must be in the .MP3 or .M4A format. On success, the sent Message is returned. Bots can currently send audio files of up to 50 MB in size, this limit may be changed in the future.", - "For sending voice messages, use the sendVoice method instead." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "audio": { - "type": [ - "InputFile", - "String" - ], - "required": true, - "description": "Audio file to send. Pass a file_id as String to send an audio file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an audio file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files \u00bb" - }, - "caption": { - "type": [ - "String" - ], - "required": false, - "description": "Audio caption, 0-1024 characters after entities parsing" - }, - "parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the audio caption. See formatting options for more details." - }, - "caption_entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" - }, - "duration": { - "type": [ - "Integer" - ], - "required": false, - "description": "Duration of the audio in seconds" - }, - "performer": { - "type": [ - "String" - ], - "required": false, - "description": "Performer" - }, - "title": { - "type": [ - "String" - ], - "required": false, - "description": "Track name" - }, - "thumbnail": { - "type": [ - "InputFile", - "String" - ], - "required": false, - "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass \u201cattach://\u201d if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files \u00bb" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "sendDocument": { - "href": "https://core.telegram.org/bots/api#senddocument", - "description": [ - "Use this method to send general files. On success, the sent Message is returned. Bots can currently send files of any type of up to 50 MB in size, this limit may be changed in the future." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "document": { - "type": [ - "InputFile", - "String" - ], - "required": true, - "description": "File to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files \u00bb" - }, - "thumbnail": { - "type": [ - "InputFile", - "String" - ], - "required": false, - "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass \u201cattach://\u201d if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files \u00bb" - }, - "caption": { - "type": [ - "String" - ], - "required": false, - "description": "Document caption (may also be used when resending documents by file_id), 0-1024 characters after entities parsing" - }, - "parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the document caption. See formatting options for more details." - }, - "caption_entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" - }, - "disable_content_type_detection": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Disables automatic server-side content type detection for files uploaded using multipart/form-data" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "sendVideo": { - "href": "https://core.telegram.org/bots/api#sendvideo", - "description": [ - "Use this method to send video files, Telegram clients support MPEG4 videos (other formats may be sent as Document). On success, the sent Message is returned. Bots can currently send video files of up to 50 MB in size, this limit may be changed in the future." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "video": { - "type": [ - "InputFile", - "String" - ], - "required": true, - "description": "Video to send. Pass a file_id as String to send a video that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a video from the Internet, or upload a new video using multipart/form-data. More information on Sending Files \u00bb" - }, - "duration": { - "type": [ - "Integer" - ], - "required": false, - "description": "Duration of sent video in seconds" - }, - "width": { - "type": [ - "Integer" - ], - "required": false, - "description": "Video width" - }, - "height": { - "type": [ - "Integer" - ], - "required": false, - "description": "Video height" - }, - "thumbnail": { - "type": [ - "InputFile", - "String" - ], - "required": false, - "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass \u201cattach://\u201d if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files \u00bb" - }, - "cover": { - "type": [ - "InputFile", - "String" - ], - "required": false, - "description": "Cover for the video in the message. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass \u201cattach://\u201d to upload a new one using multipart/form-data under name. More information on Sending Files \u00bb" - }, - "start_timestamp": { - "type": [ - "Integer" - ], - "required": false, - "description": "Start timestamp for the video in the message" - }, - "caption": { - "type": [ - "String" - ], - "required": false, - "description": "Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities parsing" - }, - "parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the video caption. See formatting options for more details." - }, - "caption_entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" - }, - "show_caption_above_media": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True, if the caption must be shown above the message media" - }, - "has_spoiler": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the video needs to be covered with a spoiler animation" - }, - "supports_streaming": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the uploaded video is suitable for streaming" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "sendAnimation": { - "href": "https://core.telegram.org/bots/api#sendanimation", - "description": [ - "Use this method to send animation files (GIF or H.264/MPEG-4 AVC video without sound). On success, the sent Message is returned. Bots can currently send animation files of up to 50 MB in size, this limit may be changed in the future." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "animation": { - "type": [ - "InputFile", - "String" - ], - "required": true, - "description": "Animation to send. Pass a file_id as String to send an animation that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get an animation from the Internet, or upload a new animation using multipart/form-data. More information on Sending Files \u00bb" - }, - "duration": { - "type": [ - "Integer" - ], - "required": false, - "description": "Duration of sent animation in seconds" - }, - "width": { - "type": [ - "Integer" - ], - "required": false, - "description": "Animation width" - }, - "height": { - "type": [ - "Integer" - ], - "required": false, - "description": "Animation height" - }, - "thumbnail": { - "type": [ - "InputFile", - "String" - ], - "required": false, - "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass \u201cattach://\u201d if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files \u00bb" - }, - "caption": { - "type": [ - "String" - ], - "required": false, - "description": "Animation caption (may also be used when resending animation by file_id), 0-1024 characters after entities parsing" - }, - "parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the animation caption. See formatting options for more details." - }, - "caption_entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" - }, - "show_caption_above_media": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True, if the caption must be shown above the message media" - }, - "has_spoiler": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the animation needs to be covered with a spoiler animation" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "sendVoice": { - "href": "https://core.telegram.org/bots/api#sendvoice", - "description": [ - "Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in .M4A format (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "voice": { - "type": [ - "InputFile", - "String" - ], - "required": true, - "description": "Audio file to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files \u00bb" - }, - "caption": { - "type": [ - "String" - ], - "required": false, - "description": "Voice message caption, 0-1024 characters after entities parsing" - }, - "parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the voice message caption. See formatting options for more details." - }, - "caption_entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" - }, - "duration": { - "type": [ - "Integer" - ], - "required": false, - "description": "Duration of the voice message in seconds" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "sendVideoNote": { - "href": "https://core.telegram.org/bots/api#sendvideonote", - "description": [ - "As of v.4.0, Telegram clients support rounded square MPEG4 videos of up to 1 minute long. Use this method to send video messages. On success, the sent Message is returned." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "video_note": { - "type": [ - "InputFile", - "String" - ], - "required": true, - "description": "Video note to send. Pass a file_id as String to send a video note that exists on the Telegram servers (recommended) or upload a new video using multipart/form-data. More information on Sending Files \u00bb. Sending video notes by a URL is currently unsupported" - }, - "duration": { - "type": [ - "Integer" - ], - "required": false, - "description": "Duration of sent video in seconds" - }, - "length": { - "type": [ - "Integer" - ], - "required": false, - "description": "Video width and height, i.e. diameter of the video message" - }, - "thumbnail": { - "type": [ - "InputFile", - "String" - ], - "required": false, - "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass \u201cattach://\u201d if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files \u00bb" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "sendPaidMedia": { - "href": "https://core.telegram.org/bots/api#sendpaidmedia", - "description": [ - "Use this method to send paid media. On success, the sent Message is returned." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername). If the chat is a channel, all Telegram Star proceeds from this media will be credited to the chat's balance. Otherwise, they will be credited to the bot's balance." - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "star_count": { - "type": [ - "Integer" - ], - "required": true, - "description": "The number of Telegram Stars that must be paid to buy access to the media; 1-25000" - }, - "media": { - "type": [ - "Array" - ], - "required": true, - "description": "A JSON-serialized array describing the media to be sent; up to 10 items" - }, - "payload": { - "type": [ - "String" - ], - "required": false, - "description": "Bot-defined paid media payload, 0-128 bytes. This will not be displayed to the user, use it for your internal processes." - }, - "caption": { - "type": [ - "String" - ], - "required": false, - "description": "Media caption, 0-1024 characters after entities parsing" - }, - "parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the media caption. See formatting options for more details." - }, - "caption_entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" - }, - "show_caption_above_media": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True, if the caption must be shown above the message media" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "sendMediaGroup": { - "href": "https://core.telegram.org/bots/api#sendmediagroup", - "description": [ - "Use this method to send a group of photos, videos, documents or audios as an album. Documents and audio files can be only grouped in an album with messages of the same type. On success, an array of Message objects that were sent is returned." - ], - "returns": [ - "Array" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the messages will be sent; required if the messages are sent to a direct messages chat" - }, - "media": { - "type": [ - "Array", - "Array", - "Array", - "Array" - ], - "required": true, - "description": "A JSON-serialized array describing messages to be sent, must include 2-10 items" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends messages silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent messages from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - } - } - }, - "sendLocation": { - "href": "https://core.telegram.org/bots/api#sendlocation", - "description": [ - "Use this method to send point on the map. On success, the sent Message is returned." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "latitude": { - "type": [ - "Float" - ], - "required": true, - "description": "Latitude of the location" - }, - "longitude": { - "type": [ - "Float" - ], - "required": true, - "description": "Longitude of the location" - }, - "horizontal_accuracy": { - "type": [ - "Float" - ], - "required": false, - "description": "The radius of uncertainty for the location, measured in meters; 0-1500" - }, - "live_period": { - "type": [ - "Integer" - ], - "required": false, - "description": "Period in seconds during which the location will be updated (see Live Locations, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely." - }, - "heading": { - "type": [ - "Integer" - ], - "required": false, - "description": "For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified." - }, - "proximity_alert_radius": { - "type": [ - "Integer" - ], - "required": false, - "description": "For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified." - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "sendVenue": { - "href": "https://core.telegram.org/bots/api#sendvenue", - "description": [ - "Use this method to send information about a venue. On success, the sent Message is returned." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "latitude": { - "type": [ - "Float" - ], - "required": true, - "description": "Latitude of the venue" - }, - "longitude": { - "type": [ - "Float" - ], - "required": true, - "description": "Longitude of the venue" - }, - "title": { - "type": [ - "String" - ], - "required": true, - "description": "Name of the venue" - }, - "address": { - "type": [ - "String" - ], - "required": true, - "description": "Address of the venue" - }, - "foursquare_id": { - "type": [ - "String" - ], - "required": false, - "description": "Foursquare identifier of the venue" - }, - "foursquare_type": { - "type": [ - "String" - ], - "required": false, - "description": "Foursquare type of the venue, if known. (For example, \u201carts_entertainment/default\u201d, \u201carts_entertainment/aquarium\u201d or \u201cfood/icecream\u201d.)" - }, - "google_place_id": { - "type": [ - "String" - ], - "required": false, - "description": "Google Places identifier of the venue" - }, - "google_place_type": { - "type": [ - "String" - ], - "required": false, - "description": "Google Places type of the venue. (See supported types.)" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "sendContact": { - "href": "https://core.telegram.org/bots/api#sendcontact", - "description": [ - "Use this method to send phone contacts. On success, the sent Message is returned." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "phone_number": { - "type": [ - "String" - ], - "required": true, - "description": "Contact's phone number" - }, - "first_name": { - "type": [ - "String" - ], - "required": true, - "description": "Contact's first name" - }, - "last_name": { - "type": [ - "String" - ], - "required": false, - "description": "Contact's last name" - }, - "vcard": { - "type": [ - "String" - ], - "required": false, - "description": "Additional data about the contact in the form of a vCard, 0-2048 bytes" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "sendPoll": { - "href": "https://core.telegram.org/bots/api#sendpoll", - "description": [ - "Use this method to send a native poll. On success, the sent Message is returned." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername). Polls can't be sent to channel direct messages chats." - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "question": { - "type": [ - "String" - ], - "required": true, - "description": "Poll question, 1-300 characters" - }, - "question_parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the question. See formatting options for more details. Currently, only custom emoji entities are allowed" - }, - "question_entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in the poll question. It can be specified instead of question_parse_mode" - }, - "options": { - "type": [ - "Array" - ], - "required": true, - "description": "A JSON-serialized list of 2-12 answer options" - }, - "is_anonymous": { - "type": [ - "Boolean" - ], - "required": false, - "description": "True, if the poll needs to be anonymous, defaults to True" - }, - "type": { - "type": [ - "String" - ], - "required": false, - "description": "Poll type, \u201cquiz\u201d or \u201cregular\u201d, defaults to \u201cregular\u201d" - }, - "allows_multiple_answers": { - "type": [ - "Boolean" - ], - "required": false, - "description": "True, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False" - }, - "correct_option_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "0-based identifier of the correct answer option, required for polls in quiz mode" - }, - "explanation": { - "type": [ - "String" - ], - "required": false, - "description": "Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters with at most 2 line feeds after entities parsing" - }, - "explanation_parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the explanation. See formatting options for more details." - }, - "explanation_entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in the poll explanation. It can be specified instead of explanation_parse_mode" - }, - "open_period": { - "type": [ - "Integer" - ], - "required": false, - "description": "Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date." - }, - "close_date": { - "type": [ - "Integer" - ], - "required": false, - "description": "Point in time (Unix timestamp) 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 open_period." - }, - "is_closed": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the poll needs to be immediately closed. This can be useful for poll preview." - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "sendChecklist": { - "href": "https://core.telegram.org/bots/api#sendchecklist", - "description": [ - "Use this method to send a checklist on behalf of a connected business account. On success, the sent Message is returned." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier for the target chat" - }, - "checklist": { - "type": [ - "InputChecklist" - ], - "required": true, - "description": "A JSON-serialized object for the checklist to send" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message" - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "A JSON-serialized object for description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup" - ], - "required": false, - "description": "A JSON-serialized object for an inline keyboard" - } - } - }, - "sendDice": { - "href": "https://core.telegram.org/bots/api#senddice", - "description": [ - "Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "emoji": { - "type": [ - "String" - ], - "required": false, - "description": "Emoji on which the dice throw animation is based. Currently, must be one of \u201c\u201d, \u201c\u201d, \u201c\u201d, \u201c\u201d, \u201c\u201d, or \u201c\u201d. Dice can have values 1-6 for \u201c\u201d, \u201c\u201d and \u201c\u201d, values 1-5 for \u201c\u201d and \u201c\u201d, and values 1-64 for \u201c\u201d. Defaults to \u201c\u201d" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "sendMessageDraft": { - "href": "https://core.telegram.org/bots/api#sendmessagedraft", - "description": [ - "Use this method to stream a partial message to a user while the message is being generated; supported only for bots with forum topic mode enabled. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier for the target private chat" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread" - }, - "draft_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the message draft; must be non-zero. Changes of drafts with the same identifier are animated" - }, - "text": { - "type": [ - "String" - ], - "required": true, - "description": "Text of the message to be sent, 1-4096 characters after entities parsing" - }, - "parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the message text. See formatting options for more details." - }, - "entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode" - } - } - }, - "sendChatAction": { - "href": "https://core.telegram.org/bots/api#sendchataction", - "description": [ - "Use this method when you need to tell the user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status). Returns True on success.", - "We only recommend using this method when a response from the bot will take a noticeable amount of time to arrive." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the action will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername). Channel chats and channel direct messages chats aren't supported." - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread or topic of a forum; for supergroups and private chats of bots with forum topic mode enabled only" - }, - "action": { - "type": [ - "String" - ], - "required": true, - "description": "Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for text messages, upload_photo for photos, record_video or upload_video for videos, record_voice or upload_voice for voice notes, upload_document for general files, choose_sticker for stickers, find_location for location data, record_video_note or upload_video_note for video notes." - } - } - }, - "setMessageReaction": { - "href": "https://core.telegram.org/bots/api#setmessagereaction", - "description": [ - "Use this method to change the chosen reactions on a message. Service messages of some types can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Bots can't use paid reactions. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Identifier of the target message. If the message belongs to a media group, the reaction is set to the first non-deleted message in the group instead." - }, - "reaction": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of reaction types to set on the message. Currently, as non-premium users, bots can set up to one reaction per message. A custom emoji reaction can be used if it is either already present on the message or explicitly allowed by chat administrators. Paid reactions can't be used by bots." - }, - "is_big": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to set the reaction with a big animation" - } - } - }, - "getUserProfilePhotos": { - "href": "https://core.telegram.org/bots/api#getuserprofilephotos", - "description": [ - "Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object." - ], - "returns": [ - "UserProfilePhotos" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user" - }, - "offset": { - "type": [ - "Integer" - ], - "required": false, - "description": "Sequential number of the first photo to be returned. By default, all photos are returned." - }, - "limit": { - "type": [ - "Integer" - ], - "required": false, - "description": "Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100." - } - } - }, - "getUserProfileAudios": { - "href": "https://core.telegram.org/bots/api#getuserprofileaudios", - "description": [ - "Use this method to get a list of profile audios for a user. Returns a UserProfileAudios object." - ], - "returns": [ - "UserProfileAudios" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user" - }, - "offset": { - "type": [ - "Integer" - ], - "required": false, - "description": "Sequential number of the first audio to be returned. By default, all audios are returned." - }, - "limit": { - "type": [ - "Integer" - ], - "required": false, - "description": "Limits the number of audios to be retrieved. Values between 1-100 are accepted. Defaults to 100." - } - } - }, - "setUserEmojiStatus": { - "href": "https://core.telegram.org/bots/api#setuseremojistatus", - "description": [ - "Changes the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method requestEmojiStatusAccess. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user" - }, - "emoji_status_custom_emoji_id": { - "type": [ - "String" - ], - "required": false, - "description": "Custom emoji identifier of the emoji status to set. Pass an empty string to remove the status." - }, - "emoji_status_expiration_date": { - "type": [ - "Integer" - ], - "required": false, - "description": "Expiration date of the emoji status, if any" - } - } - }, - "getFile": { - "href": "https://core.telegram.org/bots/api#getfile", - "description": [ - "Use this method to get basic information about a file and prepare it for downloading. For the moment, bots can download files of up to 20MB in size. On success, a File object is returned. The file can then be downloaded via the link https://api.telegram.org/file/bot/, where is taken from the response. It is guaranteed that the link will be valid for at least 1 hour. When the link expires, a new one can be requested by calling getFile again.", - "Note: This function may not preserve the original file name and MIME type. You should save the file's MIME type and name (if available) when the File object is received." - ], - "returns": [ - "File" - ], - "parameters": { - "file_id": { - "type": [ - "String" - ], - "required": true, - "description": "File identifier to get information about" - } - } - }, - "banChatMember": { - "href": "https://core.telegram.org/bots/api#banchatmember", - "description": [ - "Use this method to ban a user in a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the chat on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)" - }, - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user" - }, - "until_date": { - "type": [ - "Integer" - ], - "required": false, - "description": "Date when the user will be unbanned; Unix time. If user is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever. Applied for supergroups and channels only." - }, - "revoke_messages": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to delete all messages from the chat for the user that is being removed. If False, the user will be able to see messages in the group that were sent before the user was removed. Always True for supergroups and channels." - } - } - }, - "unbanChatMember": { - "href": "https://core.telegram.org/bots/api#unbanchatmember", - "description": [ - "Use this method to unban a previously banned user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work. By default, this method guarantees that after the call the user is not a member of the chat, but will be able to join it. So if the user is a member of the chat they will also be removed from the chat. If you don't want this, use the parameter only_if_banned. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)" - }, - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user" - }, - "only_if_banned": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Do nothing if the user is not banned" - } - } - }, - "restrictChatMember": { - "href": "https://core.telegram.org/bots/api#restrictchatmember", - "description": [ - "Use this method to restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the appropriate administrator rights. Pass True for all permissions to lift restrictions from a user. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - }, - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user" - }, - "permissions": { - "type": [ - "ChatPermissions" - ], - "required": true, - "description": "A JSON-serialized object for new user permissions" - }, - "use_independent_chat_permissions": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_add_web_page_previews permissions will imply the can_send_messages, can_send_audios, can_send_documents, can_send_photos, can_send_videos, can_send_video_notes, and can_send_voice_notes permissions; the can_send_polls permission will imply the can_send_messages permission." - }, - "until_date": { - "type": [ - "Integer" - ], - "required": false, - "description": "Date when restrictions will be lifted for the user; Unix time. If user is restricted for more than 366 days or less than 30 seconds from the current time, they are considered to be restricted forever" - } - } - }, - "promoteChatMember": { - "href": "https://core.telegram.org/bots/api#promotechatmember", - "description": [ - "Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Pass False for all boolean parameters to demote a user. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user" - }, - "is_anonymous": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the administrator's presence in the chat is hidden" - }, - "can_manage_chat": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other administrator privilege." - }, - "can_delete_messages": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the administrator can delete messages of other users" - }, - "can_manage_video_chats": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the administrator can manage video chats" - }, - "can_restrict_members": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the administrator can restrict, ban or unban chat members, or access supergroup statistics. For backward compatibility, defaults to True for promotions of channel administrators" - }, - "can_promote_members": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the administrator can add new administrators with a subset of their own privileges or demote administrators that they have promoted, directly or indirectly (promoted by administrators that were appointed by him)" - }, - "can_change_info": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the administrator can change chat title, photo and other settings" - }, - "can_invite_users": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the administrator can invite new users to the chat" - }, - "can_post_stories": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the administrator can post stories to the chat" - }, - "can_edit_stories": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access the chat's story archive" - }, - "can_delete_stories": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the administrator can delete stories posted by other users" - }, - "can_post_messages": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the administrator can post messages in the channel, approve suggested posts, or access channel statistics; for channels only" - }, - "can_edit_messages": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the administrator can edit messages of other users and can pin messages; for channels only" - }, - "can_pin_messages": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the administrator can pin messages; for supergroups only" - }, - "can_manage_topics": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only" - }, - "can_manage_direct_messages": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the administrator can manage direct messages within the channel and decline suggested posts; for channels only" - } - } - }, - "setChatAdministratorCustomTitle": { - "href": "https://core.telegram.org/bots/api#setchatadministratorcustomtitle", - "description": [ - "Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - }, - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user" - }, - "custom_title": { - "type": [ - "String" - ], - "required": true, - "description": "New custom title for the administrator; 0-16 characters, emoji are not allowed" - } - } - }, - "banChatSenderChat": { - "href": "https://core.telegram.org/bots/api#banchatsenderchat", - "description": [ - "Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "sender_chat_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target sender chat" - } - } - }, - "unbanChatSenderChat": { - "href": "https://core.telegram.org/bots/api#unbanchatsenderchat", - "description": [ - "Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "sender_chat_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target sender chat" - } - } - }, - "setChatPermissions": { - "href": "https://core.telegram.org/bots/api#setchatpermissions", - "description": [ - "Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members administrator rights. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - }, - "permissions": { - "type": [ - "ChatPermissions" - ], - "required": true, - "description": "A JSON-serialized object for new default chat permissions" - }, - "use_independent_chat_permissions": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if chat permissions are set independently. Otherwise, the can_send_other_messages and can_add_web_page_previews permissions will imply the can_send_messages, can_send_audios, can_send_documents, can_send_photos, can_send_videos, can_send_video_notes, and can_send_voice_notes permissions; the can_send_polls permission will imply the can_send_messages permission." - } - } - }, - "exportChatInviteLink": { - "href": "https://core.telegram.org/bots/api#exportchatinvitelink", - "description": [ - "Use this method to generate a new primary invite link for a chat; any previously generated primary link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the new invite link as String on success." - ], - "returns": [ - "String" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - } - } - }, - "createChatInviteLink": { - "href": "https://core.telegram.org/bots/api#createchatinvitelink", - "description": [ - "Use this method to create an additional invite link for a chat. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. The link can be revoked using the method revokeChatInviteLink. Returns the new invite link as ChatInviteLink object." - ], - "returns": [ - "ChatInviteLink" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "name": { - "type": [ - "String" - ], - "required": false, - "description": "Invite link name; 0-32 characters" - }, - "expire_date": { - "type": [ - "Integer" - ], - "required": false, - "description": "Point in time (Unix timestamp) when the link will expire" - }, - "member_limit": { - "type": [ - "Integer" - ], - "required": false, - "description": "The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999" - }, - "creates_join_request": { - "type": [ - "Boolean" - ], - "required": false, - "description": "True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified" - } - } - }, - "editChatInviteLink": { - "href": "https://core.telegram.org/bots/api#editchatinvitelink", - "description": [ - "Use this method to edit a non-primary invite link created by the bot. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the edited invite link as a ChatInviteLink object." - ], - "returns": [ - "ChatInviteLink" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "invite_link": { - "type": [ - "String" - ], - "required": true, - "description": "The invite link to edit" - }, - "name": { - "type": [ - "String" - ], - "required": false, - "description": "Invite link name; 0-32 characters" - }, - "expire_date": { - "type": [ - "Integer" - ], - "required": false, - "description": "Point in time (Unix timestamp) when the link will expire" - }, - "member_limit": { - "type": [ - "Integer" - ], - "required": false, - "description": "The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999" - }, - "creates_join_request": { - "type": [ - "Boolean" - ], - "required": false, - "description": "True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified" - } - } - }, - "createChatSubscriptionInviteLink": { - "href": "https://core.telegram.org/bots/api#createchatsubscriptioninvitelink", - "description": [ - "Use this method to create a subscription invite link for a channel chat. The bot must have the can_invite_users administrator rights. The link can be edited using the method editChatSubscriptionInviteLink or revoked using the method revokeChatInviteLink. Returns the new invite link as a ChatInviteLink object." - ], - "returns": [ - "ChatInviteLink" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target channel chat or username of the target channel (in the format @channelusername)" - }, - "name": { - "type": [ - "String" - ], - "required": false, - "description": "Invite link name; 0-32 characters" - }, - "subscription_period": { - "type": [ - "Integer" - ], - "required": true, - "description": "The number of seconds the subscription will be active for before the next payment. Currently, it must always be 2592000 (30 days)." - }, - "subscription_price": { - "type": [ - "Integer" - ], - "required": true, - "description": "The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat; 1-10000" - } - } - }, - "editChatSubscriptionInviteLink": { - "href": "https://core.telegram.org/bots/api#editchatsubscriptioninvitelink", - "description": [ - "Use this method to edit a subscription invite link created by the bot. The bot must have the can_invite_users administrator rights. Returns the edited invite link as a ChatInviteLink object." - ], - "returns": [ - "ChatInviteLink" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "invite_link": { - "type": [ - "String" - ], - "required": true, - "description": "The invite link to edit" - }, - "name": { - "type": [ - "String" - ], - "required": false, - "description": "Invite link name; 0-32 characters" - } - } - }, - "revokeChatInviteLink": { - "href": "https://core.telegram.org/bots/api#revokechatinvitelink", - "description": [ - "Use this method to revoke an invite link created by the bot. If the primary link is revoked, a new link is automatically generated. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the revoked invite link as ChatInviteLink object." - ], - "returns": [ - "ChatInviteLink" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier of the target chat or username of the target channel (in the format @channelusername)" - }, - "invite_link": { - "type": [ - "String" - ], - "required": true, - "description": "The invite link to revoke" - } - } - }, - "approveChatJoinRequest": { - "href": "https://core.telegram.org/bots/api#approvechatjoinrequest", - "description": [ - "Use this method to approve a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user" - } - } - }, - "declineChatJoinRequest": { - "href": "https://core.telegram.org/bots/api#declinechatjoinrequest", - "description": [ - "Use this method to decline a chat join request. The bot must be an administrator in the chat for this to work and must have the can_invite_users administrator right. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user" - } - } - }, - "setChatPhoto": { - "href": "https://core.telegram.org/bots/api#setchatphoto", - "description": [ - "Use this method to set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "photo": { - "type": [ - "InputFile" - ], - "required": true, - "description": "New chat photo, uploaded using multipart/form-data" - } - } - }, - "deleteChatPhoto": { - "href": "https://core.telegram.org/bots/api#deletechatphoto", - "description": [ - "Use this method to delete a chat photo. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - } - } - }, - "setChatTitle": { - "href": "https://core.telegram.org/bots/api#setchattitle", - "description": [ - "Use this method to change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "title": { - "type": [ - "String" - ], - "required": true, - "description": "New chat title, 1-128 characters" - } - } - }, - "setChatDescription": { - "href": "https://core.telegram.org/bots/api#setchatdescription", - "description": [ - "Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "description": { - "type": [ - "String" - ], - "required": false, - "description": "New chat description, 0-255 characters" - } - } - }, - "pinChatMessage": { - "href": "https://core.telegram.org/bots/api#pinchatmessage", - "description": [ - "Use this method to add a message to the list of pinned messages in a chat. In private chats and channel direct messages chats, all non-service messages can be pinned. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to pin messages in groups and channels respectively. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be pinned" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Identifier of a message to pin" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels and private chats." - } - } - }, - "unpinChatMessage": { - "href": "https://core.telegram.org/bots/api#unpinchatmessage", - "description": [ - "Use this method to remove a message from the list of pinned messages in a chat. In private chats and channel direct messages chats, all messages can be unpinned. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to unpin messages in groups and channels respectively. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be unpinned" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the message to unpin. Required if business_connection_id is specified. If not specified, the most recent pinned message (by sending date) will be unpinned." - } - } - }, - "unpinAllChatMessages": { - "href": "https://core.telegram.org/bots/api#unpinallchatmessages", - "description": [ - "Use this method to clear the list of pinned messages in a chat. In private chats and channel direct messages chats, no additional rights are required to unpin all pinned messages. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to unpin all pinned messages in groups and channels respectively. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - } - } - }, - "leaveChat": { - "href": "https://core.telegram.org/bots/api#leavechat", - "description": [ - "Use this method for your bot to leave a group, supergroup or channel. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername). Channel direct messages chats aren't supported; leave the corresponding channel instead." - } - } - }, - "getChat": { - "href": "https://core.telegram.org/bots/api#getchat", - "description": [ - "Use this method to get up-to-date information about the chat. Returns a ChatFullInfo object on success." - ], - "returns": [ - "ChatFullInfo" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)" - } - } - }, - "getChatAdministrators": { - "href": "https://core.telegram.org/bots/api#getchatadministrators", - "description": [ - "Use this method to get a list of administrators in a chat, which aren't bots. Returns an Array of ChatMember objects." - ], - "returns": [ - "Array" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)" - } - } - }, - "getChatMemberCount": { - "href": "https://core.telegram.org/bots/api#getchatmembercount", - "description": [ - "Use this method to get the number of members in a chat. Returns Int on success." - ], - "returns": [ - "Int" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)" - } - } - }, - "getChatMember": { - "href": "https://core.telegram.org/bots/api#getchatmember", - "description": [ - "Use this method to get information about a member of a chat. The method is only guaranteed to work for other users if the bot is an administrator in the chat. Returns a ChatMember object on success." - ], - "returns": [ - "ChatMember" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)" - }, - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user" - } - } - }, - "setChatStickerSet": { - "href": "https://core.telegram.org/bots/api#setchatstickerset", - "description": [ - "Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - }, - "sticker_set_name": { - "type": [ - "String" - ], - "required": true, - "description": "Name of the sticker set to be set as the group sticker set" - } - } - }, - "deleteChatStickerSet": { - "href": "https://core.telegram.org/bots/api#deletechatstickerset", - "description": [ - "Use this method to delete a group sticker set from a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Use the field can_set_sticker_set optionally returned in getChat requests to check if the bot can use this method. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - } - } - }, - "getForumTopicIconStickers": { - "href": "https://core.telegram.org/bots/api#getforumtopiciconstickers", - "description": [ - "Use this method to get custom emoji stickers, which can be used as a forum topic icon by any user. Requires no parameters. Returns an Array of Sticker objects." - ], - "returns": [ - "Array" - ] - }, - "createForumTopic": { - "href": "https://core.telegram.org/bots/api#createforumtopic", - "description": [ - "Use this method to create a topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator right. Returns information about the created topic as a ForumTopic object." - ], - "returns": [ - "ForumTopic" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - }, - "name": { - "type": [ - "String" - ], - "required": true, - "description": "Topic name, 1-128 characters" - }, - "icon_color": { - "type": [ - "Integer" - ], - "required": false, - "description": "Color of the topic icon in RGB format. Currently, must be one of 7322096 (0x6FB9F0), 16766590 (0xFFD67E), 13338331 (0xCB86DB), 9367192 (0x8EEE98), 16749490 (0xFF93B2), or 16478047 (0xFB6F5F)" - }, - "icon_custom_emoji_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers." - } - } - }, - "editForumTopic": { - "href": "https://core.telegram.org/bots/api#editforumtopic", - "description": [ - "Use this method to edit name and icon of a topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights, unless it is the creator of the topic. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier for the target message thread of the forum topic" - }, - "name": { - "type": [ - "String" - ], - "required": false, - "description": "New topic name, 0-128 characters. If not specified or empty, the current name of the topic will be kept" - }, - "icon_custom_emoji_id": { - "type": [ - "String" - ], - "required": false, - "description": "New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers. Pass an empty string to remove the icon. If not specified, the current icon will be kept" - } - } - }, - "closeForumTopic": { - "href": "https://core.telegram.org/bots/api#closeforumtopic", - "description": [ - "Use this method to close an open topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights, unless it is the creator of the topic. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier for the target message thread of the forum topic" - } - } - }, - "reopenForumTopic": { - "href": "https://core.telegram.org/bots/api#reopenforumtopic", - "description": [ - "Use this method to reopen a closed topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights, unless it is the creator of the topic. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier for the target message thread of the forum topic" - } - } - }, - "deleteForumTopic": { - "href": "https://core.telegram.org/bots/api#deleteforumtopic", - "description": [ - "Use this method to delete a forum topic along with all its messages in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the can_delete_messages administrator rights. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier for the target message thread of the forum topic" - } - } - }, - "unpinAllForumTopicMessages": { - "href": "https://core.telegram.org/bots/api#unpinallforumtopicmessages", - "description": [ - "Use this method to clear the list of pinned messages in a forum topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the can_pin_messages administrator right in the supergroup. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier for the target message thread of the forum topic" - } - } - }, - "editGeneralForumTopic": { - "href": "https://core.telegram.org/bots/api#editgeneralforumtopic", - "description": [ - "Use this method to edit the name of the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - }, - "name": { - "type": [ - "String" - ], - "required": true, - "description": "New topic name, 1-128 characters" - } - } - }, - "closeGeneralForumTopic": { - "href": "https://core.telegram.org/bots/api#closegeneralforumtopic", - "description": [ - "Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - } - } - }, - "reopenGeneralForumTopic": { - "href": "https://core.telegram.org/bots/api#reopengeneralforumtopic", - "description": [ - "Use this method to reopen a closed 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. The topic will be automatically unhidden if it was hidden. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - } - } - }, - "hideGeneralForumTopic": { - "href": "https://core.telegram.org/bots/api#hidegeneralforumtopic", - "description": [ - "Use this method to hide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. The topic will be automatically closed if it was open. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - } - } - }, - "unhideGeneralForumTopic": { - "href": "https://core.telegram.org/bots/api#unhidegeneralforumtopic", - "description": [ - "Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - } - } - }, - "unpinAllGeneralForumTopicMessages": { - "href": "https://core.telegram.org/bots/api#unpinallgeneralforumtopicmessages", - "description": [ - "Use this method to clear the list of pinned messages in a General forum topic. The bot must be an administrator in the chat for this to work and must have the can_pin_messages administrator right in the supergroup. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" - } - } - }, - "answerCallbackQuery": { - "href": "https://core.telegram.org/bots/api#answercallbackquery", - "description": [ - "Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned." - ], - "returns": [ - "True" - ], - "parameters": { - "callback_query_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier for the query to be answered" - }, - "text": { - "type": [ - "String" - ], - "required": false, - "description": "Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters" - }, - "show_alert": { - "type": [ - "Boolean" - ], - "required": false, - "description": "If True, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false." - }, - "url": { - "type": [ - "String" - ], - "required": false, - "description": "URL that will be opened by the user's client. If you have created a Game and accepted the conditions via @BotFather, specify the URL that opens your game - note that this will only work if the query comes from a callback_game button.Otherwise, you may use links like t.me/your_bot?start=XXXX that open your bot with a parameter." - }, - "cache_time": { - "type": [ - "Integer" - ], - "required": false, - "description": "The maximum amount of time in seconds that the result of the callback query may be cached client-side. Telegram apps will support caching starting in version 3.14. Defaults to 0." - } - } - }, - "getUserChatBoosts": { - "href": "https://core.telegram.org/bots/api#getuserchatboosts", - "description": [ - "Use this method to get the list of boosts added to a chat by a user. Requires administrator rights in the chat. Returns a UserChatBoosts object." - ], - "returns": [ - "UserChatBoosts" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the chat or username of the channel (in the format @channelusername)" - }, - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user" - } - } - }, - "getBusinessConnection": { - "href": "https://core.telegram.org/bots/api#getbusinessconnection", - "description": [ - "Use this method to get information about the connection of the bot with a business account. Returns a BusinessConnection object on success." - ], - "returns": [ - "BusinessConnection" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - } - } - }, - "setMyCommands": { - "href": "https://core.telegram.org/bots/api#setmycommands", - "description": [ - "Use this method to change the list of the bot's commands. See this manual for more details about bot commands. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "commands": { - "type": [ - "Array" - ], - "required": true, - "description": "A JSON-serialized list of bot commands to be set as the list of the bot's commands. At most 100 commands can be specified." - }, - "scope": { - "type": [ - "BotCommandScope" - ], - "required": false, - "description": "A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault." - }, - "language_code": { - "type": [ - "String" - ], - "required": false, - "description": "A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands" - } - } - }, - "deleteMyCommands": { - "href": "https://core.telegram.org/bots/api#deletemycommands", - "description": [ - "Use this method to delete the list of the bot's commands for the given scope and user language. After deletion, higher level commands will be shown to affected users. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "scope": { - "type": [ - "BotCommandScope" - ], - "required": false, - "description": "A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault." - }, - "language_code": { - "type": [ - "String" - ], - "required": false, - "description": "A two-letter ISO 639-1 language code. If empty, commands will be applied to all users from the given scope, for whose language there are no dedicated commands" - } - } - }, - "getMyCommands": { - "href": "https://core.telegram.org/bots/api#getmycommands", - "description": [ - "Use this method to get the current list of the bot's commands for the given scope and user language. Returns an Array of BotCommand objects. If commands aren't set, an empty list is returned." - ], - "returns": [ - "Array" - ], - "parameters": { - "scope": { - "type": [ - "BotCommandScope" - ], - "required": false, - "description": "A JSON-serialized object, describing scope of users. Defaults to BotCommandScopeDefault." - }, - "language_code": { - "type": [ - "String" - ], - "required": false, - "description": "A two-letter ISO 639-1 language code or an empty string" - } - } - }, - "setMyName": { - "href": "https://core.telegram.org/bots/api#setmyname", - "description": [ - "Use this method to change the bot's name. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "name": { - "type": [ - "String" - ], - "required": false, - "description": "New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given language." - }, - "language_code": { - "type": [ - "String" - ], - "required": false, - "description": "A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose language there is no dedicated name." - } - } - }, - "getMyName": { - "href": "https://core.telegram.org/bots/api#getmyname", - "description": [ - "Use this method to get the current bot name for the given user language. Returns BotName on success." - ], - "returns": [ - "BotName" - ], - "parameters": { - "language_code": { - "type": [ - "String" - ], - "required": false, - "description": "A two-letter ISO 639-1 language code or an empty string" - } - } - }, - "setMyDescription": { - "href": "https://core.telegram.org/bots/api#setmydescription", - "description": [ - "Use this method to change the bot's description, which is shown in the chat with the bot if the chat is empty. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "description": { - "type": [ - "String" - ], - "required": false, - "description": "New bot description; 0-512 characters. Pass an empty string to remove the dedicated description for the given language." - }, - "language_code": { - "type": [ - "String" - ], - "required": false, - "description": "A two-letter ISO 639-1 language code. If empty, the description will be applied to all users for whose language there is no dedicated description." - } - } - }, - "getMyDescription": { - "href": "https://core.telegram.org/bots/api#getmydescription", - "description": [ - "Use this method to get the current bot description for the given user language. Returns BotDescription on success." - ], - "returns": [ - "BotDescription" - ], - "parameters": { - "language_code": { - "type": [ - "String" - ], - "required": false, - "description": "A two-letter ISO 639-1 language code or an empty string" - } - } - }, - "setMyShortDescription": { - "href": "https://core.telegram.org/bots/api#setmyshortdescription", - "description": [ - "Use this method to change the bot's short description, which is shown on the bot's profile page and is sent together with the link when users share the bot. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "short_description": { - "type": [ - "String" - ], - "required": false, - "description": "New short description for the bot; 0-120 characters. Pass an empty string to remove the dedicated short description for the given language." - }, - "language_code": { - "type": [ - "String" - ], - "required": false, - "description": "A two-letter ISO 639-1 language code. If empty, the short description will be applied to all users for whose language there is no dedicated short description." - } - } - }, - "getMyShortDescription": { - "href": "https://core.telegram.org/bots/api#getmyshortdescription", - "description": [ - "Use this method to get the current bot short description for the given user language. Returns BotShortDescription on success." - ], - "returns": [ - "BotShortDescription" - ], - "parameters": { - "language_code": { - "type": [ - "String" - ], - "required": false, - "description": "A two-letter ISO 639-1 language code or an empty string" - } - } - }, - "setMyProfilePhoto": { - "href": "https://core.telegram.org/bots/api#setmyprofilephoto", - "description": [ - "Changes the profile photo of the bot. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "photo": { - "type": [ - "InputProfilePhoto" - ], - "required": true, - "description": "The new profile photo to set" - } - } - }, - "removeMyProfilePhoto": { - "href": "https://core.telegram.org/bots/api#removemyprofilephoto", - "description": [ - "Removes the profile photo of the bot. Requires no parameters. Returns True on success." - ], - "returns": [ - "True" - ] - }, - "setChatMenuButton": { - "href": "https://core.telegram.org/bots/api#setchatmenubutton", - "description": [ - "Use this method to change the bot's menu button in a private chat, or the default menu button. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target private chat. If not specified, default bot's menu button will be changed" - }, - "menu_button": { - "type": [ - "MenuButton" - ], - "required": false, - "description": "A JSON-serialized object for the bot's new menu button. Defaults to MenuButtonDefault" - } - } - }, - "getChatMenuButton": { - "href": "https://core.telegram.org/bots/api#getchatmenubutton", - "description": [ - "Use this method to get the current value of the bot's menu button in a private chat, or the default menu button. Returns MenuButton on success." - ], - "returns": [ - "MenuButton" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target private chat. If not specified, default bot's menu button will be returned" - } - } - }, - "setMyDefaultAdministratorRights": { - "href": "https://core.telegram.org/bots/api#setmydefaultadministratorrights", - "description": [ - "Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are free to modify the list before adding the bot. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "rights": { - "type": [ - "ChatAdministratorRights" - ], - "required": false, - "description": "A JSON-serialized object describing new default administrator rights. If not specified, the default administrator rights will be cleared." - }, - "for_channels": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to change the default administrator rights of the bot in channels. Otherwise, the default administrator rights of the bot for groups and supergroups will be changed." - } - } - }, - "getMyDefaultAdministratorRights": { - "href": "https://core.telegram.org/bots/api#getmydefaultadministratorrights", - "description": [ - "Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success." - ], - "returns": [ - "ChatAdministratorRights" - ], - "parameters": { - "for_channels": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to get default administrator rights of the bot in channels. Otherwise, default administrator rights of the bot for groups and supergroups will be returned." - } - } - }, - "getAvailableGifts": { - "href": "https://core.telegram.org/bots/api#getavailablegifts", - "description": [ - "Returns the list of gifts that can be sent by the bot to users and channel chats. Requires no parameters. Returns a Gifts object." - ], - "returns": [] - }, - "sendGift": { - "href": "https://core.telegram.org/bots/api#sendgift", - "description": [ - "Sends a gift to the given user or channel chat. The gift can't be converted to Telegram Stars by the receiver. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Required if chat_id is not specified. Unique identifier of the target user who will receive the gift." - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": false, - "description": "Required if user_id is not specified. Unique identifier for the chat or username of the channel (in the format @channelusername) that will receive the gift." - }, - "gift_id": { - "type": [ - "String" - ], - "required": true, - "description": "Identifier of the gift; limited gifts can't be sent to channel chats" - }, - "pay_for_upgrade": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to pay for the gift upgrade from the bot's balance, thereby making the upgrade free for the receiver" - }, - "text": { - "type": [ - "String" - ], - "required": false, - "description": "Text that will be shown along with the gift; 0-128 characters" - }, - "text_parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the text. See formatting options for more details. Entities other than \u201cbold\u201d, \u201citalic\u201d, \u201cunderline\u201d, \u201cstrikethrough\u201d, \u201cspoiler\u201d, and \u201ccustom_emoji\u201d are ignored." - }, - "text_entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in the gift text. It can be specified instead of text_parse_mode. Entities other than \u201cbold\u201d, \u201citalic\u201d, \u201cunderline\u201d, \u201cstrikethrough\u201d, \u201cspoiler\u201d, and \u201ccustom_emoji\u201d are ignored." - } - } - }, - "giftPremiumSubscription": { - "href": "https://core.telegram.org/bots/api#giftpremiumsubscription", - "description": [ - "Gifts a Telegram Premium subscription to the given user. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user who will receive a Telegram Premium subscription" - }, - "month_count": { - "type": [ - "Integer" - ], - "required": true, - "description": "Number of months the Telegram Premium subscription will be active for the user; must be one of 3, 6, or 12" - }, - "star_count": { - "type": [ - "Integer" - ], - "required": true, - "description": "Number of Telegram Stars to pay for the Telegram Premium subscription; must be 1000 for 3 months, 1500 for 6 months, and 2500 for 12 months" - }, - "text": { - "type": [ - "String" - ], - "required": false, - "description": "Text that will be shown along with the service message about the subscription; 0-128 characters" - }, - "text_parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the text. See formatting options for more details. Entities other than \u201cbold\u201d, \u201citalic\u201d, \u201cunderline\u201d, \u201cstrikethrough\u201d, \u201cspoiler\u201d, and \u201ccustom_emoji\u201d are ignored." - }, - "text_entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in the gift text. It can be specified instead of text_parse_mode. Entities other than \u201cbold\u201d, \u201citalic\u201d, \u201cunderline\u201d, \u201cstrikethrough\u201d, \u201cspoiler\u201d, and \u201ccustom_emoji\u201d are ignored." - } - } - }, - "verifyUser": { - "href": "https://core.telegram.org/bots/api#verifyuser", - "description": [ - "Verifies a user on behalf of the organization which is represented by the bot. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user" - }, - "custom_description": { - "type": [ - "String" - ], - "required": false, - "description": "Custom description for the verification; 0-70 characters. Must be empty if the organization isn't allowed to provide a custom verification description." - } - } - }, - "verifyChat": { - "href": "https://core.telegram.org/bots/api#verifychat", - "description": [ - "Verifies a chat on behalf of the organization which is represented by the bot. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername). Channel direct messages chats can't be verified." - }, - "custom_description": { - "type": [ - "String" - ], - "required": false, - "description": "Custom description for the verification; 0-70 characters. Must be empty if the organization isn't allowed to provide a custom verification description." - } - } - }, - "removeUserVerification": { - "href": "https://core.telegram.org/bots/api#removeuserverification", - "description": [ - "Removes verification from a user who is currently verified on behalf of the organization represented by the bot. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user" - } - } - }, - "removeChatVerification": { - "href": "https://core.telegram.org/bots/api#removechatverification", - "description": [ - "Removes verification from a chat that is currently verified on behalf of the organization represented by the bot. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - } - } - }, - "readBusinessMessage": { - "href": "https://core.telegram.org/bots/api#readbusinessmessage", - "description": [ - "Marks incoming message as read on behalf of a business account. Requires the can_read_messages business bot right. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection on behalf of which to read the message" - }, - "chat_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the chat in which the message was received. The chat must have been active in the last 24 hours." - }, - "message_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the message to mark as read" - } - } - }, - "deleteBusinessMessages": { - "href": "https://core.telegram.org/bots/api#deletebusinessmessages", - "description": [ - "Delete messages on behalf of a business account. Requires the can_delete_sent_messages business bot right to delete messages sent by the bot itself, or the can_delete_all_messages business bot right to delete any message. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection on behalf of which to delete the messages" - }, - "message_ids": { - "type": [ - "Array" - ], - "required": true, - "description": "A JSON-serialized list of 1-100 identifiers of messages to delete. All messages must be from the same chat. See deleteMessage for limitations on which messages can be deleted" - } - } - }, - "setBusinessAccountName": { - "href": "https://core.telegram.org/bots/api#setbusinessaccountname", - "description": [ - "Changes the first and last name of a managed business account. Requires the can_change_name business bot right. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - }, - "first_name": { - "type": [ - "String" - ], - "required": true, - "description": "The new value of the first name for the business account; 1-64 characters" - }, - "last_name": { - "type": [ - "String" - ], - "required": false, - "description": "The new value of the last name for the business account; 0-64 characters" - } - } - }, - "setBusinessAccountUsername": { - "href": "https://core.telegram.org/bots/api#setbusinessaccountusername", - "description": [ - "Changes the username of a managed business account. Requires the can_change_username business bot right. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - }, - "username": { - "type": [ - "String" - ], - "required": false, - "description": "The new value of the username for the business account; 0-32 characters" - } - } - }, - "setBusinessAccountBio": { - "href": "https://core.telegram.org/bots/api#setbusinessaccountbio", - "description": [ - "Changes the bio of a managed business account. Requires the can_change_bio business bot right. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - }, - "bio": { - "type": [ - "String" - ], - "required": false, - "description": "The new value of the bio for the business account; 0-140 characters" - } - } - }, - "setBusinessAccountProfilePhoto": { - "href": "https://core.telegram.org/bots/api#setbusinessaccountprofilephoto", - "description": [ - "Changes the profile photo of a managed business account. Requires the can_edit_profile_photo business bot right. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - }, - "photo": { - "type": [ - "InputProfilePhoto" - ], - "required": true, - "description": "The new profile photo to set" - }, - "is_public": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to set the public photo, which will be visible even if the main photo is hidden by the business account's privacy settings. An account can have only one public photo." - } - } - }, - "removeBusinessAccountProfilePhoto": { - "href": "https://core.telegram.org/bots/api#removebusinessaccountprofilephoto", - "description": [ - "Removes the current profile photo of a managed business account. Requires the can_edit_profile_photo business bot right. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - }, - "is_public": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to remove the public photo, which is visible even if the main photo is hidden by the business account's privacy settings. After the main photo is removed, the previous profile photo (if present) becomes the main photo." - } - } - }, - "setBusinessAccountGiftSettings": { - "href": "https://core.telegram.org/bots/api#setbusinessaccountgiftsettings", - "description": [ - "Changes the privacy settings pertaining to incoming gifts in a managed business account. Requires the can_change_gift_settings business bot right. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - }, - "show_gift_button": { - "type": [ - "Boolean" - ], - "required": true, - "description": "Pass True, if a button for sending a gift to the user or by the business account must always be shown in the input field" - }, - "accepted_gift_types": { - "type": [ - "AcceptedGiftTypes" - ], - "required": true, - "description": "Types of gifts accepted by the business account" - } - } - }, - "getBusinessAccountStarBalance": { - "href": "https://core.telegram.org/bots/api#getbusinessaccountstarbalance", - "description": [ - "Returns the amount of Telegram Stars owned by a managed business account. Requires the can_view_gifts_and_stars business bot right. Returns StarAmount on success." - ], - "returns": [ - "Telegram", - "Stars" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - } - } - }, - "transferBusinessAccountStars": { - "href": "https://core.telegram.org/bots/api#transferbusinessaccountstars", - "description": [ - "Transfers Telegram Stars from the business account balance to the bot's balance. Requires the can_transfer_stars business bot right. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - }, - "star_count": { - "type": [ - "Integer" - ], - "required": true, - "description": "Number of Telegram Stars to transfer; 1-10000" - } - } - }, - "getBusinessAccountGifts": { - "href": "https://core.telegram.org/bots/api#getbusinessaccountgifts", - "description": [ - "Returns the gifts received and owned by a managed business account. Requires the can_view_gifts_and_stars business bot right. Returns OwnedGifts on success." - ], - "returns": [], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - }, - "exclude_unsaved": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that aren't saved to the account's profile page" - }, - "exclude_saved": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that are saved to the account's profile page" - }, - "exclude_unlimited": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that can be purchased an unlimited number of times" - }, - "exclude_limited_upgradable": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to unique" - }, - "exclude_limited_non_upgradable": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to unique" - }, - "exclude_unique": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude unique gifts" - }, - "exclude_from_blockchain": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transferred in Telegram" - }, - "sort_by_price": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to sort results by gift price instead of send date. Sorting is applied before pagination." - }, - "offset": { - "type": [ - "String" - ], - "required": false, - "description": "Offset of the first entry to return as received from the previous request; use empty string to get the first chunk of results" - }, - "limit": { - "type": [ - "Integer" - ], - "required": false, - "description": "The maximum number of gifts to be returned; 1-100. Defaults to 100" - } - } - }, - "getUserGifts": { - "href": "https://core.telegram.org/bots/api#getusergifts", - "description": [ - "Returns the gifts owned and hosted by a user. Returns OwnedGifts on success." - ], - "returns": [], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the user" - }, - "exclude_unlimited": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that can be purchased an unlimited number of times" - }, - "exclude_limited_upgradable": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to unique" - }, - "exclude_limited_non_upgradable": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to unique" - }, - "exclude_from_blockchain": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transferred in Telegram" - }, - "exclude_unique": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude unique gifts" - }, - "sort_by_price": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to sort results by gift price instead of send date. Sorting is applied before pagination." - }, - "offset": { - "type": [ - "String" - ], - "required": false, - "description": "Offset of the first entry to return as received from the previous request; use an empty string to get the first chunk of results" - }, - "limit": { - "type": [ - "Integer" - ], - "required": false, - "description": "The maximum number of gifts to be returned; 1-100. Defaults to 100" - } - } - }, - "getChatGifts": { - "href": "https://core.telegram.org/bots/api#getchatgifts", - "description": [ - "Returns the gifts owned by a chat. Returns OwnedGifts on success." - ], - "returns": [], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "exclude_unsaved": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that aren't saved to the chat's profile page. Always True, unless the bot has the can_post_messages administrator right in the channel." - }, - "exclude_saved": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that are saved to the chat's profile page. Always False, unless the bot has the can_post_messages administrator right in the channel." - }, - "exclude_unlimited": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that can be purchased an unlimited number of times" - }, - "exclude_limited_upgradable": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that can be purchased a limited number of times and can be upgraded to unique" - }, - "exclude_limited_non_upgradable": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that can be purchased a limited number of times and can't be upgraded to unique" - }, - "exclude_from_blockchain": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude gifts that were assigned from the TON blockchain and can't be resold or transferred in Telegram" - }, - "exclude_unique": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to exclude unique gifts" - }, - "sort_by_price": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to sort results by gift price instead of send date. Sorting is applied before pagination." - }, - "offset": { - "type": [ - "String" - ], - "required": false, - "description": "Offset of the first entry to return as received from the previous request; use an empty string to get the first chunk of results" - }, - "limit": { - "type": [ - "Integer" - ], - "required": false, - "description": "The maximum number of gifts to be returned; 1-100. Defaults to 100" - } - } - }, - "convertGiftToStars": { - "href": "https://core.telegram.org/bots/api#convertgifttostars", - "description": [ - "Converts a given regular gift to Telegram Stars. Requires the can_convert_gifts_to_stars business bot right. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - }, - "owned_gift_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the regular gift that should be converted to Telegram Stars" - } - } - }, - "upgradeGift": { - "href": "https://core.telegram.org/bots/api#upgradegift", - "description": [ - "Upgrades a given regular gift to a unique gift. Requires the can_transfer_and_upgrade_gifts business bot right. Additionally requires the can_transfer_stars business bot right if the upgrade is paid. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - }, - "owned_gift_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the regular gift that should be upgraded to a unique one" - }, - "keep_original_details": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to keep the original gift text, sender and receiver in the upgraded gift" - }, - "star_count": { - "type": [ - "Integer" - ], - "required": false, - "description": "The amount of Telegram Stars that will be paid for the upgrade from the business account balance. If gift.prepaid_upgrade_star_count > 0, then pass 0, otherwise, the can_transfer_stars business bot right is required and gift.upgrade_star_count must be passed." - } - } - }, - "transferGift": { - "href": "https://core.telegram.org/bots/api#transfergift", - "description": [ - "Transfers an owned unique gift to another user. Requires the can_transfer_and_upgrade_gifts business bot right. Requires can_transfer_stars business bot right if the transfer is paid. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - }, - "owned_gift_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the regular gift that should be transferred" - }, - "new_owner_chat_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the chat which will own the gift. The chat must be active in the last 24 hours." - }, - "star_count": { - "type": [ - "Integer" - ], - "required": false, - "description": "The amount of Telegram Stars that will be paid for the transfer from the business account balance. If positive, then the can_transfer_stars business bot right is required." - } - } - }, - "postStory": { - "href": "https://core.telegram.org/bots/api#poststory", - "description": [ - "Posts a story on behalf of a managed business account. Requires the can_manage_stories business bot right. Returns Story on success." - ], - "returns": [ - "Story" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - }, - "content": { - "type": [ - "InputStoryContent" - ], - "required": true, - "description": "Content of the story" - }, - "active_period": { - "type": [ - "Integer" - ], - "required": true, - "description": "Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400" - }, - "caption": { - "type": [ - "String" - ], - "required": false, - "description": "Caption of the story, 0-2048 characters after entities parsing" - }, - "parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the story caption. See formatting options for more details." - }, - "caption_entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" - }, - "areas": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of clickable areas to be shown on the story" - }, - "post_to_chat_page": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to keep the story accessible after it expires" - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the content of the story must be protected from forwarding and screenshotting" - } - } - }, - "repostStory": { - "href": "https://core.telegram.org/bots/api#repoststory", - "description": [ - "Reposts a story on behalf of a business account from another business account. Both business accounts must be managed by the same bot, and the story on the source account must have been posted (or reposted) by the bot. Requires the can_manage_stories business bot right for both business accounts. Returns Story on success." - ], - "returns": [ - "Story" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - }, - "from_chat_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the chat which posted the story that should be reposted" - }, - "from_story_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the story that should be reposted" - }, - "active_period": { - "type": [ - "Integer" - ], - "required": true, - "description": "Period after which the story is moved to the archive, in seconds; must be one of 6 * 3600, 12 * 3600, 86400, or 2 * 86400" - }, - "post_to_chat_page": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to keep the story accessible after it expires" - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the content of the story must be protected from forwarding and screenshotting" - } - } - }, - "editStory": { - "href": "https://core.telegram.org/bots/api#editstory", - "description": [ - "Edits a story previously posted by the bot on behalf of a managed business account. Requires the can_manage_stories business bot right. Returns Story on success." - ], - "returns": [ - "Story" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - }, - "story_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the story to edit" - }, - "content": { - "type": [ - "InputStoryContent" - ], - "required": true, - "description": "Content of the story" - }, - "caption": { - "type": [ - "String" - ], - "required": false, - "description": "Caption of the story, 0-2048 characters after entities parsing" - }, - "parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the story caption. See formatting options for more details." - }, - "caption_entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" - }, - "areas": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of clickable areas to be shown on the story" - } - } - }, - "deleteStory": { - "href": "https://core.telegram.org/bots/api#deletestory", - "description": [ - "Deletes a story previously posted by the bot on behalf of a managed business account. Requires the can_manage_stories business bot right. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection" - }, - "story_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the story to delete" - } - } - }, - "editMessageText": { - "href": "https://core.telegram.org/bots/api#editmessagetext", - "description": [ - "Use this method to edit text and game messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent." - ], - "returns": [ - "Message", - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message to be edited was sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Identifier of the message to edit" - }, - "inline_message_id": { - "type": [ - "String" - ], - "required": false, - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" - }, - "text": { - "type": [ - "String" - ], - "required": true, - "description": "New text of the message, 1-4096 characters after entities parsing" - }, - "parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the message text. See formatting options for more details." - }, - "entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode" - }, - "link_preview_options": { - "type": [ - "LinkPreviewOptions" - ], - "required": false, - "description": "Link preview generation options for the message" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup" - ], - "required": false, - "description": "A JSON-serialized object for an inline keyboard." - } - } - }, - "editMessageCaption": { - "href": "https://core.telegram.org/bots/api#editmessagecaption", - "description": [ - "Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent." - ], - "returns": [ - "Message", - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message to be edited was sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Identifier of the message to edit" - }, - "inline_message_id": { - "type": [ - "String" - ], - "required": false, - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" - }, - "caption": { - "type": [ - "String" - ], - "required": false, - "description": "New caption of the message, 0-1024 characters after entities parsing" - }, - "parse_mode": { - "type": [ - "String" - ], - "required": false, - "description": "Mode for parsing entities in the message caption. See formatting options for more details." - }, - "caption_entities": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" - }, - "show_caption_above_media": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True, if the caption must be shown above the message media. Supported only for animation, photo and video messages." - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup" - ], - "required": false, - "description": "A JSON-serialized object for an inline keyboard." - } - } - }, - "editMessageMedia": { - "href": "https://core.telegram.org/bots/api#editmessagemedia", - "description": [ - "Use this method to edit animation, audio, document, photo, or video messages, or to add media to text messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent." - ], - "returns": [ - "Message", - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message to be edited was sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Identifier of the message to edit" - }, - "inline_message_id": { - "type": [ - "String" - ], - "required": false, - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" - }, - "media": { - "type": [ - "InputMedia" - ], - "required": true, - "description": "A JSON-serialized object for a new media content of the message" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup" - ], - "required": false, - "description": "A JSON-serialized object for a new inline keyboard." - } - } - }, - "editMessageLiveLocation": { - "href": "https://core.telegram.org/bots/api#editmessagelivelocation", - "description": [ - "Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned." - ], - "returns": [ - "Message", - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message to be edited was sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Identifier of the message to edit" - }, - "inline_message_id": { - "type": [ - "String" - ], - "required": false, - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" - }, - "latitude": { - "type": [ - "Float" - ], - "required": true, - "description": "Latitude of new location" - }, - "longitude": { - "type": [ - "Float" - ], - "required": true, - "description": "Longitude of new location" - }, - "live_period": { - "type": [ - "Integer" - ], - "required": false, - "description": "New period in seconds during which the location can be updated, starting from the message send date. If 0x7FFFFFFF is specified, then the location can be updated forever. Otherwise, the new value must not exceed the current live_period by more than a day, and the live location expiration date must remain within the next 90 days. If not specified, then live_period remains unchanged" - }, - "horizontal_accuracy": { - "type": [ - "Float" - ], - "required": false, - "description": "The radius of uncertainty for the location, measured in meters; 0-1500" - }, - "heading": { - "type": [ - "Integer" - ], - "required": false, - "description": "Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified." - }, - "proximity_alert_radius": { - "type": [ - "Integer" - ], - "required": false, - "description": "The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified." - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup" - ], - "required": false, - "description": "A JSON-serialized object for a new inline keyboard." - } - } - }, - "stopMessageLiveLocation": { - "href": "https://core.telegram.org/bots/api#stopmessagelivelocation", - "description": [ - "Use this method to stop updating a live location message before live_period expires. On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned." - ], - "returns": [ - "Message", - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message to be edited was sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Identifier of the message with live location to stop" - }, - "inline_message_id": { - "type": [ - "String" - ], - "required": false, - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup" - ], - "required": false, - "description": "A JSON-serialized object for a new inline keyboard." - } - } - }, - "editMessageChecklist": { - "href": "https://core.telegram.org/bots/api#editmessagechecklist", - "description": [ - "Use this method to edit a checklist on behalf of a connected business account. On success, the edited Message is returned." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier for the target chat" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier for the target message" - }, - "checklist": { - "type": [ - "InputChecklist" - ], - "required": true, - "description": "A JSON-serialized object for the new checklist" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup" - ], - "required": false, - "description": "A JSON-serialized object for the new inline keyboard for the message" - } - } - }, - "editMessageReplyMarkup": { - "href": "https://core.telegram.org/bots/api#editmessagereplymarkup", - "description": [ - "Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent." - ], - "returns": [ - "Message", - "True" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message to be edited was sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Identifier of the message to edit" - }, - "inline_message_id": { - "type": [ - "String" - ], - "required": false, - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup" - ], - "required": false, - "description": "A JSON-serialized object for an inline keyboard." - } - } - }, - "stopPoll": { - "href": "https://core.telegram.org/bots/api#stoppoll", - "description": [ - "Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned." - ], - "returns": [ - "Poll" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message to be edited was sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Identifier of the original message with the poll" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup" - ], - "required": false, - "description": "A JSON-serialized object for a new message inline keyboard." - } - } - }, - "approveSuggestedPost": { - "href": "https://core.telegram.org/bots/api#approvesuggestedpost", - "description": [ - "Use this method to approve a suggested post in a direct messages chat. The bot must have the 'can_post_messages' administrator right in the corresponding channel chat. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier for the target direct messages chat" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Identifier of a suggested post message to approve" - }, - "send_date": { - "type": [ - "Integer" - ], - "required": false, - "description": "Point in time (Unix timestamp) when the post is expected to be published; omit if the date has already been specified when the suggested post was created. If specified, then the date must be not more than 2678400 seconds (30 days) in the future" - } - } - }, - "declineSuggestedPost": { - "href": "https://core.telegram.org/bots/api#declinesuggestedpost", - "description": [ - "Use this method to decline a suggested post in a direct messages chat. The bot must have the 'can_manage_direct_messages' administrator right in the corresponding channel chat. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier for the target direct messages chat" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Identifier of a suggested post message to decline" - }, - "comment": { - "type": [ - "String" - ], - "required": false, - "description": "Comment for the creator of the suggested post; 0-128 characters" - } - } - }, - "deleteMessage": { - "href": "https://core.telegram.org/bots/api#deletemessage", - "description": [ - "Use this method to delete a message, including service messages, with the following limitations:- A message can only be deleted if it was sent less than 48 hours ago.- Service messages about a supergroup, channel, or forum topic creation can't be deleted.- A dice message in a private chat can only be deleted if it was sent more than 24 hours ago.- Bots can delete outgoing messages in private chats, groups, and supergroups.- Bots can delete incoming messages in private chats.- Bots granted can_post_messages permissions can delete outgoing messages in channels.- If the bot is an administrator of a group, it can delete any message there.- If the bot has can_delete_messages administrator right in a supergroup or a channel, it can delete any message there.- If the bot has can_manage_direct_messages administrator right in a channel, it can delete any message in the corresponding direct messages chat.Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Identifier of the message to delete" - } - } - }, - "deleteMessages": { - "href": "https://core.telegram.org/bots/api#deletemessages", - "description": [ - "Use this method to delete multiple messages simultaneously. If some of the specified messages can't be found, they are skipped. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_ids": { - "type": [ - "Array" - ], - "required": true, - "description": "A JSON-serialized list of 1-100 identifiers of messages to delete. See deleteMessage for limitations on which messages can be deleted" - } - } - }, - "sendSticker": { - "href": "https://core.telegram.org/bots/api#sendsticker", - "description": [ - "Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "sticker": { - "type": [ - "InputFile", - "String" - ], - "required": true, - "description": "Sticker to send. Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a .WEBP sticker from the Internet, or upload a new .WEBP, .TGS, or .WEBM sticker using multipart/form-data. More information on Sending Files \u00bb. Video and animated stickers can't be sent via an HTTP URL." - }, - "emoji": { - "type": [ - "String" - ], - "required": false, - "description": "Emoji associated with the sticker; only for just uploaded stickers" - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup", - "ReplyKeyboardMarkup", - "ReplyKeyboardRemove", - "ForceReply" - ], - "required": false, - "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user" - } - } - }, - "getStickerSet": { - "href": "https://core.telegram.org/bots/api#getstickerset", - "description": [ - "Use this method to get a sticker set. On success, a StickerSet object is returned." - ], - "returns": [ - "StickerSet" - ], - "parameters": { - "name": { - "type": [ - "String" - ], - "required": true, - "description": "Name of the sticker set" - } - } - }, - "getCustomEmojiStickers": { - "href": "https://core.telegram.org/bots/api#getcustomemojistickers", - "description": [ - "Use this method to get information about custom emoji stickers by their identifiers. Returns an Array of Sticker objects." - ], - "returns": [ - "Array" - ], - "parameters": { - "custom_emoji_ids": { - "type": [ - "Array" - ], - "required": true, - "description": "A JSON-serialized list of custom emoji identifiers. At most 200 custom emoji identifiers can be specified." - } - } - }, - "uploadStickerFile": { - "href": "https://core.telegram.org/bots/api#uploadstickerfile", - "description": [ - "Use this method to upload a file with a sticker for later use in the createNewStickerSet, addStickerToSet, or replaceStickerInSet methods (the file can be used multiple times). Returns the uploaded File on success." - ], - "returns": [ - "File" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "User identifier of sticker file owner" - }, - "sticker": { - "type": [ - "InputFile" - ], - "required": true, - "description": "A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See https://core.telegram.org/stickers for technical requirements. More information on Sending Files \u00bb" - }, - "sticker_format": { - "type": [ - "String" - ], - "required": true, - "description": "Format of the sticker, must be one of \u201cstatic\u201d, \u201canimated\u201d, \u201cvideo\u201d" - } - } - }, - "createNewStickerSet": { - "href": "https://core.telegram.org/bots/api#createnewstickerset", - "description": [ - "Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "User identifier of created sticker set owner" - }, - "name": { - "type": [ - "String" - ], - "required": true, - "description": "Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only English letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in \"_by_\". is case insensitive. 1-64 characters." - }, - "title": { - "type": [ - "String" - ], - "required": true, - "description": "Sticker set title, 1-64 characters" - }, - "stickers": { - "type": [ - "Array" - ], - "required": true, - "description": "A JSON-serialized list of 1-50 initial stickers to be added to the sticker set" - }, - "sticker_type": { - "type": [ - "String" - ], - "required": false, - "description": "Type of stickers in the set, pass \u201cregular\u201d, \u201cmask\u201d, or \u201ccustom_emoji\u201d. By default, a regular sticker set is created." - }, - "needs_repainting": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if stickers in the sticker set must be repainted to the color of text when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context; for custom emoji sticker sets only" - } - } - }, - "addStickerToSet": { - "href": "https://core.telegram.org/bots/api#addstickertoset", - "description": [ - "Use this method to add a new sticker to a set created by the bot. Emoji sticker sets can have up to 200 stickers. Other sticker sets can have up to 120 stickers. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "User identifier of sticker set owner" - }, - "name": { - "type": [ - "String" - ], - "required": true, - "description": "Sticker set name" - }, - "sticker": { - "type": [ - "InputSticker" - ], - "required": true, - "description": "A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set isn't changed." - } - } - }, - "setStickerPositionInSet": { - "href": "https://core.telegram.org/bots/api#setstickerpositioninset", - "description": [ - "Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "sticker": { - "type": [ - "String" - ], - "required": true, - "description": "File identifier of the sticker" - }, - "position": { - "type": [ - "Integer" - ], - "required": true, - "description": "New sticker position in the set, zero-based" - } - } - }, - "deleteStickerFromSet": { - "href": "https://core.telegram.org/bots/api#deletestickerfromset", - "description": [ - "Use this method to delete a sticker from a set created by the bot. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "sticker": { - "type": [ - "String" - ], - "required": true, - "description": "File identifier of the sticker" - } - } - }, - "replaceStickerInSet": { - "href": "https://core.telegram.org/bots/api#replacestickerinset", - "description": [ - "Use this method to replace an existing sticker in a sticker set with a new one. The method is equivalent to calling deleteStickerFromSet, then addStickerToSet, then setStickerPositionInSet. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "User identifier of the sticker set owner" - }, - "name": { - "type": [ - "String" - ], - "required": true, - "description": "Sticker set name" - }, - "old_sticker": { - "type": [ - "String" - ], - "required": true, - "description": "File identifier of the replaced sticker" - }, - "sticker": { - "type": [ - "InputSticker" - ], - "required": true, - "description": "A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set remains unchanged." - } - } - }, - "setStickerEmojiList": { - "href": "https://core.telegram.org/bots/api#setstickeremojilist", - "description": [ - "Use this method to change the list of emoji assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "sticker": { - "type": [ - "String" - ], - "required": true, - "description": "File identifier of the sticker" - }, - "emoji_list": { - "type": [ - "Array" - ], - "required": true, - "description": "A JSON-serialized list of 1-20 emoji associated with the sticker" - } - } - }, - "setStickerKeywords": { - "href": "https://core.telegram.org/bots/api#setstickerkeywords", - "description": [ - "Use this method to change search keywords assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "sticker": { - "type": [ - "String" - ], - "required": true, - "description": "File identifier of the sticker" - }, - "keywords": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized list of 0-20 search keywords for the sticker with total length of up to 64 characters" - } - } - }, - "setStickerMaskPosition": { - "href": "https://core.telegram.org/bots/api#setstickermaskposition", - "description": [ - "Use this method to change the mask position of a mask sticker. The sticker must belong to a sticker set that was created by the bot. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "sticker": { - "type": [ - "String" - ], - "required": true, - "description": "File identifier of the sticker" - }, - "mask_position": { - "type": [ - "MaskPosition" - ], - "required": false, - "description": "A JSON-serialized object with the position where the mask should be placed on faces. Omit the parameter to remove the mask position." - } - } - }, - "setStickerSetTitle": { - "href": "https://core.telegram.org/bots/api#setstickersettitle", - "description": [ - "Use this method to set the title of a created sticker set. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "name": { - "type": [ - "String" - ], - "required": true, - "description": "Sticker set name" - }, - "title": { - "type": [ - "String" - ], - "required": true, - "description": "Sticker set title, 1-64 characters" - } - } - }, - "setStickerSetThumbnail": { - "href": "https://core.telegram.org/bots/api#setstickersetthumbnail", - "description": [ - "Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail file must match the format of the stickers in the set. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "name": { - "type": [ - "String" - ], - "required": true, - "description": "Sticker set name" - }, - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "User identifier of the sticker set owner" - }, - "thumbnail": { - "type": [ - "InputFile", - "String" - ], - "required": false, - "description": "A .WEBP or .PNG image with the thumbnail, must be up to 128 kilobytes in size and have a width and height of exactly 100px, or a .TGS animation with a thumbnail up to 32 kilobytes in size (see https://core.telegram.org/stickers#animation-requirements for animated sticker technical requirements), or a .WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#video-requirements for video sticker technical requirements. Pass a file_id as a String to send a file that already exists on the Telegram servers, pass an HTTP URL as a String for Telegram to get a file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files \u00bb. Animated and video sticker set thumbnails can't be uploaded via HTTP URL. If omitted, then the thumbnail is dropped and the first sticker is used as the thumbnail." - }, - "format": { - "type": [ - "String" - ], - "required": true, - "description": "Format of the thumbnail, must be one of \u201cstatic\u201d for a .WEBP or .PNG image, \u201canimated\u201d for a .TGS animation, or \u201cvideo\u201d for a .WEBM video" - } - } - }, - "setCustomEmojiStickerSetThumbnail": { - "href": "https://core.telegram.org/bots/api#setcustomemojistickersetthumbnail", - "description": [ - "Use this method to set the thumbnail of a custom emoji sticker set. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "name": { - "type": [ - "String" - ], - "required": true, - "description": "Sticker set name" - }, - "custom_emoji_id": { - "type": [ - "String" - ], - "required": false, - "description": "Custom emoji identifier of a sticker from the sticker set; pass an empty string to drop the thumbnail and use the first sticker as the thumbnail." - } - } - }, - "deleteStickerSet": { - "href": "https://core.telegram.org/bots/api#deletestickerset", - "description": [ - "Use this method to delete a sticker set that was created by the bot. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "name": { - "type": [ - "String" - ], - "required": true, - "description": "Sticker set name" - } - } - }, - "answerInlineQuery": { - "href": "https://core.telegram.org/bots/api#answerinlinequery", - "description": [ - "Use this method to send answers to an inline query. On success, True is returned.No more than 50 results per query are allowed." - ], - "returns": [ - "True" - ], - "parameters": { - "inline_query_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier for the answered query" - }, - "results": { - "type": [ - "Array" - ], - "required": true, - "description": "A JSON-serialized array of results for the inline query" - }, - "cache_time": { - "type": [ - "Integer" - ], - "required": false, - "description": "The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300." - }, - "is_personal": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True 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." - }, - "next_offset": { - "type": [ - "String" - ], - "required": false, - "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." - }, - "button": { - "type": [ - "InlineQueryResultsButton" - ], - "required": false, - "description": "A JSON-serialized object describing a button to be shown above inline query results" - } - } - }, - "answerWebAppQuery": { - "href": "https://core.telegram.org/bots/api#answerwebappquery", - "description": [ - "Use this method to set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated. On success, a SentWebAppMessage object is returned." - ], - "returns": [ - "SentWebAppMessage" - ], - "parameters": { - "web_app_query_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier for the query to be answered" - }, - "result": { - "type": [ - "InlineQueryResult" - ], - "required": true, - "description": "A JSON-serialized object describing the message to be sent" - } - } - }, - "savePreparedInlineMessage": { - "href": "https://core.telegram.org/bots/api#savepreparedinlinemessage", - "description": [ - "Stores a message that can be sent by a user of a Mini App. Returns a PreparedInlineMessage object." - ], - "returns": [ - "PreparedInlineMessage" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier of the target user that can use the prepared message" - }, - "result": { - "type": [ - "InlineQueryResult" - ], - "required": true, - "description": "A JSON-serialized object describing the message to be sent" - }, - "allow_user_chats": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the message can be sent to private chats with users" - }, - "allow_bot_chats": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the message can be sent to private chats with bots" - }, - "allow_group_chats": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the message can be sent to group and supergroup chats" - }, - "allow_channel_chats": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the message can be sent to channel chats" - } - } - }, - "sendInvoice": { - "href": "https://core.telegram.org/bots/api#sendinvoice", - "description": [ - "Use this method to send invoices. On success, the sent Message is returned." - ], - "returns": [ - "Message" - ], - "parameters": { - "chat_id": { - "type": [ - "Integer", - "String" - ], - "required": true, - "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "direct_messages_topic_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Identifier of the direct messages topic to which the message will be sent; required if the message is sent to a direct messages chat" - }, - "title": { - "type": [ - "String" - ], - "required": true, - "description": "Product name, 1-32 characters" - }, - "description": { - "type": [ - "String" - ], - "required": true, - "description": "Product description, 1-255 characters" - }, - "payload": { - "type": [ - "String" - ], - "required": true, - "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes." - }, - "provider_token": { - "type": [ - "String" - ], - "required": false, - "description": "Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars." - }, - "currency": { - "type": [ - "String" - ], - "required": true, - "description": "Three-letter ISO 4217 currency code, see more on currencies. Pass \u201cXTR\u201d for payments in Telegram Stars." - }, - "prices": { - "type": [ - "Array" - ], - "required": true, - "description": "Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars." - }, - "max_tip_amount": { - "type": [ - "Integer" - ], - "required": false, - "description": "The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_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). Defaults to 0. Not supported for payments in Telegram Stars." - }, - "suggested_tip_amounts": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized array of suggested amounts of tips in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount." - }, - "start_parameter": { - "type": [ - "String" - ], - "required": false, - "description": "Unique deep-linking parameter. If left empty, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice. If non-empty, forwarded copies of the sent message will have a URL button with a deep link to the bot (instead of a Pay button), with the value used as the start parameter" - }, - "provider_data": { - "type": [ - "String" - ], - "required": false, - "description": "JSON-serialized 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." - }, - "photo_url": { - "type": [ - "String" - ], - "required": false, - "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." - }, - "photo_size": { - "type": [ - "Integer" - ], - "required": false, - "description": "Photo size in bytes" - }, - "photo_width": { - "type": [ - "Integer" - ], - "required": false, - "description": "Photo width" - }, - "photo_height": { - "type": [ - "Integer" - ], - "required": false, - "description": "Photo height" - }, - "need_name": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if you require the user's full name to complete the order. Ignored for payments in Telegram Stars." - }, - "need_phone_number": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if you require the user's phone number to complete the order. Ignored for payments in Telegram Stars." - }, - "need_email": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if you require the user's email address to complete the order. Ignored for payments in Telegram Stars." - }, - "need_shipping_address": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if you require the user's shipping address to complete the order. Ignored for payments in Telegram Stars." - }, - "send_phone_number_to_provider": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the user's phone number should be sent to the provider. Ignored for payments in Telegram Stars." - }, - "send_email_to_provider": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the user's email address should be sent to the provider. Ignored for payments in Telegram Stars." - }, - "is_flexible": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the final price depends on the shipping method. Ignored for payments in Telegram Stars." - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "suggested_post_parameters": { - "type": [ - "SuggestedPostParameters" - ], - "required": false, - "description": "A JSON-serialized object containing the parameters of the suggested post to send; for direct messages chats only. If the message is sent as a reply to another suggested post, then that suggested post is automatically declined." - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup" - ], - "required": false, - "description": "A JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown. If not empty, the first button must be a Pay button." - } - } - }, - "createInvoiceLink": { - "href": "https://core.telegram.org/bots/api#createinvoicelink", - "description": [ - "Use this method to create a link for an invoice. Returns the created invoice link as String on success." - ], - "returns": [ - "String" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the link will be created. For payments in Telegram Stars only." - }, - "title": { - "type": [ - "String" - ], - "required": true, - "description": "Product name, 1-32 characters" - }, - "description": { - "type": [ - "String" - ], - "required": true, - "description": "Product description, 1-255 characters" - }, - "payload": { - "type": [ - "String" - ], - "required": true, - "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use it for your internal processes." - }, - "provider_token": { - "type": [ - "String" - ], - "required": false, - "description": "Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars." - }, - "currency": { - "type": [ - "String" - ], - "required": true, - "description": "Three-letter ISO 4217 currency code, see more on currencies. Pass \u201cXTR\u201d for payments in Telegram Stars." - }, - "prices": { - "type": [ - "Array" - ], - "required": true, - "description": "Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.). Must contain exactly one item for payments in Telegram Stars." - }, - "subscription_period": { - "type": [ - "Integer" - ], - "required": false, - "description": "The number of seconds the subscription will be active for before the next payment. The currency must be set to \u201cXTR\u201d (Telegram Stars) if the parameter is used. Currently, it must always be 2592000 (30 days) if specified. Any number of subscriptions can be active for a given bot at the same time, including multiple concurrent subscriptions from the same user. Subscription price must no exceed 10000 Telegram Stars." - }, - "max_tip_amount": { - "type": [ - "Integer" - ], - "required": false, - "description": "The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_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). Defaults to 0. Not supported for payments in Telegram Stars." - }, - "suggested_tip_amounts": { - "type": [ - "Array" - ], - "required": false, - "description": "A JSON-serialized array of suggested amounts of tips in the smallest units of the currency (integer, not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be positive, passed in a strictly increased order and must not exceed max_tip_amount." - }, - "provider_data": { - "type": [ - "String" - ], - "required": false, - "description": "JSON-serialized 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." - }, - "photo_url": { - "type": [ - "String" - ], - "required": false, - "description": "URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service." - }, - "photo_size": { - "type": [ - "Integer" - ], - "required": false, - "description": "Photo size in bytes" - }, - "photo_width": { - "type": [ - "Integer" - ], - "required": false, - "description": "Photo width" - }, - "photo_height": { - "type": [ - "Integer" - ], - "required": false, - "description": "Photo height" - }, - "need_name": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if you require the user's full name to complete the order. Ignored for payments in Telegram Stars." - }, - "need_phone_number": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if you require the user's phone number to complete the order. Ignored for payments in Telegram Stars." - }, - "need_email": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if you require the user's email address to complete the order. Ignored for payments in Telegram Stars." - }, - "need_shipping_address": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if you require the user's shipping address to complete the order. Ignored for payments in Telegram Stars." - }, - "send_phone_number_to_provider": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the user's phone number should be sent to the provider. Ignored for payments in Telegram Stars." - }, - "send_email_to_provider": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the user's email address should be sent to the provider. Ignored for payments in Telegram Stars." - }, - "is_flexible": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the final price depends on the shipping method. Ignored for payments in Telegram Stars." - } - } - }, - "answerShippingQuery": { - "href": "https://core.telegram.org/bots/api#answershippingquery", - "description": [ - "If you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot. Use this method to reply to shipping queries. On success, True is returned." - ], - "returns": [ - "True" - ], - "parameters": { - "shipping_query_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier for the query to be answered" - }, - "ok": { - "type": [ - "Boolean" - ], - "required": true, - "description": "Pass True if delivery to the specified address is possible and False if there are any problems (for example, if delivery to the specified address is not possible)" - }, - "shipping_options": { - "type": [ - "Array" - ], - "required": false, - "description": "Required if ok is True. A JSON-serialized array of available shipping options." - }, - "error_message": { - "type": [ - "String" - ], - "required": false, - "description": "Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. \u201cSorry, delivery to your desired address is unavailable\u201d). Telegram will display this message to the user." - } - } - }, - "answerPreCheckoutQuery": { - "href": "https://core.telegram.org/bots/api#answerprecheckoutquery", - "description": [ - "Once the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query. Use this method to respond to such pre-checkout queries. On success, True is returned. Note: The Bot API must receive an answer within 10 seconds after the pre-checkout query was sent." - ], - "returns": [ - "True" - ], - "parameters": { - "pre_checkout_query_id": { - "type": [ - "String" - ], - "required": true, - "description": "Unique identifier for the query to be answered" - }, - "ok": { - "type": [ - "Boolean" - ], - "required": true, - "description": "Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. Use False if there are any problems." - }, - "error_message": { - "type": [ - "String" - ], - "required": false, - "description": "Required if ok is False. 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." - } - } - }, - "getMyStarBalance": { - "href": "https://core.telegram.org/bots/api#getmystarbalance", - "description": [ - "A method to get the current Telegram Stars balance of the bot. Requires no parameters. On success, returns a StarAmount object." - ], - "returns": [ - "StarAmount" - ] - }, - "getStarTransactions": { - "href": "https://core.telegram.org/bots/api#getstartransactions", - "description": [ - "Returns the bot's Telegram Star transactions in chronological order. On success, returns a StarTransactions object." - ], - "returns": [ - "StarTransactions" - ], - "parameters": { - "offset": { - "type": [ - "Integer" - ], - "required": false, - "description": "Number of transactions to skip in the response" - }, - "limit": { - "type": [ - "Integer" - ], - "required": false, - "description": "The maximum number of transactions to be retrieved. Values between 1-100 are accepted. Defaults to 100." - } - } - }, - "refundStarPayment": { - "href": "https://core.telegram.org/bots/api#refundstarpayment", - "description": [ - "Refunds a successful payment in Telegram Stars. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Identifier of the user whose payment will be refunded" - }, - "telegram_payment_charge_id": { - "type": [ - "String" - ], - "required": true, - "description": "Telegram payment identifier" - } - } - }, - "editUserStarSubscription": { - "href": "https://core.telegram.org/bots/api#edituserstarsubscription", - "description": [ - "Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars. Returns True on success." - ], - "returns": [ - "True" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Identifier of the user whose subscription will be edited" - }, - "telegram_payment_charge_id": { - "type": [ - "String" - ], - "required": true, - "description": "Telegram payment identifier for the subscription" - }, - "is_canceled": { - "type": [ - "Boolean" - ], - "required": true, - "description": "Pass True to cancel extension of the user subscription; the subscription must be active up to the end of the current subscription period. Pass False to allow the user to re-enable a subscription that was previously canceled by the bot." - } - } - }, - "setPassportDataErrors": { - "href": "https://core.telegram.org/bots/api#setpassportdataerrors", - "description": [ - "Informs a user that some of the Telegram Passport elements they provided contains errors. The user will not be able to re-submit their Passport to you until the errors are fixed (the contents of the field for which you returned the error must change). Returns True on success.", - "Use this if the data submitted by the user doesn't satisfy the standards your service requires for any reason. For example, if a birthday date seems invalid, a submitted document is blurry, a scan shows evidence of tampering, etc. Supply some details in the error message to make sure the user knows how to correct the issues." - ], - "returns": [ - "True" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "User identifier" - }, - "errors": { - "type": [ - "Array" - ], - "required": true, - "description": "A JSON-serialized array describing the errors" - } - } - }, - "sendGame": { - "href": "https://core.telegram.org/bots/api#sendgame", - "description": [ - "Use this method to send a game. On success, the sent Message is returned." - ], - "returns": [ - "Message" - ], - "parameters": { - "business_connection_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the business connection on behalf of which the message will be sent" - }, - "chat_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Unique identifier for the target chat. Games can't be sent to channel direct messages chats and channel chats." - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Unique identifier for the target message thread (topic) of a forum; for forum supergroups and private chats of bots with forum topic mode enabled only" - }, - "game_short_name": { - "type": [ - "String" - ], - "required": true, - "description": "Short name of the game, serves as the unique identifier for the game. Set up your games via @BotFather." - }, - "disable_notification": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Sends the message silently. Users will receive a notification with no sound." - }, - "protect_content": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Protects the contents of the sent message from forwarding and saving" - }, - "allow_paid_broadcast": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True to allow up to 1000 messages per second, ignoring broadcasting limits for a fee of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance" - }, - "message_effect_id": { - "type": [ - "String" - ], - "required": false, - "description": "Unique identifier of the message effect to be added to the message; for private chats only" - }, - "reply_parameters": { - "type": [ - "ReplyParameters" - ], - "required": false, - "description": "Description of the message to reply to" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup" - ], - "required": false, - "description": "A JSON-serialized object for an inline keyboard. If empty, one 'Play game_title' button will be shown. If not empty, the first button must launch the game." - } - } - }, - "setGameScore": { - "href": "https://core.telegram.org/bots/api#setgamescore", - "description": [ - "Use this method to set the score of the specified user in a game message. On success, if the message is not an inline message, the Message is returned, otherwise True is returned. Returns an error, if the new score is not greater than the user's current score in the chat and force is False." - ], - "returns": [ - "Message", - "True" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "User identifier" - }, - "score": { - "type": [ - "Integer" - ], - "required": true, - "description": "New score, must be non-negative" - }, - "force": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters" - }, - "disable_edit_message": { - "type": [ - "Boolean" - ], - "required": false, - "description": "Pass True if the game message should not be automatically edited to include the current scoreboard" - }, - "chat_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Identifier of the sent message" - }, - "inline_message_id": { - "type": [ - "String" - ], - "required": false, - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" - } - } - }, - "getGameHighScores": { - "href": "https://core.telegram.org/bots/api#getgamehighscores", - "description": [ - "Use this method to get data for high score tables. Will return the score of the specified user and several of their neighbors in a game. Returns an Array of GameHighScore objects." - ], - "returns": [ - "Array" - ], - "parameters": { - "user_id": { - "type": [ - "Integer" - ], - "required": true, - "description": "Target user id" - }, - "chat_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Unique identifier for the target chat" - }, - "message_id": { - "type": [ - "Integer" - ], - "required": false, - "description": "Required if inline_message_id is not specified. Identifier of the sent message" - }, - "inline_message_id": { - "type": [ - "String" - ], - "required": false, - "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" - } - } - } - }, - "types": { - "Update": { - "href": "https://core.telegram.org/bots/api#update", - "description": [ - "This object represents an incoming update.At most one of the optional parameters can be present in any given update." - ], - "fields": { - "update_id": { - "type": [ - "Integer" - ], - "description": "The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This identifier becomes especially handy if you're using webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially." - }, - "message": { - "type": [ - "Message" - ], - "description": "Optional. New incoming message of any kind - text, photo, sticker, etc." - }, - "edited_message": { - "type": [ - "Message" - ], - "description": "Optional. New version of a message that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot." - }, - "channel_post": { - "type": [ - "Message" - ], - "description": "Optional. New incoming channel post of any kind - text, photo, sticker, etc." - }, - "edited_channel_post": { - "type": [ - "Message" - ], - "description": "Optional. New version of a channel post that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot." - }, - "business_connection": { - "type": [ - "BusinessConnection" - ], - "description": "Optional. The bot was connected to or disconnected from a business account, or a user edited an existing connection with the bot" - }, - "business_message": { - "type": [ - "Message" - ], - "description": "Optional. New message from a connected business account" - }, - "edited_business_message": { - "type": [ - "Message" - ], - "description": "Optional. New version of a message from a connected business account" - }, - "deleted_business_messages": { - "type": [ - "BusinessMessagesDeleted" - ], - "description": "Optional. Messages were deleted from a connected business account" - }, - "message_reaction": { - "type": [ - "MessageReactionUpdated" - ], - "description": "Optional. A reaction to a message was changed by a user. The bot must be an administrator in the chat and must explicitly specify \"message_reaction\" in the list of allowed_updates to receive these updates. The update isn't received for reactions set by bots." - }, - "message_reaction_count": { - "type": [ - "MessageReactionCountUpdated" - ], - "description": "Optional. Reactions to a message with anonymous reactions were changed. The bot must be an administrator in the chat and must explicitly specify \"message_reaction_count\" in the list of allowed_updates to receive these updates. The updates are grouped and can be sent with delay up to a few minutes." - }, - "inline_query": { - "type": [ - "InlineQuery" - ], - "description": "Optional. New incoming inline query" - }, - "chosen_inline_result": { - "type": [ - "ChosenInlineResult" - ], - "description": "Optional. 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." - }, - "callback_query": { - "type": [ - "CallbackQuery" - ], - "description": "Optional. New incoming callback query" - }, - "shipping_query": { - "type": [ - "ShippingQuery" - ], - "description": "Optional. New incoming shipping query. Only for invoices with flexible price" - }, - "pre_checkout_query": { - "type": [ - "PreCheckoutQuery" - ], - "description": "Optional. New incoming pre-checkout query. Contains full information about checkout" - }, - "purchased_paid_media": { - "type": [ - "PaidMediaPurchased" - ], - "description": "Optional. A user purchased paid media with a non-empty payload sent by the bot in a non-channel chat" - }, - "poll": { - "type": [ - "Poll" - ], - "description": "Optional. New poll state. Bots receive only updates about manually stopped polls and polls, which are sent by the bot" - }, - "poll_answer": { - "type": [ - "PollAnswer" - ], - "description": "Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself." - }, - "my_chat_member": { - "type": [ - "ChatMemberUpdated" - ], - "description": "Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user." - }, - "chat_member": { - "type": [ - "ChatMemberUpdated" - ], - "description": "Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must explicitly specify \"chat_member\" in the list of allowed_updates to receive these updates." - }, - "chat_join_request": { - "type": [ - "ChatJoinRequest" - ], - "description": "Optional. A request to join the chat has been sent. The bot must have the can_invite_users administrator right in the chat to receive these updates." - }, - "chat_boost": { - "type": [ - "ChatBoostUpdated" - ], - "description": "Optional. A chat boost was added or changed. The bot must be an administrator in the chat to receive these updates." - }, - "removed_chat_boost": { - "type": [ - "ChatBoostRemoved" - ], - "description": "Optional. A boost was removed from a chat. The bot must be an administrator in the chat to receive these updates." - } - } - }, - "WebhookInfo": { - "href": "https://core.telegram.org/bots/api#webhookinfo", - "description": [ - "Describes the current status of a webhook." - ], - "fields": { - "url": { - "type": [ - "String" - ], - "description": "Webhook URL, may be empty if webhook is not set up" - }, - "has_custom_certificate": { - "type": [ - "Boolean" - ], - "description": "True, if a custom certificate was provided for webhook certificate checks" - }, - "pending_update_count": { - "type": [ - "Integer" - ], - "description": "Number of updates awaiting delivery" - }, - "ip_address": { - "type": [ - "String" - ], - "description": "Optional. Currently used webhook IP address" - }, - "last_error_date": { - "type": [ - "Integer" - ], - "description": "Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook" - }, - "last_error_message": { - "type": [ - "String" - ], - "description": "Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook" - }, - "last_synchronization_error_date": { - "type": [ - "Integer" - ], - "description": "Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters" - }, - "max_connections": { - "type": [ - "Integer" - ], - "description": "Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery" - }, - "allowed_updates": { - "type": [ - "Array" - ], - "description": "Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member" - } - } - }, - "User": { - "href": "https://core.telegram.org/bots/api#user", - "description": [ - "This object represents a Telegram user or bot." - ], - "fields": { - "id": { - "type": [ - "Integer" - ], - "description": "Unique identifier for this user or bot. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier." - }, - "is_bot": { - "type": [ - "Boolean" - ], - "description": "True, if this user is a bot" - }, - "first_name": { - "type": [ - "String" - ], - "description": "User's or bot's first name" - }, - "last_name": { - "type": [ - "String" - ], - "description": "Optional. User's or bot's last name" - }, - "username": { - "type": [ - "String" - ], - "description": "Optional. User's or bot's username" - }, - "language_code": { - "type": [ - "String" - ], - "description": "Optional. IETF language tag of the user's language" - }, - "is_premium": { - "type": [ - "True" - ], - "description": "Optional. True, if this user is a Telegram Premium user" - }, - "added_to_attachment_menu": { - "type": [ - "True" - ], - "description": "Optional. True, if this user added the bot to the attachment menu" - }, - "can_join_groups": { - "type": [ - "Boolean" - ], - "description": "Optional. True, if the bot can be invited to groups. Returned only in getMe." - }, - "can_read_all_group_messages": { - "type": [ - "Boolean" - ], - "description": "Optional. True, if privacy mode is disabled for the bot. Returned only in getMe." - }, - "supports_inline_queries": { - "type": [ - "Boolean" - ], - "description": "Optional. True, if the bot supports inline queries. Returned only in getMe." - }, - "can_connect_to_business": { - "type": [ - "Boolean" - ], - "description": "Optional. True, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in getMe." - }, - "has_main_web_app": { - "type": [ - "Boolean" - ], - "description": "Optional. True, if the bot has a main Web App. Returned only in getMe." - }, - "has_topics_enabled": { - "type": [ - "Boolean" - ], - "description": "Optional. True, if the bot has forum topic mode enabled in private chats. Returned only in getMe." - }, - "allows_users_to_create_topics": { - "type": [ - "Boolean" - ], - "description": "Optional. True, if the bot allows users to create and delete topics in private chats. Returned only in getMe." - } - } - }, - "Chat": { - "href": "https://core.telegram.org/bots/api#chat", - "description": [ - "This object represents a chat." - ], - "fields": { - "id": { - "type": [ - "Integer" - ], - "description": "Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier." - }, - "type": { - "type": [ - "String" - ], - "description": "Type of the chat, can be either \u201cprivate\u201d, \u201cgroup\u201d, \u201csupergroup\u201d or \u201cchannel\u201d" - }, - "title": { - "type": [ - "String" - ], - "description": "Optional. Title, for supergroups, channels and group chats" - }, - "username": { - "type": [ - "String" - ], - "description": "Optional. Username, for private chats, supergroups and channels if available" - }, - "first_name": { - "type": [ - "String" - ], - "description": "Optional. First name of the other party in a private chat" - }, - "last_name": { - "type": [ - "String" - ], - "description": "Optional. Last name of the other party in a private chat" - }, - "is_forum": { - "type": [ - "True" - ], - "description": "Optional. True, if the supergroup chat is a forum (has topics enabled)" - }, - "is_direct_messages": { - "type": [ - "True" - ], - "description": "Optional. True, if the chat is the direct messages chat of a channel" - } - } - }, - "ChatFullInfo": { - "href": "https://core.telegram.org/bots/api#chatfullinfo", - "description": [ - "This object contains full information about a chat." - ], - "fields": { - "id": { - "type": [ - "Integer" - ], - "description": "Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier." - }, - "type": { - "type": [ - "String" - ], - "description": "Type of the chat, can be either \u201cprivate\u201d, \u201cgroup\u201d, \u201csupergroup\u201d or \u201cchannel\u201d" - }, - "title": { - "type": [ - "String" - ], - "description": "Optional. Title, for supergroups, channels and group chats" - }, - "username": { - "type": [ - "String" - ], - "description": "Optional. Username, for private chats, supergroups and channels if available" - }, - "first_name": { - "type": [ - "String" - ], - "description": "Optional. First name of the other party in a private chat" - }, - "last_name": { - "type": [ - "String" - ], - "description": "Optional. Last name of the other party in a private chat" - }, - "is_forum": { - "type": [ - "True" - ], - "description": "Optional. True, if the supergroup chat is a forum (has topics enabled)" - }, - "is_direct_messages": { - "type": [ - "True" - ], - "description": "Optional. True, if the chat is the direct messages chat of a channel" - }, - "accent_color_id": { - "type": [ - "Integer" - ], - "description": "Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview. See accent colors for more details." - }, - "max_reaction_count": { - "type": [ - "Integer" - ], - "description": "The maximum number of reactions that can be set on a message in the chat" - }, - "photo": { - "type": [ - "ChatPhoto" - ], - "description": "Optional. Chat photo" - }, - "active_usernames": { - "type": [ - "Array" - ], - "description": "Optional. If non-empty, the list of all active chat usernames; for private chats, supergroups and channels" - }, - "birthdate": { - "type": [ - "Birthdate" - ], - "description": "Optional. For private chats, the date of birth of the user" - }, - "business_intro": { - "type": [ - "BusinessIntro" - ], - "description": "Optional. For private chats with business accounts, the intro of the business" - }, - "business_location": { - "type": [ - "BusinessLocation" - ], - "description": "Optional. For private chats with business accounts, the location of the business" - }, - "business_opening_hours": { - "type": [ - "BusinessOpeningHours" - ], - "description": "Optional. For private chats with business accounts, the opening hours of the business" - }, - "personal_chat": { - "type": [ - "Chat" - ], - "description": "Optional. For private chats, the personal channel of the user" - }, - "parent_chat": { - "type": [ - "Chat" - ], - "description": "Optional. Information about the corresponding channel chat; for direct messages chats only" - }, - "available_reactions": { - "type": [ - "Array" - ], - "description": "Optional. List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed." - }, - "background_custom_emoji_id": { - "type": [ - "String" - ], - "description": "Optional. Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background" - }, - "profile_accent_color_id": { - "type": [ - "Integer" - ], - "description": "Optional. Identifier of the accent color for the chat's profile background. See profile accent colors for more details." - }, - "profile_background_custom_emoji_id": { - "type": [ - "String" - ], - "description": "Optional. Custom emoji identifier of the emoji chosen by the chat for its profile background" - }, - "emoji_status_custom_emoji_id": { - "type": [ - "String" - ], - "description": "Optional. Custom emoji identifier of the emoji status of the chat or the other party in a private chat" - }, - "emoji_status_expiration_date": { - "type": [ - "Integer" - ], - "description": "Optional. Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any" - }, - "bio": { - "type": [ - "String" - ], - "description": "Optional. Bio of the other party in a private chat" - }, - "has_private_forwards": { - "type": [ - "True" - ], - "description": "Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id= links only in chats with the user" - }, - "has_restricted_voice_and_video_messages": { - "type": [ - "True" - ], - "description": "Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat" - }, - "join_to_send_messages": { - "type": [ - "True" - ], - "description": "Optional. True, if users need to join the supergroup before they can send messages" - }, - "join_by_request": { - "type": [ - "True" - ], - "description": "Optional. True, if all users directly joining the supergroup without using an invite link need to be approved by supergroup administrators" - }, - "description": { - "type": [ - "String" - ], - "description": "Optional. Description, for groups, supergroups and channel chats" - }, - "invite_link": { - "type": [ - "String" - ], - "description": "Optional. Primary invite link, for groups, supergroups and channel chats" - }, - "pinned_message": { - "type": [ - "Message" - ], - "description": "Optional. The most recent pinned message (by sending date)" - }, - "permissions": { - "type": [ - "ChatPermissions" - ], - "description": "Optional. Default chat member permissions, for groups and supergroups" - }, - "accepted_gift_types": { - "type": [ - "AcceptedGiftTypes" - ], - "description": "Information about types of gifts that are accepted by the chat or by the corresponding user for private chats" - }, - "can_send_paid_media": { - "type": [ - "True" - ], - "description": "Optional. True, if paid media messages can be sent or forwarded to the channel chat. The field is available only for channel chats." - }, - "slow_mode_delay": { - "type": [ - "Integer" - ], - "description": "Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds" - }, - "unrestrict_boost_count": { - "type": [ - "Integer" - ], - "description": "Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions" - }, - "message_auto_delete_time": { - "type": [ - "Integer" - ], - "description": "Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds" - }, - "has_aggressive_anti_spam_enabled": { - "type": [ - "True" - ], - "description": "Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators." - }, - "has_hidden_members": { - "type": [ - "True" - ], - "description": "Optional. True, if non-administrators can only get the list of bots and administrators in the chat" - }, - "has_protected_content": { - "type": [ - "True" - ], - "description": "Optional. True, if messages from the chat can't be forwarded to other chats" - }, - "has_visible_history": { - "type": [ - "True" - ], - "description": "Optional. True, if new chat members will have access to old messages; available only to chat administrators" - }, - "sticker_set_name": { - "type": [ - "String" - ], - "description": "Optional. For supergroups, name of the group sticker set" - }, - "can_set_sticker_set": { - "type": [ - "True" - ], - "description": "Optional. True, if the bot can change the group sticker set" - }, - "custom_emoji_sticker_set_name": { - "type": [ - "String" - ], - "description": "Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group." - }, - "linked_chat_id": { - "type": [ - "Integer" - ], - "description": "Optional. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier." - }, - "location": { - "type": [ - "ChatLocation" - ], - "description": "Optional. For supergroups, the location to which the supergroup is connected" - }, - "rating": { - "type": [ - "UserRating" - ], - "description": "Optional. For private chats, the rating of the user if any" - }, - "first_profile_audio": { - "type": [ - "Audio" - ], - "description": "Optional. For private chats, the first audio added to the profile of the user" - }, - "unique_gift_colors": { - "type": [ - "UniqueGiftColors" - ], - "description": "Optional. The color scheme based on a unique gift that must be used for the chat's name, message replies and link previews" - }, - "paid_message_star_count": { - "type": [ - "Integer" - ], - "description": "Optional. The number of Telegram Stars a general user have to pay to send a message to the chat" - } - } - }, - "Message": { - "href": "https://core.telegram.org/bots/api#message", - "description": [ - "This object represents a message." - ], - "fields": { - "message_id": { - "type": [ - "Integer" - ], - "description": "Unique message identifier inside this chat. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent" - }, - "message_thread_id": { - "type": [ - "Integer" - ], - "description": "Optional. Unique identifier of a message thread or forum topic to which the message belongs; for supergroups and private chats only" - }, - "direct_messages_topic": { - "type": [ - "DirectMessagesTopic" - ], - "description": "Optional. Information about the direct messages chat topic that contains the message" - }, - "from": { - "type": [ - "User" - ], - "description": "Optional. Sender of the message; may be empty for messages sent to channels. For backward compatibility, if the message was sent on behalf of a chat, the field contains a fake sender user in non-channel chats" - }, - "sender_chat": { - "type": [ - "Chat" - ], - "description": "Optional. Sender of the message when sent on behalf of a chat. For example, the supergroup itself for messages sent by its anonymous administrators or a linked channel for messages automatically forwarded to the channel's discussion group. For backward compatibility, if the message was sent on behalf of a chat, the field from contains a fake sender user in non-channel chats." - }, - "sender_boost_count": { - "type": [ - "Integer" - ], - "description": "Optional. If the sender of the message boosted the chat, the number of boosts added by the user" - }, - "sender_business_bot": { - "type": [ - "User" - ], - "description": "Optional. The bot that actually sent the message on behalf of the business account. Available only for outgoing messages sent on behalf of the connected business account." - }, - "date": { - "type": [ - "Integer" - ], - "description": "Date the message was sent in Unix time. It is always a positive number, representing a valid date." - }, - "business_connection_id": { - "type": [ - "String" - ], - "description": "Optional. Unique identifier of the business connection from which the message was received. If non-empty, the message belongs to a chat of the corresponding business account that is independent from any potential bot chat which might share the same identifier." - }, - "chat": { - "type": [ - "Chat" - ], - "description": "Chat the message belongs to" - }, - "forward_origin": { - "type": [ - "MessageOrigin" - ], - "description": "Optional. Information about the original message for forwarded messages" - }, - "is_topic_message": { - "type": [ - "True" - ], - "description": "Optional. True, if the message is sent to a topic in a forum supergroup or a private chat with the bot" - }, - "is_automatic_forward": { - "type": [ - "True" - ], - "description": "Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group" - }, - "reply_to_message": { - "type": [ - "Message" - ], - "description": "Optional. For replies in the same chat and message thread, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply." - }, - "external_reply": { - "type": [ - "ExternalReplyInfo" - ], - "description": "Optional. Information about the message that is being replied to, which may come from another chat or forum topic" - }, - "quote": { - "type": [ - "TextQuote" - ], - "description": "Optional. For replies that quote part of the original message, the quoted part of the message" - }, - "reply_to_story": { - "type": [ - "Story" - ], - "description": "Optional. For replies to a story, the original story" - }, - "reply_to_checklist_task_id": { - "type": [ - "Integer" - ], - "description": "Optional. Identifier of the specific checklist task that is being replied to" - }, - "via_bot": { - "type": [ - "User" - ], - "description": "Optional. Bot through which the message was sent" - }, - "edit_date": { - "type": [ - "Integer" - ], - "description": "Optional. Date the message was last edited in Unix time" - }, - "has_protected_content": { - "type": [ - "True" - ], - "description": "Optional. True, if the message can't be forwarded" - }, - "is_from_offline": { - "type": [ - "True" - ], - "description": "Optional. True, if the message was sent by an implicit action, for example, as an away or a greeting business message, or as a scheduled message" - }, - "is_paid_post": { - "type": [ - "True" - ], - "description": "Optional. True, if the message is a paid post. Note that such posts must not be deleted for 24 hours to receive the payment and can't be edited." - }, - "media_group_id": { - "type": [ - "String" - ], - "description": "Optional. The unique identifier of a media message group this message belongs to" - }, - "author_signature": { - "type": [ - "String" - ], - "description": "Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator" - }, - "paid_star_count": { - "type": [ - "Integer" - ], - "description": "Optional. The number of Telegram Stars that were paid by the sender of the message to send it" - }, - "text": { - "type": [ - "String" - ], - "description": "Optional. For text messages, the actual UTF-8 text of the message" - }, - "entities": { - "type": [ - "Array" - ], - "description": "Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text" - }, - "link_preview_options": { - "type": [ - "LinkPreviewOptions" - ], - "description": "Optional. Options used for link preview generation for the message, if it is a text message and link preview options were changed" - }, - "suggested_post_info": { - "type": [ - "SuggestedPostInfo" - ], - "description": "Optional. Information about suggested post parameters if the message is a suggested post in a channel direct messages chat. If the message is an approved or declined suggested post, then it can't be edited." - }, - "effect_id": { - "type": [ - "String" - ], - "description": "Optional. Unique identifier of the message effect added to the message" - }, - "animation": { - "type": [ - "Animation" - ], - "description": "Optional. Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set" - }, - "audio": { - "type": [ - "Audio" - ], - "description": "Optional. Message is an audio file, information about the file" - }, - "document": { - "type": [ - "Document" - ], - "description": "Optional. Message is a general file, information about the file" - }, - "paid_media": { - "type": [ - "PaidMediaInfo" - ], - "description": "Optional. Message contains paid media; information about the paid media" - }, - "photo": { - "type": [ - "Array" - ], - "description": "Optional. Message is a photo, available sizes of the photo" - }, - "sticker": { - "type": [ - "Sticker" - ], - "description": "Optional. Message is a sticker, information about the sticker" - }, - "story": { - "type": [ - "Story" - ], - "description": "Optional. Message is a forwarded story" - }, - "video": { - "type": [ - "Video" - ], - "description": "Optional. Message is a video, information about the video" - }, - "video_note": { - "type": [ - "VideoNote" - ], - "description": "Optional. Message is a video note, information about the video message" - }, - "voice": { - "type": [ - "Voice" - ], - "description": "Optional. Message is a voice message, information about the file" - }, - "caption": { - "type": [ - "String" - ], - "description": "Optional. Caption for the animation, audio, document, paid media, photo, video or voice" - }, - "caption_entities": { - "type": [ - "Array" - ], - "description": "Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption" - }, - "show_caption_above_media": { - "type": [ - "True" - ], - "description": "Optional. True, if the caption must be shown above the message media" - }, - "has_media_spoiler": { - "type": [ - "True" - ], - "description": "Optional. True, if the message media is covered by a spoiler animation" - }, - "checklist": { - "type": [ - "Checklist" - ], - "description": "Optional. Message is a checklist" - }, - "contact": { - "type": [ - "Contact" - ], - "description": "Optional. Message is a shared contact, information about the contact" - }, - "dice": { - "type": [ - "Dice" - ], - "description": "Optional. Message is a dice with random value" - }, - "game": { - "type": [ - "Game" - ], - "description": "Optional. Message is a game, information about the game. More about games \u00bb" - }, - "poll": { - "type": [ - "Poll" - ], - "description": "Optional. Message is a native poll, information about the poll" - }, - "venue": { - "type": [ - "Venue" - ], - "description": "Optional. Message is a venue, information about the venue. For backward compatibility, when this field is set, the location field will also be set" - }, - "location": { - "type": [ - "Location" - ], - "description": "Optional. Message is a shared location, information about the location" - }, - "new_chat_members": { - "type": [ - "Array" - ], - "description": "Optional. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)" - }, - "left_chat_member": { - "type": [ - "User" - ], - "description": "Optional. A member was removed from the group, information about them (this member may be the bot itself)" - }, - "chat_owner_left": { - "type": [ - "ChatOwnerLeft" - ], - "description": "Optional. Service message: chat owner has left" - }, - "chat_owner_changed": { - "type": [ - "ChatOwnerChanged" - ], - "description": "Optional. Service message: chat owner has changed" - }, - "new_chat_title": { - "type": [ - "String" - ], - "description": "Optional. A chat title was changed to this value" - }, - "new_chat_photo": { - "type": [ - "Array" - ], - "description": "Optional. A chat photo was change to this value" - }, - "delete_chat_photo": { - "type": [ - "True" - ], - "description": "Optional. Service message: the chat photo was deleted" - }, - "group_chat_created": { - "type": [ - "True" - ], - "description": "Optional. Service message: the group has been created" - }, - "supergroup_chat_created": { - "type": [ - "True" - ], - "description": "Optional. Service message: the supergroup has been created. This field can't be received in a message coming through updates, because bot can't be a member of a supergroup when it is created. It can only be found in reply_to_message if someone replies to a very first message in a directly created supergroup." - }, - "channel_chat_created": { - "type": [ - "True" - ], - "description": "Optional. Service message: the channel has been created. This field can't be received in a message coming through updates, because bot can't be a member of a channel when it is created. It can only be found in reply_to_message if someone replies to a very first message in a channel." - }, - "message_auto_delete_timer_changed": { - "type": [ - "MessageAutoDeleteTimerChanged" - ], - "description": "Optional. Service message: auto-delete timer settings changed in the chat" - }, - "migrate_to_chat_id": { - "type": [ - "Integer" - ], - "description": "Optional. The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier." - }, - "migrate_from_chat_id": { - "type": [ - "Integer" - ], - "description": "Optional. The supergroup has been migrated from a group with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier." - }, - "pinned_message": { - "type": [ - "MaybeInaccessibleMessage" - ], - "description": "Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply." - }, - "invoice": { - "type": [ - "Invoice" - ], - "description": "Optional. Message is an invoice for a payment, information about the invoice. More about payments \u00bb" - }, - "successful_payment": { - "type": [ - "SuccessfulPayment" - ], - "description": "Optional. Message is a service message about a successful payment, information about the payment. More about payments \u00bb" - }, - "refunded_payment": { - "type": [ - "RefundedPayment" - ], - "description": "Optional. Message is a service message about a refunded payment, information about the payment. More about payments \u00bb" - }, - "users_shared": { - "type": [ - "UsersShared" - ], - "description": "Optional. Service message: users were shared with the bot" - }, - "chat_shared": { - "type": [ - "ChatShared" - ], - "description": "Optional. Service message: a chat was shared with the bot" - }, - "gift": { - "type": [ - "GiftInfo" - ], - "description": "Optional. Service message: a regular gift was sent or received" - }, - "unique_gift": { - "type": [ - "UniqueGiftInfo" - ], - "description": "Optional. Service message: a unique gift was sent or received" - }, - "gift_upgrade_sent": { - "type": [ - "GiftInfo" - ], - "description": "Optional. Service message: upgrade of a gift was purchased after the gift was sent" - }, - "connected_website": { - "type": [ - "String" - ], - "description": "Optional. The domain name of the website on which the user has logged in. More about Telegram Login \u00bb" - }, - "write_access_allowed": { - "type": [ - "WriteAccessAllowed" - ], - "description": "Optional. Service message: the user allowed the bot to write messages after adding it to the attachment or side menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess" - }, - "passport_data": { - "type": [ - "PassportData" - ], - "description": "Optional. Telegram Passport data" - }, - "proximity_alert_triggered": { - "type": [ - "ProximityAlertTriggered" - ], - "description": "Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location." - }, - "boost_added": { - "type": [ - "ChatBoostAdded" - ], - "description": "Optional. Service message: user boosted the chat" - }, - "chat_background_set": { - "type": [ - "ChatBackground" - ], - "description": "Optional. Service message: chat background set" - }, - "checklist_tasks_done": { - "type": [ - "ChecklistTasksDone" - ], - "description": "Optional. Service message: some tasks in a checklist were marked as done or not done" - }, - "checklist_tasks_added": { - "type": [ - "ChecklistTasksAdded" - ], - "description": "Optional. Service message: tasks were added to a checklist" - }, - "direct_message_price_changed": { - "type": [ - "DirectMessagePriceChanged" - ], - "description": "Optional. Service message: the price for paid messages in the corresponding direct messages chat of a channel has changed" - }, - "forum_topic_created": { - "type": [ - "ForumTopicCreated" - ], - "description": "Optional. Service message: forum topic created" - }, - "forum_topic_edited": { - "type": [ - "ForumTopicEdited" - ], - "description": "Optional. Service message: forum topic edited" - }, - "forum_topic_closed": { - "type": [ - "ForumTopicClosed" - ], - "description": "Optional. Service message: forum topic closed" - }, - "forum_topic_reopened": { - "type": [ - "ForumTopicReopened" - ], - "description": "Optional. Service message: forum topic reopened" - }, - "general_forum_topic_hidden": { - "type": [ - "GeneralForumTopicHidden" - ], - "description": "Optional. Service message: the 'General' forum topic hidden" - }, - "general_forum_topic_unhidden": { - "type": [ - "GeneralForumTopicUnhidden" - ], - "description": "Optional. Service message: the 'General' forum topic unhidden" - }, - "giveaway_created": { - "type": [ - "GiveawayCreated" - ], - "description": "Optional. Service message: a scheduled giveaway was created" - }, - "giveaway": { - "type": [ - "Giveaway" - ], - "description": "Optional. The message is a scheduled giveaway message" - }, - "giveaway_winners": { - "type": [ - "GiveawayWinners" - ], - "description": "Optional. A giveaway with public winners was completed" - }, - "giveaway_completed": { - "type": [ - "GiveawayCompleted" - ], - "description": "Optional. Service message: a giveaway without public winners was completed" - }, - "paid_message_price_changed": { - "type": [ - "PaidMessagePriceChanged" - ], - "description": "Optional. Service message: the price for paid messages has changed in the chat" - }, - "suggested_post_approved": { - "type": [ - "SuggestedPostApproved" - ], - "description": "Optional. Service message: a suggested post was approved" - }, - "suggested_post_approval_failed": { - "type": [ - "SuggestedPostApprovalFailed" - ], - "description": "Optional. Service message: approval of a suggested post has failed" - }, - "suggested_post_declined": { - "type": [ - "SuggestedPostDeclined" - ], - "description": "Optional. Service message: a suggested post was declined" - }, - "suggested_post_paid": { - "type": [ - "SuggestedPostPaid" - ], - "description": "Optional. Service message: payment for a suggested post was received" - }, - "suggested_post_refunded": { - "type": [ - "SuggestedPostRefunded" - ], - "description": "Optional. Service message: payment for a suggested post was refunded" - }, - "video_chat_scheduled": { - "type": [ - "VideoChatScheduled" - ], - "description": "Optional. Service message: video chat scheduled" - }, - "video_chat_started": { - "type": [ - "VideoChatStarted" - ], - "description": "Optional. Service message: video chat started" - }, - "video_chat_ended": { - "type": [ - "VideoChatEnded" - ], - "description": "Optional. Service message: video chat ended" - }, - "video_chat_participants_invited": { - "type": [ - "VideoChatParticipantsInvited" - ], - "description": "Optional. Service message: new participants invited to a video chat" - }, - "web_app_data": { - "type": [ - "WebAppData" - ], - "description": "Optional. Service message: data sent by a Web App" - }, - "reply_markup": { - "type": [ - "InlineKeyboardMarkup" - ], - "description": "Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons." - } - }, - "extends": "MaybeInaccessibleMessage" - }, - "MessageId": { - "href": "https://core.telegram.org/bots/api#messageid", - "description": [ - "This object represents a unique message identifier." - ], - "fields": { - "message_id": { - "type": [ - "Integer" - ], - "description": "Unique message identifier. In specific instances (e.g., message containing a video sent to a big chat), the server might automatically schedule a message instead of sending it immediately. In such cases, this field will be 0 and the relevant message will be unusable until it is actually sent" - } - } - }, - "InaccessibleMessage": { - "href": "https://core.telegram.org/bots/api#inaccessiblemessage", - "description": [ - "This object describes a message that was deleted or is otherwise inaccessible to the bot." - ], - "fields": { - "chat": { - "type": [ - "Chat" - ], - "description": "Chat the message belonged to" - }, - "message_id": { - "type": [ - "Integer" - ], - "description": "Unique message identifier inside the chat" - }, - "date": { - "type": [ - "Integer" - ], - "description": "Always 0. The field can be used to differentiate regular and inaccessible messages." - } - }, - "extends": "MaybeInaccessibleMessage" - }, - "MaybeInaccessibleMessage": { - "href": "https://core.telegram.org/bots/api#maybeinaccessiblemessage", - "description": [ - "This object describes a message that can be inaccessible to the bot. It can be one of" - ], - "subtypes": [ - "Message", - "InaccessibleMessage" - ] - }, - "MessageEntity": { - "href": "https://core.telegram.org/bots/api#messageentity", - "description": [ - "This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc." - ], - "fields": { - "type": { - "type": [ - "String" - ], - "description": "Type of the entity. Currently, can be \u201cmention\u201d (@username), \u201chashtag\u201d (#hashtag or #hashtag@chatusername), \u201ccashtag\u201d ($USD or $USD@chatusername), \u201cbot_command\u201d (/start@jobs_bot), \u201curl\u201d (https://telegram.org), \u201cemail\u201d (do-not-reply@telegram.org), \u201cphone_number\u201d (+1-212-555-0123), \u201cbold\u201d (bold text), \u201citalic\u201d (italic text), \u201cunderline\u201d (underlined text), \u201cstrikethrough\u201d (strikethrough text), \u201cspoiler\u201d (spoiler message), \u201cblockquote\u201d (block quotation), \u201cexpandable_blockquote\u201d (collapsed-by-default block quotation), \u201ccode\u201d (monowidth string), \u201cpre\u201d (monowidth block), \u201ctext_link\u201d (for clickable text URLs), \u201ctext_mention\u201d (for users without usernames), \u201ccustom_emoji\u201d (for inline custom emoji stickers)" - }, - "offset": { - "type": [ - "Integer" - ], - "description": "Offset in UTF-16 code units to the start of the entity" - }, - "length": { - "type": [ - "Integer" - ], - "description": "Length of the entity in UTF-16 code units" - }, - "url": { - "type": [ - "String" - ], - "description": "Optional. For \u201ctext_link\u201d only, URL that will be opened after user taps on the text" - }, - "user": { - "type": [ - "User" - ], - "description": "Optional. For \u201ctext_mention\u201d only, the mentioned user" - }, - "language": { - "type": [ - "String" - ], - "description": "Optional. For \u201cpre\u201d only, the programming language of the entity text" - }, - "custom_emoji_id": { - "type": [ - "String" - ], - "description": "Optional. For \u201ccustom_emoji\u201d only, unique identifier of the custom emoji. Use getCustomEmojiStickers to get full information about the sticker" - } - } - }, - "TextQuote": { - "href": "https://core.telegram.org/bots/api#textquote", - "description": [ - "This object contains information about the quoted part of a message that is replied to by the given message." - ], - "fields": { - "text": { - "type": [ - "String" - ], - "description": "Text of the quoted part of a message that is replied to by the given message" - }, - "entities": { - "type": [ - "Array" - ], - "description": "Optional. Special entities that appear in the quote. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are kept in quotes." - }, - "position": { - "type": [ - "Integer" - ], - "description": "Approximate quote position in the original message in UTF-16 code units as specified by the sender" - }, - "is_manual": { - "type": [ - "True" - ], - "description": "Optional. True, if the quote was chosen manually by the message sender. Otherwise, the quote was added automatically by the server." - } - } - }, - "ExternalReplyInfo": { - "href": "https://core.telegram.org/bots/api#externalreplyinfo", - "description": [ - "This object contains information about a message that is being replied to, which may come from another chat or forum topic." - ], - "fields": { - "origin": { - "type": [ - "MessageOrigin" - ], - "description": "Origin of the message replied to by the given message" - }, - "chat": { - "type": [ - "Chat" - ], - "description": "Optional. Chat the original message belongs to. Available only if the chat is a supergroup or a channel." - }, - "message_id": { - "type": [ - "Integer" - ], - "description": "Optional. Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel." - }, - "link_preview_options": { - "type": [ - "LinkPreviewOptions" - ], - "description": "Optional. Options used for link preview generation for the original message, if it is a text message" - }, - "animation": { - "type": [ - "Animation" - ], - "description": "Optional. Message is an animation, information about the animation" - }, - "audio": { - "type": [ - "Audio" - ], - "description": "Optional. Message is an audio file, information about the file" - }, - "document": { - "type": [ - "Document" - ], - "description": "Optional. Message is a general file, information about the file" - }, - "paid_media": { - "type": [ - "PaidMediaInfo" - ], - "description": "Optional. Message contains paid media; information about the paid media" - }, - "photo": { - "type": [ - "Array" - ], - "description": "Optional. Message is a photo, available sizes of the photo" - }, - "sticker": { - "type": [ - "Sticker" - ], - "description": "Optional. Message is a sticker, information about the sticker" - }, - "story": { - "type": [ - "Story" - ], - "description": "Optional. Message is a forwarded story" - }, - "video": { - "type": [ - "Video" - ], - "description": "Optional. Message is a video, information about the video" - }, - "video_note": { - "type": [ - "VideoNote" - ], - "description": "Optional. Message is a video note, information about the video message" - }, - "voice": { - "type": [ - "Voice" - ], - "description": "Optional. Message is a voice message, information about the file" - }, - "has_media_spoiler": { - "type": [ - "True" - ], - "description": "Optional. True, if the message media is covered by a spoiler animation" - }, - "checklist": { - "type": [ - "Checklist" - ], - "description": "Optional. Message is a checklist" - }, - "contact": { - "type": [ - "Contact" - ], - "description": "Optional. Message is a shared contact, information about the contact" - }, - "dice": { - "type": [ - "Dice" - ], - "description": "Optional. Message is a dice with random value" - }, - "game": { - "type": [ - "Game" - ], - "description": "Optional. Message is a game, information about the game. More about games \u00bb" - }, - "giveaway": { - "type": [ - "Giveaway" - ], - "description": "Optional. Message is a scheduled giveaway, information about the giveaway" - }, - "giveaway_winners": { - "type": [ - "GiveawayWinners" - ], - "description": "Optional. A giveaway with public winners was completed" - }, - "invoice": { - "type": [ - "Invoice" - ], - "description": "Optional. Message is an invoice for a payment, information about the invoice. More about payments \u00bb" - }, - "location": { - "type": [ - "Location" - ], - "description": "Optional. Message is a shared location, information about the location" - }, - "poll": { - "type": [ - "Poll" - ], - "description": "Optional. Message is a native poll, information about the poll" - }, - "venue": { - "type": [ - "Venue" - ], - "description": "Optional. Message is a venue, information about the venue" - } - } - }, - "ReplyParameters": { - "href": "https://core.telegram.org/bots/api#replyparameters", - "description": [ - "Describes reply parameters for the message that is being sent." - ], - "fields": { - "message_id": { - "type": [ - "Integer" - ], - "description": "Identifier of the message that will be replied to in the current chat, or in the chat chat_id if it is specified" - }, - "chat_id": { - "type": [ - "Integer", - "String" - ], - "description": "Optional. If the message to be replied to is from a different chat, unique identifier for the chat or username of the channel (in the format @channelusername). Not supported for messages sent on behalf of a business account and messages from channel direct messages chats." - }, - "allow_sending_without_reply": { - "type": [ - "Boolean" - ], - "description": "Optional. Pass True if the message should be sent even if the specified message to be replied to is not found. Always False for replies in another chat or forum topic. Always True for messages sent on behalf of a business account." - }, - "quote": { - "type": [ - "String" - ], - "description": "Optional. Quoted part of the message to be replied to; 0-1024 characters after entities parsing. The quote must be an exact substring of the message to be replied to, including bold, italic, underline, strikethrough, spoiler, and custom_emoji entities. The message will fail to send if the quote isn't found in the original message." - }, - "quote_parse_mode": { - "type": [ - "String" - ], - "description": "Optional. Mode for parsing entities in the quote. See formatting options for more details." - }, - "quote_entities": { - "type": [ - "Array" - ], - "description": "Optional. A JSON-serialized list of special entities that appear in the quote. It can be specified instead of quote_parse_mode." - }, - "quote_position": { - "type": [ - "Integer" - ], - "description": "Optional. Position of the quote in the original message in UTF-16 code units" - }, - "checklist_task_id": { - "type": [ - "Integer" - ], - "description": "Optional. Identifier of the specific checklist task to be replied to" - } - } - }, - "MessageOrigin": { - "href": "https://core.telegram.org/bots/api#messageorigin", - "description": [ - "This object describes the origin of a message. It can be one of" - ], - "subtypes": [ - "MessageOriginUser", - "MessageOriginHiddenUser", - "MessageOriginChat", - "MessageOriginChannel" - ] - }, - "MessageOriginUser": { - "extends": "MessageOrigin", - "href": "https://core.telegram.org/bots/api#messageoriginuser", - "description": [ - "The message was originally sent by a known user." - ], - "fields": { - "type": { - "type": [ - "String" - ], - "description": "Type of the message origin, always \u201cuser\u201d" - }, - "date": { - "type": [ - "Integer" - ], - "description": "Date the message was sent originally in Unix time" - }, - "sender_user": { - "type": [ - "User" - ], - "description": "User that sent the message originally" - } - } - }, - "MessageOriginHiddenUser": { - "extends": "MessageOrigin", - "href": "https://core.telegram.org/bots/api#messageoriginhiddenuser", - "description": [ - "The message was originally sent by an unknown user." - ], - "fields": { - "type": { - "type": [ - "String" - ], - "description": "Type of the message origin, always \u201chidden_user\u201d" - }, - "date": { - "type": [ - "Integer" - ], - "description": "Date the message was sent originally in Unix time" - }, - "sender_user_name": { - "type": [ - "String" - ], - "description": "Name of the user that sent the message originally" - } - } - }, - "MessageOriginChat": { - "extends": "MessageOrigin", - "href": "https://core.telegram.org/bots/api#messageoriginchat", - "description": [ - "The message was originally sent on behalf of a chat to a group chat." - ], - "fields": { - "type": { - "type": [ - "String" - ], - "description": "Type of the message origin, always \u201cchat\u201d" - }, - "date": { - "type": [ - "Integer" - ], - "description": "Date the message was sent originally in Unix time" - }, - "sender_chat": { - "type": [ - "Chat" - ], - "description": "Chat that sent the message originally" - }, - "author_signature": { - "type": [ - "String" - ], - "description": "Optional. For messages originally sent by an anonymous chat administrator, original message author signature" - } - } - }, - "MessageOriginChannel": { - "extends": "MessageOrigin", - "href": "https://core.telegram.org/bots/api#messageoriginchannel", - "description": [ - "The message was originally sent to a channel chat." - ], - "fields": { - "type": { - "type": [ - "String" - ], - "description": "Type of the message origin, always \u201cchannel\u201d" - }, - "date": { - "type": [ - "Integer" - ], - "description": "Date the message was sent originally in Unix time" - }, - "chat": { - "type": [ - "Chat" - ], - "description": "Channel chat to which the message was originally sent" - }, - "message_id": { - "type": [ - "Integer" - ], - "description": "Unique message identifier inside the chat" - }, - "author_signature": { - "type": [ - "String" - ], - "description": "Optional. Signature of the original post author" - } - } - }, - "PhotoSize": { - "href": "https://core.telegram.org/bots/api#photosize", - "description": [ - "This object represents one size of a photo or a file / sticker thumbnail." - ], - "fields": { - "file_id": { - "type": [ - "String" - ], - "description": "Identifier for this file, which can be used to download or reuse the file" - }, - "file_unique_id": { - "type": [ - "String" - ], - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." - }, - "width": { - "type": [ - "Integer" - ], - "description": "Photo width" - }, - "height": { - "type": [ - "Integer" - ], - "description": "Photo height" - }, - "file_size": { - "type": [ - "Integer" - ], - "description": "Optional. File size in bytes" - } - } - }, - "Animation": { - "href": "https://core.telegram.org/bots/api#animation", - "description": [ - "This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound)." - ], - "fields": { - "file_id": { - "type": [ - "String" - ], - "description": "Identifier for this file, which can be used to download or reuse the file" - }, - "file_unique_id": { - "type": [ - "String" - ], - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." - }, - "width": { - "type": [ - "Integer" - ], - "description": "Video width as defined by the sender" - }, - "height": { - "type": [ - "Integer" - ], - "description": "Video height as defined by the sender" - }, - "duration": { - "type": [ - "Integer" - ], - "description": "Duration of the video in seconds as defined by the sender" - }, - "thumbnail": { - "type": [ - "PhotoSize" - ], - "description": "Optional. Animation thumbnail as defined by the sender" - }, - "file_name": { - "type": [ - "String" - ], - "description": "Optional. Original animation filename as defined by the sender" - }, - "mime_type": { - "type": [ - "String" - ], - "description": "Optional. MIME type of the file as defined by the sender" - }, - "file_size": { - "type": [ - "Integer" - ], - "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value." - } - } - }, - "Audio": { - "href": "https://core.telegram.org/bots/api#audio", - "description": [ - "This object represents an audio file to be treated as music by the Telegram clients." - ], - "fields": { - "file_id": { - "type": [ - "String" - ], - "description": "Identifier for this file, which can be used to download or reuse the file" - }, - "file_unique_id": { - "type": [ - "String" - ], - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." - }, - "duration": { - "type": [ - "Integer" - ], - "description": "Duration of the audio in seconds as defined by the sender" - }, - "performer": { - "type": [ - "String" - ], - "description": "Optional. Performer of the audio as defined by the sender or by audio tags" - }, - "title": { - "type": [ - "String" - ], - "description": "Optional. Title of the audio as defined by the sender or by audio tags" - }, - "file_name": { - "type": [ - "String" - ], - "description": "Optional. Original filename as defined by the sender" - }, - "mime_type": { - "type": [ - "String" - ], - "description": "Optional. MIME type of the file as defined by the sender" - }, - "file_size": { - "type": [ - "Integer" - ], - "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value." - }, - "thumbnail": { - "type": [ - "PhotoSize" - ], - "description": "Optional. Thumbnail of the album cover to which the music file belongs" - } - } - }, - "Document": { - "href": "https://core.telegram.org/bots/api#document", - "description": [ - "This object represents a general file (as opposed to photos, voice messages and audio files)." - ], - "fields": { - "file_id": { - "type": [ - "String" - ], - "description": "Identifier for this file, which can be used to download or reuse the file" - }, - "file_unique_id": { - "type": [ - "String" - ], - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." - }, - "thumbnail": { - "type": [ - "PhotoSize" - ], - "description": "Optional. Document thumbnail as defined by the sender" - }, - "file_name": { - "type": [ - "String" - ], - "description": "Optional. Original filename as defined by the sender" - }, - "mime_type": { - "type": [ - "String" - ], - "description": "Optional. MIME type of the file as defined by the sender" - }, - "file_size": { - "type": [ - "Integer" - ], - "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value." - } - } - }, - "Story": { - "href": "https://core.telegram.org/bots/api#story", - "description": [ - "This object represents a story." - ], - "fields": { - "chat": { - "type": [ - "Chat" - ], - "description": "Chat that posted the story" - }, - "id": { - "type": [ - "Integer" - ], - "description": "Unique identifier for the story in the chat" - } - } - }, - "VideoQuality": { - "href": "https://core.telegram.org/bots/api#videoquality", - "description": [ - "This object represents a video file of a specific quality." - ], - "fields": { - "file_id": { - "type": [ - "String" - ], - "description": "Identifier for this file, which can be used to download or reuse the file" - }, - "file_unique_id": { - "type": [ - "String" - ], - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." - }, - "width": { - "type": [ - "Integer" - ], - "description": "Video width" - }, - "height": { - "type": [ - "Integer" - ], - "description": "Video height" - }, - "codec": { - "type": [ - "String" - ], - "description": "Codec that was used to encode the video, for example, \u201ch264\u201d, \u201ch265\u201d, or \u201cav01\u201d" - }, - "file_size": { - "type": [ - "Integer" - ], - "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value." - } - } - }, - "Video": { - "href": "https://core.telegram.org/bots/api#video", - "description": [ - "This object represents a video file." - ], - "fields": { - "file_id": { - "type": [ - "String" - ], - "description": "Identifier for this file, which can be used to download or reuse the file" - }, - "file_unique_id": { - "type": [ - "String" - ], - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." - }, - "width": { - "type": [ - "Integer" - ], - "description": "Video width as defined by the sender" - }, - "height": { - "type": [ - "Integer" - ], - "description": "Video height as defined by the sender" - }, - "duration": { - "type": [ - "Integer" - ], - "description": "Duration of the video in seconds as defined by the sender" - }, - "thumbnail": { - "type": [ - "PhotoSize" - ], - "description": "Optional. Video thumbnail" - }, - "cover": { - "type": [ - "Array" - ], - "description": "Optional. Available sizes of the cover of the video in the message" - }, - "start_timestamp": { - "type": [ - "Integer" - ], - "description": "Optional. Timestamp in seconds from which the video will play in the message" - }, - "qualities": { - "type": [ - "Array" - ], - "description": "Optional. List of available qualities of the video" - }, - "file_name": { - "type": [ - "String" - ], - "description": "Optional. Original filename as defined by the sender" - }, - "mime_type": { - "type": [ - "String" - ], - "description": "Optional. MIME type of the file as defined by the sender" - }, - "file_size": { - "type": [ - "Integer" - ], - "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value." - } - } - }, - "VideoNote": { - "href": "https://core.telegram.org/bots/api#videonote", - "description": [ - "This object represents a video message (available in Telegram apps as of v.4.0)." - ], - "fields": { - "file_id": { - "type": [ - "String" - ], - "description": "Identifier for this file, which can be used to download or reuse the file" - }, - "file_unique_id": { - "type": [ - "String" - ], - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." - }, - "length": { - "type": [ - "Integer" - ], - "description": "Video width and height (diameter of the video message) as defined by the sender" - }, - "duration": { - "type": [ - "Integer" - ], - "description": "Duration of the video in seconds as defined by the sender" - }, - "thumbnail": { - "type": [ - "PhotoSize" - ], - "description": "Optional. Video thumbnail" - }, - "file_size": { - "type": [ - "Integer" - ], - "description": "Optional. File size in bytes" - } - } - }, - "Voice": { - "href": "https://core.telegram.org/bots/api#voice", - "description": [ - "This object represents a voice note." - ], - "fields": { - "file_id": { - "type": [ - "String" - ], - "description": "Identifier for this file, which can be used to download or reuse the file" - }, - "file_unique_id": { - "type": [ - "String" - ], - "description": "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." - }, - "duration": { - "type": [ - "Integer" - ], - "description": "Duration of the audio in seconds as defined by the sender" - }, - "mime_type": { - "type": [ - "String" - ], - "description": "Optional. MIME type of the file as defined by the sender" - }, - "file_size": { - "type": [ - "Integer" - ], - "description": "Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value." - } - } - }, - "PaidMediaInfo": { - "href": "https://core.telegram.org/bots/api#paidmediainfo", - "description": [ - "Describes the paid media added to a message." - ], - "fields": { - "star_count": { - "type": [ - "Integer" - ], - "description": "The number of Telegram Stars that must be paid to buy access to the media" - }, - "paid_media": { - "type": [ - "Array" - ], - "description": "Information about the paid media" - } - } - }, - "PaidMedia": { - "href": "https://core.telegram.org/bots/api#paidmedia", - "description": [ - "This object describes paid media. Currently, it can be one of" - ], - "subtypes": [ - "PaidMediaPreview", - "PaidMediaPhoto", - "PaidMediaVideo" - ] - }, - "PaidMediaPreview": { - "extends": "PaidMedia", - "href": "https://core.telegram.org/bots/api#paidmediapreview", - "description": [ - "The paid media isn't available before the payment." - ], - "fields": { - "type": { - "type": [ - "String" - ], - "description": "Type of the paid media, always \u201cpreview\u201d" - }, - "width": { - "type": [ - "Integer" - ], - "description": "Optional. Media width as defined by the sender" - }, - "height": { - "type": [ - "Integer" - ], - "description": "Optional. Media height as defined by the sender" - }, - "duration": { - "type": [ - "Integer" - ], - "description": "Optional. Duration of the media in seconds as defined by the sender" - } - } - }, - "PaidMediaPhoto": { - "extends": "PaidMedia", - "href": "https://core.telegram.org/bots/api#paidmediaphoto", - "description": [ - "The paid media is a photo." - ], - "fields": { - "type": { - "type": [ - "String" - ], - "description": "Type of the paid media, always \u201cphoto\u201d" - }, - "photo": { - "type": [ - "Array" - ], - "description": "The photo" - } - } - }, - "PaidMediaVideo": { - "extends": "PaidMedia", - "href": "https://core.telegram.org/bots/api#paidmediavideo", - "description": [ - "The paid media is a video." - ], - "fields": { - "type": { - "type": [ - "String" - ], - "description": "Type of the paid media, always \u201cvideo\u201d" - }, - "video": { - "type": [ - "Video" - ], - "description": "The video" - } - } - }, - "Contact": { - "href": "https://core.telegram.org/bots/api#contact", - "description": [ - "This object represents a phone contact." - ], - "fields": { - "phone_number": { - "type": [ - "String" - ], - "description": "Contact's phone number" - }, - "first_name": { - "type": [ - "String" - ], - "description": "Contact's first name" - }, - "last_name": { - "type": [ - "String" - ], - "description": "Optional. Contact's last name" - }, - "user_id": { - "type": [ - "Integer" - ], - "description": "Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier." - }, - "vcard": { - "type": [ - "String" - ], - "description": "Optional. Additional data about the contact in the form of a vCard" - } - } - }, - "Dice": { - "href": "https://core.telegram.org/bots/api#dice", - "description": [ - "This object represents an animated emoji that displays a random value." - ], - "fields": { - "emoji": { - "type": [ - "String" - ], - "description": "Emoji on which the dice throw animation is based" - }, - "value": { - "type": [ - "Integer" - ], - "description": "Value of the dice, 1-6 for \u201c\u201d, \u201c\u201d and \u201c\u201d base emoji, 1-5 for \u201c\u201d and \u201c\u201d base emoji, 1-64 for \u201c\u201d base emoji" - } - } - }, - "PollOption": { - "href": "https://core.telegram.org/bots/api#polloption", - "description": [ - "This object contains information about one answer option in a poll." - ], - "fields": { - "text": { - "type": [ - "String" - ], - "description": "Option text, 1-100 characters" - }, - "text_entities": { - "type": [ - "Array" - ], - "description": "Optional. Special entities that appear in the option text. Currently, only custom emoji entities are allowed in poll option texts" - }, - "voter_count": { - "type": [ - "Integer" - ], - "description": "Number of users that voted for this option" - } - } - }, - "InputPollOption": { - "href": "https://core.telegram.org/bots/api#inputpolloption", - "description": [ - "This object contains information about one answer option in a poll to be sent." - ], - "fields": { - "text": { - "type": [ - "String" - ], - "description": "Option text, 1-100 characters" - }, - "text_parse_mode": { - "type": [ - "String" - ], - "description": "Optional. Mode for parsing entities in the text. See formatting options for more details. Currently, only custom emoji entities are allowed" - }, - "text_entities": { - "type": [ - "Array" - ], - "description": "Optional. A JSON-serialized list of special entities that appear in the poll option text. It can be specified instead of text_parse_mode" - } - } - }, - "PollAnswer": { - "href": "https://core.telegram.org/bots/api#pollanswer", - "description": [ - "This object represents an answer of a user in a non-anonymous poll." - ], - "fields": { - "poll_id": { - "type": [ - "String" - ], - "description": "Unique poll identifier" - }, - "voter_chat": { - "type": [ - "Chat" - ], - "description": "Optional. The chat that changed the answer to the poll, if the voter is anonymous" - }, - "user": { - "type": [ - "User" - ], - "description": "Optional. The user that changed the answer to the poll, if the voter isn't anonymous" - }, - "option_ids": { - "type": [ - "Array" - ], - "description": "0-based identifiers of chosen answer options. May be empty if the vote was retracted." - } - } - }, - "Poll": { - "href": "https://core.telegram.org/bots/api#poll", - "description": [ - "This object contains information about a poll." - ], - "fields": { - "id": { - "type": [ - "String" - ], - "description": "Unique poll identifier" - }, - "question": { - "type": [ - "String" - ], - "description": "Poll question, 1-300 characters" - }, - "question_entities": { - "type": [ - "Array" - ], - "description": "Optional. Special entities that appear in the question. Currently, only custom emoji entities are allowed in poll questions" - }, - "options": { - "type": [ - "Array" - ], - "description": "List of poll options" - }, - "total_voter_count": { - "type": [ - "Integer" - ], - "description": "Total number of users that voted in the poll" - }, - "is_closed": { - "type": [ - "Boolean" - ], - "description": "True, if the poll is closed" - }, - "is_anonymous": { - "type": [ - "Boolean" - ], - "description": "True, if the poll is anonymous" - }, - "type": { - "type": [ - "String" - ], - "description": "Poll type, currently can be \u201cregular\u201d or \u201cquiz\u201d" - }, - "allows_multiple_answers": { - "type": [ - "Boolean" - ], - "description": "True, if the poll allows multiple answers" - }, - "correct_option_id": { - "type": [ - "Integer" - ], - "description": "Optional. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot." - }, - "explanation": { - "type": [ - "String" - ], - "description": "Optional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters" - }, - "explanation_entities": { - "type": [ - "Array" - ], - "description": "Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation" - }, - "open_period": { - "type": [ - "Integer" - ], - "description": "Optional. Amount of time in seconds the poll will be active after creation" - }, - "close_date": { - "type": [ - "Integer" - ], - "description": "Optional. Point in time (Unix timestamp) when the poll will be automatically closed" - } - } - }, - "ChecklistTask": { - "href": "https://core.telegram.org/bots/api#checklisttask", - "description": [ - "Describes a task in a checklist." - ], - "fields": { - "id": { - "type": [ - "Integer" - ], - "description": "Unique identifier of the task" - }, - "text": { - "type": [ - "String" - ], - "description": "Text of the task" - }, - "text_entities": { - "type": [ - "Array" - ], - "description": "Optional. Special entities that appear in the task text" - }, - "completed_by_user": { - "type": [ - "User" - ], - "description": "Optional. User that completed the task; omitted if the task wasn't completed by a user" - }, - "completed_by_chat": { - "type": [ - "Chat" - ], - "description": "Optional. Chat that completed the task; omitted if the task wasn't completed by a chat" - }, - "completion_date": { - "type": [ - "Integer" - ], - "description": "Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed" - } - } - }, - "Checklist": { - "href": "https://core.telegram.org/bots/api#checklist", - "description": [ - "Describes a checklist." - ], - "fields": { - "title": { - "type": [ - "String" - ], - "description": "Title of the checklist" - }, - "title_entities": { - "type": [ - "Array" - ], - "description": "Optional. Special entities that appear in the checklist title" - }, - "tasks": { - "type": [ - "Array" - ], - "description": "List of tasks in the checklist" - }, - "others_can_add_tasks": { - "type": [ - "True" - ], - "description": "Optional. True, if users other than the creator of the list can add tasks to the list" - }, - "others_can_mark_tasks_as_done": { - "type": [ - "True" - ], - "description": "Optional. True, if users other than the creator of the list can mark tasks as done or not done" - } - } - }, - "InputChecklistTask": { - "href": "https://core.telegram.org/bots/api#inputchecklisttask", - "description": [ - "Describes a task to add to a checklist." - ], - "fields": { - "id": { - "type": [ - "Integer" - ], - "description": "Unique identifier of the task; must be positive and unique among all task identifiers currently present in the checklist" - }, - "text": { - "type": [ - "String" - ], - "description": "Text of the task; 1-100 characters after entities parsing" - }, - "parse_mode": { - "type": [ - "String" - ], - "description": "Optional. Mode for parsing entities in the text. See formatting options for more details." - }, - "text_entities": { - "type": [ - "Array" - ], - "description": "Optional. List of special entities that appear in the text, which can be specified instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are allowed." - } - } - }, - "InputChecklist": { - "href": "https://core.telegram.org/bots/api#inputchecklist", - "description": [ - "Describes a checklist to create." - ], - "fields": { - "title": { - "type": [ - "String" - ], - "description": "Title of the checklist; 1-255 characters after entities parsing" - }, - "parse_mode": { - "type": [ - "String" - ], - "description": "Optional. Mode for parsing entities in the title. See formatting options for more details." - }, - "title_entities": { - "type": [ - "Array" - ], - "description": "Optional. List of special entities that appear in the title, which can be specified instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are allowed." - }, - "tasks": { - "type": [ - "Array" - ], - "description": "List of 1-30 tasks in the checklist" - }, - "others_can_add_tasks": { - "type": [ - "Boolean" - ], - "description": "Optional. Pass True if other users can add tasks to the checklist" - }, - "others_can_mark_tasks_as_done": { - "type": [ - "Boolean" - ], - "description": "Optional. Pass True if other users can mark tasks as done or not done in the checklist" - } - } - }, - "ChecklistTasksDone": { - "href": "https://core.telegram.org/bots/api#checklisttasksdone", - "description": [ - "Describes a service message about checklist tasks marked as done or not done." - ], - "fields": { - "checklist_message": { - "type": [ - "Message" - ], - "description": "Optional. Message containing the checklist whose tasks were marked as done or not done. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply." - }, - "marked_as_done_task_ids": { - "type": [ - "Array" - ], - "description": "Optional. Identifiers of the tasks that were marked as done" - }, - "marked_as_not_done_task_ids": { - "type": [ - "Array" - ], - "description": "Optional. Identifiers of the tasks that were marked as not done" - } - } - }, - "ChecklistTasksAdded": { - "href": "https://core.telegram.org/bots/api#checklisttasksadded", - "description": [ - "Describes a service message about tasks added to a checklist." - ], - "fields": { - "checklist_message": { - "type": [ - "Message" - ], - "description": "Optional. Message containing the checklist to which the tasks were added. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply." - }, - "tasks": { - "type": [ - "Array" - ], - "description": "List of tasks added to the checklist" - } - } - }, - "Location": { - "href": "https://core.telegram.org/bots/api#location", - "description": [ - "This object represents a point on the map." - ], - "fields": { - "latitude": { - "type": [ - "Float" - ], - "description": "Latitude as defined by the sender" - }, - "longitude": { - "type": [ - "Float" - ], - "description": "Longitude as defined by the sender" - }, - "horizontal_accuracy": { - "type": [ - "Float" - ], - "description": "Optional. The radius of uncertainty for the location, measured in meters; 0-1500" - }, - "live_period": { - "type": [ - "Integer" - ], - "description": "Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only." - }, - "heading": { - "type": [ - "Integer" - ], - "description": "Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only." - }, - "proximity_alert_radius": { - "type": [ - "Integer" - ], - "description": "Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only." - } - } - }, - "Venue": { - "href": "https://core.telegram.org/bots/api#venue", - "description": [ - "This object represents a venue." - ], - "fields": { - "location": { - "type": [ - "Location" - ], - "description": "Venue location. Can't be a live location" - }, - "title": { - "type": [ - "String" - ], - "description": "Name of the venue" - }, - "address": { - "type": [ - "String" - ], - "description": "Address of the venue" - }, - "foursquare_id": { - "type": [ - "String" - ], - "description": "Optional. Foursquare identifier of the venue" - }, - "foursquare_type": { - "type": [ - "String" - ], - "description": "Optional. Foursquare type of the venue. (For example, \u201carts_entertainment/default\u201d, \u201carts_entertainment/aquarium\u201d or \u201cfood/icecream\u201d.)" - }, - "google_place_id": { - "type": [ - "String" - ], - "description": "Optional. Google Places identifier of the venue" - }, - "google_place_type": { - "type": [ - "String" - ], - "description": "Optional. Google Places type of the venue. (See supported types.)" - } - } - }, - "WebAppData": { - "href": "https://core.telegram.org/bots/api#webappdata", - "description": [ - "Describes data sent from a Web App to the bot." - ], - "fields": { - "data": { - "type": [ - "String" - ], - "description": "The data. Be aware that a bad client can send arbitrary data in this field." - }, - "button_text": { - "type": [ - "String" - ], - "description": "Text of the web_app keyboard button from which the Web App was opened. Be aware that a bad client can send arbitrary data in this field." - } - } - }, - "ProximityAlertTriggered": { - "href": "https://core.telegram.org/bots/api#proximityalerttriggered", - "description": [ - "This object represents the content of a service message, sent whenever a user in the chat triggers a proximity alert set by another user." - ], - "fields": { - "traveler": { - "type": [ - "User" - ], - "description": "User that triggered the alert" - }, - "watcher": { - "type": [ - "User" - ], - "description": "User that set the alert" - }, - "distance": { - "type": [ - "Integer" - ], - "description": "The distance between the users" - } - } - }, - "MessageAutoDeleteTimerChanged": { - "href": "https://core.telegram.org/bots/api#messageautodeletetimerchanged", - "description": [ - "This object represents a service message about a change in auto-delete timer settings." - ], - "fields": { - "message_auto_delete_time": { - "type": [ - "Integer" - ], - "description": "New auto-delete time for messages in the chat; in seconds" - } - } - }, - "ChatBoostAdded": { - "href": "https://core.telegram.org/bots/api#chatboostadded", - "description": [ - "This object represents a service message about a user boosting a chat." - ], - "fields": { - "boost_count": { - "type": [ - "Integer" - ], - "description": "Number of boosts added by the user" - } - } - }, - "BackgroundFill": { - "href": "https://core.telegram.org/bots/api#backgroundfill", - "description": [ - "This object describes the way a background is filled based on the selected colors. Currently, it can be one of" - ], - "subtypes": [ - "BackgroundFillSolid", - "BackgroundFillGradient", - "BackgroundFillFreeformGradient" - ] - }, - "BackgroundFillSolid": { - "extends": "BackgroundFill", - "href": "https://core.telegram.org/bots/api#backgroundfillsolid", - "description": [ - "The background is filled using the selected color." - ], - "fields": { - "type": { - "type": [ - "String" - ], - "description": "Type of the background fill, always \u201csolid\u201d" - }, - "color": { - "type": [ - "Integer" - ], - "description": "The color of the background fill in the RGB24 format" - } - } - }, - "BackgroundFillGradient": { - "extends": "BackgroundFill", - "href": "https://core.telegram.org/bots/api#backgroundfillgradient", - "description": [ - "The background is a gradient fill." - ], - "fields": { - "type": { - "type": [ - "String" - ], - "description": "Type of the background fill, always \u201cgradient\u201d" - }, - "top_color": { - "type": [ - "Integer" - ], - "description": "Top color of the gradient in the RGB24 format" - }, - "bottom_color": { - "type": [ - "Integer" - ], - "description": "Bottom color of the gradient in the RGB24 format" - }, - "rotation_angle": { - "type": [ - "Integer" - ], - "description": "Clockwise rotation angle of the background fill in degrees; 0-359" - } - } - }, - "BackgroundFillFreeformGradient": { - "extends": "BackgroundFill", - "href": "https://core.telegram.org/bots/api#backgroundfillfreeformgradient", - "description": [ - "The background is a freeform gradient that rotates after every message in the chat." - ], - "fields": { - "type": { - "type": [ - "String" - ], - "description": "Type of the background fill, always \u201cfreeform_gradient\u201d" - }, - "colors": { - "type": [ - "Array" - ], - "description": "A list of the 3 or 4 base colors that are used to generate the freeform gradient in the RGB24 format" - } - } - }, - "BackgroundType": { - "href": "https://core.telegram.org/bots/api#backgroundtype", - "description": [ - "This object describes the type of a background. Currently, it can be one of" - ], - "subtypes": [ - "BackgroundTypeFill", - "BackgroundTypeWallpaper", - "BackgroundTypePattern", - "BackgroundTypeChatTheme" - ] - }, - "BackgroundTypeFill": { - "extends": "BackgroundType", - "href": "https://core.telegram.org/bots/api#backgroundtypefill", - "description": [ - "The background is automatically filled based on the selected colors." - ], - "fields": { - "type": { - "type": [ - "String" - ], - "description": "Type of the background, always \u201cfill\u201d" - }, - "fill": { - "type": [ - "BackgroundFill" - ], - "description": "The background fill" - }, - "dark_theme_dimming": { - "type": [ - "Integer" - ], - "description": "Dimming of the background in dark themes, as a percentage; 0-100" - } - } - }, - "BackgroundTypeWallpaper": { - "extends": "BackgroundType", - "href": "https://core.telegram.org/bots/api#backgroundtypewallpaper", - "description": [ - "The background is a wallpaper in the JPEG format." - ], - "fields": { - "type": { - "type": [ - "String" - ], - "description": "Type of the background, always \u201cwallpaper\u201d" - }, - "document": { - "type": [ - "Document" - ], - "description": "Document with the wallpaper" - }, - "dark_theme_dimming": { - "type": [ - "Integer" - ], - "description": "Dimming of the background in dark themes, as a percentage; 0-100" - }, - "is_blurred": { - "type": [ - "True" - ], - "description": "Optional. True, if the wallpaper is downscaled to fit in a 450x450 square and then box-blurred with radius 12" - }, - "is_moving": { - "type": [ - "True" - ], - "description": "Optional. True, if the background moves slightly when the device is tilted" - } - } - }, - "BackgroundTypePattern": { - "extends": "BackgroundType", - "href": "https://core.telegram.org/bots/api#backgroundtypepattern", - "description": [ - "The background is a .PNG or .TGV (gzipped subset of SVG with MIME type \u201capplication/x-tgwallpattern\u201d) pattern to be combined with the background fill chosen by the user." - ], - "fields": { - "type": { - "type": [ - "String" - ], - "description": "Type of the background, always \u201cpattern\u201d" - }, - "document": { - "type": [ - "Document" - ], - "description": "Document with the pattern" - }, - "fill": { - "type": [ - "BackgroundFill" - ], - "description": "The background fill that is combined with the pattern" - }, - "intensity": { - "type": [ - "Integer" - ], - "description": "Intensity of the pattern when it is shown above the filled background; 0-100" - }, - "is_inverted": { - "type": [ - "True" - ], - "description": "Optional. True, if the background fill must be applied only to the pattern itself. All other pixels are black in this case. For dark themes only" - }, - "is_moving": { - "type": [ - "True" - ], - "description": "Optional. True, if the background moves slightly when the device is tilted" - } - } - }, - "BackgroundTypeChatTheme": { - "extends": "BackgroundType", - "href": "https://core.telegram.org/bots/api#backgroundtypechattheme", - "description": [ - "The background is taken directly from a built-in chat theme." - ], - "fields": { - "type": { - "type": [ - "String" - ], - "description": "Type of the background, always \u201cchat_theme\u201d" - }, - "theme_name": { - "type": [ - "String" - ], - "description": "Name of the chat theme, which is usually an emoji" - } - } - }, - "ChatBackground": { - "href": "https://core.telegram.org/bots/api#chatbackground", - "description": [ - "This object represents a chat background." - ], - "fields": { - "type": { - "type": [ - "BackgroundType" - ], - "description": "Type of the background" - } - } - }, - "ForumTopicCreated": { - "href": "https://core.telegram.org/bots/api#forumtopiccreated", - "description": [ - "This object represents a service message about a new forum topic created in the chat." - ], - "fields": { - "name": { - "type": [ - "String" - ], - "description": "Name of the topic" - }, - "icon_color": { - "type": [ - "Integer" - ], - "description": "Color of the topic icon in RGB format" - }, - "icon_custom_emoji_id": { - "type": [ - "String" - ], - "description": "Optional. Unique identifier of the custom emoji shown as the topic icon" - }, - "is_name_implicit": { - "type": [ - "True" - ], - "description": "Optional. True, if the name of the topic wasn't specified explicitly by its creator and likely needs to be changed by the bot" - } - } - }, - "ForumTopicClosed": { - "href": "https://core.telegram.org/bots/api#forumtopicclosed", - "description": [ - "This object represents a service message about a forum topic closed in the chat. Currently holds no information." - ] - }, - "ForumTopicEdited": { - "href": "https://core.telegram.org/bots/api#forumtopicedited", - "description": [ - "This object represents a service message about an edited forum topic." - ], - "fields": { - "name": { - "type": [ - "String" - ], - "description": "Optional. New name of the topic, if it was edited" - }, - "icon_custom_emoji_id": { - "type": [ - "String" - ], - "description": "Optional. New identifier of the custom emoji shown as the topic icon, if it was edited; an empty string if the icon was removed" - } - } - }, - "ForumTopicReopened": { - "href": "https://core.telegram.org/bots/api#forumtopicreopened", - "description": [ - "This object represents a service message about a forum topic reopened in the chat. Currently holds no information." - ] - }, - "GeneralForumTopicHidden": { - "href": "https://core.telegram.org/bots/api#generalforumtopichidden", - "description": [ - "This object represents a service message about General forum topic hidden in the chat. Currently holds no information." - ] - }, - "GeneralForumTopicUnhidden": { - "href": "https://core.telegram.org/bots/api#generalforumtopicunhidden", - "description": [ - "This object represents a service message about General forum topic unhidden in the chat. Currently holds no information." - ] - }, - "SharedUser": { - "href": "https://core.telegram.org/bots/api#shareduser", - "description": [ - "This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUsers button." - ], - "fields": { - "user_id": { - "type": [ - "Integer" - ], - "description": "Identifier of the shared user. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so 64-bit integers or double-precision float types are safe for storing these identifiers. The bot may not have access to the user and could be unable to use this identifier, unless the user is already known to the bot by some other means." - }, - "first_name": { - "type": [ - "String" - ], - "description": "Optional. First name of the user, if the name was requested by the bot" - }, - "last_name": { - "type": [ - "String" - ], - "description": "Optional. Last name of the user, if the name was requested by the bot" - }, - "username": { - "type": [ - "String" - ], - "description": "Optional. Username of the user, if the username was requested by the bot" - }, - "photo": { - "type": [ - "Array" - ], - "description": "Optional. Available sizes of the chat photo, if the photo was requested by the bot" - } - } - }, - "UsersShared": { - "href": "https://core.telegram.org/bots/api#usersshared", - "description": [ - "This object contains information about the users whose identifiers were shared with the bot using a KeyboardButtonRequestUsers button." - ], - "fields": { - "request_id": { - "type": [ - "Integer" - ], - "description": "Identifier of the request" - }, - "users": { - "type": [ - "Array" - ], - "description": "Information about users shared with the bot." - } - } - }, - "ChatShared": { - "href": "https://core.telegram.org/bots/api#chatshared", - "description": [ - "This object contains information about a chat that was shared with the bot using a KeyboardButtonRequestChat button." - ], - "fields": { - "request_id": { - "type": [ - "Integer" - ], - "description": "Identifier of the request" - }, - "chat_id": { - "type": [ - "Integer" - ], - "description": "Identifier of the shared chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot may not have access to the chat and could be unable to use this identifier, unless the chat is already known to the bot by some other means." - }, - "title": { - "type": [ - "String" - ], - "description": "Optional. Title of the chat, if the title was requested by the bot." - }, - "username": { - "type": [ - "String" - ], - "description": "Optional. Username of the chat, if the username was requested by the bot and available." - }, - "photo": { - "type": [ - "Array" - ], - "description": "Optional. Available sizes of the chat photo, if the photo was requested by the bot" - } - } - }, - "WriteAccessAllowed": { - "href": "https://core.telegram.org/bots/api#writeaccessallowed", - "description": [ - "This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess." - ], - "fields": { - "from_request": { - "type": [ - "Boolean" - ], - "description": "Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess" - }, - "web_app_name": { - "type": [ - "String" - ], - "description": "Optional. Name of the Web App, if the access was granted when the Web App was launched from a link" - }, - "from_attachment_menu": { - "type": [ - "Boolean" - ], - "description": "Optional. True, if the access was granted when the bot was added to the attachment or side menu" - } - } - }, - "VideoChatScheduled": { - "href": "https://core.telegram.org/bots/api#videochatscheduled", - "description": [ - "This object represents a service message about a video chat scheduled in the chat." - ], - "fields": { - "start_date": { - "type": [ - "Integer" - ], - "description": "Point in time (Unix timestamp) when the video chat is supposed to be started by a chat administrator" - } - } - }, - "VideoChatStarted": { - "href": "https://core.telegram.org/bots/api#videochatstarted", - "description": [ - "This object represents a service message about a video chat started in the chat. Currently holds no information." - ] - }, - "VideoChatEnded": { - "href": "https://core.telegram.org/bots/api#videochatended", - "description": [ - "This object represents a service message about a video chat ended in the chat." - ], - "fields": { - "duration": { - "type": [ - "Integer" - ], - "description": "Video chat duration in seconds" - } - } - }, - "VideoChatParticipantsInvited": { - "href": "https://core.telegram.org/bots/api#videochatparticipantsinvited", - "description": [ - "This object represents a service message about new members invited to a video chat." - ], - "fields": { - "users": { - "type": [ - "Array" - ], - "description": "New members that were invited to the video chat" - } - } - }, - "PaidMessagePriceChanged": { - "href": "https://core.telegram.org/bots/api#paidmessagepricechanged", - "description": [ - "Describes a service message about a change in the price of paid messages within a chat." - ], - "fields": { - "paid_message_star_count": { - "type": [ - "Integer" - ], - "description": "The new number of Telegram Stars that must be paid by non-administrator users of the supergroup chat for each sent message" - } - } - }, - "DirectMessagePriceChanged": { - "href": "https://core.telegram.org/bots/api#directmessagepricechanged", - "description": [ - "Describes a service message about a change in the price of direct messages sent to a channel chat." - ], - "fields": { - "are_direct_messages_enabled": { - "type": [ - "Boolean" - ], - "description": "True, if direct messages are enabled for the channel chat; false otherwise" - }, - "direct_message_star_count": { - "type": [ - "Integer" - ], - "description": "Optional. The new number of Telegram Stars that must be paid by users for each direct message sent to the channel. Does not apply to users who have been exempted by administrators. Defaults to 0." - } - } - }, - "SuggestedPostApproved": { - "href": "https://core.telegram.org/bots/api#suggestedpostapproved", - "description": [ - "Describes a service message about the approval of a suggested post." - ], - "fields": { - "suggested_post_message": { - "type": [ - "Message" - ], - "description": "Optional. Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply." - }, - "price": { - "type": [ - "SuggestedPostPrice" - ], - "description": "Optional. Amount paid for the post" - }, - "send_date": { - "type": [ - "Integer" - ], - "description": "Date when the post will be published" - } - } - }, - "SuggestedPostApprovalFailed": { - "href": "https://core.telegram.org/bots/api#suggestedpostapprovalfailed", - "description": [ - "Describes a service message about the failed approval of a suggested post. Currently, only caused by insufficient user funds at the time of approval." - ], - "fields": { - "suggested_post_message": { - "type": [ - "Message" - ], - "description": "Optional. Message containing the suggested post whose approval has failed. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply." - }, - "price": { - "type": [ - "SuggestedPostPrice" - ], - "description": "Expected price of the post" - } - } - }, - "SuggestedPostDeclined": { - "href": "https://core.telegram.org/bots/api#suggestedpostdeclined", - "description": [ - "Describes a service message about the rejection of a suggested post." - ], - "fields": { - "suggested_post_message": { - "type": [ - "Message" - ], - "description": "Optional. Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply." - }, - "comment": { - "type": [ - "String" - ], - "description": "Optional. Comment with which the post was declined" - } - } - }, - "SuggestedPostPaid": { - "href": "https://core.telegram.org/bots/api#suggestedpostpaid", - "description": [ - "Describes a service message about a successful payment for a suggested post." - ], - "fields": { - "suggested_post_message": { - "type": [ - "Message" - ], - "description": "Optional. Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply." - }, - "currency": { - "type": [ - "String" - ], - "description": "Currency in which the payment was made. Currently, one of \u201cXTR\u201d for Telegram Stars or \u201cTON\u201d for toncoins" - }, - "amount": { - "type": [ - "Integer" - ], - "description": "Optional. The amount of the currency that was received by the channel in nanotoncoins; for payments in toncoins only" - }, - "star_amount": { - "type": [ - "StarAmount" - ], - "description": "Optional. The amount of Telegram Stars that was received by the channel; for payments in Telegram Stars only" - } - } - }, - "SuggestedPostRefunded": { - "href": "https://core.telegram.org/bots/api#suggestedpostrefunded", - "description": [ - "Describes a service message about a payment refund for a suggested post." - ], - "fields": { - "suggested_post_message": { - "type": [ - "Message" - ], - "description": "Optional. Message containing the suggested post. Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply." - }, - "reason": { - "type": [ - "String" - ], - "description": "Reason for the refund. Currently, one of \u201cpost_deleted\u201d if the post was deleted within 24 hours of being posted or removed from scheduled messages without being posted, or \u201cpayment_refunded\u201d if the payer refunded their payment." - } - } - }, - "GiveawayCreated": { - "href": "https://core.telegram.org/bots/api#giveawaycreated", - "description": [ - "This object represents a service message about the creation of a scheduled giveaway." - ], - "fields": { - "prize_star_count": { - "type": [ - "Integer" - ], - "description": "Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only" - } - } - }, - "Giveaway": { - "href": "https://core.telegram.org/bots/api#giveaway", - "description": [ - "This object represents a message about a scheduled giveaway." - ], - "fields": { - "chats": { - "type": [ - "Array" - ], - "description": "The list of chats which the user must join to participate in the giveaway" - }, - "winners_selection_date": { - "type": [ - "Integer" - ], - "description": "Point in time (Unix timestamp) when winners of the giveaway will be selected" - }, - "winner_count": { - "type": [ - "Integer" - ], - "description": "The number of users which are supposed to be selected as winners of the giveaway" - }, - "only_new_members": { - "type": [ - "True" - ], - "description": "Optional. True, if only users who join the chats after the giveaway started should be eligible to win" - }, - "has_public_winners": { - "type": [ - "True" - ], - "description": "Optional. True, if the list of giveaway winners will be visible to everyone" - }, - "prize_description": { - "type": [ - "String" - ], - "description": "Optional. Description of additional giveaway prize" - }, - "country_codes": { - "type": [ - "Array" - ], - "description": "Optional. A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which eligible users for the giveaway must come. If empty, then all users can participate in the giveaway. Users with a phone number that was bought on Fragment can always participate in giveaways." - }, - "prize_star_count": { - "type": [ - "Integer" - ], - "description": "Optional. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only" - }, - "premium_subscription_month_count": { - "type": [ - "Integer" - ], - "description": "Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for; for Telegram Premium giveaways only" - } - } - }, - "GiveawayWinners": { - "href": "https://core.telegram.org/bots/api#giveawaywinners", - "description": [ - "This object represents a message about the completion of a giveaway with public winners." - ], - "fields": { - "chat": { - "type": [ - "Chat" - ], - "description": "The chat that created the giveaway" - }, - "giveaway_message_id": { - "type": [ - "Integer" - ], - "description": "Identifier of the message with the giveaway in the chat" - }, - "winners_selection_date": { - "type": [ - "Integer" - ], - "description": "Point in time (Unix timestamp) when winners of the giveaway were selected" - }, - "winner_count": { - "type": [ - "Integer" - ], - "description": "Total number of winners in the giveaway" - }, - "winners": { - "type": [ - "Array" - ], - "description": "List of up to 100 winners of the giveaway" - }, - "additional_chat_count": { - "type": [ - "Integer" - ], - "description": "Optional. The number of other chats the user had to join in order to be eligible for the giveaway" - }, - "prize_star_count": { - "type": [ - "Integer" - ], - "description": "Optional. The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only" - }, - "premium_subscription_month_count": { - "type": [ - "Integer" - ], - "description": "Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for; for Telegram Premium giveaways only" - }, - "unclaimed_prize_count": { - "type": [ - "Integer" - ], - "description": "Optional. Number of undistributed prizes" - }, - "only_new_members": { - "type": [ - "True" - ], - "description": "Optional. True, if only users who had joined the chats after the giveaway started were eligible to win" - }, - "was_refunded": { - "type": [ - "True" - ], - "description": "Optional. True, if the giveaway was canceled because the payment for it was refunded" - }, - "prize_description": { - "type": [ - "String" - ], - "description": "Optional. Description of additional giveaway prize" - } - } - }, - "GiveawayCompleted": { - "href": "https://core.telegram.org/bots/api#giveawaycompleted", - "description": [ - "This object represents a service message about the completion of a giveaway without public winners." - ], - "fields": { - "winner_count": { - "type": [ - "Integer" - ], - "description": "Number of winners in the giveaway" - }, - "unclaimed_prize_count": { - "type": [ - "Integer" - ], - "description": "Optional. Number of undistributed prizes" - }, - "giveaway_message": { - "type": [ - "Message" - ], - "description": "Optional. Message with the giveaway that was completed, if it wasn't deleted" - }, - "is_star_giveaway": { - "type": [ - "True" - ], - "description": "Optional. True, if the giveaway is a Telegram Star giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway." - } - } - }, - "LinkPreviewOptions": { - "href": "https://core.telegram.org/bots/api#linkpreviewoptions", - "description": [ - "Describes the options used for link preview generation." - ], - "fields": { - "is_disabled": { - "type": [ - "Boolean" - ], - "description": "Optional. True, if the link preview is disabled" - }, - "url": { - "type": [ - "String" - ], - "description": "Optional. URL to use for the link preview. If empty, then the first URL found in the message text will be used" - }, - "prefer_small_media": { - "type": [ - "Boolean" - ], - "description": "Optional. True, if the media in the link preview is supposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview" - }, - "prefer_large_media": { - "type": [ - "Boolean" - ], - "description": "Optional. True, if the media in the link preview is supposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview" - }, - "show_above_text": { - "type": [ - "Boolean" - ], - "description": "Optional. True, if the link preview must be shown above the message text; otherwise, the link preview will be shown below the message text" - } - } - }, - "SuggestedPostPrice": { - "href": "https://core.telegram.org/bots/api#suggestedpostprice", - "description": [ - "Describes the price of a suggested post." - ], - "fields": { - "currency": { - "type": [ - "String" - ], - "description": "Currency in which the post will be paid. Currently, must be one of \u201cXTR\u201d for Telegram Stars or \u201cTON\u201d for toncoins" - }, - "amount": { - "type": [ - "Integer" - ], - "description": "The amount of the currency that will be paid for the post in the smallest units of the currency, i.e. Telegram Stars or nanotoncoins. Currently, price in Telegram Stars must be between 5 and 100000, and price in nanotoncoins must be between 10000000 and 10000000000000." - } - } - }, - "SuggestedPostInfo": { - "href": "https://core.telegram.org/bots/api#suggestedpostinfo", - "description": [ - "Contains information about a suggested post." - ], - "fields": { - "state": { - "type": [ - "String" - ], - "description": "State of the suggested post. Currently, it can be one of \u201cpending\u201d, \u201capproved\u201d, \u201cdeclined\u201d." - }, - "price": { - "type": [ - "SuggestedPostPrice" - ], - "description": "Optional. Proposed price of the post. If the field is omitted, then the post is unpaid." - }, - "send_date": { - "type": [ - "Integer" - ], - "description": "Optional. Proposed send date of the post. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user or administrator who approves it." - } - } - }, - "SuggestedPostParameters": { - "href": "https://core.telegram.org/bots/api#suggestedpostparameters", - "description": [ - "Contains parameters of a post that is being suggested by the bot." - ], - "fields": { - "price": { - "type": [ - "SuggestedPostPrice" - ], - "description": "Optional. Proposed price for the post. If the field is omitted, then the post is unpaid." - }, - "send_date": { - "type": [ - "Integer" - ], - "description": "Optional. Proposed send date of the post. If specified, then the date must be between 300 second and 2678400 seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it." - } - } - }, - "DirectMessagesTopic": { - "href": "https://core.telegram.org/bots/api#directmessagestopic", - "description": [ - "Describes a topic of a direct messages chat." - ], - "fields": { - "topic_id": { - "type": [ - "Integer" - ], - "description": "Unique identifier of the topic. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier." - }, - "user": { - "type": [ - "User" - ], - "description": "Optional. Information about the user that created the topic. Currently, it is always present" - } - } - }, - "UserProfilePhotos": { - "href": "https://core.telegram.org/bots/api#userprofilephotos", - "description": [ - "This object represent a user's profile pictures." - ], - "fields": { - "total_count": { - "type": [ - "Integer" - ], - "description": "Total number of profile pictures the target user has" - }, - "photos": { - "type": [ - "Array>" - ], - "description": "Requested profile pictures (in up to 4 sizes each)" - } - } - }, - "UserProfileAudios": { - "href": "https://core.telegram.org/bots/api#userprofileaudios", - "description": [ - "This object represents the audios displayed on a user's profile." - ], - "fields": { - "total_count": { - "type": [ - "Integer" - ], - "description": "Total number of profile audios for the target user" - }, - "audios": { - "type": [ - "Array