From 2343ea057d9aaaaa3e39b728dd8523fcfcfd4d56 Mon Sep 17 00:00:00 2001 From: Sys <28715512+sys-001@users.noreply.github.com> Date: Fri, 12 Aug 2022 16:56:11 +0200 Subject: [PATCH] Bot API 6.2 --- README.md | 3 +- composer.lock | 88 +- files/custom/json/v620.json | 12017 +++++++++++++++++++++ files/custom/yaml/v620.yaml | 8983 ++++++++++++++++ files/openapi/json/v620.json | 18767 +++++++++++++++++++++++++++++++++ files/openapi/yaml/v620.yaml | 12090 +++++++++++++++++++++ files/postman/v620.json | 4924 +++++++++ files/stubs/v620.zip | Bin 0 -> 266706 bytes 8 files changed, 56827 insertions(+), 45 deletions(-) create mode 100644 files/custom/json/v620.json create mode 100644 files/custom/yaml/v620.yaml create mode 100644 files/openapi/json/v620.json create mode 100644 files/openapi/yaml/v620.yaml create mode 100644 files/postman/v620.json create mode 100644 files/stubs/v620.zip diff --git a/README.md b/README.md index 9c03e47..29889ba 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,8 @@ extracted by using [The Wayback Machine](https://web.archive.org/web/*/https://c | Version | Description | Release date | Custom | Postman | OpenAPI | Stubs | |-------------------|-----------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|------------------------------------------------------------------------------|-----------------------------------|--------------------------------------------------------------------------------|-------------------------------| -| 6.1 **(current)** | Telegram Premium, public join requests, attachment menu. | [June 20, 2022](https://core.telegram.org/bots/api-changelog#june-20-2022) | [JSON](files/custom/json/v610.json), [YAML](files/custom/yaml/v610.yaml) | [JSON](files/postman/v610.json) | [JSON](files/openapi/json/v610.json), [YAML](files/openapi/yaml/v610.yaml) | [ZIP](files/stubs/v610.zip) | +| 6.2 **(current)** | Animated emojis, privacy for audio and video messages. | [August 12, 2022](https://core.telegram.org/bots/api-changelog#august-12-2022) | [JSON](files/custom/json/v620.json), [YAML](files/custom/yaml/v620.yaml) | [JSON](files/postman/v620.json) | [JSON](files/openapi/json/v620.json), [YAML](files/openapi/yaml/v620.yaml) | [ZIP](files/stubs/v620.zip) | +| 6.1 | Telegram Premium, public join requests, attachment menu. | [June 20, 2022](https://core.telegram.org/bots/api-changelog#june-20-2022) | [JSON](files/custom/json/v610.json), [YAML](files/custom/yaml/v610.yaml) | [JSON](files/postman/v610.json) | [JSON](files/openapi/json/v610.json), [YAML](files/openapi/yaml/v610.yaml) | [ZIP](files/stubs/v610.zip) | | 6.0 | Web Apps, default administrator rights. | [April 16, 2022](https://core.telegram.org/bots/api-changelog#april-16-2022) | [JSON](files/custom/json/v600.json), [YAML](files/custom/yaml/v600.yaml) | [JSON](files/postman/v600.json) | [JSON](files/openapi/json/v600.json), [YAML](files/openapi/yaml/v600.yaml) | [ZIP](files/stubs/v600.zip) | | 5.7 | Video stickers. | [January 31, 2022](https://core.telegram.org/bots/api-changelog#january-31-2022) | [JSON](files/custom/json/v570.json), [YAML](files/custom/yaml/v570.yaml) | [JSON](files/postman/v570.json) | [JSON](files/openapi/json/v570.json), [YAML](files/openapi/yaml/v570.yaml) | [ZIP](files/stubs/v570.zip) | | 5.6 | Spoilers, send messages as protected content. | [December 30, 2021](https://core.telegram.org/bots/api-changelog#december-30-2021) | [JSON](files/custom/json/v560.json), [YAML](files/custom/yaml/v560.yaml) | [JSON](files/postman/v560.json) | [JSON](files/openapi/json/v560.json), [YAML](files/openapi/yaml/v560.yaml) | [ZIP](files/stubs/v560.zip) | diff --git a/composer.lock b/composer.lock index 8d51ef0..cdc5702 100644 --- a/composer.lock +++ b/composer.lock @@ -791,16 +791,16 @@ }, { "name": "symfony/console", - "version": "v6.1.1", + "version": "v6.1.3", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "6187424023fbffcd757789aeb517c9161b1eabee" + "reference": "43fcb5c5966b43c56bcfa481368d90d748936ab8" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/6187424023fbffcd757789aeb517c9161b1eabee", - "reference": "6187424023fbffcd757789aeb517c9161b1eabee", + "url": "https://api.github.com/repos/symfony/console/zipball/43fcb5c5966b43c56bcfa481368d90d748936ab8", + "reference": "43fcb5c5966b43c56bcfa481368d90d748936ab8", "shasum": "" }, "require": { @@ -867,7 +867,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v6.1.1" + "source": "https://github.com/symfony/console/tree/v6.1.3" }, "funding": [ { @@ -883,20 +883,20 @@ "type": "tidelift" } ], - "time": "2022-06-08T14:02:09+00:00" + "time": "2022-07-22T14:17:57+00:00" }, { "name": "symfony/css-selector", - "version": "v6.1.0", + "version": "v6.1.3", "source": { "type": "git", "url": "https://github.com/symfony/css-selector.git", - "reference": "05c40f02f621609404b8820ff8bc39acb46e19cf" + "reference": "0dd5e36b80e1de97f8f74ed7023ac2b837a36443" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/css-selector/zipball/05c40f02f621609404b8820ff8bc39acb46e19cf", - "reference": "05c40f02f621609404b8820ff8bc39acb46e19cf", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/0dd5e36b80e1de97f8f74ed7023ac2b837a36443", + "reference": "0dd5e36b80e1de97f8f74ed7023ac2b837a36443", "shasum": "" }, "require": { @@ -932,7 +932,7 @@ "description": "Converts CSS selectors to XPath expressions", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/css-selector/tree/v6.1.0" + "source": "https://github.com/symfony/css-selector/tree/v6.1.3" }, "funding": [ { @@ -948,11 +948,11 @@ "type": "tidelift" } ], - "time": "2022-02-25T11:15:52+00:00" + "time": "2022-06-27T17:24:16+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.1.0", + "version": "v3.1.1", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", @@ -999,7 +999,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.1.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.1.1" }, "funding": [ { @@ -1349,16 +1349,16 @@ }, { "name": "symfony/service-contracts", - "version": "v3.1.0", + "version": "v3.1.1", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "d66cd8ab656780f62c4215b903a420eb86358957" + "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d66cd8ab656780f62c4215b903a420eb86358957", - "reference": "d66cd8ab656780f62c4215b903a420eb86358957", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/925e713fe8fcacf6bc05e936edd8dd5441a21239", + "reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239", "shasum": "" }, "require": { @@ -1414,7 +1414,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.1.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.1.1" }, "funding": [ { @@ -1430,20 +1430,20 @@ "type": "tidelift" } ], - "time": "2022-05-07T08:07:09+00:00" + "time": "2022-05-30T19:18:58+00:00" }, { "name": "symfony/string", - "version": "v6.1.0", + "version": "v6.1.3", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "d3edc75baf9f1d4f94879764dda2e1ac33499529" + "reference": "f35241f45c30bcd9046af2bb200a7086f70e1d6b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/d3edc75baf9f1d4f94879764dda2e1ac33499529", - "reference": "d3edc75baf9f1d4f94879764dda2e1ac33499529", + "url": "https://api.github.com/repos/symfony/string/zipball/f35241f45c30bcd9046af2bb200a7086f70e1d6b", + "reference": "f35241f45c30bcd9046af2bb200a7086f70e1d6b", "shasum": "" }, "require": { @@ -1499,7 +1499,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.1.0" + "source": "https://github.com/symfony/string/tree/v6.1.3" }, "funding": [ { @@ -1515,20 +1515,20 @@ "type": "tidelift" } ], - "time": "2022-04-22T08:18:23+00:00" + "time": "2022-07-27T15:50:51+00:00" }, { "name": "symfony/yaml", - "version": "v6.1.0", + "version": "v6.1.3", "source": { "type": "git", "url": "https://github.com/symfony/yaml.git", - "reference": "84ce4f9d2d68f306f971a39d949d8f4b5550dba2" + "reference": "cc48dd42ae1201abced04ae38284e23ce2d2d8f3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/yaml/zipball/84ce4f9d2d68f306f971a39d949d8f4b5550dba2", - "reference": "84ce4f9d2d68f306f971a39d949d8f4b5550dba2", + "url": "https://api.github.com/repos/symfony/yaml/zipball/cc48dd42ae1201abced04ae38284e23ce2d2d8f3", + "reference": "cc48dd42ae1201abced04ae38284e23ce2d2d8f3", "shasum": "" }, "require": { @@ -1573,7 +1573,7 @@ "description": "Loads and dumps YAML files", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/yaml/tree/v6.1.0" + "source": "https://github.com/symfony/yaml/tree/v6.1.3" }, "funding": [ { @@ -1589,20 +1589,20 @@ "type": "tidelift" } ], - "time": "2022-04-15T14:25:02+00:00" + "time": "2022-07-20T14:45:06+00:00" }, { "name": "sysbot/tgscraper", - "version": "4.0.2", + "version": "4.0.3", "source": { "type": "git", "url": "https://github.com/Sysbot-org/tgscraper.git", - "reference": "91a5162c56a41145a589ca9e789a3f600d5d356b" + "reference": "a94711cb06f80f4ddbb49121e0c4a00b7f85b6e0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Sysbot-org/tgscraper/zipball/91a5162c56a41145a589ca9e789a3f600d5d356b", - "reference": "91a5162c56a41145a589ca9e789a3f600d5d356b", + "url": "https://api.github.com/repos/Sysbot-org/tgscraper/zipball/a94711cb06f80f4ddbb49121e0c4a00b7f85b6e0", + "reference": "a94711cb06f80f4ddbb49121e0c4a00b7f85b6e0", "shasum": "" }, "require": { @@ -1648,22 +1648,22 @@ "description": "Utility to extract scheme from Telegram Bot API webpage.", "support": { "issues": "https://github.com/Sysbot-org/tgscraper/issues", - "source": "https://github.com/Sysbot-org/tgscraper/tree/4.0.2" + "source": "https://github.com/Sysbot-org/tgscraper/tree/4.0.3" }, - "time": "2022-06-21T17:32:41+00:00" + "time": "2022-08-12T14:46:33+00:00" }, { "name": "sysbot/tgscraper-cache", - "version": "1.1.3", + "version": "1.1.4", "source": { "type": "git", "url": "https://github.com/Sysbot-org/tgscraper-cache.git", - "reference": "c4f3a6461372f942e605c79d6eda3db62e9f72f2" + "reference": "96e427ee29281155da3efa0903c867c273777c32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Sysbot-org/tgscraper-cache/zipball/c4f3a6461372f942e605c79d6eda3db62e9f72f2", - "reference": "c4f3a6461372f942e605c79d6eda3db62e9f72f2", + "url": "https://api.github.com/repos/Sysbot-org/tgscraper-cache/zipball/96e427ee29281155da3efa0903c867c273777c32", + "reference": "96e427ee29281155da3efa0903c867c273777c32", "shasum": "" }, "require": { @@ -1689,9 +1689,9 @@ ], "description": "Cache package containing all available webpage snapshots for Telegram bot API.", "support": { - "source": "https://github.com/Sysbot-org/tgscraper-cache/tree/1.1.3" + "source": "https://github.com/Sysbot-org/tgscraper-cache/tree/1.1.4" }, - "time": "2022-06-21T17:39:56+00:00" + "time": "2022-08-12T14:39:33+00:00" }, { "name": "voku/simple_html_dom", diff --git a/files/custom/json/v620.json b/files/custom/json/v620.json new file mode 100644 index 0000000..5128e09 --- /dev/null +++ b/files/custom/json/v620.json @@ -0,0 +1,12017 @@ +{ + "version": "6.2.0", + "types": [ + { + "name": "Update", + "description": "This object represents an incoming update.At most one of the optional parameters can be present in any given update.", + "fields": [ + { + "name": "update_id", + "types": [ + "int" + ], + "optional": false, + "description": "The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID 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." + }, + { + "name": "message", + "types": [ + "Message" + ], + "optional": true, + "description": "Optional. New incoming message of any kind - text, photo, sticker, etc." + }, + { + "name": "edited_message", + "types": [ + "Message" + ], + "optional": true, + "description": "Optional. New version of a message that is known to the bot and was edited" + }, + { + "name": "channel_post", + "types": [ + "Message" + ], + "optional": true, + "description": "Optional. New incoming channel post of any kind - text, photo, sticker, etc." + }, + { + "name": "edited_channel_post", + "types": [ + "Message" + ], + "optional": true, + "description": "Optional. New version of a channel post that is known to the bot and was edited" + }, + { + "name": "inline_query", + "types": [ + "InlineQuery" + ], + "optional": true, + "description": "Optional. New incoming inline query" + }, + { + "name": "chosen_inline_result", + "types": [ + "ChosenInlineResult" + ], + "optional": true, + "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." + }, + { + "name": "callback_query", + "types": [ + "CallbackQuery" + ], + "optional": true, + "description": "Optional. New incoming callback query" + }, + { + "name": "shipping_query", + "types": [ + "ShippingQuery" + ], + "optional": true, + "description": "Optional. New incoming shipping query. Only for invoices with flexible price" + }, + { + "name": "pre_checkout_query", + "types": [ + "PreCheckoutQuery" + ], + "optional": true, + "description": "Optional. New incoming pre-checkout query. Contains full information about checkout" + }, + { + "name": "poll", + "types": [ + "Poll" + ], + "optional": true, + "description": "Optional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot" + }, + { + "name": "poll_answer", + "types": [ + "PollAnswer" + ], + "optional": true, + "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." + }, + { + "name": "my_chat_member", + "types": [ + "ChatMemberUpdated" + ], + "optional": true, + "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." + }, + { + "name": "chat_member", + "types": [ + "ChatMemberUpdated" + ], + "optional": true, + "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." + }, + { + "name": "chat_join_request", + "types": [ + "ChatJoinRequest" + ], + "optional": true, + "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." + } + ], + "extended_by": [] + }, + { + "name": "WebhookInfo", + "description": "Describes the current status of a webhook.", + "fields": [ + { + "name": "url", + "types": [ + "string" + ], + "optional": false, + "description": "Webhook URL, may be empty if webhook is not set up" + }, + { + "name": "has_custom_certificate", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if a custom certificate was provided for webhook certificate checks" + }, + { + "name": "pending_update_count", + "types": [ + "int" + ], + "optional": false, + "description": "Number of updates awaiting delivery" + }, + { + "name": "ip_address", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Currently used webhook IP address" + }, + { + "name": "last_error_date", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook" + }, + { + "name": "last_error_message", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook" + }, + { + "name": "last_synchronization_error_date", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters" + }, + { + "name": "max_connections", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery" + }, + { + "name": "allowed_updates", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member" + } + ], + "extended_by": [] + }, + { + "name": "User", + "description": "This object represents a Telegram user or bot.", + "fields": [ + { + "name": "id", + "types": [ + "int" + ], + "optional": false, + "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." + }, + { + "name": "is_bot", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if this user is a bot" + }, + { + "name": "first_name", + "types": [ + "string" + ], + "optional": false, + "description": "User's or bot's first name" + }, + { + "name": "last_name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. User's or bot's last name" + }, + { + "name": "username", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. User's or bot's username" + }, + { + "name": "language_code", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. IETF language tag of the user's language" + }, + { + "name": "is_premium", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if this user is a Telegram Premium user", + "default": true + }, + { + "name": "added_to_attachment_menu", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if this user added the bot to the attachment menu", + "default": true + }, + { + "name": "can_join_groups", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the bot can be invited to groups. Returned only in getMe." + }, + { + "name": "can_read_all_group_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if privacy mode is disabled for the bot. Returned only in getMe." + }, + { + "name": "supports_inline_queries", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the bot supports inline queries. Returned only in getMe." + } + ], + "extended_by": [] + }, + { + "name": "Chat", + "description": "This object represents a chat.", + "fields": [ + { + "name": "id", + "types": [ + "int" + ], + "optional": false, + "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." + }, + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of chat, can be either “private”, “group”, “supergroup” or “channel”" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Title, for supergroups, channels and group chats" + }, + { + "name": "username", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Username, for private chats, supergroups and channels if available" + }, + { + "name": "first_name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. First name of the other party in a private chat" + }, + { + "name": "last_name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Last name of the other party in a private chat" + }, + { + "name": "photo", + "types": [ + "ChatPhoto" + ], + "optional": true, + "description": "Optional. Chat photo. Returned only in getChat." + }, + { + "name": "bio", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Bio of the other party in a private chat. Returned only in getChat." + }, + { + "name": "has_private_forwards", + "types": [ + "bool" + ], + "optional": 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. Returned only in getChat.", + "default": true + }, + { + "name": "has_restricted_voice_and_video_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat. Returned only in getChat.", + "default": true + }, + { + "name": "join_to_send_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if users need to join the supergroup before they can send messages. Returned only in getChat.", + "default": true + }, + { + "name": "join_by_request", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators. Returned only in getChat.", + "default": true + }, + { + "name": "description", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Description, for groups, supergroups and channel chats. Returned only in getChat." + }, + { + "name": "invite_link", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat." + }, + { + "name": "pinned_message", + "types": [ + "Message" + ], + "optional": true, + "description": "Optional. The most recent pinned message (by sending date). Returned only in getChat." + }, + { + "name": "permissions", + "types": [ + "ChatPermissions" + ], + "optional": true, + "description": "Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat." + }, + { + "name": "slow_mode_delay", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user; in seconds. Returned only in getChat." + }, + { + "name": "message_auto_delete_time", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat." + }, + { + "name": "has_protected_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat.", + "default": true + }, + { + "name": "sticker_set_name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. For supergroups, name of group sticker set. Returned only in getChat." + }, + { + "name": "can_set_sticker_set", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the bot can change the group sticker set. Returned only in getChat.", + "default": true + }, + { + "name": "linked_chat_id", + "types": [ + "int" + ], + "optional": true, + "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. Returned only in getChat." + }, + { + "name": "location", + "types": [ + "ChatLocation" + ], + "optional": true, + "description": "Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat." + } + ], + "extended_by": [] + }, + { + "name": "Message", + "description": "This object represents a message.", + "fields": [ + { + "name": "message_id", + "types": [ + "int" + ], + "optional": false, + "description": "Unique message identifier inside this chat" + }, + { + "name": "from", + "types": [ + "User" + ], + "optional": true, + "description": "Optional. Sender of the message; empty for messages sent to channels. For backward compatibility, the field contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat." + }, + { + "name": "sender_chat", + "types": [ + "Chat" + ], + "optional": true, + "description": "Optional. Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat." + }, + { + "name": "date", + "types": [ + "int" + ], + "optional": false, + "description": "Date the message was sent in Unix time" + }, + { + "name": "chat", + "types": [ + "Chat" + ], + "optional": false, + "description": "Conversation the message belongs to" + }, + { + "name": "forward_from", + "types": [ + "User" + ], + "optional": true, + "description": "Optional. For forwarded messages, sender of the original message" + }, + { + "name": "forward_from_chat", + "types": [ + "Chat" + ], + "optional": true, + "description": "Optional. For messages forwarded from channels or from anonymous administrators, information about the original sender chat" + }, + { + "name": "forward_from_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. For messages forwarded from channels, identifier of the original message in the channel" + }, + { + "name": "forward_signature", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. For forwarded messages that were originally sent in channels or by an anonymous chat administrator, signature of the message sender if present" + }, + { + "name": "forward_sender_name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages" + }, + { + "name": "forward_date", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. For forwarded messages, date the original message was sent in Unix time" + }, + { + "name": "is_automatic_forward", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group", + "default": true + }, + { + "name": "reply_to_message", + "types": [ + "Message" + ], + "optional": true, + "description": "Optional. For replies, 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." + }, + { + "name": "via_bot", + "types": [ + "User" + ], + "optional": true, + "description": "Optional. Bot through which the message was sent" + }, + { + "name": "edit_date", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Date the message was last edited in Unix time" + }, + { + "name": "has_protected_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the message can't be forwarded", + "default": true + }, + { + "name": "media_group_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. The unique identifier of a media message group this message belongs to" + }, + { + "name": "author_signature", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator" + }, + { + "name": "text", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. For text messages, the actual UTF-8 text of the message" + }, + { + "name": "entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text" + }, + { + "name": "animation", + "types": [ + "Animation" + ], + "optional": true, + "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" + }, + { + "name": "audio", + "types": [ + "Audio" + ], + "optional": true, + "description": "Optional. Message is an audio file, information about the file" + }, + { + "name": "document", + "types": [ + "Document" + ], + "optional": true, + "description": "Optional. Message is a general file, information about the file" + }, + { + "name": "photo", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. Message is a photo, available sizes of the photo" + }, + { + "name": "sticker", + "types": [ + "Sticker" + ], + "optional": true, + "description": "Optional. Message is a sticker, information about the sticker" + }, + { + "name": "video", + "types": [ + "Video" + ], + "optional": true, + "description": "Optional. Message is a video, information about the video" + }, + { + "name": "video_note", + "types": [ + "VideoNote" + ], + "optional": true, + "description": "Optional. Message is a video note, information about the video message" + }, + { + "name": "voice", + "types": [ + "Voice" + ], + "optional": true, + "description": "Optional. Message is a voice message, information about the file" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption for the animation, audio, document, photo, video or voice" + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption" + }, + { + "name": "contact", + "types": [ + "Contact" + ], + "optional": true, + "description": "Optional. Message is a shared contact, information about the contact" + }, + { + "name": "dice", + "types": [ + "Dice" + ], + "optional": true, + "description": "Optional. Message is a dice with random value" + }, + { + "name": "game", + "types": [ + "Game" + ], + "optional": true, + "description": "Optional. Message is a game, information about the game. More about games »" + }, + { + "name": "poll", + "types": [ + "Poll" + ], + "optional": true, + "description": "Optional. Message is a native poll, information about the poll" + }, + { + "name": "venue", + "types": [ + "Venue" + ], + "optional": true, + "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" + }, + { + "name": "location", + "types": [ + "Location" + ], + "optional": true, + "description": "Optional. Message is a shared location, information about the location" + }, + { + "name": "new_chat_members", + "types": [ + "Array" + ], + "optional": true, + "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)" + }, + { + "name": "left_chat_member", + "types": [ + "User" + ], + "optional": true, + "description": "Optional. A member was removed from the group, information about them (this member may be the bot itself)" + }, + { + "name": "new_chat_title", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. A chat title was changed to this value" + }, + { + "name": "new_chat_photo", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. A chat photo was change to this value" + }, + { + "name": "delete_chat_photo", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Service message: the chat photo was deleted", + "default": true + }, + { + "name": "group_chat_created", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Service message: the group has been created", + "default": true + }, + { + "name": "supergroup_chat_created", + "types": [ + "bool" + ], + "optional": 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.", + "default": true + }, + { + "name": "channel_chat_created", + "types": [ + "bool" + ], + "optional": 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.", + "default": true + }, + { + "name": "message_auto_delete_timer_changed", + "types": [ + "MessageAutoDeleteTimerChanged" + ], + "optional": true, + "description": "Optional. Service message: auto-delete timer settings changed in the chat" + }, + { + "name": "migrate_to_chat_id", + "types": [ + "int" + ], + "optional": true, + "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." + }, + { + "name": "migrate_from_chat_id", + "types": [ + "int" + ], + "optional": true, + "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." + }, + { + "name": "pinned_message", + "types": [ + "Message" + ], + "optional": true, + "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 is itself a reply." + }, + { + "name": "invoice", + "types": [ + "Invoice" + ], + "optional": true, + "description": "Optional. Message is an invoice for a payment, information about the invoice. More about payments »" + }, + { + "name": "successful_payment", + "types": [ + "SuccessfulPayment" + ], + "optional": true, + "description": "Optional. Message is a service message about a successful payment, information about the payment. More about payments »" + }, + { + "name": "connected_website", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. The domain name of the website on which the user has logged in. More about Telegram Login »" + }, + { + "name": "passport_data", + "types": [ + "PassportData" + ], + "optional": true, + "description": "Optional. Telegram Passport data" + }, + { + "name": "proximity_alert_triggered", + "types": [ + "ProximityAlertTriggered" + ], + "optional": true, + "description": "Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location." + }, + { + "name": "video_chat_scheduled", + "types": [ + "VideoChatScheduled" + ], + "optional": true, + "description": "Optional. Service message: video chat scheduled" + }, + { + "name": "video_chat_started", + "types": [ + "VideoChatStarted" + ], + "optional": true, + "description": "Optional. Service message: video chat started" + }, + { + "name": "video_chat_ended", + "types": [ + "VideoChatEnded" + ], + "optional": true, + "description": "Optional. Service message: video chat ended" + }, + { + "name": "video_chat_participants_invited", + "types": [ + "VideoChatParticipantsInvited" + ], + "optional": true, + "description": "Optional. Service message: new participants invited to a video chat" + }, + { + "name": "web_app_data", + "types": [ + "WebAppData" + ], + "optional": true, + "description": "Optional. Service message: data sent by a Web App" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons." + } + ], + "extended_by": [] + }, + { + "name": "MessageId", + "description": "This object represents a unique message identifier.", + "fields": [ + { + "name": "message_id", + "types": [ + "int" + ], + "optional": false, + "description": "Unique message identifier" + } + ], + "extended_by": [] + }, + { + "name": "MessageEntity", + "description": "This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the entity. Currently, can be “mention” (@username), “hashtag” (#hashtag), “cashtag” ($USD), “bot_command” (/start@jobs_bot), “url” (https://telegram.org), “email” (do-not-reply@telegram.org), “phone_number” (+1-212-555-0123), “bold” (bold text), “italic” (italic text), “underline” (underlined text), “strikethrough” (strikethrough text), “spoiler” (spoiler message), “code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable text URLs), “text_mention” (for users without usernames), “custom_emoji” (for inline custom emoji stickers)" + }, + { + "name": "offset", + "types": [ + "int" + ], + "optional": false, + "description": "Offset in UTF-16 code units to the start of the entity" + }, + { + "name": "length", + "types": [ + "int" + ], + "optional": false, + "description": "Length of the entity in UTF-16 code units" + }, + { + "name": "url", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. For “text_link” only, URL that will be opened after user taps on the text" + }, + { + "name": "user", + "types": [ + "User" + ], + "optional": true, + "description": "Optional. For “text_mention” only, the mentioned user" + }, + { + "name": "language", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. For “pre” only, the programming language of the entity text" + }, + { + "name": "custom_emoji_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. For “custom_emoji” only, unique identifier of the custom emoji. Use getCustomEmojiStickers to get full information about the sticker" + } + ], + "extended_by": [] + }, + { + "name": "PhotoSize", + "description": "This object represents one size of a photo or a file / sticker thumbnail.", + "fields": [ + { + "name": "file_id", + "types": [ + "string" + ], + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file" + }, + { + "name": "file_unique_id", + "types": [ + "string" + ], + "optional": false, + "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." + }, + { + "name": "width", + "types": [ + "int" + ], + "optional": false, + "description": "Photo width" + }, + { + "name": "height", + "types": [ + "int" + ], + "optional": false, + "description": "Photo height" + }, + { + "name": "file_size", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. File size in bytes" + } + ], + "extended_by": [] + }, + { + "name": "Animation", + "description": "This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).", + "fields": [ + { + "name": "file_id", + "types": [ + "string" + ], + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file" + }, + { + "name": "file_unique_id", + "types": [ + "string" + ], + "optional": false, + "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." + }, + { + "name": "width", + "types": [ + "int" + ], + "optional": false, + "description": "Video width as defined by sender" + }, + { + "name": "height", + "types": [ + "int" + ], + "optional": false, + "description": "Video height as defined by sender" + }, + { + "name": "duration", + "types": [ + "int" + ], + "optional": false, + "description": "Duration of the video in seconds as defined by sender" + }, + { + "name": "thumb", + "types": [ + "PhotoSize" + ], + "optional": true, + "description": "Optional. Animation thumbnail as defined by sender" + }, + { + "name": "file_name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Original animation filename as defined by sender" + }, + { + "name": "mime_type", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. MIME type of the file as defined by sender" + }, + { + "name": "file_size", + "types": [ + "int" + ], + "optional": true, + "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." + } + ], + "extended_by": [] + }, + { + "name": "Audio", + "description": "This object represents an audio file to be treated as music by the Telegram clients.", + "fields": [ + { + "name": "file_id", + "types": [ + "string" + ], + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file" + }, + { + "name": "file_unique_id", + "types": [ + "string" + ], + "optional": false, + "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." + }, + { + "name": "duration", + "types": [ + "int" + ], + "optional": false, + "description": "Duration of the audio in seconds as defined by sender" + }, + { + "name": "performer", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Performer of the audio as defined by sender or by audio tags" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Title of the audio as defined by sender or by audio tags" + }, + { + "name": "file_name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Original filename as defined by sender" + }, + { + "name": "mime_type", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. MIME type of the file as defined by sender" + }, + { + "name": "file_size", + "types": [ + "int" + ], + "optional": true, + "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." + }, + { + "name": "thumb", + "types": [ + "PhotoSize" + ], + "optional": true, + "description": "Optional. Thumbnail of the album cover to which the music file belongs" + } + ], + "extended_by": [] + }, + { + "name": "Document", + "description": "This object represents a general file (as opposed to photos, voice messages and audio files).", + "fields": [ + { + "name": "file_id", + "types": [ + "string" + ], + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file" + }, + { + "name": "file_unique_id", + "types": [ + "string" + ], + "optional": false, + "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." + }, + { + "name": "thumb", + "types": [ + "PhotoSize" + ], + "optional": true, + "description": "Optional. Document thumbnail as defined by sender" + }, + { + "name": "file_name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Original filename as defined by sender" + }, + { + "name": "mime_type", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. MIME type of the file as defined by sender" + }, + { + "name": "file_size", + "types": [ + "int" + ], + "optional": true, + "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." + } + ], + "extended_by": [] + }, + { + "name": "Video", + "description": "This object represents a video file.", + "fields": [ + { + "name": "file_id", + "types": [ + "string" + ], + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file" + }, + { + "name": "file_unique_id", + "types": [ + "string" + ], + "optional": false, + "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." + }, + { + "name": "width", + "types": [ + "int" + ], + "optional": false, + "description": "Video width as defined by sender" + }, + { + "name": "height", + "types": [ + "int" + ], + "optional": false, + "description": "Video height as defined by sender" + }, + { + "name": "duration", + "types": [ + "int" + ], + "optional": false, + "description": "Duration of the video in seconds as defined by sender" + }, + { + "name": "thumb", + "types": [ + "PhotoSize" + ], + "optional": true, + "description": "Optional. Video thumbnail" + }, + { + "name": "file_name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Original filename as defined by sender" + }, + { + "name": "mime_type", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. MIME type of the file as defined by sender" + }, + { + "name": "file_size", + "types": [ + "int" + ], + "optional": true, + "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." + } + ], + "extended_by": [] + }, + { + "name": "VideoNote", + "description": "This object represents a video message (available in Telegram apps as of v.4.0).", + "fields": [ + { + "name": "file_id", + "types": [ + "string" + ], + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file" + }, + { + "name": "file_unique_id", + "types": [ + "string" + ], + "optional": false, + "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." + }, + { + "name": "length", + "types": [ + "int" + ], + "optional": false, + "description": "Video width and height (diameter of the video message) as defined by sender" + }, + { + "name": "duration", + "types": [ + "int" + ], + "optional": false, + "description": "Duration of the video in seconds as defined by sender" + }, + { + "name": "thumb", + "types": [ + "PhotoSize" + ], + "optional": true, + "description": "Optional. Video thumbnail" + }, + { + "name": "file_size", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. File size in bytes" + } + ], + "extended_by": [] + }, + { + "name": "Voice", + "description": "This object represents a voice note.", + "fields": [ + { + "name": "file_id", + "types": [ + "string" + ], + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file" + }, + { + "name": "file_unique_id", + "types": [ + "string" + ], + "optional": false, + "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." + }, + { + "name": "duration", + "types": [ + "int" + ], + "optional": false, + "description": "Duration of the audio in seconds as defined by sender" + }, + { + "name": "mime_type", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. MIME type of the file as defined by sender" + }, + { + "name": "file_size", + "types": [ + "int" + ], + "optional": true, + "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." + } + ], + "extended_by": [] + }, + { + "name": "Contact", + "description": "This object represents a phone contact.", + "fields": [ + { + "name": "phone_number", + "types": [ + "string" + ], + "optional": false, + "description": "Contact's phone number" + }, + { + "name": "first_name", + "types": [ + "string" + ], + "optional": false, + "description": "Contact's first name" + }, + { + "name": "last_name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Contact's last name" + }, + { + "name": "user_id", + "types": [ + "int" + ], + "optional": true, + "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." + }, + { + "name": "vcard", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Additional data about the contact in the form of a vCard" + } + ], + "extended_by": [] + }, + { + "name": "Dice", + "description": "This object represents an animated emoji that displays a random value.", + "fields": [ + { + "name": "emoji", + "types": [ + "string" + ], + "optional": false, + "description": "Emoji on which the dice throw animation is based" + }, + { + "name": "value", + "types": [ + "int" + ], + "optional": false, + "description": "____simple_html_dom__voku__html_wrapper____>Value of the dice, 1-6 for “🎲”, “🎯” and “🎳” base emoji, 1-5 for “🏀” and “⚽” base emoji, 1-64 for “🎰” base emoji" + } + ], + "extended_by": [] + }, + { + "name": "PollOption", + "description": "This object contains information about one answer option in a poll.", + "fields": [ + { + "name": "text", + "types": [ + "string" + ], + "optional": false, + "description": "Option text, 1-100 characters" + }, + { + "name": "voter_count", + "types": [ + "int" + ], + "optional": false, + "description": "Number of users that voted for this option" + } + ], + "extended_by": [] + }, + { + "name": "PollAnswer", + "description": "This object represents an answer of a user in a non-anonymous poll.", + "fields": [ + { + "name": "poll_id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique poll identifier" + }, + { + "name": "user", + "types": [ + "User" + ], + "optional": false, + "description": "The user, who changed the answer to the poll" + }, + { + "name": "option_ids", + "types": [ + "Array" + ], + "optional": false, + "description": "0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote." + } + ], + "extended_by": [] + }, + { + "name": "Poll", + "description": "This object contains information about a poll.", + "fields": [ + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique poll identifier" + }, + { + "name": "question", + "types": [ + "string" + ], + "optional": false, + "description": "Poll question, 1-300 characters" + }, + { + "name": "options", + "types": [ + "Array" + ], + "optional": false, + "description": "List of poll options" + }, + { + "name": "total_voter_count", + "types": [ + "int" + ], + "optional": false, + "description": "Total number of users that voted in the poll" + }, + { + "name": "is_closed", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the poll is closed" + }, + { + "name": "is_anonymous", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the poll is anonymous" + }, + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Poll type, currently can be “regular” or “quiz”" + }, + { + "name": "allows_multiple_answers", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the poll allows multiple answers" + }, + { + "name": "correct_option_id", + "types": [ + "int" + ], + "optional": true, + "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." + }, + { + "name": "explanation", + "types": [ + "string" + ], + "optional": true, + "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" + }, + { + "name": "explanation_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation" + }, + { + "name": "open_period", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Amount of time in seconds the poll will be active after creation" + }, + { + "name": "close_date", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Point in time (Unix timestamp) when the poll will be automatically closed" + } + ], + "extended_by": [] + }, + { + "name": "Location", + "description": "This object represents a point on the map.", + "fields": [ + { + "name": "longitude", + "types": [ + "float" + ], + "optional": false, + "description": "Longitude as defined by sender" + }, + { + "name": "latitude", + "types": [ + "float" + ], + "optional": false, + "description": "Latitude as defined by sender" + }, + { + "name": "horizontal_accuracy", + "types": [ + "float" + ], + "optional": true, + "description": "Optional. The radius of uncertainty for the location, measured in meters; 0-1500" + }, + { + "name": "live_period", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only." + }, + { + "name": "heading", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only." + }, + { + "name": "proximity_alert_radius", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only." + } + ], + "extended_by": [] + }, + { + "name": "Venue", + "description": "This object represents a venue.", + "fields": [ + { + "name": "location", + "types": [ + "Location" + ], + "optional": false, + "description": "Venue location. Can't be a live location" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Name of the venue" + }, + { + "name": "address", + "types": [ + "string" + ], + "optional": false, + "description": "Address of the venue" + }, + { + "name": "foursquare_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Foursquare identifier of the venue" + }, + { + "name": "foursquare_type", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)" + }, + { + "name": "google_place_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Google Places identifier of the venue" + }, + { + "name": "google_place_type", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Google Places type of the venue. (See supported types.)" + } + ], + "extended_by": [] + }, + { + "name": "WebAppData", + "description": "Describes data sent from a Web App to the bot.", + "fields": [ + { + "name": "data", + "types": [ + "string" + ], + "optional": false, + "description": "The data. Be aware that a bad client can send arbitrary data in this field." + }, + { + "name": "button_text", + "types": [ + "string" + ], + "optional": false, + "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." + } + ], + "extended_by": [] + }, + { + "name": "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": [ + { + "name": "traveler", + "types": [ + "User" + ], + "optional": false, + "description": "User that triggered the alert" + }, + { + "name": "watcher", + "types": [ + "User" + ], + "optional": false, + "description": "User that set the alert" + }, + { + "name": "distance", + "types": [ + "int" + ], + "optional": false, + "description": "The distance between the users" + } + ], + "extended_by": [] + }, + { + "name": "MessageAutoDeleteTimerChanged", + "description": "This object represents a service message about a change in auto-delete timer settings.", + "fields": [ + { + "name": "message_auto_delete_time", + "types": [ + "int" + ], + "optional": false, + "description": "New auto-delete time for messages in the chat; in seconds" + } + ], + "extended_by": [] + }, + { + "name": "VideoChatScheduled", + "description": "This object represents a service message about a video chat scheduled in the chat.", + "fields": [ + { + "name": "start_date", + "types": [ + "int" + ], + "optional": false, + "description": "Point in time (Unix timestamp) when the video chat is supposed to be started by a chat administrator" + } + ], + "extended_by": [] + }, + { + "name": "VideoChatStarted", + "description": "This object represents a service message about a video chat started in the chat. Currently holds no information.", + "fields": [], + "extended_by": [] + }, + { + "name": "VideoChatEnded", + "description": "This object represents a service message about a video chat ended in the chat.", + "fields": [ + { + "name": "duration", + "types": [ + "int" + ], + "optional": false, + "description": "Video chat duration in seconds" + } + ], + "extended_by": [] + }, + { + "name": "VideoChatParticipantsInvited", + "description": "This object represents a service message about new members invited to a video chat.", + "fields": [ + { + "name": "users", + "types": [ + "Array" + ], + "optional": false, + "description": "New members that were invited to the video chat" + } + ], + "extended_by": [] + }, + { + "name": "UserProfilePhotos", + "description": "This object represent a user's profile pictures.", + "fields": [ + { + "name": "total_count", + "types": [ + "int" + ], + "optional": false, + "description": "Total number of profile pictures the target user has" + }, + { + "name": "photos", + "types": [ + "Array>" + ], + "optional": false, + "description": "Requested profile pictures (in up to 4 sizes each)" + } + ], + "extended_by": [] + }, + { + "name": "File", + "description": "This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot/. 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.", + "fields": [ + { + "name": "file_id", + "types": [ + "string" + ], + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file" + }, + { + "name": "file_unique_id", + "types": [ + "string" + ], + "optional": false, + "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." + }, + { + "name": "file_size", + "types": [ + "int" + ], + "optional": true, + "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." + }, + { + "name": "file_path", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. File path. Use https://api.telegram.org/file/bot/ to get the file." + } + ], + "extended_by": [] + }, + { + "name": "WebAppInfo", + "description": "Describes a Web App.", + "fields": [ + { + "name": "url", + "types": [ + "string" + ], + "optional": false, + "description": "An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps" + } + ], + "extended_by": [] + }, + { + "name": "ReplyKeyboardMarkup", + "description": "This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).", + "fields": [ + { + "name": "keyboard", + "types": [ + "Array>" + ], + "optional": false, + "description": "Array of button rows, each represented by an Array of KeyboardButton objects" + }, + { + "name": "resize_keyboard", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard.", + "default": false + }, + { + "name": "one_time_keyboard", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false.", + "default": false + }, + { + "name": "input_field_placeholder", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. The placeholder to be shown in the input field when the keyboard is active; 1-64 characters" + }, + { + "name": "selective", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard." + } + ], + "extended_by": [] + }, + { + "name": "KeyboardButton", + "description": "This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields web_app, request_contact, request_location, and request_poll are mutually exclusive.", + "fields": [ + { + "name": "text", + "types": [ + "string" + ], + "optional": false, + "description": "Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed" + }, + { + "name": "request_contact", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only." + }, + { + "name": "request_location", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only." + }, + { + "name": "request_poll", + "types": [ + "KeyboardButtonPollType" + ], + "optional": true, + "description": "Optional. If specified, the user will be asked to create a poll and send it to the bot when the button is pressed. Available in private chats only." + }, + { + "name": "web_app", + "types": [ + "WebAppInfo" + ], + "optional": true, + "description": "Optional. If specified, the described Web App will be launched when the button is pressed. The Web App will be able to send a “web_app_data” service message. Available in private chats only." + } + ], + "extended_by": [] + }, + { + "name": "KeyboardButtonPollType", + "description": "This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type." + } + ], + "extended_by": [] + }, + { + "name": "ReplyKeyboardRemove", + "description": "Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup).", + "fields": [ + { + "name": "remove_keyboard", + "types": [ + "bool" + ], + "optional": false, + "description": "Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)", + "default": true + }, + { + "name": "selective", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet." + } + ], + "extended_by": [] + }, + { + "name": "InlineKeyboardMarkup", + "description": "This object represents an inline keyboard that appears right next to the message it belongs to.", + "fields": [ + { + "name": "inline_keyboard", + "types": [ + "Array>" + ], + "optional": false, + "description": "Array of button rows, each represented by an Array of InlineKeyboardButton objects" + } + ], + "extended_by": [] + }, + { + "name": "InlineKeyboardButton", + "description": "This object represents one button of an inline keyboard. You must use exactly one of the optional fields.", + "fields": [ + { + "name": "text", + "types": [ + "string" + ], + "optional": false, + "description": "Label text on the button" + }, + { + "name": "url", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id= can be used to mention a user by their ID without using a username, if this is allowed by their privacy settings." + }, + { + "name": "callback_data", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes" + }, + { + "name": "web_app", + "types": [ + "WebAppInfo" + ], + "optional": true, + "description": "Optional. Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. Available only in private chats between a user and the bot." + }, + { + "name": "login_url", + "types": [ + "LoginUrl" + ], + "optional": true, + "description": "Optional. An HTTPS URL used to automatically authorize the user. Can be used as a replacement for the Telegram Login Widget." + }, + { + "name": "switch_inline_query", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted.Note: This offers an easy way for users to start using your bot in inline mode when they are currently in a private chat with it. Especially useful when combined with switch_pm… actions - in this case the user will be automatically returned to the chat they switched from, skipping the chat selection screen." + }, + { + "name": "switch_inline_query_current_chat", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username will be inserted.This offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options." + }, + { + "name": "callback_game", + "types": [ + "CallbackGame" + ], + "optional": true, + "description": "Optional. Description of the game that will be launched when the user presses the button.NOTE: This type of button must always be the first button in the first row." + }, + { + "name": "pay", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Specify True, to send a Pay button.NOTE: This type of button must always be the first button in the first row and can only be used in invoice messages." + } + ], + "extended_by": [] + }, + { + "name": "LoginUrl", + "description": "This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in:\nTelegram apps support these buttons as of version 5.7.", + "fields": [ + { + "name": "url", + "types": [ + "string" + ], + "optional": false, + "description": "An HTTPS URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.NOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization." + }, + { + "name": "forward_text", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. New text of the button in forwarded messages." + }, + { + "name": "bot_username", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Username of a bot, which will be used for user authorization. See Setting up a bot for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details." + }, + { + "name": "request_write_access", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Pass True to request the permission for your bot to send messages to the user." + } + ], + "extended_by": [] + }, + { + "name": "CallbackQuery", + "description": "This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present.", + "fields": [ + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this query" + }, + { + "name": "from", + "types": [ + "User" + ], + "optional": false, + "description": "Sender" + }, + { + "name": "message", + "types": [ + "Message" + ], + "optional": true, + "description": "Optional. Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old" + }, + { + "name": "inline_message_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Identifier of the message sent via the bot in inline mode, that originated the query." + }, + { + "name": "chat_instance", + "types": [ + "string" + ], + "optional": false, + "description": "Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games." + }, + { + "name": "data", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Data associated with the callback button. Be aware that the message originated the query can contain no callback buttons with this data." + }, + { + "name": "game_short_name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Short name of a Game to be returned, serves as the unique identifier for the game" + } + ], + "extended_by": [] + }, + { + "name": "ForceReply", + "description": "Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode.", + "fields": [ + { + "name": "force_reply", + "types": [ + "bool" + ], + "optional": false, + "description": "Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'", + "default": true + }, + { + "name": "input_field_placeholder", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters" + }, + { + "name": "selective", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message." + } + ], + "extended_by": [] + }, + { + "name": "ChatPhoto", + "description": "This object represents a chat photo.", + "fields": [ + { + "name": "small_file_id", + "types": [ + "string" + ], + "optional": false, + "description": "File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed." + }, + { + "name": "small_file_unique_id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." + }, + { + "name": "big_file_id", + "types": [ + "string" + ], + "optional": false, + "description": "File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed." + }, + { + "name": "big_file_unique_id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." + } + ], + "extended_by": [] + }, + { + "name": "ChatInviteLink", + "description": "Represents an invite link for a chat.", + "fields": [ + { + "name": "invite_link", + "types": [ + "string" + ], + "optional": false, + "description": "The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with “…”." + }, + { + "name": "creator", + "types": [ + "User" + ], + "optional": false, + "description": "Creator of the link" + }, + { + "name": "creates_join_request", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if users joining the chat via the link need to be approved by chat administrators" + }, + { + "name": "is_primary", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the link is primary" + }, + { + "name": "is_revoked", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the link is revoked" + }, + { + "name": "name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Invite link name" + }, + { + "name": "expire_date", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Point in time (Unix timestamp) when the link will expire or has been expired" + }, + { + "name": "member_limit", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999" + }, + { + "name": "pending_join_request_count", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Number of pending join requests created using this link" + } + ], + "extended_by": [] + }, + { + "name": "ChatAdministratorRights", + "description": "Represents the rights of an administrator in a chat.", + "fields": [ + { + "name": "is_anonymous", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user's presence in the chat is hidden" + }, + { + "name": "can_manage_chat", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege" + }, + { + "name": "can_delete_messages", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the administrator can delete messages of other users" + }, + { + "name": "can_manage_video_chats", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the administrator can manage video chats" + }, + { + "name": "can_restrict_members", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the administrator can restrict, ban or unban chat members" + }, + { + "name": "can_promote_members", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)" + }, + { + "name": "can_change_info", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user is allowed to change the chat title, photo and other settings" + }, + { + "name": "can_invite_users", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user is allowed to invite new users to the chat" + }, + { + "name": "can_post_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the administrator can post in the channel; channels only" + }, + { + "name": "can_edit_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the administrator can edit messages of other users and can pin messages; channels only" + }, + { + "name": "can_pin_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the user is allowed to pin messages; groups and supergroups only" + } + ], + "extended_by": [] + }, + { + "name": "ChatMember", + "description": "This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported:", + "fields": [], + "extended_by": [ + "ChatMemberOwner", + "ChatMemberAdministrator", + "ChatMemberMember", + "ChatMemberRestricted", + "ChatMemberLeft", + "ChatMemberBanned" + ] + }, + { + "name": "ChatMemberOwner", + "description": "Represents a chat member that owns the chat and has all administrator privileges.", + "fields": [ + { + "name": "status", + "types": [ + "string" + ], + "optional": false, + "description": "The member's status in the chat, always “creator”" + }, + { + "name": "user", + "types": [ + "User" + ], + "optional": false, + "description": "Information about the user" + }, + { + "name": "is_anonymous", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user's presence in the chat is hidden" + }, + { + "name": "custom_title", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Custom title for this user" + } + ], + "extended_by": [] + }, + { + "name": "ChatMemberAdministrator", + "description": "Represents a chat member that has some additional privileges.", + "fields": [ + { + "name": "status", + "types": [ + "string" + ], + "optional": false, + "description": "The member's status in the chat, always “administrator”" + }, + { + "name": "user", + "types": [ + "User" + ], + "optional": false, + "description": "Information about the user" + }, + { + "name": "can_be_edited", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the bot is allowed to edit administrator privileges of that user" + }, + { + "name": "is_anonymous", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user's presence in the chat is hidden" + }, + { + "name": "can_manage_chat", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege" + }, + { + "name": "can_delete_messages", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the administrator can delete messages of other users" + }, + { + "name": "can_manage_video_chats", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the administrator can manage video chats" + }, + { + "name": "can_restrict_members", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the administrator can restrict, ban or unban chat members" + }, + { + "name": "can_promote_members", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)" + }, + { + "name": "can_change_info", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user is allowed to change the chat title, photo and other settings" + }, + { + "name": "can_invite_users", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user is allowed to invite new users to the chat" + }, + { + "name": "can_post_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the administrator can post in the channel; channels only" + }, + { + "name": "can_edit_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the administrator can edit messages of other users and can pin messages; channels only" + }, + { + "name": "can_pin_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the user is allowed to pin messages; groups and supergroups only" + }, + { + "name": "custom_title", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Custom title for this user" + } + ], + "extended_by": [] + }, + { + "name": "ChatMemberMember", + "description": "Represents a chat member that has no additional privileges or restrictions.", + "fields": [ + { + "name": "status", + "types": [ + "string" + ], + "optional": false, + "description": "The member's status in the chat, always “member”" + }, + { + "name": "user", + "types": [ + "User" + ], + "optional": false, + "description": "Information about the user" + } + ], + "extended_by": [] + }, + { + "name": "ChatMemberRestricted", + "description": "Represents a chat member that is under certain restrictions in the chat. Supergroups only.", + "fields": [ + { + "name": "status", + "types": [ + "string" + ], + "optional": false, + "description": "The member's status in the chat, always “restricted”" + }, + { + "name": "user", + "types": [ + "User" + ], + "optional": false, + "description": "Information about the user" + }, + { + "name": "is_member", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user is a member of the chat at the moment of the request" + }, + { + "name": "can_change_info", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user is allowed to change the chat title, photo and other settings" + }, + { + "name": "can_invite_users", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user is allowed to invite new users to the chat" + }, + { + "name": "can_pin_messages", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user is allowed to pin messages" + }, + { + "name": "can_send_messages", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user is allowed to send text messages, contacts, locations and venues" + }, + { + "name": "can_send_media_messages", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes" + }, + { + "name": "can_send_polls", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user is allowed to send polls" + }, + { + "name": "can_send_other_messages", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user is allowed to send animations, games, stickers and use inline bots" + }, + { + "name": "can_add_web_page_previews", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the user is allowed to add web page previews to their messages" + }, + { + "name": "until_date", + "types": [ + "int" + ], + "optional": false, + "description": "Date when restrictions will be lifted for this user; unix time. If 0, then the user is restricted forever" + } + ], + "extended_by": [] + }, + { + "name": "ChatMemberLeft", + "description": "Represents a chat member that isn't currently a member of the chat, but may join it themselves.", + "fields": [ + { + "name": "status", + "types": [ + "string" + ], + "optional": false, + "description": "The member's status in the chat, always “left”" + }, + { + "name": "user", + "types": [ + "User" + ], + "optional": false, + "description": "Information about the user" + } + ], + "extended_by": [] + }, + { + "name": "ChatMemberBanned", + "description": "Represents a chat member that was banned in the chat and can't return to the chat or view chat messages.", + "fields": [ + { + "name": "status", + "types": [ + "string" + ], + "optional": false, + "description": "The member's status in the chat, always “kicked”" + }, + { + "name": "user", + "types": [ + "User" + ], + "optional": false, + "description": "Information about the user" + }, + { + "name": "until_date", + "types": [ + "int" + ], + "optional": false, + "description": "Date when restrictions will be lifted for this user; unix time. If 0, then the user is banned forever" + } + ], + "extended_by": [] + }, + { + "name": "ChatMemberUpdated", + "description": "This object represents changes in the status of a chat member.", + "fields": [ + { + "name": "chat", + "types": [ + "Chat" + ], + "optional": false, + "description": "Chat the user belongs to" + }, + { + "name": "from", + "types": [ + "User" + ], + "optional": false, + "description": "Performer of the action, which resulted in the change" + }, + { + "name": "date", + "types": [ + "int" + ], + "optional": false, + "description": "Date the change was done in Unix time" + }, + { + "name": "old_chat_member", + "types": [ + "ChatMember" + ], + "optional": false, + "description": "Previous information about the chat member" + }, + { + "name": "new_chat_member", + "types": [ + "ChatMember" + ], + "optional": false, + "description": "New information about the chat member" + }, + { + "name": "invite_link", + "types": [ + "ChatInviteLink" + ], + "optional": true, + "description": "Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only." + } + ], + "extended_by": [] + }, + { + "name": "ChatJoinRequest", + "description": "Represents a join request sent to a chat.", + "fields": [ + { + "name": "chat", + "types": [ + "Chat" + ], + "optional": false, + "description": "Chat to which the request was sent" + }, + { + "name": "from", + "types": [ + "User" + ], + "optional": false, + "description": "User that sent the join request" + }, + { + "name": "date", + "types": [ + "int" + ], + "optional": false, + "description": "Date the request was sent in Unix time" + }, + { + "name": "bio", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Bio of the user." + }, + { + "name": "invite_link", + "types": [ + "ChatInviteLink" + ], + "optional": true, + "description": "Optional. Chat invite link that was used by the user to send the join request" + } + ], + "extended_by": [] + }, + { + "name": "ChatPermissions", + "description": "Describes actions that a non-administrator user is allowed to take in a chat.", + "fields": [ + { + "name": "can_send_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the user is allowed to send text messages, contacts, locations and venues" + }, + { + "name": "can_send_media_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages" + }, + { + "name": "can_send_polls", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the user is allowed to send polls, implies can_send_messages" + }, + { + "name": "can_send_other_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages" + }, + { + "name": "can_add_web_page_previews", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages" + }, + { + "name": "can_change_info", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups" + }, + { + "name": "can_invite_users", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the user is allowed to invite new users to the chat" + }, + { + "name": "can_pin_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the user is allowed to pin messages. Ignored in public supergroups" + } + ], + "extended_by": [] + }, + { + "name": "ChatLocation", + "description": "Represents a location to which a chat is connected.", + "fields": [ + { + "name": "location", + "types": [ + "Location" + ], + "optional": false, + "description": "The location to which the supergroup is connected. Can't be a live location." + }, + { + "name": "address", + "types": [ + "string" + ], + "optional": false, + "description": "Location address; 1-64 characters, as defined by the chat owner" + } + ], + "extended_by": [] + }, + { + "name": "BotCommand", + "description": "This object represents a bot command.", + "fields": [ + { + "name": "command", + "types": [ + "string" + ], + "optional": false, + "description": "Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores." + }, + { + "name": "description", + "types": [ + "string" + ], + "optional": false, + "description": "Description of the command; 1-256 characters." + } + ], + "extended_by": [] + }, + { + "name": "BotCommandScope", + "description": "This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported:", + "fields": [], + "extended_by": [ + "BotCommandScopeDefault", + "BotCommandScopeAllPrivateChats", + "BotCommandScopeAllGroupChats", + "BotCommandScopeAllChatAdministrators", + "BotCommandScopeChat", + "BotCommandScopeChatAdministrators", + "BotCommandScopeChatMember" + ] + }, + { + "name": "BotCommandScopeDefault", + "description": "Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Scope type, must be default", + "default": "default" + } + ], + "extended_by": [] + }, + { + "name": "BotCommandScopeAllPrivateChats", + "description": "Represents the scope of bot commands, covering all private chats.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Scope type, must be all_private_chats", + "default": "all_private_chats" + } + ], + "extended_by": [] + }, + { + "name": "BotCommandScopeAllGroupChats", + "description": "Represents the scope of bot commands, covering all group and supergroup chats.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Scope type, must be all_group_chats", + "default": "all_group_chats" + } + ], + "extended_by": [] + }, + { + "name": "BotCommandScopeAllChatAdministrators", + "description": "Represents the scope of bot commands, covering all group and supergroup chat administrators.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Scope type, must be all_chat_administrators", + "default": "all_chat_administrators" + } + ], + "extended_by": [] + }, + { + "name": "BotCommandScopeChat", + "description": "Represents the scope of bot commands, covering a specific chat.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Scope type, must be chat", + "default": "chat" + }, + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + } + ], + "extended_by": [] + }, + { + "name": "BotCommandScopeChatAdministrators", + "description": "Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Scope type, must be chat_administrators", + "default": "chat_administrators" + }, + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + } + ], + "extended_by": [] + }, + { + "name": "BotCommandScopeChatMember", + "description": "Represents the scope of bot commands, covering a specific member of a group or supergroup chat.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Scope type, must be chat_member", + "default": "chat_member" + }, + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + }, + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "Unique identifier of the target user" + } + ], + "extended_by": [] + }, + { + "name": "MenuButton", + "description": "This object describes the bot's menu button in a private chat. It should be one of", + "fields": [], + "extended_by": [ + "MenuButtonCommands", + "MenuButtonWebApp", + "MenuButtonDefault" + ] + }, + { + "name": "MenuButtonCommands", + "description": "Represents a menu button, which opens the bot's list of commands.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the button, must be commands", + "default": "commands" + } + ], + "extended_by": [] + }, + { + "name": "MenuButtonWebApp", + "description": "Represents a menu button, which launches a Web App.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the button, must be web_app", + "default": "web_app" + }, + { + "name": "text", + "types": [ + "string" + ], + "optional": false, + "description": "Text on the button" + }, + { + "name": "web_app", + "types": [ + "WebAppInfo" + ], + "optional": false, + "description": "Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery." + } + ], + "extended_by": [] + }, + { + "name": "MenuButtonDefault", + "description": "Describes that no specific value for the menu button was set.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the button, must be default", + "default": "default" + } + ], + "extended_by": [] + }, + { + "name": "ResponseParameters", + "description": "Describes why a request was unsuccessful.", + "fields": [ + { + "name": "migrate_to_chat_id", + "types": [ + "int" + ], + "optional": true, + "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." + }, + { + "name": "retry_after", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated" + } + ], + "extended_by": [] + }, + { + "name": "InputMedia", + "description": "This object represents the content of a media message to be sent. It should be one of", + "fields": [], + "extended_by": [ + "InputMediaAnimation", + "InputMediaDocument", + "InputMediaAudio", + "InputMediaPhoto", + "InputMediaVideo" + ] + }, + { + "name": "InputMediaPhoto", + "description": "Represents a photo to be sent.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be photo", + "default": "photo" + }, + { + "name": "media", + "types": [ + "string" + ], + "optional": false, + "description": "File to send. 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 “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the photo caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + } + ], + "extended_by": [] + }, + { + "name": "InputMediaVideo", + "description": "Represents a video to be sent.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be video", + "default": "video" + }, + { + "name": "media", + "types": [ + "string" + ], + "optional": false, + "description": "File to send. 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 “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »" + }, + { + "name": "thumb", + "types": [ + "InputFile", + "string" + ], + "optional": true, + "description": "Optional. 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption of the video to be sent, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the video caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "width", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Video width" + }, + { + "name": "height", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Video height" + }, + { + "name": "duration", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Video duration in seconds" + }, + { + "name": "supports_streaming", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Pass True if the uploaded video is suitable for streaming" + } + ], + "extended_by": [] + }, + { + "name": "InputMediaAnimation", + "description": "Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be animation", + "default": "animation" + }, + { + "name": "media", + "types": [ + "string" + ], + "optional": false, + "description": "File to send. 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 “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »" + }, + { + "name": "thumb", + "types": [ + "InputFile", + "string" + ], + "optional": true, + "description": "Optional. 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption of the animation to be sent, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the animation caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "width", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Animation width" + }, + { + "name": "height", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Animation height" + }, + { + "name": "duration", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Animation duration in seconds" + } + ], + "extended_by": [] + }, + { + "name": "InputMediaAudio", + "description": "Represents an audio file to be treated as music to be sent.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be audio", + "default": "audio" + }, + { + "name": "media", + "types": [ + "string" + ], + "optional": false, + "description": "File to send. 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 “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »" + }, + { + "name": "thumb", + "types": [ + "InputFile", + "string" + ], + "optional": true, + "description": "Optional. 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption of the audio to be sent, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the audio caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "duration", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Duration of the audio in seconds" + }, + { + "name": "performer", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Performer of the audio" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Title of the audio" + } + ], + "extended_by": [] + }, + { + "name": "InputMediaDocument", + "description": "Represents a general file to be sent.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be document", + "default": "document" + }, + { + "name": "media", + "types": [ + "string" + ], + "optional": false, + "description": "File to send. 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 “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »" + }, + { + "name": "thumb", + "types": [ + "InputFile", + "string" + ], + "optional": true, + "description": "Optional. 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption of the document to be sent, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the document caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "disable_content_type_detection", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data. Always True, if the document is sent as part of an album." + } + ], + "extended_by": [] + }, + { + "name": "InputFile", + "description": "This object represents the contents of a file to be uploaded. Must be posted using multipart/form-data in the usual way that files are uploaded via the browser.", + "fields": [], + "extended_by": [] + }, + { + "name": "Sticker", + "description": "This object represents a sticker.", + "fields": [ + { + "name": "file_id", + "types": [ + "string" + ], + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file" + }, + { + "name": "file_unique_id", + "types": [ + "string" + ], + "optional": false, + "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." + }, + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is independent from its format, which is determined by the fields is_animated and is_video." + }, + { + "name": "width", + "types": [ + "int" + ], + "optional": false, + "description": "Sticker width" + }, + { + "name": "height", + "types": [ + "int" + ], + "optional": false, + "description": "Sticker height" + }, + { + "name": "is_animated", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the sticker is animated" + }, + { + "name": "is_video", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the sticker is a video sticker" + }, + { + "name": "thumb", + "types": [ + "PhotoSize" + ], + "optional": true, + "description": "Optional. Sticker thumbnail in the .WEBP or .JPG format" + }, + { + "name": "emoji", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Emoji associated with the sticker" + }, + { + "name": "set_name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Name of the sticker set to which the sticker belongs" + }, + { + "name": "premium_animation", + "types": [ + "File" + ], + "optional": true, + "description": "Optional. For premium regular stickers, premium animation for the sticker" + }, + { + "name": "mask_position", + "types": [ + "MaskPosition" + ], + "optional": true, + "description": "Optional. For mask stickers, the position where the mask should be placed" + }, + { + "name": "custom_emoji_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. For custom emoji stickers, unique identifier of the custom emoji" + }, + { + "name": "file_size", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. File size in bytes" + } + ], + "extended_by": [] + }, + { + "name": "StickerSet", + "description": "This object represents a sticker set.", + "fields": [ + { + "name": "name", + "types": [ + "string" + ], + "optional": false, + "description": "Sticker set name" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Sticker set title" + }, + { + "name": "sticker_type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”" + }, + { + "name": "is_animated", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the sticker set contains animated stickers" + }, + { + "name": "is_video", + "types": [ + "bool" + ], + "optional": false, + "description": "True, if the sticker set contains video stickers" + }, + { + "name": "stickers", + "types": [ + "Array" + ], + "optional": false, + "description": "List of all set stickers" + }, + { + "name": "thumb", + "types": [ + "PhotoSize" + ], + "optional": true, + "description": "Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format" + } + ], + "extended_by": [] + }, + { + "name": "MaskPosition", + "description": "This object describes the position on faces where a mask should be placed by default.", + "fields": [ + { + "name": "point", + "types": [ + "string" + ], + "optional": false, + "description": "The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”." + }, + { + "name": "x_shift", + "types": [ + "float" + ], + "optional": false, + "description": "Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position." + }, + { + "name": "y_shift", + "types": [ + "float" + ], + "optional": false, + "description": "Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position." + }, + { + "name": "scale", + "types": [ + "float" + ], + "optional": false, + "description": "Mask scaling coefficient. For example, 2.0 means double size." + } + ], + "extended_by": [] + }, + { + "name": "InlineQuery", + "description": "This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.", + "fields": [ + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this query" + }, + { + "name": "from", + "types": [ + "User" + ], + "optional": false, + "description": "Sender" + }, + { + "name": "query", + "types": [ + "string" + ], + "optional": false, + "description": "Text of the query (up to 256 characters)" + }, + { + "name": "offset", + "types": [ + "string" + ], + "optional": false, + "description": "Offset of the results to be returned, can be controlled by the bot" + }, + { + "name": "chat_type", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Type of the chat from which the inline query was sent. Can be either “sender” for a private chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat" + }, + { + "name": "location", + "types": [ + "Location" + ], + "optional": true, + "description": "Optional. Sender location, only for bots that request user location" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResult", + "description": "This object represents one result of an inline query. Telegram clients currently support results of the following 20 types:", + "fields": [], + "extended_by": [ + "InlineQueryResultCachedAudio", + "InlineQueryResultCachedDocument", + "InlineQueryResultCachedGif", + "InlineQueryResultCachedMpeg4Gif", + "InlineQueryResultCachedPhoto", + "InlineQueryResultCachedSticker", + "InlineQueryResultCachedVideo", + "InlineQueryResultCachedVoice", + "InlineQueryResultArticle", + "InlineQueryResultAudio", + "InlineQueryResultContact", + "InlineQueryResultGame", + "InlineQueryResultDocument", + "InlineQueryResultGif", + "InlineQueryResultLocation", + "InlineQueryResultMpeg4Gif", + "InlineQueryResultPhoto", + "InlineQueryResultVenue", + "InlineQueryResultVideo", + "InlineQueryResultVoice" + ] + }, + { + "name": "InlineQueryResultArticle", + "description": "Represents a link to an article or web page.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be article", + "default": "article" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 Bytes" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Title of the result" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": false, + "description": "Content of the message to be sent" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "url", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. URL of the result" + }, + { + "name": "hide_url", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Pass True if you don't want the URL to be shown in the message" + }, + { + "name": "description", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Short description of the result" + }, + { + "name": "thumb_url", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Url of the thumbnail for the result" + }, + { + "name": "thumb_width", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Thumbnail width" + }, + { + "name": "thumb_height", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Thumbnail height" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultPhoto", + "description": "Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be photo", + "default": "photo" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "photo_url", + "types": [ + "string" + ], + "optional": false, + "description": "A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB" + }, + { + "name": "thumb_url", + "types": [ + "string" + ], + "optional": false, + "description": "URL of the thumbnail for the photo" + }, + { + "name": "photo_width", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Width of the photo" + }, + { + "name": "photo_height", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Height of the photo" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Title for the result" + }, + { + "name": "description", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Short description of the result" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the photo caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the photo" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultGif", + "description": "Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be gif", + "default": "gif" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "gif_url", + "types": [ + "string" + ], + "optional": false, + "description": "A valid URL for the GIF file. File size must not exceed 1MB" + }, + { + "name": "gif_width", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Width of the GIF" + }, + { + "name": "gif_height", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Height of the GIF" + }, + { + "name": "gif_duration", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Duration of the GIF in seconds" + }, + { + "name": "thumb_url", + "types": [ + "string" + ], + "optional": false, + "description": "URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result" + }, + { + "name": "thumb_mime_type", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”", + "default": "image/jpeg" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Title for the result" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the GIF animation" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultMpeg4Gif", + "description": "Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be mpeg4_gif", + "default": "mpeg4_gif" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "mpeg4_url", + "types": [ + "string" + ], + "optional": false, + "description": "A valid URL for the MPEG4 file. File size must not exceed 1MB" + }, + { + "name": "mpeg4_width", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Video width" + }, + { + "name": "mpeg4_height", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Video height" + }, + { + "name": "mpeg4_duration", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Video duration in seconds" + }, + { + "name": "thumb_url", + "types": [ + "string" + ], + "optional": false, + "description": "URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result" + }, + { + "name": "thumb_mime_type", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”", + "default": "image/jpeg" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Title for the result" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the video animation" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultVideo", + "description": "Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be video", + "default": "video" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "video_url", + "types": [ + "string" + ], + "optional": false, + "description": "A valid URL for the embedded video player or video file" + }, + { + "name": "mime_type", + "types": [ + "string" + ], + "optional": false, + "description": "MIME type of the content of the video URL, “text/html” or “video/mp4”" + }, + { + "name": "thumb_url", + "types": [ + "string" + ], + "optional": false, + "description": "URL of the thumbnail (JPEG only) for the video" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Title for the result" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption of the video to be sent, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the video caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "video_width", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Video width" + }, + { + "name": "video_height", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Video height" + }, + { + "name": "video_duration", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Video duration in seconds" + }, + { + "name": "description", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Short description of the result" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video)." + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultAudio", + "description": "Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be audio", + "default": "audio" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "audio_url", + "types": [ + "string" + ], + "optional": false, + "description": "A valid URL for the audio file" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Title" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the audio caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "performer", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Performer" + }, + { + "name": "audio_duration", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Audio duration in seconds" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the audio" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultVoice", + "description": "Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be voice", + "default": "voice" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "voice_url", + "types": [ + "string" + ], + "optional": false, + "description": "A valid URL for the voice recording" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Recording title" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the voice message caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "voice_duration", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Recording duration in seconds" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the voice recording" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultDocument", + "description": "Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be document", + "default": "document" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Title for the result" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption of the document to be sent, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the document caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "document_url", + "types": [ + "string" + ], + "optional": false, + "description": "A valid URL for the file" + }, + { + "name": "mime_type", + "types": [ + "string" + ], + "optional": false, + "description": "MIME type of the content of the file, either “application/pdf” or “application/zip”" + }, + { + "name": "description", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Short description of the result" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the file" + }, + { + "name": "thumb_url", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. URL of the thumbnail (JPEG only) for the file" + }, + { + "name": "thumb_width", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Thumbnail width" + }, + { + "name": "thumb_height", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Thumbnail height" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultLocation", + "description": "Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be location", + "default": "location" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 Bytes" + }, + { + "name": "latitude", + "types": [ + "float" + ], + "optional": false, + "description": "Location latitude in degrees" + }, + { + "name": "longitude", + "types": [ + "float" + ], + "optional": false, + "description": "Location longitude in degrees" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Location title" + }, + { + "name": "horizontal_accuracy", + "types": [ + "float" + ], + "optional": true, + "description": "Optional. The radius of uncertainty for the location, measured in meters; 0-1500" + }, + { + "name": "live_period", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Period in seconds for which the location can be updated, should be between 60 and 86400." + }, + { + "name": "heading", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified." + }, + { + "name": "proximity_alert_radius", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified." + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the location" + }, + { + "name": "thumb_url", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Url of the thumbnail for the result" + }, + { + "name": "thumb_width", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Thumbnail width" + }, + { + "name": "thumb_height", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Thumbnail height" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultVenue", + "description": "Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be venue", + "default": "venue" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 Bytes" + }, + { + "name": "latitude", + "types": [ + "float" + ], + "optional": false, + "description": "Latitude of the venue location in degrees" + }, + { + "name": "longitude", + "types": [ + "float" + ], + "optional": false, + "description": "Longitude of the venue location in degrees" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Title of the venue" + }, + { + "name": "address", + "types": [ + "string" + ], + "optional": false, + "description": "Address of the venue" + }, + { + "name": "foursquare_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Foursquare identifier of the venue if known" + }, + { + "name": "foursquare_type", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)" + }, + { + "name": "google_place_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Google Places identifier of the venue" + }, + { + "name": "google_place_type", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Google Places type of the venue. (See supported types.)" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the venue" + }, + { + "name": "thumb_url", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Url of the thumbnail for the result" + }, + { + "name": "thumb_width", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Thumbnail width" + }, + { + "name": "thumb_height", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Thumbnail height" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultContact", + "description": "Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be contact", + "default": "contact" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 Bytes" + }, + { + "name": "phone_number", + "types": [ + "string" + ], + "optional": false, + "description": "Contact's phone number" + }, + { + "name": "first_name", + "types": [ + "string" + ], + "optional": false, + "description": "Contact's first name" + }, + { + "name": "last_name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Contact's last name" + }, + { + "name": "vcard", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the contact" + }, + { + "name": "thumb_url", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Url of the thumbnail for the result" + }, + { + "name": "thumb_width", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Thumbnail width" + }, + { + "name": "thumb_height", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Thumbnail height" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultGame", + "description": "Represents a Game.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be game", + "default": "game" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "game_short_name", + "types": [ + "string" + ], + "optional": false, + "description": "Short name of the game" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultCachedPhoto", + "description": "Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be photo", + "default": "photo" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "photo_file_id", + "types": [ + "string" + ], + "optional": false, + "description": "A valid file identifier of the photo" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Title for the result" + }, + { + "name": "description", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Short description of the result" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the photo caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the photo" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultCachedGif", + "description": "Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be gif", + "default": "gif" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "gif_file_id", + "types": [ + "string" + ], + "optional": false, + "description": "A valid file identifier for the GIF file" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Title for the result" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the GIF animation" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultCachedMpeg4Gif", + "description": "Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be mpeg4_gif", + "default": "mpeg4_gif" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "mpeg4_file_id", + "types": [ + "string" + ], + "optional": false, + "description": "A valid file identifier for the MPEG4 file" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Title for the result" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the video animation" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultCachedSticker", + "description": "Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be sticker", + "default": "sticker" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "sticker_file_id", + "types": [ + "string" + ], + "optional": false, + "description": "A valid file identifier of the sticker" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the sticker" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultCachedDocument", + "description": "Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be document", + "default": "document" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Title for the result" + }, + { + "name": "document_file_id", + "types": [ + "string" + ], + "optional": false, + "description": "A valid file identifier for the file" + }, + { + "name": "description", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Short description of the result" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption of the document to be sent, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the document caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the file" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultCachedVideo", + "description": "Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be video", + "default": "video" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "video_file_id", + "types": [ + "string" + ], + "optional": false, + "description": "A valid file identifier for the video file" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Title for the result" + }, + { + "name": "description", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Short description of the result" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption of the video to be sent, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the video caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the video" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultCachedVoice", + "description": "Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be voice", + "default": "voice" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "voice_file_id", + "types": [ + "string" + ], + "optional": false, + "description": "A valid file identifier for the voice message" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Voice message title" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the voice message caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the voice message" + } + ], + "extended_by": [] + }, + { + "name": "InlineQueryResultCachedAudio", + "description": "Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of the result, must be audio", + "default": "audio" + }, + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for this result, 1-64 bytes" + }, + { + "name": "audio_file_id", + "types": [ + "string" + ], + "optional": false, + "description": "A valid file identifier for the audio file" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Caption, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the audio caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "Optional. Inline keyboard attached to the message" + }, + { + "name": "input_message_content", + "types": [ + "InputMessageContent" + ], + "optional": true, + "description": "Optional. Content of the message to be sent instead of the audio" + } + ], + "extended_by": [] + }, + { + "name": "InputMessageContent", + "description": "This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types:", + "fields": [], + "extended_by": [ + "InputTextMessageContent", + "InputLocationMessageContent", + "InputVenueMessageContent", + "InputContactMessageContent", + "InputInvoiceMessageContent" + ] + }, + { + "name": "InputTextMessageContent", + "description": "Represents the content of a text message to be sent as the result of an inline query.", + "fields": [ + { + "name": "message_text", + "types": [ + "string" + ], + "optional": false, + "description": "Text of the message to be sent, 1-4096 characters" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Mode for parsing entities in the message text. See formatting options for more details." + }, + { + "name": "entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. List of special entities that appear in message text, which can be specified instead of parse_mode" + }, + { + "name": "disable_web_page_preview", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Disables link previews for links in the sent message" + } + ], + "extended_by": [] + }, + { + "name": "InputLocationMessageContent", + "description": "Represents the content of a location message to be sent as the result of an inline query.", + "fields": [ + { + "name": "latitude", + "types": [ + "float" + ], + "optional": false, + "description": "Latitude of the location in degrees" + }, + { + "name": "longitude", + "types": [ + "float" + ], + "optional": false, + "description": "Longitude of the location in degrees" + }, + { + "name": "horizontal_accuracy", + "types": [ + "float" + ], + "optional": true, + "description": "Optional. The radius of uncertainty for the location, measured in meters; 0-1500" + }, + { + "name": "live_period", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Period in seconds for which the location can be updated, should be between 60 and 86400." + }, + { + "name": "heading", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified." + }, + { + "name": "proximity_alert_radius", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified." + } + ], + "extended_by": [] + }, + { + "name": "InputVenueMessageContent", + "description": "Represents the content of a venue message to be sent as the result of an inline query.", + "fields": [ + { + "name": "latitude", + "types": [ + "float" + ], + "optional": false, + "description": "Latitude of the venue in degrees" + }, + { + "name": "longitude", + "types": [ + "float" + ], + "optional": false, + "description": "Longitude of the venue in degrees" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Name of the venue" + }, + { + "name": "address", + "types": [ + "string" + ], + "optional": false, + "description": "Address of the venue" + }, + { + "name": "foursquare_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Foursquare identifier of the venue, if known" + }, + { + "name": "foursquare_type", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)" + }, + { + "name": "google_place_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Google Places identifier of the venue" + }, + { + "name": "google_place_type", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Google Places type of the venue. (See supported types.)" + } + ], + "extended_by": [] + }, + { + "name": "InputContactMessageContent", + "description": "Represents the content of a contact message to be sent as the result of an inline query.", + "fields": [ + { + "name": "phone_number", + "types": [ + "string" + ], + "optional": false, + "description": "Contact's phone number" + }, + { + "name": "first_name", + "types": [ + "string" + ], + "optional": false, + "description": "Contact's first name" + }, + { + "name": "last_name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Contact's last name" + }, + { + "name": "vcard", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes" + } + ], + "extended_by": [] + }, + { + "name": "InputInvoiceMessageContent", + "description": "Represents the content of an invoice message to be sent as the result of an inline query.", + "fields": [ + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Product name, 1-32 characters" + }, + { + "name": "description", + "types": [ + "string" + ], + "optional": false, + "description": "Product description, 1-255 characters" + }, + { + "name": "payload", + "types": [ + "string" + ], + "optional": false, + "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes." + }, + { + "name": "provider_token", + "types": [ + "string" + ], + "optional": false, + "description": "Payment provider token, obtained via @BotFather" + }, + { + "name": "currency", + "types": [ + "string" + ], + "optional": false, + "description": "Three-letter ISO 4217 currency code, see more on currencies" + }, + { + "name": "prices", + "types": [ + "Array" + ], + "optional": false, + "description": "Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)" + }, + { + "name": "max_tip_amount", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. 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", + "default": 0 + }, + { + "name": "suggested_tip_amounts", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. A JSON-serialized array of suggested amounts of tip 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." + }, + { + "name": "provider_data", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider." + }, + { + "name": "photo_url", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service." + }, + { + "name": "photo_size", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Photo size in bytes" + }, + { + "name": "photo_width", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Photo width" + }, + { + "name": "photo_height", + "types": [ + "int" + ], + "optional": true, + "description": "Optional. Photo height" + }, + { + "name": "need_name", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Pass True if you require the user's full name to complete the order" + }, + { + "name": "need_phone_number", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Pass True if you require the user's phone number to complete the order" + }, + { + "name": "need_email", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Pass True if you require the user's email address to complete the order" + }, + { + "name": "need_shipping_address", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Pass True if you require the user's shipping address to complete the order" + }, + { + "name": "send_phone_number_to_provider", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Pass True if the user's phone number should be sent to provider" + }, + { + "name": "send_email_to_provider", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Pass True if the user's email address should be sent to provider" + }, + { + "name": "is_flexible", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Pass True if the final price depends on the shipping method" + } + ], + "extended_by": [] + }, + { + "name": "ChosenInlineResult", + "description": "Represents a result of an inline query that was chosen by the user and sent to their chat partner.", + "fields": [ + { + "name": "result_id", + "types": [ + "string" + ], + "optional": false, + "description": "The unique identifier for the result that was chosen" + }, + { + "name": "from", + "types": [ + "User" + ], + "optional": false, + "description": "The user that chose the result" + }, + { + "name": "location", + "types": [ + "Location" + ], + "optional": true, + "description": "Optional. Sender location, only for bots that require user location" + }, + { + "name": "inline_message_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message." + }, + { + "name": "query", + "types": [ + "string" + ], + "optional": false, + "description": "The query that was used to obtain the result" + } + ], + "extended_by": [] + }, + { + "name": "SentWebAppMessage", + "description": "Describes an inline message sent by a Web App on behalf of a user.", + "fields": [ + { + "name": "inline_message_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message." + } + ], + "extended_by": [] + }, + { + "name": "LabeledPrice", + "description": "This object represents a portion of the price for goods or services.", + "fields": [ + { + "name": "label", + "types": [ + "string" + ], + "optional": false, + "description": "Portion label" + }, + { + "name": "amount", + "types": [ + "int" + ], + "optional": false, + "description": "Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)." + } + ], + "extended_by": [] + }, + { + "name": "Invoice", + "description": "This object contains basic information about an invoice.", + "fields": [ + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Product name" + }, + { + "name": "description", + "types": [ + "string" + ], + "optional": false, + "description": "Product description" + }, + { + "name": "start_parameter", + "types": [ + "string" + ], + "optional": false, + "description": "Unique bot deep-linking parameter that can be used to generate this invoice" + }, + { + "name": "currency", + "types": [ + "string" + ], + "optional": false, + "description": "Three-letter ISO 4217 currency code" + }, + { + "name": "total_amount", + "types": [ + "int" + ], + "optional": false, + "description": "Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)." + } + ], + "extended_by": [] + }, + { + "name": "ShippingAddress", + "description": "This object represents a shipping address.", + "fields": [ + { + "name": "country_code", + "types": [ + "string" + ], + "optional": false, + "description": "Two-letter ISO 3166-1 alpha-2 country code" + }, + { + "name": "state", + "types": [ + "string" + ], + "optional": false, + "description": "State, if applicable" + }, + { + "name": "city", + "types": [ + "string" + ], + "optional": false, + "description": "City" + }, + { + "name": "street_line1", + "types": [ + "string" + ], + "optional": false, + "description": "First line for the address" + }, + { + "name": "street_line2", + "types": [ + "string" + ], + "optional": false, + "description": "Second line for the address" + }, + { + "name": "post_code", + "types": [ + "string" + ], + "optional": false, + "description": "Address post code" + } + ], + "extended_by": [] + }, + { + "name": "OrderInfo", + "description": "This object represents information about an order.", + "fields": [ + { + "name": "name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. User name" + }, + { + "name": "phone_number", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. User's phone number" + }, + { + "name": "email", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. User email" + }, + { + "name": "shipping_address", + "types": [ + "ShippingAddress" + ], + "optional": true, + "description": "Optional. User shipping address" + } + ], + "extended_by": [] + }, + { + "name": "ShippingOption", + "description": "This object represents one shipping option.", + "fields": [ + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Shipping option identifier" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Option title" + }, + { + "name": "prices", + "types": [ + "Array" + ], + "optional": false, + "description": "List of price portions" + } + ], + "extended_by": [] + }, + { + "name": "SuccessfulPayment", + "description": "This object contains basic information about a successful payment.", + "fields": [ + { + "name": "currency", + "types": [ + "string" + ], + "optional": false, + "description": "Three-letter ISO 4217 currency code" + }, + { + "name": "total_amount", + "types": [ + "int" + ], + "optional": false, + "description": "Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)." + }, + { + "name": "invoice_payload", + "types": [ + "string" + ], + "optional": false, + "description": "Bot specified invoice payload" + }, + { + "name": "shipping_option_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Identifier of the shipping option chosen by the user" + }, + { + "name": "order_info", + "types": [ + "OrderInfo" + ], + "optional": true, + "description": "Optional. Order information provided by the user" + }, + { + "name": "telegram_payment_charge_id", + "types": [ + "string" + ], + "optional": false, + "description": "Telegram payment identifier" + }, + { + "name": "provider_payment_charge_id", + "types": [ + "string" + ], + "optional": false, + "description": "Provider payment identifier" + } + ], + "extended_by": [] + }, + { + "name": "ShippingQuery", + "description": "This object contains information about an incoming shipping query.", + "fields": [ + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique query identifier" + }, + { + "name": "from", + "types": [ + "User" + ], + "optional": false, + "description": "User who sent the query" + }, + { + "name": "invoice_payload", + "types": [ + "string" + ], + "optional": false, + "description": "Bot specified invoice payload" + }, + { + "name": "shipping_address", + "types": [ + "ShippingAddress" + ], + "optional": false, + "description": "User specified shipping address" + } + ], + "extended_by": [] + }, + { + "name": "PreCheckoutQuery", + "description": "This object contains information about an incoming pre-checkout query.", + "fields": [ + { + "name": "id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique query identifier" + }, + { + "name": "from", + "types": [ + "User" + ], + "optional": false, + "description": "User who sent the query" + }, + { + "name": "currency", + "types": [ + "string" + ], + "optional": false, + "description": "Three-letter ISO 4217 currency code" + }, + { + "name": "total_amount", + "types": [ + "int" + ], + "optional": false, + "description": "Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)." + }, + { + "name": "invoice_payload", + "types": [ + "string" + ], + "optional": false, + "description": "Bot specified invoice payload" + }, + { + "name": "shipping_option_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Identifier of the shipping option chosen by the user" + }, + { + "name": "order_info", + "types": [ + "OrderInfo" + ], + "optional": true, + "description": "Optional. Order information provided by the user" + } + ], + "extended_by": [] + }, + { + "name": "PassportData", + "description": "Describes Telegram Passport data shared with the bot by the user.", + "fields": [ + { + "name": "data", + "types": [ + "Array" + ], + "optional": false, + "description": "Array with information about documents and other Telegram Passport elements that was shared with the bot" + }, + { + "name": "credentials", + "types": [ + "EncryptedCredentials" + ], + "optional": false, + "description": "Encrypted credentials required to decrypt the data" + } + ], + "extended_by": [] + }, + { + "name": "PassportFile", + "description": "This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.", + "fields": [ + { + "name": "file_id", + "types": [ + "string" + ], + "optional": false, + "description": "Identifier for this file, which can be used to download or reuse the file" + }, + { + "name": "file_unique_id", + "types": [ + "string" + ], + "optional": false, + "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." + }, + { + "name": "file_size", + "types": [ + "int" + ], + "optional": false, + "description": "File size in bytes" + }, + { + "name": "file_date", + "types": [ + "int" + ], + "optional": false, + "description": "Unix time when the file was uploaded" + } + ], + "extended_by": [] + }, + { + "name": "EncryptedPassportElement", + "description": "Describes documents or other Telegram Passport elements shared with the bot by the user.", + "fields": [ + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”, “phone_number”, “email”." + }, + { + "name": "data", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Base64-encoded encrypted Telegram Passport element data provided by the user, available for “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials." + }, + { + "name": "phone_number", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. User's verified phone number, available only for “phone_number” type" + }, + { + "name": "email", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. User's verified email address, available only for “email” type" + }, + { + "name": "files", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. Array of encrypted files with documents provided by the user, available for “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials." + }, + { + "name": "front_side", + "types": [ + "PassportFile" + ], + "optional": true, + "description": "Optional. Encrypted file with the front side of the document, provided by the user. Available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials." + }, + { + "name": "reverse_side", + "types": [ + "PassportFile" + ], + "optional": true, + "description": "Optional. Encrypted file with the reverse side of the document, provided by the user. Available for “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying EncryptedCredentials." + }, + { + "name": "selfie", + "types": [ + "PassportFile" + ], + "optional": true, + "description": "Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials." + }, + { + "name": "translation", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. Array of encrypted files with translated versions of documents provided by the user. Available if requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials." + }, + { + "name": "hash", + "types": [ + "string" + ], + "optional": false, + "description": "Base64-encoded element hash for using in PassportElementErrorUnspecified" + } + ], + "extended_by": [] + }, + { + "name": "EncryptedCredentials", + "description": "Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.", + "fields": [ + { + "name": "data", + "types": [ + "string" + ], + "optional": false, + "description": "Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication" + }, + { + "name": "hash", + "types": [ + "string" + ], + "optional": false, + "description": "Base64-encoded data hash for data authentication" + }, + { + "name": "secret", + "types": [ + "string" + ], + "optional": false, + "description": "Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption" + } + ], + "extended_by": [] + }, + { + "name": "PassportElementError", + "description": "This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of:", + "fields": [], + "extended_by": [ + "PassportElementErrorDataField", + "PassportElementErrorFrontSide", + "PassportElementErrorReverseSide", + "PassportElementErrorSelfie", + "PassportElementErrorFile", + "PassportElementErrorFiles", + "PassportElementErrorTranslationFile", + "PassportElementErrorTranslationFiles", + "PassportElementErrorUnspecified" + ] + }, + { + "name": "PassportElementErrorDataField", + "description": "Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.", + "fields": [ + { + "name": "source", + "types": [ + "string" + ], + "optional": false, + "description": "Error source, must be data", + "default": "data" + }, + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "The section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”" + }, + { + "name": "field_name", + "types": [ + "string" + ], + "optional": false, + "description": "Name of the data field which has the error" + }, + { + "name": "data_hash", + "types": [ + "string" + ], + "optional": false, + "description": "Base64-encoded data hash" + }, + { + "name": "message", + "types": [ + "string" + ], + "optional": false, + "description": "Error message" + } + ], + "extended_by": [] + }, + { + "name": "PassportElementErrorFrontSide", + "description": "Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.", + "fields": [ + { + "name": "source", + "types": [ + "string" + ], + "optional": false, + "description": "Error source, must be front_side", + "default": "front_side" + }, + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”" + }, + { + "name": "file_hash", + "types": [ + "string" + ], + "optional": false, + "description": "Base64-encoded hash of the file with the front side of the document" + }, + { + "name": "message", + "types": [ + "string" + ], + "optional": false, + "description": "Error message" + } + ], + "extended_by": [] + }, + { + "name": "PassportElementErrorReverseSide", + "description": "Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes.", + "fields": [ + { + "name": "source", + "types": [ + "string" + ], + "optional": false, + "description": "Error source, must be reverse_side", + "default": "reverse_side" + }, + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "The section of the user's Telegram Passport which has the issue, one of “driver_license”, “identity_card”" + }, + { + "name": "file_hash", + "types": [ + "string" + ], + "optional": false, + "description": "Base64-encoded hash of the file with the reverse side of the document" + }, + { + "name": "message", + "types": [ + "string" + ], + "optional": false, + "description": "Error message" + } + ], + "extended_by": [] + }, + { + "name": "PassportElementErrorSelfie", + "description": "Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.", + "fields": [ + { + "name": "source", + "types": [ + "string" + ], + "optional": false, + "description": "Error source, must be selfie", + "default": "selfie" + }, + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”" + }, + { + "name": "file_hash", + "types": [ + "string" + ], + "optional": false, + "description": "Base64-encoded hash of the file with the selfie" + }, + { + "name": "message", + "types": [ + "string" + ], + "optional": false, + "description": "Error message" + } + ], + "extended_by": [] + }, + { + "name": "PassportElementErrorFile", + "description": "Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.", + "fields": [ + { + "name": "source", + "types": [ + "string" + ], + "optional": false, + "description": "Error source, must be file", + "default": "file" + }, + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "The section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”" + }, + { + "name": "file_hash", + "types": [ + "string" + ], + "optional": false, + "description": "Base64-encoded file hash" + }, + { + "name": "message", + "types": [ + "string" + ], + "optional": false, + "description": "Error message" + } + ], + "extended_by": [] + }, + { + "name": "PassportElementErrorFiles", + "description": "Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes.", + "fields": [ + { + "name": "source", + "types": [ + "string" + ], + "optional": false, + "description": "Error source, must be files", + "default": "files" + }, + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "The section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”" + }, + { + "name": "file_hashes", + "types": [ + "Array" + ], + "optional": false, + "description": "List of base64-encoded file hashes" + }, + { + "name": "message", + "types": [ + "string" + ], + "optional": false, + "description": "Error message" + } + ], + "extended_by": [] + }, + { + "name": "PassportElementErrorTranslationFile", + "description": "Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.", + "fields": [ + { + "name": "source", + "types": [ + "string" + ], + "optional": false, + "description": "Error source, must be translation_file", + "default": "translation_file" + }, + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of element of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”" + }, + { + "name": "file_hash", + "types": [ + "string" + ], + "optional": false, + "description": "Base64-encoded file hash" + }, + { + "name": "message", + "types": [ + "string" + ], + "optional": false, + "description": "Error message" + } + ], + "extended_by": [] + }, + { + "name": "PassportElementErrorTranslationFiles", + "description": "Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change.", + "fields": [ + { + "name": "source", + "types": [ + "string" + ], + "optional": false, + "description": "Error source, must be translation_files", + "default": "translation_files" + }, + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of element of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”" + }, + { + "name": "file_hashes", + "types": [ + "Array" + ], + "optional": false, + "description": "List of base64-encoded file hashes" + }, + { + "name": "message", + "types": [ + "string" + ], + "optional": false, + "description": "Error message" + } + ], + "extended_by": [] + }, + { + "name": "PassportElementErrorUnspecified", + "description": "Represents an issue in an unspecified place. The error is considered resolved when new data is added.", + "fields": [ + { + "name": "source", + "types": [ + "string" + ], + "optional": false, + "description": "Error source, must be unspecified", + "default": "unspecified" + }, + { + "name": "type", + "types": [ + "string" + ], + "optional": false, + "description": "Type of element of the user's Telegram Passport which has the issue" + }, + { + "name": "element_hash", + "types": [ + "string" + ], + "optional": false, + "description": "Base64-encoded element hash" + }, + { + "name": "message", + "types": [ + "string" + ], + "optional": false, + "description": "Error message" + } + ], + "extended_by": [] + }, + { + "name": "Game", + "description": "This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.", + "fields": [ + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Title of the game" + }, + { + "name": "description", + "types": [ + "string" + ], + "optional": false, + "description": "Description of the game" + }, + { + "name": "photo", + "types": [ + "Array" + ], + "optional": false, + "description": "Photo that will be displayed in the game message in chats." + }, + { + "name": "text", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters." + }, + { + "name": "text_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc." + }, + { + "name": "animation", + "types": [ + "Animation" + ], + "optional": true, + "description": "Optional. Animation that will be displayed in the game message in chats. Upload via BotFather" + } + ], + "extended_by": [] + }, + { + "name": "CallbackGame", + "description": "A placeholder, currently holds no information. Use BotFather to set up your game.", + "fields": [], + "extended_by": [] + }, + { + "name": "GameHighScore", + "description": "This object represents one row of the high scores table for a game.", + "fields": [ + { + "name": "position", + "types": [ + "int" + ], + "optional": false, + "description": "Position in high score table for the game" + }, + { + "name": "user", + "types": [ + "User" + ], + "optional": false, + "description": "User" + }, + { + "name": "score", + "types": [ + "int" + ], + "optional": false, + "description": "Score" + } + ], + "extended_by": [] + } + ], + "methods": [ + { + "name": "getUpdates", + "description": "Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects.", + "fields": [ + { + "name": "offset", + "types": [ + "int" + ], + "optional": true, + "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 forgotten." + }, + { + "name": "limit", + "types": [ + "int" + ], + "optional": true, + "description": "Limits the number of updates to be retrieved. Values between 1-100 are accepted. Defaults to 100.", + "default": 100 + }, + { + "name": "timeout", + "types": [ + "int" + ], + "optional": true, + "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.", + "default": 0 + }, + { + "name": "allowed_updates", + "types": [ + "Array" + ], + "optional": true, + "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 (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 getUpdates, so unwanted updates may be received for a short period of time." + } + ], + "return_types": [ + "Array" + ] + }, + { + "name": "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, we will give up after a reasonable amount of attempts. Returns True on success.\nIf 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 “X-Telegram-Bot-Api-Secret-Token” with the secret token as content.", + "fields": [ + { + "name": "url", + "types": [ + "string" + ], + "optional": false, + "description": "HTTPS URL to send updates to. Use an empty string to remove webhook integration" + }, + { + "name": "certificate", + "types": [ + "InputFile" + ], + "optional": true, + "description": "Upload your public key certificate so that the root certificate in use can be checked. See our self-signed guide for details." + }, + { + "name": "ip_address", + "types": [ + "string" + ], + "optional": true, + "description": "The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS" + }, + { + "name": "max_connections", + "types": [ + "int" + ], + "optional": true, + "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.", + "default": 40 + }, + { + "name": "allowed_updates", + "types": [ + "Array" + ], + "optional": true, + "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 (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." + }, + { + "name": "drop_pending_updates", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True to drop all pending updates" + }, + { + "name": "secret_token", + "types": [ + "string" + ], + "optional": true, + "description": "A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” 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." + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "deleteWebhook", + "description": "Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success.", + "fields": [ + { + "name": "drop_pending_updates", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True to drop all pending updates" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [], + "return_types": [ + "WebhookInfo" + ] + }, + { + "name": "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.", + "fields": [], + "return_types": [ + "User" + ] + }, + { + "name": "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.", + "fields": [], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [], + "return_types": [ + "bool" + ] + }, + { + "name": "sendMessage", + "description": "Use this method to send text messages. On success, the sent Message is returned.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "text", + "types": [ + "string" + ], + "optional": false, + "description": "Text of the message to be sent, 1-4096 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Mode for parsing entities in the message text. See formatting options for more details." + }, + { + "name": "entities", + "types": [ + "Array" + ], + "optional": true, + "description": "A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode" + }, + { + "name": "disable_web_page_preview", + "types": [ + "bool" + ], + "optional": true, + "description": "Disables link previews for links in this message" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "forwardMessage", + "description": "Use this method to forward messages of any kind. Service messages can't be forwarded. On success, the sent Message is returned.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "from_chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the forwarded message from forwarding and saving" + }, + { + "name": "message_id", + "types": [ + "int" + ], + "optional": false, + "description": "Message identifier in the chat specified in from_chat_id" + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "copyMessage", + "description": "Use this method to copy messages of any kind. Service 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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "from_chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)" + }, + { + "name": "message_id", + "types": [ + "int" + ], + "optional": false, + "description": "Message identifier in the chat specified in from_chat_id" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Mode for parsing entities in the new caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the new caption, which can be specified instead of parse_mode" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user." + } + ], + "return_types": [ + "MessageId" + ] + }, + { + "name": "sendPhoto", + "description": "Use this method to send photos. On success, the sent Message is returned.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "photo", + "types": [ + "InputFile", + "string" + ], + "optional": false, + "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 »" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Mode for parsing entities in the photo caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "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.\nFor sending voice messages, use the sendVoice method instead.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "audio", + "types": [ + "InputFile", + "string" + ], + "optional": false, + "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 »" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Audio caption, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Mode for parsing entities in the audio caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "duration", + "types": [ + "int" + ], + "optional": true, + "description": "Duration of the audio in seconds" + }, + { + "name": "performer", + "types": [ + "string" + ], + "optional": true, + "description": "Performer" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": true, + "description": "Track name" + }, + { + "name": "thumb", + "types": [ + "InputFile", + "string" + ], + "optional": true, + "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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "document", + "types": [ + "InputFile", + "string" + ], + "optional": false, + "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 »" + }, + { + "name": "thumb", + "types": [ + "InputFile", + "string" + ], + "optional": true, + "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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Document caption (may also be used when resending documents by file_id), 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Mode for parsing entities in the document caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "disable_content_type_detection", + "types": [ + "bool" + ], + "optional": true, + "description": "Disables automatic server-side content type detection for files uploaded using multipart/form-data" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "video", + "types": [ + "InputFile", + "string" + ], + "optional": false, + "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 »" + }, + { + "name": "duration", + "types": [ + "int" + ], + "optional": true, + "description": "Duration of sent video in seconds" + }, + { + "name": "width", + "types": [ + "int" + ], + "optional": true, + "description": "Video width" + }, + { + "name": "height", + "types": [ + "int" + ], + "optional": true, + "description": "Video height" + }, + { + "name": "thumb", + "types": [ + "InputFile", + "string" + ], + "optional": true, + "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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Mode for parsing entities in the video caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "supports_streaming", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the uploaded video is suitable for streaming" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "animation", + "types": [ + "InputFile", + "string" + ], + "optional": false, + "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 »" + }, + { + "name": "duration", + "types": [ + "int" + ], + "optional": true, + "description": "Duration of sent animation in seconds" + }, + { + "name": "width", + "types": [ + "int" + ], + "optional": true, + "description": "Animation width" + }, + { + "name": "height", + "types": [ + "int" + ], + "optional": true, + "description": "Animation height" + }, + { + "name": "thumb", + "types": [ + "InputFile", + "string" + ], + "optional": true, + "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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Animation caption (may also be used when resending animation by file_id), 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Mode for parsing entities in the animation caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "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 (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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "voice", + "types": [ + "InputFile", + "string" + ], + "optional": false, + "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 »" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "Voice message caption, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Mode for parsing entities in the voice message caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "duration", + "types": [ + "int" + ], + "optional": true, + "description": "Duration of the voice message in seconds" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "video_note", + "types": [ + "InputFile", + "string" + ], + "optional": false, + "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 ». Sending video notes by a URL is currently unsupported" + }, + { + "name": "duration", + "types": [ + "int" + ], + "optional": true, + "description": "Duration of sent video in seconds" + }, + { + "name": "length", + "types": [ + "int" + ], + "optional": true, + "description": "Video width and height, i.e. diameter of the video message" + }, + { + "name": "thumb", + "types": [ + "InputFile", + "string" + ], + "optional": true, + "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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "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 Messages that were sent is returned.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "media", + "types": [ + "Array" + ], + "optional": false, + "description": "A JSON-serialized array describing messages to be sent, must include 2-10 items" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends messages silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent messages from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the messages are a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + } + ], + "return_types": [ + "Array" + ] + }, + { + "name": "sendLocation", + "description": "Use this method to send point on the map. On success, the sent Message is returned.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "latitude", + "types": [ + "float" + ], + "optional": false, + "description": "Latitude of the location" + }, + { + "name": "longitude", + "types": [ + "float" + ], + "optional": false, + "description": "Longitude of the location" + }, + { + "name": "horizontal_accuracy", + "types": [ + "float" + ], + "optional": true, + "description": "The radius of uncertainty for the location, measured in meters; 0-1500" + }, + { + "name": "live_period", + "types": [ + "int" + ], + "optional": true, + "description": "Period in seconds for which the location will be updated (see Live Locations, should be between 60 and 86400." + }, + { + "name": "heading", + "types": [ + "int" + ], + "optional": true, + "description": "For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified." + }, + { + "name": "proximity_alert_radius", + "types": [ + "int" + ], + "optional": true, + "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." + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": true, + "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)" + }, + { + "name": "message_id", + "types": [ + "int" + ], + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the message to edit" + }, + { + "name": "inline_message_id", + "types": [ + "string" + ], + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + }, + { + "name": "latitude", + "types": [ + "float" + ], + "optional": false, + "description": "Latitude of new location" + }, + { + "name": "longitude", + "types": [ + "float" + ], + "optional": false, + "description": "Longitude of new location" + }, + { + "name": "horizontal_accuracy", + "types": [ + "float" + ], + "optional": true, + "description": "The radius of uncertainty for the location, measured in meters; 0-1500" + }, + { + "name": "heading", + "types": [ + "int" + ], + "optional": true, + "description": "Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified." + }, + { + "name": "proximity_alert_radius", + "types": [ + "int" + ], + "optional": true, + "description": "The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified." + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "A JSON-serialized object for a new inline keyboard." + } + ], + "return_types": [ + "Message", + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": true, + "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)" + }, + { + "name": "message_id", + "types": [ + "int" + ], + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the message with live location to stop" + }, + { + "name": "inline_message_id", + "types": [ + "string" + ], + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "A JSON-serialized object for a new inline keyboard." + } + ], + "return_types": [ + "Message", + "bool" + ] + }, + { + "name": "sendVenue", + "description": "Use this method to send information about a venue. On success, the sent Message is returned.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "latitude", + "types": [ + "float" + ], + "optional": false, + "description": "Latitude of the venue" + }, + { + "name": "longitude", + "types": [ + "float" + ], + "optional": false, + "description": "Longitude of the venue" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Name of the venue" + }, + { + "name": "address", + "types": [ + "string" + ], + "optional": false, + "description": "Address of the venue" + }, + { + "name": "foursquare_id", + "types": [ + "string" + ], + "optional": true, + "description": "Foursquare identifier of the venue" + }, + { + "name": "foursquare_type", + "types": [ + "string" + ], + "optional": true, + "description": "Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)" + }, + { + "name": "google_place_id", + "types": [ + "string" + ], + "optional": true, + "description": "Google Places identifier of the venue" + }, + { + "name": "google_place_type", + "types": [ + "string" + ], + "optional": true, + "description": "Google Places type of the venue. (See supported types.)" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "sendContact", + "description": "Use this method to send phone contacts. On success, the sent Message is returned.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "phone_number", + "types": [ + "string" + ], + "optional": false, + "description": "Contact's phone number" + }, + { + "name": "first_name", + "types": [ + "string" + ], + "optional": false, + "description": "Contact's first name" + }, + { + "name": "last_name", + "types": [ + "string" + ], + "optional": true, + "description": "Contact's last name" + }, + { + "name": "vcard", + "types": [ + "string" + ], + "optional": true, + "description": "Additional data about the contact in the form of a vCard, 0-2048 bytes" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove keyboard or to force a reply from the user." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "sendPoll", + "description": "Use this method to send a native poll. On success, the sent Message is returned.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "question", + "types": [ + "string" + ], + "optional": false, + "description": "Poll question, 1-300 characters" + }, + { + "name": "options", + "types": [ + "Array" + ], + "optional": false, + "description": "A JSON-serialized list of answer options, 2-10 strings 1-100 characters each" + }, + { + "name": "is_anonymous", + "types": [ + "bool" + ], + "optional": true, + "description": "True, if the poll needs to be anonymous, defaults to True", + "default": true + }, + { + "name": "type", + "types": [ + "string" + ], + "optional": true, + "description": "Poll type, “quiz” or “regular”, defaults to “regular”", + "default": "regular" + }, + { + "name": "allows_multiple_answers", + "types": [ + "bool" + ], + "optional": true, + "description": "True, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False", + "default": false + }, + { + "name": "correct_option_id", + "types": [ + "int" + ], + "optional": true, + "description": "0-based identifier of the correct answer option, required for polls in quiz mode" + }, + { + "name": "explanation", + "types": [ + "string" + ], + "optional": true, + "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" + }, + { + "name": "explanation_parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Mode for parsing entities in the explanation. See formatting options for more details." + }, + { + "name": "explanation_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the poll explanation, which can be specified instead of parse_mode" + }, + { + "name": "open_period", + "types": [ + "int" + ], + "optional": true, + "description": "Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date." + }, + { + "name": "close_date", + "types": [ + "int" + ], + "optional": true, + "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." + }, + { + "name": "is_closed", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the poll needs to be immediately closed. This can be useful for poll preview." + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "sendDice", + "description": "Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "emoji", + "types": [ + "string" + ], + "optional": true, + "description": "____simple_html_dom__voku__html_wrapper____>Emoji on which the dice throw animation is based. Currently, must be one of “🎲”, “🎯”, “🏀”, “⚽”, “🎳”, or “🎰”. Dice can have values 1-6 for “🎲”, “🎯” and “🎳”, values 1-5 for “🏀” and “⚽”, and values 1-64 for “🎰”. Defaults to “🎲”", + "default": "🎲" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "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.\nWe only recommend using this method when a response from the bot will take a noticeable amount of time to arrive.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "action", + "types": [ + "string" + ], + "optional": false, + "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." + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "getUserProfilePhotos", + "description": "Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.", + "fields": [ + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "Unique identifier of the target user" + }, + { + "name": "offset", + "types": [ + "int" + ], + "optional": true, + "description": "Sequential number of the first photo to be returned. By default, all photos are returned." + }, + { + "name": "limit", + "types": [ + "int" + ], + "optional": true, + "description": "Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.", + "default": 100 + } + ], + "return_types": [ + "UserProfilePhotos" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "file_id", + "types": [ + "string" + ], + "optional": false, + "description": "File identifier to get information about" + } + ], + "return_types": [ + "File" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)" + }, + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "Unique identifier of the target user" + }, + { + "name": "until_date", + "types": [ + "int" + ], + "optional": true, + "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." + }, + { + "name": "revoke_messages", + "types": [ + "bool" + ], + "optional": true, + "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." + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)" + }, + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "Unique identifier of the target user" + }, + { + "name": "only_if_banned", + "types": [ + "bool" + ], + "optional": true, + "description": "Do nothing if the user is not banned" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + }, + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "Unique identifier of the target user" + }, + { + "name": "permissions", + "types": [ + "ChatPermissions" + ], + "optional": false, + "description": "A JSON-serialized object for new user permissions" + }, + { + "name": "until_date", + "types": [ + "int" + ], + "optional": true, + "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" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "Unique identifier of the target user" + }, + { + "name": "is_anonymous", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the administrator's presence in the chat is hidden" + }, + { + "name": "can_manage_chat", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege" + }, + { + "name": "can_post_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the administrator can create channel posts, channels only" + }, + { + "name": "can_edit_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the administrator can edit messages of other users and can pin messages, channels only" + }, + { + "name": "can_delete_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the administrator can delete messages of other users" + }, + { + "name": "can_manage_video_chats", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the administrator can manage video chats" + }, + { + "name": "can_restrict_members", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the administrator can restrict, ban or unban chat members" + }, + { + "name": "can_promote_members", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by him)" + }, + { + "name": "can_change_info", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the administrator can change chat title, photo and other settings" + }, + { + "name": "can_invite_users", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the administrator can invite new users to the chat" + }, + { + "name": "can_pin_messages", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the administrator can pin messages, supergroups only" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "setChatAdministratorCustomTitle", + "description": "Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + }, + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "Unique identifier of the target user" + }, + { + "name": "custom_title", + "types": [ + "string" + ], + "optional": false, + "description": "New custom title for the administrator; 0-16 characters, emoji are not allowed" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "sender_chat_id", + "types": [ + "int" + ], + "optional": false, + "description": "Unique identifier of the target sender chat" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "sender_chat_id", + "types": [ + "int" + ], + "optional": false, + "description": "Unique identifier of the target sender chat" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + }, + { + "name": "permissions", + "types": [ + "ChatPermissions" + ], + "optional": false, + "description": "A JSON-serialized object for new default chat permissions" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + } + ], + "return_types": [ + "string" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "name", + "types": [ + "string" + ], + "optional": true, + "description": "Invite link name; 0-32 characters" + }, + { + "name": "expire_date", + "types": [ + "int" + ], + "optional": true, + "description": "Point in time (Unix timestamp) when the link will expire" + }, + { + "name": "member_limit", + "types": [ + "int" + ], + "optional": true, + "description": "The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999" + }, + { + "name": "creates_join_request", + "types": [ + "bool" + ], + "optional": true, + "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" + } + ], + "return_types": [ + "ChatInviteLink" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "invite_link", + "types": [ + "string" + ], + "optional": false, + "description": "The invite link to edit" + }, + { + "name": "name", + "types": [ + "string" + ], + "optional": true, + "description": "Invite link name; 0-32 characters" + }, + { + "name": "expire_date", + "types": [ + "int" + ], + "optional": true, + "description": "Point in time (Unix timestamp) when the link will expire" + }, + { + "name": "member_limit", + "types": [ + "int" + ], + "optional": true, + "description": "The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999" + }, + { + "name": "creates_join_request", + "types": [ + "bool" + ], + "optional": true, + "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" + } + ], + "return_types": [ + "ChatInviteLink" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier of the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "invite_link", + "types": [ + "string" + ], + "optional": false, + "description": "The invite link to revoke" + } + ], + "return_types": [ + "ChatInviteLink" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "Unique identifier of the target user" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "Unique identifier of the target user" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "photo", + "types": [ + "InputFile" + ], + "optional": false, + "description": "New chat photo, uploaded using multipart/form-data" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "New chat title, 1-255 characters" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "description", + "types": [ + "string" + ], + "optional": true, + "description": "New chat description, 0-255 characters" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "pinChatMessage", + "description": "Use this method to add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "message_id", + "types": [ + "int" + ], + "optional": false, + "description": "Identifier of a message to pin" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "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." + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "unpinChatMessage", + "description": "Use this method to remove a message from the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "message_id", + "types": [ + "int" + ], + "optional": true, + "description": "Identifier of a message to unpin. If not specified, the most recent pinned message (by sending date) will be unpinned." + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "unpinAllChatMessages", + "description": "Use this method to clear the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "leaveChat", + "description": "Use this method for your bot to leave a group, supergroup or channel. Returns True on success.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "getChat", + "description": "Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a Chat object on success.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)" + } + ], + "return_types": [ + "Chat" + ] + }, + { + "name": "getChatAdministrators", + "description": "Use this method to get a list of administrators in a chat, which aren't bots. Returns an Array of ChatMember objects.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)" + } + ], + "return_types": [ + "Array" + ] + }, + { + "name": "getChatMemberCount", + "description": "Use this method to get the number of members in a chat. Returns Int on success.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)" + } + ], + "return_types": [ + "int" + ] + }, + { + "name": "getChatMember", + "description": "Use this method to get information about a member of a chat. Returns a ChatMember object on success.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)" + }, + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "Unique identifier of the target user" + } + ], + "return_types": [ + "ChatMember" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + }, + { + "name": "sticker_set_name", + "types": [ + "string" + ], + "optional": false, + "description": "Name of the sticker set to be set as the group sticker set" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "callback_query_id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for the query to be answered" + }, + { + "name": "text", + "types": [ + "string" + ], + "optional": true, + "description": "Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters" + }, + { + "name": "show_alert", + "types": [ + "bool" + ], + "optional": true, + "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.", + "default": false + }, + { + "name": "url", + "types": [ + "string" + ], + "optional": true, + "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." + }, + { + "name": "cache_time", + "types": [ + "int" + ], + "optional": true, + "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.", + "default": 0 + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "setMyCommands", + "description": "Use this method to change the list of the bot's commands. See https://core.telegram.org/bots#commands for more details about bot commands. Returns True on success.", + "fields": [ + { + "name": "commands", + "types": [ + "Array" + ], + "optional": false, + "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." + }, + { + "name": "scope", + "types": [ + "BotCommandScope" + ], + "optional": true, + "description": "A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.", + "default": "BotCommandScopeDefault" + }, + { + "name": "language_code", + "types": [ + "string" + ], + "optional": true, + "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" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "scope", + "types": [ + "BotCommandScope" + ], + "optional": true, + "description": "A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.", + "default": "BotCommandScopeDefault" + }, + { + "name": "language_code", + "types": [ + "string" + ], + "optional": true, + "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" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "scope", + "types": [ + "BotCommandScope" + ], + "optional": true, + "description": "A JSON-serialized object, describing scope of users. Defaults to BotCommandScopeDefault.", + "default": "BotCommandScopeDefault" + }, + { + "name": "language_code", + "types": [ + "string" + ], + "optional": true, + "description": "A two-letter ISO 639-1 language code or an empty string" + } + ], + "return_types": [ + "Array" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int" + ], + "optional": true, + "description": "Unique identifier for the target private chat. If not specified, default bot's menu button will be changed" + }, + { + "name": "menu_button", + "types": [ + "MenuButton" + ], + "optional": true, + "description": "A JSON-serialized object for the bot's new menu button. Defaults to MenuButtonDefault", + "default": "MenuButtonDefault" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int" + ], + "optional": true, + "description": "Unique identifier for the target private chat. If not specified, default bot's menu button will be returned" + } + ], + "return_types": [ + "MenuButton" + ] + }, + { + "name": "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 are free to modify the list before adding the bot. Returns True on success.", + "fields": [ + { + "name": "rights", + "types": [ + "ChatAdministratorRights" + ], + "optional": true, + "description": "A JSON-serialized object describing new default administrator rights. If not specified, the default administrator rights will be cleared." + }, + { + "name": "for_channels", + "types": [ + "bool" + ], + "optional": true, + "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." + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "getMyDefaultAdministratorRights", + "description": "Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success.", + "fields": [ + { + "name": "for_channels", + "types": [ + "bool" + ], + "optional": true, + "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." + } + ], + "return_types": [ + "ChatAdministratorRights" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": true, + "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)" + }, + { + "name": "message_id", + "types": [ + "int" + ], + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the message to edit" + }, + { + "name": "inline_message_id", + "types": [ + "string" + ], + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + }, + { + "name": "text", + "types": [ + "string" + ], + "optional": false, + "description": "New text of the message, 1-4096 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Mode for parsing entities in the message text. See formatting options for more details." + }, + { + "name": "entities", + "types": [ + "Array" + ], + "optional": true, + "description": "A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode" + }, + { + "name": "disable_web_page_preview", + "types": [ + "bool" + ], + "optional": true, + "description": "Disables link previews for links in this message" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "A JSON-serialized object for an inline keyboard." + } + ], + "return_types": [ + "Message", + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": true, + "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)" + }, + { + "name": "message_id", + "types": [ + "int" + ], + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the message to edit" + }, + { + "name": "inline_message_id", + "types": [ + "string" + ], + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + }, + { + "name": "caption", + "types": [ + "string" + ], + "optional": true, + "description": "New caption of the message, 0-1024 characters after entities parsing" + }, + { + "name": "parse_mode", + "types": [ + "string" + ], + "optional": true, + "description": "Mode for parsing entities in the message caption. See formatting options for more details." + }, + { + "name": "caption_entities", + "types": [ + "Array" + ], + "optional": true, + "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "A JSON-serialized object for an inline keyboard." + } + ], + "return_types": [ + "Message", + "bool" + ] + }, + { + "name": "editMessageMedia", + "description": "Use this method to edit animation, audio, document, photo, or video 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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": true, + "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)" + }, + { + "name": "message_id", + "types": [ + "int" + ], + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the message to edit" + }, + { + "name": "inline_message_id", + "types": [ + "string" + ], + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + }, + { + "name": "media", + "types": [ + "InputMedia" + ], + "optional": false, + "description": "A JSON-serialized object for a new media content of the message" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "A JSON-serialized object for a new inline keyboard." + } + ], + "return_types": [ + "Message", + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": true, + "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)" + }, + { + "name": "message_id", + "types": [ + "int" + ], + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the message to edit" + }, + { + "name": "inline_message_id", + "types": [ + "string" + ], + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "A JSON-serialized object for an inline keyboard." + } + ], + "return_types": [ + "Message", + "bool" + ] + }, + { + "name": "stopPoll", + "description": "Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "message_id", + "types": [ + "int" + ], + "optional": false, + "description": "Identifier of the original message with the poll" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "description": "A JSON-serialized object for a new message inline keyboard." + } + ], + "return_types": [ + "Poll" + ] + }, + { + "name": "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.- 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 permission in a supergroup or a channel, it can delete any message there.Returns True on success.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "message_id", + "types": [ + "int" + ], + "optional": false, + "description": "Identifier of the message to delete" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "sendSticker", + "description": "Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "sticker", + "types": [ + "InputFile", + "string" + ], + "optional": false, + "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 file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup", + "ReplyKeyboardMarkup", + "ReplyKeyboardRemove", + "ForceReply" + ], + "optional": true, + "description": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "getStickerSet", + "description": "Use this method to get a sticker set. On success, a StickerSet object is returned.", + "fields": [ + { + "name": "name", + "types": [ + "string" + ], + "optional": false, + "description": "Name of the sticker set" + } + ], + "return_types": [ + "StickerSet" + ] + }, + { + "name": "getCustomEmojiStickers", + "description": "Use this method to get information about custom emoji stickers by their identifiers. Returns an Array of Sticker objects.", + "fields": [ + { + "name": "custom_emoji_ids", + "types": [ + "Array" + ], + "optional": false, + "description": "List of custom emoji identifiers. At most 200 custom emoji identifiers can be specified." + } + ], + "return_types": [ + "Array" + ] + }, + { + "name": "uploadStickerFile", + "description": "Use this method to upload a .PNG file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success.", + "fields": [ + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "User identifier of sticker file owner" + }, + { + "name": "png_sticker", + "types": [ + "InputFile" + ], + "optional": false, + "description": "PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. More information on Sending Files »" + } + ], + "return_types": [ + "File" + ] + }, + { + "name": "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. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Returns True on success.", + "fields": [ + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "User identifier of created sticker set owner" + }, + { + "name": "name", + "types": [ + "string" + ], + "optional": false, + "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." + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Sticker set title, 1-64 characters" + }, + { + "name": "png_sticker", + "types": [ + "InputFile", + "string" + ], + "optional": true, + "description": "PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. 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 »" + }, + { + "name": "tgs_sticker", + "types": [ + "InputFile" + ], + "optional": true, + "description": "TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#animated-sticker-requirements for technical requirements" + }, + { + "name": "webm_sticker", + "types": [ + "InputFile" + ], + "optional": true, + "description": "WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-sticker-requirements for technical requirements" + }, + { + "name": "sticker_type", + "types": [ + "string" + ], + "optional": true, + "description": "Type of stickers in the set, pass “regular” or “mask”. Custom emoji sticker sets can't be created via the Bot API at the moment. By default, a regular sticker set is created." + }, + { + "name": "emojis", + "types": [ + "string" + ], + "optional": false, + "description": "One or more emoji corresponding to the sticker" + }, + { + "name": "mask_position", + "types": [ + "MaskPosition" + ], + "optional": true, + "description": "A JSON-serialized object for position where the mask should be placed on faces" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "addStickerToSet", + "description": "Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.", + "fields": [ + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "User identifier of sticker set owner" + }, + { + "name": "name", + "types": [ + "string" + ], + "optional": false, + "description": "Sticker set name" + }, + { + "name": "png_sticker", + "types": [ + "InputFile", + "string" + ], + "optional": true, + "description": "PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. 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 »" + }, + { + "name": "tgs_sticker", + "types": [ + "InputFile" + ], + "optional": true, + "description": "TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#animated-sticker-requirements for technical requirements" + }, + { + "name": "webm_sticker", + "types": [ + "InputFile" + ], + "optional": true, + "description": "WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-sticker-requirements for technical requirements" + }, + { + "name": "emojis", + "types": [ + "string" + ], + "optional": false, + "description": "One or more emoji corresponding to the sticker" + }, + { + "name": "mask_position", + "types": [ + "MaskPosition" + ], + "optional": true, + "description": "A JSON-serialized object for position where the mask should be placed on faces" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "setStickerPositionInSet", + "description": "Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.", + "fields": [ + { + "name": "sticker", + "types": [ + "string" + ], + "optional": false, + "description": "File identifier of the sticker" + }, + { + "name": "position", + "types": [ + "int" + ], + "optional": false, + "description": "New sticker position in the set, zero-based" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "deleteStickerFromSet", + "description": "Use this method to delete a sticker from a set created by the bot. Returns True on success.", + "fields": [ + { + "name": "sticker", + "types": [ + "string" + ], + "optional": false, + "description": "File identifier of the sticker" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "setStickerSetThumb", + "description": "Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Video thumbnails can be set only for video sticker sets only. Returns True on success.", + "fields": [ + { + "name": "name", + "types": [ + "string" + ], + "optional": false, + "description": "Sticker set name" + }, + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "User identifier of the sticker set owner" + }, + { + "name": "thumb", + "types": [ + "InputFile", + "string" + ], + "optional": true, + "description": "A PNG image with the thumbnail, must be up to 128 kilobytes in size and have width and height exactly 100px, or a TGS animation with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#animated-sticker-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-sticker-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 ». Animated sticker set thumbnails can't be uploaded via HTTP URL." + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "inline_query_id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for the answered query" + }, + { + "name": "results", + "types": [ + "Array" + ], + "optional": false, + "description": "A JSON-serialized array of results for the inline query" + }, + { + "name": "cache_time", + "types": [ + "int" + ], + "optional": true, + "description": "The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.", + "default": 300 + }, + { + "name": "is_personal", + "types": [ + "bool" + ], + "optional": true, + "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" + }, + { + "name": "next_offset", + "types": [ + "string" + ], + "optional": true, + "description": "Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes." + }, + { + "name": "switch_pm_text", + "types": [ + "string" + ], + "optional": true, + "description": "If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with the parameter switch_pm_parameter" + }, + { + "name": "switch_pm_parameter", + "types": [ + "string" + ], + "optional": true, + "description": "Deep-linking parameter for the /start message sent to the bot when user presses the switch button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.Example: An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to adapt search results accordingly. To do this, it displays a 'Connect your YouTube account' button above the results, or even before showing any. The user presses the button, switches to a private chat with the bot and, in doing so, passes a start parameter that instructs the bot to return an OAuth link. Once done, the bot can offer a switch_inline button so that the user can easily return to the chat where they wanted to use the bot's inline capabilities." + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "web_app_query_id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for the query to be answered" + }, + { + "name": "result", + "types": [ + "InlineQueryResult" + ], + "optional": false, + "description": "A JSON-serialized object describing the message to be sent" + } + ], + "return_types": [ + "SentWebAppMessage" + ] + }, + { + "name": "sendInvoice", + "description": "Use this method to send invoices. On success, the sent Message is returned.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int", + "string" + ], + "optional": false, + "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" + }, + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Product name, 1-32 characters" + }, + { + "name": "description", + "types": [ + "string" + ], + "optional": false, + "description": "Product description, 1-255 characters" + }, + { + "name": "payload", + "types": [ + "string" + ], + "optional": false, + "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes." + }, + { + "name": "provider_token", + "types": [ + "string" + ], + "optional": false, + "description": "Payment provider token, obtained via @BotFather" + }, + { + "name": "currency", + "types": [ + "string" + ], + "optional": false, + "description": "Three-letter ISO 4217 currency code, see more on currencies" + }, + { + "name": "prices", + "types": [ + "Array" + ], + "optional": false, + "description": "Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)" + }, + { + "name": "max_tip_amount", + "types": [ + "int" + ], + "optional": true, + "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", + "default": 0 + }, + { + "name": "suggested_tip_amounts", + "types": [ + "Array" + ], + "optional": true, + "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." + }, + { + "name": "start_parameter", + "types": [ + "string" + ], + "optional": true, + "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" + }, + { + "name": "provider_data", + "types": [ + "string" + ], + "optional": true, + "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." + }, + { + "name": "photo_url", + "types": [ + "string" + ], + "optional": true, + "description": "URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for." + }, + { + "name": "photo_size", + "types": [ + "int" + ], + "optional": true, + "description": "Photo size in bytes" + }, + { + "name": "photo_width", + "types": [ + "int" + ], + "optional": true, + "description": "Photo width" + }, + { + "name": "photo_height", + "types": [ + "int" + ], + "optional": true, + "description": "Photo height" + }, + { + "name": "need_name", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if you require the user's full name to complete the order" + }, + { + "name": "need_phone_number", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if you require the user's phone number to complete the order" + }, + { + "name": "need_email", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if you require the user's email address to complete the order" + }, + { + "name": "need_shipping_address", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if you require the user's shipping address to complete the order" + }, + { + "name": "send_phone_number_to_provider", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the user's phone number should be sent to provider" + }, + { + "name": "send_email_to_provider", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the user's email address should be sent to provider" + }, + { + "name": "is_flexible", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the final price depends on the shipping method" + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "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." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "createInvoiceLink", + "description": "Use this method to create a link for an invoice. Returns the created invoice link as String on success.", + "fields": [ + { + "name": "title", + "types": [ + "string" + ], + "optional": false, + "description": "Product name, 1-32 characters" + }, + { + "name": "description", + "types": [ + "string" + ], + "optional": false, + "description": "Product description, 1-255 characters" + }, + { + "name": "payload", + "types": [ + "string" + ], + "optional": false, + "description": "Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes." + }, + { + "name": "provider_token", + "types": [ + "string" + ], + "optional": false, + "description": "Payment provider token, obtained via BotFather" + }, + { + "name": "currency", + "types": [ + "string" + ], + "optional": false, + "description": "Three-letter ISO 4217 currency code, see more on currencies" + }, + { + "name": "prices", + "types": [ + "Array" + ], + "optional": false, + "description": "Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)" + }, + { + "name": "max_tip_amount", + "types": [ + "int" + ], + "optional": true, + "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", + "default": 0 + }, + { + "name": "suggested_tip_amounts", + "types": [ + "Array" + ], + "optional": true, + "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." + }, + { + "name": "provider_data", + "types": [ + "string" + ], + "optional": true, + "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." + }, + { + "name": "photo_url", + "types": [ + "string" + ], + "optional": true, + "description": "URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service." + }, + { + "name": "photo_size", + "types": [ + "int" + ], + "optional": true, + "description": "Photo size in bytes" + }, + { + "name": "photo_width", + "types": [ + "int" + ], + "optional": true, + "description": "Photo width" + }, + { + "name": "photo_height", + "types": [ + "int" + ], + "optional": true, + "description": "Photo height" + }, + { + "name": "need_name", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if you require the user's full name to complete the order" + }, + { + "name": "need_phone_number", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if you require the user's phone number to complete the order" + }, + { + "name": "need_email", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if you require the user's email address to complete the order" + }, + { + "name": "need_shipping_address", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if you require the user's shipping address to complete the order" + }, + { + "name": "send_phone_number_to_provider", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the user's phone number should be sent to the provider" + }, + { + "name": "send_email_to_provider", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the user's email address should be sent to the provider" + }, + { + "name": "is_flexible", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the final price depends on the shipping method" + } + ], + "return_types": [ + "string" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "shipping_query_id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for the query to be answered" + }, + { + "name": "ok", + "types": [ + "bool" + ], + "optional": false, + "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)" + }, + { + "name": "shipping_options", + "types": [ + "Array" + ], + "optional": true, + "description": "Required if ok is True. A JSON-serialized array of available shipping options." + }, + { + "name": "error_message", + "types": [ + "string" + ], + "optional": true, + "description": "Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. \"Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user." + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "pre_checkout_query_id", + "types": [ + "string" + ], + "optional": false, + "description": "Unique identifier for the query to be answered" + }, + { + "name": "ok", + "types": [ + "bool" + ], + "optional": false, + "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." + }, + { + "name": "error_message", + "types": [ + "string" + ], + "optional": true, + "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." + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "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.\nUse 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.", + "fields": [ + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "User identifier" + }, + { + "name": "errors", + "types": [ + "Array" + ], + "optional": false, + "description": "A JSON-serialized array describing the errors" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "sendGame", + "description": "Use this method to send a game. On success, the sent Message is returned.", + "fields": [ + { + "name": "chat_id", + "types": [ + "int" + ], + "optional": false, + "description": "Unique identifier for the target chat" + }, + { + "name": "game_short_name", + "types": [ + "string" + ], + "optional": false, + "description": "Short name of the game, serves as the unique identifier for the game. Set up your games via @BotFather." + }, + { + "name": "disable_notification", + "types": [ + "bool" + ], + "optional": true, + "description": "Sends the message silently. Users will receive a notification with no sound." + }, + { + "name": "protect_content", + "types": [ + "bool" + ], + "optional": true, + "description": "Protects the contents of the sent message from forwarding and saving" + }, + { + "name": "reply_to_message_id", + "types": [ + "int" + ], + "optional": true, + "description": "If the message is a reply, ID of the original message" + }, + { + "name": "allow_sending_without_reply", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the message should be sent even if the specified replied-to message is not found" + }, + { + "name": "reply_markup", + "types": [ + "InlineKeyboardMarkup" + ], + "optional": true, + "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." + } + ], + "return_types": [ + "Message" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "User identifier" + }, + { + "name": "score", + "types": [ + "int" + ], + "optional": false, + "description": "New score, must be non-negative" + }, + { + "name": "force", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters" + }, + { + "name": "disable_edit_message", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the game message should not be automatically edited to include the current scoreboard" + }, + { + "name": "chat_id", + "types": [ + "int" + ], + "optional": true, + "description": "Required if inline_message_id is not specified. Unique identifier for the target chat" + }, + { + "name": "message_id", + "types": [ + "int" + ], + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the sent message" + }, + { + "name": "inline_message_id", + "types": [ + "string" + ], + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + } + ], + "return_types": [ + "Message", + "bool" + ] + }, + { + "name": "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.", + "fields": [ + { + "name": "user_id", + "types": [ + "int" + ], + "optional": false, + "description": "Target user id" + }, + { + "name": "chat_id", + "types": [ + "int" + ], + "optional": true, + "description": "Required if inline_message_id is not specified. Unique identifier for the target chat" + }, + { + "name": "message_id", + "types": [ + "int" + ], + "optional": true, + "description": "Required if inline_message_id is not specified. Identifier of the sent message" + }, + { + "name": "inline_message_id", + "types": [ + "string" + ], + "optional": true, + "description": "Required if chat_id and message_id are not specified. Identifier of the inline message" + } + ], + "return_types": [ + "Array" + ] + } + ] +} \ No newline at end of file diff --git a/files/custom/yaml/v620.yaml b/files/custom/yaml/v620.yaml new file mode 100644 index 0000000..92c381c --- /dev/null +++ b/files/custom/yaml/v620.yaml @@ -0,0 +1,8983 @@ +version: 6.2.0 +types: + - + name: Update + description: 'This object represents an incoming update.At most one of the optional parameters can be present in any given update.' + fields: + - + name: update_id + types: + - int + optional: false + description: "The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID 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." + - + name: message + types: + - Message + optional: true + description: 'Optional. New incoming message of any kind - text, photo, sticker, etc.' + - + name: edited_message + types: + - Message + optional: true + description: 'Optional. New version of a message that is known to the bot and was edited' + - + name: channel_post + types: + - Message + optional: true + description: 'Optional. New incoming channel post of any kind - text, photo, sticker, etc.' + - + name: edited_channel_post + types: + - Message + optional: true + description: 'Optional. New version of a channel post that is known to the bot and was edited' + - + name: inline_query + types: + - InlineQuery + optional: true + description: 'Optional. New incoming inline query' + - + name: chosen_inline_result + types: + - ChosenInlineResult + optional: true + 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.' + - + name: callback_query + types: + - CallbackQuery + optional: true + description: 'Optional. New incoming callback query' + - + name: shipping_query + types: + - ShippingQuery + optional: true + description: 'Optional. New incoming shipping query. Only for invoices with flexible price' + - + name: pre_checkout_query + types: + - PreCheckoutQuery + optional: true + description: 'Optional. New incoming pre-checkout query. Contains full information about checkout' + - + name: poll + types: + - Poll + optional: true + description: 'Optional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot' + - + name: poll_answer + types: + - PollAnswer + optional: true + 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.' + - + name: my_chat_member + types: + - ChatMemberUpdated + optional: true + 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." + - + name: chat_member + types: + - ChatMemberUpdated + optional: true + 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." + - + name: chat_join_request + types: + - ChatJoinRequest + optional: true + 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.' + extended_by: { } + - + name: WebhookInfo + description: 'Describes the current status of a webhook.' + fields: + - + name: url + types: + - string + optional: false + description: 'Webhook URL, may be empty if webhook is not set up' + - + name: has_custom_certificate + types: + - bool + optional: false + description: 'True, if a custom certificate was provided for webhook certificate checks' + - + name: pending_update_count + types: + - int + optional: false + description: 'Number of updates awaiting delivery' + - + name: ip_address + types: + - string + optional: true + description: 'Optional. Currently used webhook IP address' + - + name: last_error_date + types: + - int + optional: true + description: 'Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook' + - + name: last_error_message + types: + - string + optional: true + description: 'Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook' + - + name: last_synchronization_error_date + types: + - int + optional: true + description: 'Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters' + - + name: max_connections + types: + - int + optional: true + description: 'Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery' + - + name: allowed_updates + types: + - Array + optional: true + description: 'Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member' + extended_by: { } + - + name: User + description: 'This object represents a Telegram user or bot.' + fields: + - + name: id + types: + - int + optional: false + 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.' + - + name: is_bot + types: + - bool + optional: false + description: 'True, if this user is a bot' + - + name: first_name + types: + - string + optional: false + description: "User's or bot's first name" + - + name: last_name + types: + - string + optional: true + description: "Optional. User's or bot's last name" + - + name: username + types: + - string + optional: true + description: "Optional. User's or bot's username" + - + name: language_code + types: + - string + optional: true + description: "Optional. IETF language tag of the user's language" + - + name: is_premium + types: + - bool + optional: true + description: 'Optional. True, if this user is a Telegram Premium user' + default: true + - + name: added_to_attachment_menu + types: + - bool + optional: true + description: 'Optional. True, if this user added the bot to the attachment menu' + default: true + - + name: can_join_groups + types: + - bool + optional: true + description: 'Optional. True, if the bot can be invited to groups. Returned only in getMe.' + - + name: can_read_all_group_messages + types: + - bool + optional: true + description: 'Optional. True, if privacy mode is disabled for the bot. Returned only in getMe.' + - + name: supports_inline_queries + types: + - bool + optional: true + description: 'Optional. True, if the bot supports inline queries. Returned only in getMe.' + extended_by: { } + - + name: Chat + description: 'This object represents a chat.' + fields: + - + name: id + types: + - int + optional: false + 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.' + - + name: type + types: + - string + optional: false + description: 'Type of chat, can be either “private”, “group”, “supergroup” or “channel”' + - + name: title + types: + - string + optional: true + description: 'Optional. Title, for supergroups, channels and group chats' + - + name: username + types: + - string + optional: true + description: 'Optional. Username, for private chats, supergroups and channels if available' + - + name: first_name + types: + - string + optional: true + description: 'Optional. First name of the other party in a private chat' + - + name: last_name + types: + - string + optional: true + description: 'Optional. Last name of the other party in a private chat' + - + name: photo + types: + - ChatPhoto + optional: true + description: 'Optional. Chat photo. Returned only in getChat.' + - + name: bio + types: + - string + optional: true + description: 'Optional. Bio of the other party in a private chat. Returned only in getChat.' + - + name: has_private_forwards + types: + - bool + optional: 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. Returned only in getChat.' + default: true + - + name: has_restricted_voice_and_video_messages + types: + - bool + optional: true + description: 'Optional. True, if the privacy settings of the other party restrict sending voice and video note messages in the private chat. Returned only in getChat.' + default: true + - + name: join_to_send_messages + types: + - bool + optional: true + description: 'Optional. True, if users need to join the supergroup before they can send messages. Returned only in getChat.' + default: true + - + name: join_by_request + types: + - bool + optional: true + description: 'Optional. True, if all users directly joining the supergroup need to be approved by supergroup administrators. Returned only in getChat.' + default: true + - + name: description + types: + - string + optional: true + description: 'Optional. Description, for groups, supergroups and channel chats. Returned only in getChat.' + - + name: invite_link + types: + - string + optional: true + description: 'Optional. Primary invite link, for groups, supergroups and channel chats. Returned only in getChat.' + - + name: pinned_message + types: + - Message + optional: true + description: 'Optional. The most recent pinned message (by sending date). Returned only in getChat.' + - + name: permissions + types: + - ChatPermissions + optional: true + description: 'Optional. Default chat member permissions, for groups and supergroups. Returned only in getChat.' + - + name: slow_mode_delay + types: + - int + optional: true + description: 'Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user; in seconds. Returned only in getChat.' + - + name: message_auto_delete_time + types: + - int + optional: true + description: 'Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat.' + - + name: has_protected_content + types: + - bool + optional: true + description: "Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat." + default: true + - + name: sticker_set_name + types: + - string + optional: true + description: 'Optional. For supergroups, name of group sticker set. Returned only in getChat.' + - + name: can_set_sticker_set + types: + - bool + optional: true + description: 'Optional. True, if the bot can change the group sticker set. Returned only in getChat.' + default: true + - + name: linked_chat_id + types: + - int + optional: true + 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. Returned only in getChat.' + - + name: location + types: + - ChatLocation + optional: true + description: 'Optional. For supergroups, the location to which the supergroup is connected. Returned only in getChat.' + extended_by: { } + - + name: Message + description: 'This object represents a message.' + fields: + - + name: message_id + types: + - int + optional: false + description: 'Unique message identifier inside this chat' + - + name: from + types: + - User + optional: true + description: 'Optional. Sender of the message; empty for messages sent to channels. For backward compatibility, the field contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.' + - + name: sender_chat + types: + - Chat + optional: true + description: 'Optional. Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.' + - + name: date + types: + - int + optional: false + description: 'Date the message was sent in Unix time' + - + name: chat + types: + - Chat + optional: false + description: 'Conversation the message belongs to' + - + name: forward_from + types: + - User + optional: true + description: 'Optional. For forwarded messages, sender of the original message' + - + name: forward_from_chat + types: + - Chat + optional: true + description: 'Optional. For messages forwarded from channels or from anonymous administrators, information about the original sender chat' + - + name: forward_from_message_id + types: + - int + optional: true + description: 'Optional. For messages forwarded from channels, identifier of the original message in the channel' + - + name: forward_signature + types: + - string + optional: true + description: 'Optional. For forwarded messages that were originally sent in channels or by an anonymous chat administrator, signature of the message sender if present' + - + name: forward_sender_name + types: + - string + optional: true + description: "Optional. Sender's name for messages forwarded from users who disallow adding a link to their account in forwarded messages" + - + name: forward_date + types: + - int + optional: true + description: 'Optional. For forwarded messages, date the original message was sent in Unix time' + - + name: is_automatic_forward + types: + - bool + optional: true + description: 'Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group' + default: true + - + name: reply_to_message + types: + - Message + optional: true + description: 'Optional. For replies, 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.' + - + name: via_bot + types: + - User + optional: true + description: 'Optional. Bot through which the message was sent' + - + name: edit_date + types: + - int + optional: true + description: 'Optional. Date the message was last edited in Unix time' + - + name: has_protected_content + types: + - bool + optional: true + description: "Optional. True, if the message can't be forwarded" + default: true + - + name: media_group_id + types: + - string + optional: true + description: 'Optional. The unique identifier of a media message group this message belongs to' + - + name: author_signature + types: + - string + optional: true + description: 'Optional. Signature of the post author for messages in channels, or the custom title of an anonymous group administrator' + - + name: text + types: + - string + optional: true + description: 'Optional. For text messages, the actual UTF-8 text of the message' + - + name: entities + types: + - Array + optional: true + description: 'Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text' + - + name: animation + types: + - Animation + optional: true + 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' + - + name: audio + types: + - Audio + optional: true + description: 'Optional. Message is an audio file, information about the file' + - + name: document + types: + - Document + optional: true + description: 'Optional. Message is a general file, information about the file' + - + name: photo + types: + - Array + optional: true + description: 'Optional. Message is a photo, available sizes of the photo' + - + name: sticker + types: + - Sticker + optional: true + description: 'Optional. Message is a sticker, information about the sticker' + - + name: video + types: + - Video + optional: true + description: 'Optional. Message is a video, information about the video' + - + name: video_note + types: + - VideoNote + optional: true + description: 'Optional. Message is a video note, information about the video message' + - + name: voice + types: + - Voice + optional: true + description: 'Optional. Message is a voice message, information about the file' + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption for the animation, audio, document, photo, video or voice' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption' + - + name: contact + types: + - Contact + optional: true + description: 'Optional. Message is a shared contact, information about the contact' + - + name: dice + types: + - Dice + optional: true + description: 'Optional. Message is a dice with random value' + - + name: game + types: + - Game + optional: true + description: 'Optional. Message is a game, information about the game. More about games »' + - + name: poll + types: + - Poll + optional: true + description: 'Optional. Message is a native poll, information about the poll' + - + name: venue + types: + - Venue + optional: true + 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' + - + name: location + types: + - Location + optional: true + description: 'Optional. Message is a shared location, information about the location' + - + name: new_chat_members + types: + - Array + optional: true + 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)' + - + name: left_chat_member + types: + - User + optional: true + description: 'Optional. A member was removed from the group, information about them (this member may be the bot itself)' + - + name: new_chat_title + types: + - string + optional: true + description: 'Optional. A chat title was changed to this value' + - + name: new_chat_photo + types: + - Array + optional: true + description: 'Optional. A chat photo was change to this value' + - + name: delete_chat_photo + types: + - bool + optional: true + description: 'Optional. Service message: the chat photo was deleted' + default: true + - + name: group_chat_created + types: + - bool + optional: true + description: 'Optional. Service message: the group has been created' + default: true + - + name: supergroup_chat_created + types: + - bool + optional: 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." + default: true + - + name: channel_chat_created + types: + - bool + optional: 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." + default: true + - + name: message_auto_delete_timer_changed + types: + - MessageAutoDeleteTimerChanged + optional: true + description: 'Optional. Service message: auto-delete timer settings changed in the chat' + - + name: migrate_to_chat_id + types: + - int + optional: true + 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.' + - + name: migrate_from_chat_id + types: + - int + optional: true + 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.' + - + name: pinned_message + types: + - Message + optional: true + 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 is itself a reply.' + - + name: invoice + types: + - Invoice + optional: true + description: 'Optional. Message is an invoice for a payment, information about the invoice. More about payments »' + - + name: successful_payment + types: + - SuccessfulPayment + optional: true + description: 'Optional. Message is a service message about a successful payment, information about the payment. More about payments »' + - + name: connected_website + types: + - string + optional: true + description: 'Optional. The domain name of the website on which the user has logged in. More about Telegram Login »' + - + name: passport_data + types: + - PassportData + optional: true + description: 'Optional. Telegram Passport data' + - + name: proximity_alert_triggered + types: + - ProximityAlertTriggered + optional: true + description: "Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location." + - + name: video_chat_scheduled + types: + - VideoChatScheduled + optional: true + description: 'Optional. Service message: video chat scheduled' + - + name: video_chat_started + types: + - VideoChatStarted + optional: true + description: 'Optional. Service message: video chat started' + - + name: video_chat_ended + types: + - VideoChatEnded + optional: true + description: 'Optional. Service message: video chat ended' + - + name: video_chat_participants_invited + types: + - VideoChatParticipantsInvited + optional: true + description: 'Optional. Service message: new participants invited to a video chat' + - + name: web_app_data + types: + - WebAppData + optional: true + description: 'Optional. Service message: data sent by a Web App' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message. login_url buttons are represented as ordinary url buttons.' + extended_by: { } + - + name: MessageId + description: 'This object represents a unique message identifier.' + fields: + - + name: message_id + types: + - int + optional: false + description: 'Unique message identifier' + extended_by: { } + - + name: MessageEntity + description: 'This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the entity. Currently, can be “mention” (@username), “hashtag” (#hashtag), “cashtag” ($USD), “bot_command” (/start@jobs_bot), “url” (https://telegram.org), “email” (do-not-reply@telegram.org), “phone_number” (+1-212-555-0123), “bold” (bold text), “italic” (italic text), “underline” (underlined text), “strikethrough” (strikethrough text), “spoiler” (spoiler message), “code” (monowidth string), “pre” (monowidth block), “text_link” (for clickable text URLs), “text_mention” (for users without usernames), “custom_emoji” (for inline custom emoji stickers)' + - + name: offset + types: + - int + optional: false + description: 'Offset in UTF-16 code units to the start of the entity' + - + name: length + types: + - int + optional: false + description: 'Length of the entity in UTF-16 code units' + - + name: url + types: + - string + optional: true + description: 'Optional. For “text_link” only, URL that will be opened after user taps on the text' + - + name: user + types: + - User + optional: true + description: 'Optional. For “text_mention” only, the mentioned user' + - + name: language + types: + - string + optional: true + description: 'Optional. For “pre” only, the programming language of the entity text' + - + name: custom_emoji_id + types: + - string + optional: true + description: 'Optional. For “custom_emoji” only, unique identifier of the custom emoji. Use getCustomEmojiStickers to get full information about the sticker' + extended_by: { } + - + name: PhotoSize + description: 'This object represents one size of a photo or a file / sticker thumbnail.' + fields: + - + name: file_id + types: + - string + optional: false + description: 'Identifier for this file, which can be used to download or reuse the file' + - + name: file_unique_id + types: + - string + optional: false + 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." + - + name: width + types: + - int + optional: false + description: 'Photo width' + - + name: height + types: + - int + optional: false + description: 'Photo height' + - + name: file_size + types: + - int + optional: true + description: 'Optional. File size in bytes' + extended_by: { } + - + name: Animation + description: 'This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).' + fields: + - + name: file_id + types: + - string + optional: false + description: 'Identifier for this file, which can be used to download or reuse the file' + - + name: file_unique_id + types: + - string + optional: false + 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." + - + name: width + types: + - int + optional: false + description: 'Video width as defined by sender' + - + name: height + types: + - int + optional: false + description: 'Video height as defined by sender' + - + name: duration + types: + - int + optional: false + description: 'Duration of the video in seconds as defined by sender' + - + name: thumb + types: + - PhotoSize + optional: true + description: 'Optional. Animation thumbnail as defined by sender' + - + name: file_name + types: + - string + optional: true + description: 'Optional. Original animation filename as defined by sender' + - + name: mime_type + types: + - string + optional: true + description: 'Optional. MIME type of the file as defined by sender' + - + name: file_size + types: + - int + optional: true + 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.' + extended_by: { } + - + name: Audio + description: 'This object represents an audio file to be treated as music by the Telegram clients.' + fields: + - + name: file_id + types: + - string + optional: false + description: 'Identifier for this file, which can be used to download or reuse the file' + - + name: file_unique_id + types: + - string + optional: false + 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." + - + name: duration + types: + - int + optional: false + description: 'Duration of the audio in seconds as defined by sender' + - + name: performer + types: + - string + optional: true + description: 'Optional. Performer of the audio as defined by sender or by audio tags' + - + name: title + types: + - string + optional: true + description: 'Optional. Title of the audio as defined by sender or by audio tags' + - + name: file_name + types: + - string + optional: true + description: 'Optional. Original filename as defined by sender' + - + name: mime_type + types: + - string + optional: true + description: 'Optional. MIME type of the file as defined by sender' + - + name: file_size + types: + - int + optional: true + 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.' + - + name: thumb + types: + - PhotoSize + optional: true + description: 'Optional. Thumbnail of the album cover to which the music file belongs' + extended_by: { } + - + name: Document + description: 'This object represents a general file (as opposed to photos, voice messages and audio files).' + fields: + - + name: file_id + types: + - string + optional: false + description: 'Identifier for this file, which can be used to download or reuse the file' + - + name: file_unique_id + types: + - string + optional: false + 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." + - + name: thumb + types: + - PhotoSize + optional: true + description: 'Optional. Document thumbnail as defined by sender' + - + name: file_name + types: + - string + optional: true + description: 'Optional. Original filename as defined by sender' + - + name: mime_type + types: + - string + optional: true + description: 'Optional. MIME type of the file as defined by sender' + - + name: file_size + types: + - int + optional: true + 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.' + extended_by: { } + - + name: Video + description: 'This object represents a video file.' + fields: + - + name: file_id + types: + - string + optional: false + description: 'Identifier for this file, which can be used to download or reuse the file' + - + name: file_unique_id + types: + - string + optional: false + 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." + - + name: width + types: + - int + optional: false + description: 'Video width as defined by sender' + - + name: height + types: + - int + optional: false + description: 'Video height as defined by sender' + - + name: duration + types: + - int + optional: false + description: 'Duration of the video in seconds as defined by sender' + - + name: thumb + types: + - PhotoSize + optional: true + description: 'Optional. Video thumbnail' + - + name: file_name + types: + - string + optional: true + description: 'Optional. Original filename as defined by sender' + - + name: mime_type + types: + - string + optional: true + description: 'Optional. MIME type of the file as defined by sender' + - + name: file_size + types: + - int + optional: true + 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.' + extended_by: { } + - + name: VideoNote + description: 'This object represents a video message (available in Telegram apps as of v.4.0).' + fields: + - + name: file_id + types: + - string + optional: false + description: 'Identifier for this file, which can be used to download or reuse the file' + - + name: file_unique_id + types: + - string + optional: false + 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." + - + name: length + types: + - int + optional: false + description: 'Video width and height (diameter of the video message) as defined by sender' + - + name: duration + types: + - int + optional: false + description: 'Duration of the video in seconds as defined by sender' + - + name: thumb + types: + - PhotoSize + optional: true + description: 'Optional. Video thumbnail' + - + name: file_size + types: + - int + optional: true + description: 'Optional. File size in bytes' + extended_by: { } + - + name: Voice + description: 'This object represents a voice note.' + fields: + - + name: file_id + types: + - string + optional: false + description: 'Identifier for this file, which can be used to download or reuse the file' + - + name: file_unique_id + types: + - string + optional: false + 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." + - + name: duration + types: + - int + optional: false + description: 'Duration of the audio in seconds as defined by sender' + - + name: mime_type + types: + - string + optional: true + description: 'Optional. MIME type of the file as defined by sender' + - + name: file_size + types: + - int + optional: true + 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.' + extended_by: { } + - + name: Contact + description: 'This object represents a phone contact.' + fields: + - + name: phone_number + types: + - string + optional: false + description: "Contact's phone number" + - + name: first_name + types: + - string + optional: false + description: "Contact's first name" + - + name: last_name + types: + - string + optional: true + description: "Optional. Contact's last name" + - + name: user_id + types: + - int + optional: true + 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." + - + name: vcard + types: + - string + optional: true + description: 'Optional. Additional data about the contact in the form of a vCard' + extended_by: { } + - + name: Dice + description: 'This object represents an animated emoji that displays a random value.' + fields: + - + name: emoji + types: + - string + optional: false + description: 'Emoji on which the dice throw animation is based' + - + name: value + types: + - int + optional: false + description: '____simple_html_dom__voku__html_wrapper____>Value of the dice, 1-6 for “🎲”, “🎯” and “🎳” base emoji, 1-5 for “🏀” and “⚽” base emoji, 1-64 for “🎰” base emoji' + extended_by: { } + - + name: PollOption + description: 'This object contains information about one answer option in a poll.' + fields: + - + name: text + types: + - string + optional: false + description: 'Option text, 1-100 characters' + - + name: voter_count + types: + - int + optional: false + description: 'Number of users that voted for this option' + extended_by: { } + - + name: PollAnswer + description: 'This object represents an answer of a user in a non-anonymous poll.' + fields: + - + name: poll_id + types: + - string + optional: false + description: 'Unique poll identifier' + - + name: user + types: + - User + optional: false + description: 'The user, who changed the answer to the poll' + - + name: option_ids + types: + - Array + optional: false + description: '0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.' + extended_by: { } + - + name: Poll + description: 'This object contains information about a poll.' + fields: + - + name: id + types: + - string + optional: false + description: 'Unique poll identifier' + - + name: question + types: + - string + optional: false + description: 'Poll question, 1-300 characters' + - + name: options + types: + - Array + optional: false + description: 'List of poll options' + - + name: total_voter_count + types: + - int + optional: false + description: 'Total number of users that voted in the poll' + - + name: is_closed + types: + - bool + optional: false + description: 'True, if the poll is closed' + - + name: is_anonymous + types: + - bool + optional: false + description: 'True, if the poll is anonymous' + - + name: type + types: + - string + optional: false + description: 'Poll type, currently can be “regular” or “quiz”' + - + name: allows_multiple_answers + types: + - bool + optional: false + description: 'True, if the poll allows multiple answers' + - + name: correct_option_id + types: + - int + optional: true + 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.' + - + name: explanation + types: + - string + optional: true + 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' + - + name: explanation_entities + types: + - Array + optional: true + description: 'Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation' + - + name: open_period + types: + - int + optional: true + description: 'Optional. Amount of time in seconds the poll will be active after creation' + - + name: close_date + types: + - int + optional: true + description: 'Optional. Point in time (Unix timestamp) when the poll will be automatically closed' + extended_by: { } + - + name: Location + description: 'This object represents a point on the map.' + fields: + - + name: longitude + types: + - float + optional: false + description: 'Longitude as defined by sender' + - + name: latitude + types: + - float + optional: false + description: 'Latitude as defined by sender' + - + name: horizontal_accuracy + types: + - float + optional: true + description: 'Optional. The radius of uncertainty for the location, measured in meters; 0-1500' + - + name: live_period + types: + - int + optional: true + description: 'Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For active live locations only.' + - + name: heading + types: + - int + optional: true + description: 'Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only.' + - + name: proximity_alert_radius + types: + - int + optional: true + description: 'Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent live locations only.' + extended_by: { } + - + name: Venue + description: 'This object represents a venue.' + fields: + - + name: location + types: + - Location + optional: false + description: "Venue location. Can't be a live location" + - + name: title + types: + - string + optional: false + description: 'Name of the venue' + - + name: address + types: + - string + optional: false + description: 'Address of the venue' + - + name: foursquare_id + types: + - string + optional: true + description: 'Optional. Foursquare identifier of the venue' + - + name: foursquare_type + types: + - string + optional: true + description: 'Optional. Foursquare type of the venue. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)' + - + name: google_place_id + types: + - string + optional: true + description: 'Optional. Google Places identifier of the venue' + - + name: google_place_type + types: + - string + optional: true + description: 'Optional. Google Places type of the venue. (See supported types.)' + extended_by: { } + - + name: WebAppData + description: 'Describes data sent from a Web App to the bot.' + fields: + - + name: data + types: + - string + optional: false + description: 'The data. Be aware that a bad client can send arbitrary data in this field.' + - + name: button_text + types: + - string + optional: false + 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.' + extended_by: { } + - + name: 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: + - + name: traveler + types: + - User + optional: false + description: 'User that triggered the alert' + - + name: watcher + types: + - User + optional: false + description: 'User that set the alert' + - + name: distance + types: + - int + optional: false + description: 'The distance between the users' + extended_by: { } + - + name: MessageAutoDeleteTimerChanged + description: 'This object represents a service message about a change in auto-delete timer settings.' + fields: + - + name: message_auto_delete_time + types: + - int + optional: false + description: 'New auto-delete time for messages in the chat; in seconds' + extended_by: { } + - + name: VideoChatScheduled + description: 'This object represents a service message about a video chat scheduled in the chat.' + fields: + - + name: start_date + types: + - int + optional: false + description: 'Point in time (Unix timestamp) when the video chat is supposed to be started by a chat administrator' + extended_by: { } + - + name: VideoChatStarted + description: 'This object represents a service message about a video chat started in the chat. Currently holds no information.' + fields: { } + extended_by: { } + - + name: VideoChatEnded + description: 'This object represents a service message about a video chat ended in the chat.' + fields: + - + name: duration + types: + - int + optional: false + description: 'Video chat duration in seconds' + extended_by: { } + - + name: VideoChatParticipantsInvited + description: 'This object represents a service message about new members invited to a video chat.' + fields: + - + name: users + types: + - Array + optional: false + description: 'New members that were invited to the video chat' + extended_by: { } + - + name: UserProfilePhotos + description: "This object represent a user's profile pictures." + fields: + - + name: total_count + types: + - int + optional: false + description: 'Total number of profile pictures the target user has' + - + name: photos + types: + - Array> + optional: false + description: 'Requested profile pictures (in up to 4 sizes each)' + extended_by: { } + - + name: File + description: 'This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot/. 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.' + fields: + - + name: file_id + types: + - string + optional: false + description: 'Identifier for this file, which can be used to download or reuse the file' + - + name: file_unique_id + types: + - string + optional: false + 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." + - + name: file_size + types: + - int + optional: true + 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.' + - + name: file_path + types: + - string + optional: true + description: 'Optional. File path. Use https://api.telegram.org/file/bot/ to get the file.' + extended_by: { } + - + name: WebAppInfo + description: 'Describes a Web App.' + fields: + - + name: url + types: + - string + optional: false + description: 'An HTTPS URL of a Web App to be opened with additional data as specified in Initializing Web Apps' + extended_by: { } + - + name: ReplyKeyboardMarkup + description: 'This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).' + fields: + - + name: keyboard + types: + - Array> + optional: false + description: 'Array of button rows, each represented by an Array of KeyboardButton objects' + - + name: resize_keyboard + types: + - bool + optional: true + description: "Optional. Requests clients to resize the keyboard vertically for optimal fit (e.g., make the keyboard smaller if there are just two rows of buttons). Defaults to false, in which case the custom keyboard is always of the same height as the app's standard keyboard." + default: false + - + name: one_time_keyboard + types: + - bool + optional: true + description: "Optional. Requests clients to hide the keyboard as soon as it's been used. The keyboard will still be available, but clients will automatically display the usual letter-keyboard in the chat - the user can press a special button in the input field to see the custom keyboard again. Defaults to false." + default: false + - + name: input_field_placeholder + types: + - string + optional: true + description: 'Optional. The placeholder to be shown in the input field when the keyboard is active; 1-64 characters' + - + name: selective + types: + - bool + optional: true + description: "Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard." + extended_by: { } + - + name: KeyboardButton + description: 'This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields web_app, request_contact, request_location, and request_poll are mutually exclusive.' + fields: + - + name: text + types: + - string + optional: false + description: 'Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed' + - + name: request_contact + types: + - bool + optional: true + description: "Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only." + - + name: request_location + types: + - bool + optional: true + description: "Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only." + - + name: request_poll + types: + - KeyboardButtonPollType + optional: true + description: 'Optional. If specified, the user will be asked to create a poll and send it to the bot when the button is pressed. Available in private chats only.' + - + name: web_app + types: + - WebAppInfo + optional: true + description: 'Optional. If specified, the described Web App will be launched when the button is pressed. The Web App will be able to send a “web_app_data” service message. Available in private chats only.' + extended_by: { } + - + name: KeyboardButtonPollType + description: 'This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.' + fields: + - + name: type + types: + - string + optional: true + description: 'Optional. If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type.' + extended_by: { } + - + name: ReplyKeyboardRemove + description: 'Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup).' + fields: + - + name: remove_keyboard + types: + - bool + optional: false + description: 'Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use one_time_keyboard in ReplyKeyboardMarkup)' + default: true + - + name: selective + types: + - bool + optional: true + description: "Optional. Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet." + extended_by: { } + - + name: InlineKeyboardMarkup + description: 'This object represents an inline keyboard that appears right next to the message it belongs to.' + fields: + - + name: inline_keyboard + types: + - Array> + optional: false + description: 'Array of button rows, each represented by an Array of InlineKeyboardButton objects' + extended_by: { } + - + name: InlineKeyboardButton + description: 'This object represents one button of an inline keyboard. You must use exactly one of the optional fields.' + fields: + - + name: text + types: + - string + optional: false + description: 'Label text on the button' + - + name: url + types: + - string + optional: true + description: 'Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id= can be used to mention a user by their ID without using a username, if this is allowed by their privacy settings.' + - + name: callback_data + types: + - string + optional: true + description: 'Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes' + - + name: web_app + types: + - WebAppInfo + optional: true + description: 'Optional. Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. Available only in private chats between a user and the bot.' + - + name: login_url + types: + - LoginUrl + optional: true + description: 'Optional. An HTTPS URL used to automatically authorize the user. Can be used as a replacement for the Telegram Login Widget.' + - + name: switch_inline_query + types: + - string + optional: true + description: "Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted.Note: This offers an easy way for users to start using your bot in inline mode when they are currently in a private chat with it. Especially useful when combined with switch_pm… actions - in this case the user will be automatically returned to the chat they switched from, skipping the chat selection screen." + - + name: switch_inline_query_current_chat + types: + - string + optional: true + description: "Optional. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username will be inserted.This offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options." + - + name: callback_game + types: + - CallbackGame + optional: true + description: 'Optional. Description of the game that will be launched when the user presses the button.NOTE: This type of button must always be the first button in the first row.' + - + name: pay + types: + - bool + optional: true + description: 'Optional. Specify True, to send a Pay button.NOTE: This type of button must always be the first button in the first row and can only be used in invoice messages.' + extended_by: { } + - + name: LoginUrl + description: "This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in:\nTelegram apps support these buttons as of version 5.7." + fields: + - + name: url + types: + - string + optional: false + description: 'An HTTPS URL to be opened with user authorization data added to the query string when the button is pressed. If the user refuses to provide authorization data, the original URL without information about the user will be opened. The data added is the same as described in Receiving authorization data.NOTE: You must always check the hash of the received data to verify the authentication and the integrity of the data as described in Checking authorization.' + - + name: forward_text + types: + - string + optional: true + description: 'Optional. New text of the button in forwarded messages.' + - + name: bot_username + types: + - string + optional: true + description: "Optional. Username of a bot, which will be used for user authorization. See Setting up a bot for more details. If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain linked with the bot. See Linking your domain to the bot for more details." + - + name: request_write_access + types: + - bool + optional: true + description: 'Optional. Pass True to request the permission for your bot to send messages to the user.' + extended_by: { } + - + name: CallbackQuery + description: 'This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present.' + fields: + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this query' + - + name: from + types: + - User + optional: false + description: Sender + - + name: message + types: + - Message + optional: true + description: 'Optional. Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old' + - + name: inline_message_id + types: + - string + optional: true + description: 'Optional. Identifier of the message sent via the bot in inline mode, that originated the query.' + - + name: chat_instance + types: + - string + optional: false + description: 'Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.' + - + name: data + types: + - string + optional: true + description: 'Optional. Data associated with the callback button. Be aware that the message originated the query can contain no callback buttons with this data.' + - + name: game_short_name + types: + - string + optional: true + description: 'Optional. Short name of a Game to be returned, serves as the unique identifier for the game' + extended_by: { } + - + name: ForceReply + description: "Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode." + fields: + - + name: force_reply + types: + - bool + optional: false + description: "Shows reply interface to the user, as if they manually selected the bot's message and tapped 'Reply'" + default: true + - + name: input_field_placeholder + types: + - string + optional: true + description: 'Optional. The placeholder to be shown in the input field when the reply is active; 1-64 characters' + - + name: selective + types: + - bool + optional: true + description: "Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message." + extended_by: { } + - + name: ChatPhoto + description: 'This object represents a chat photo.' + fields: + - + name: small_file_id + types: + - string + optional: false + description: 'File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.' + - + name: small_file_unique_id + types: + - string + optional: false + description: "Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." + - + name: big_file_id + types: + - string + optional: false + description: 'File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.' + - + name: big_file_unique_id + types: + - string + optional: false + description: "Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file." + extended_by: { } + - + name: ChatInviteLink + description: 'Represents an invite link for a chat.' + fields: + - + name: invite_link + types: + - string + optional: false + description: 'The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with “…”.' + - + name: creator + types: + - User + optional: false + description: 'Creator of the link' + - + name: creates_join_request + types: + - bool + optional: false + description: 'True, if users joining the chat via the link need to be approved by chat administrators' + - + name: is_primary + types: + - bool + optional: false + description: 'True, if the link is primary' + - + name: is_revoked + types: + - bool + optional: false + description: 'True, if the link is revoked' + - + name: name + types: + - string + optional: true + description: 'Optional. Invite link name' + - + name: expire_date + types: + - int + optional: true + description: 'Optional. Point in time (Unix timestamp) when the link will expire or has been expired' + - + name: member_limit + types: + - int + optional: true + description: 'Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999' + - + name: pending_join_request_count + types: + - int + optional: true + description: 'Optional. Number of pending join requests created using this link' + extended_by: { } + - + name: ChatAdministratorRights + description: 'Represents the rights of an administrator in a chat.' + fields: + - + name: is_anonymous + types: + - bool + optional: false + description: "True, if the user's presence in the chat is hidden" + - + name: can_manage_chat + types: + - bool + optional: false + description: 'True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege' + - + name: can_delete_messages + types: + - bool + optional: false + description: 'True, if the administrator can delete messages of other users' + - + name: can_manage_video_chats + types: + - bool + optional: false + description: 'True, if the administrator can manage video chats' + - + name: can_restrict_members + types: + - bool + optional: false + description: 'True, if the administrator can restrict, ban or unban chat members' + - + name: can_promote_members + types: + - bool + optional: false + description: 'True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)' + - + name: can_change_info + types: + - bool + optional: false + description: 'True, if the user is allowed to change the chat title, photo and other settings' + - + name: can_invite_users + types: + - bool + optional: false + description: 'True, if the user is allowed to invite new users to the chat' + - + name: can_post_messages + types: + - bool + optional: true + description: 'Optional. True, if the administrator can post in the channel; channels only' + - + name: can_edit_messages + types: + - bool + optional: true + description: 'Optional. True, if the administrator can edit messages of other users and can pin messages; channels only' + - + name: can_pin_messages + types: + - bool + optional: true + description: 'Optional. True, if the user is allowed to pin messages; groups and supergroups only' + extended_by: { } + - + name: ChatMember + description: 'This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported:' + fields: { } + extended_by: + - ChatMemberOwner + - ChatMemberAdministrator + - ChatMemberMember + - ChatMemberRestricted + - ChatMemberLeft + - ChatMemberBanned + - + name: ChatMemberOwner + description: 'Represents a chat member that owns the chat and has all administrator privileges.' + fields: + - + name: status + types: + - string + optional: false + description: "The member's status in the chat, always “creator”" + - + name: user + types: + - User + optional: false + description: 'Information about the user' + - + name: is_anonymous + types: + - bool + optional: false + description: "True, if the user's presence in the chat is hidden" + - + name: custom_title + types: + - string + optional: true + description: 'Optional. Custom title for this user' + extended_by: { } + - + name: ChatMemberAdministrator + description: 'Represents a chat member that has some additional privileges.' + fields: + - + name: status + types: + - string + optional: false + description: "The member's status in the chat, always “administrator”" + - + name: user + types: + - User + optional: false + description: 'Information about the user' + - + name: can_be_edited + types: + - bool + optional: false + description: 'True, if the bot is allowed to edit administrator privileges of that user' + - + name: is_anonymous + types: + - bool + optional: false + description: "True, if the user's presence in the chat is hidden" + - + name: can_manage_chat + types: + - bool + optional: false + description: 'True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege' + - + name: can_delete_messages + types: + - bool + optional: false + description: 'True, if the administrator can delete messages of other users' + - + name: can_manage_video_chats + types: + - bool + optional: false + description: 'True, if the administrator can manage video chats' + - + name: can_restrict_members + types: + - bool + optional: false + description: 'True, if the administrator can restrict, ban or unban chat members' + - + name: can_promote_members + types: + - bool + optional: false + description: 'True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user)' + - + name: can_change_info + types: + - bool + optional: false + description: 'True, if the user is allowed to change the chat title, photo and other settings' + - + name: can_invite_users + types: + - bool + optional: false + description: 'True, if the user is allowed to invite new users to the chat' + - + name: can_post_messages + types: + - bool + optional: true + description: 'Optional. True, if the administrator can post in the channel; channels only' + - + name: can_edit_messages + types: + - bool + optional: true + description: 'Optional. True, if the administrator can edit messages of other users and can pin messages; channels only' + - + name: can_pin_messages + types: + - bool + optional: true + description: 'Optional. True, if the user is allowed to pin messages; groups and supergroups only' + - + name: custom_title + types: + - string + optional: true + description: 'Optional. Custom title for this user' + extended_by: { } + - + name: ChatMemberMember + description: 'Represents a chat member that has no additional privileges or restrictions.' + fields: + - + name: status + types: + - string + optional: false + description: "The member's status in the chat, always “member”" + - + name: user + types: + - User + optional: false + description: 'Information about the user' + extended_by: { } + - + name: ChatMemberRestricted + description: 'Represents a chat member that is under certain restrictions in the chat. Supergroups only.' + fields: + - + name: status + types: + - string + optional: false + description: "The member's status in the chat, always “restricted”" + - + name: user + types: + - User + optional: false + description: 'Information about the user' + - + name: is_member + types: + - bool + optional: false + description: 'True, if the user is a member of the chat at the moment of the request' + - + name: can_change_info + types: + - bool + optional: false + description: 'True, if the user is allowed to change the chat title, photo and other settings' + - + name: can_invite_users + types: + - bool + optional: false + description: 'True, if the user is allowed to invite new users to the chat' + - + name: can_pin_messages + types: + - bool + optional: false + description: 'True, if the user is allowed to pin messages' + - + name: can_send_messages + types: + - bool + optional: false + description: 'True, if the user is allowed to send text messages, contacts, locations and venues' + - + name: can_send_media_messages + types: + - bool + optional: false + description: 'True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes' + - + name: can_send_polls + types: + - bool + optional: false + description: 'True, if the user is allowed to send polls' + - + name: can_send_other_messages + types: + - bool + optional: false + description: 'True, if the user is allowed to send animations, games, stickers and use inline bots' + - + name: can_add_web_page_previews + types: + - bool + optional: false + description: 'True, if the user is allowed to add web page previews to their messages' + - + name: until_date + types: + - int + optional: false + description: 'Date when restrictions will be lifted for this user; unix time. If 0, then the user is restricted forever' + extended_by: { } + - + name: ChatMemberLeft + description: "Represents a chat member that isn't currently a member of the chat, but may join it themselves." + fields: + - + name: status + types: + - string + optional: false + description: "The member's status in the chat, always “left”" + - + name: user + types: + - User + optional: false + description: 'Information about the user' + extended_by: { } + - + name: ChatMemberBanned + description: "Represents a chat member that was banned in the chat and can't return to the chat or view chat messages." + fields: + - + name: status + types: + - string + optional: false + description: "The member's status in the chat, always “kicked”" + - + name: user + types: + - User + optional: false + description: 'Information about the user' + - + name: until_date + types: + - int + optional: false + description: 'Date when restrictions will be lifted for this user; unix time. If 0, then the user is banned forever' + extended_by: { } + - + name: ChatMemberUpdated + description: 'This object represents changes in the status of a chat member.' + fields: + - + name: chat + types: + - Chat + optional: false + description: 'Chat the user belongs to' + - + name: from + types: + - User + optional: false + description: 'Performer of the action, which resulted in the change' + - + name: date + types: + - int + optional: false + description: 'Date the change was done in Unix time' + - + name: old_chat_member + types: + - ChatMember + optional: false + description: 'Previous information about the chat member' + - + name: new_chat_member + types: + - ChatMember + optional: false + description: 'New information about the chat member' + - + name: invite_link + types: + - ChatInviteLink + optional: true + description: 'Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.' + extended_by: { } + - + name: ChatJoinRequest + description: 'Represents a join request sent to a chat.' + fields: + - + name: chat + types: + - Chat + optional: false + description: 'Chat to which the request was sent' + - + name: from + types: + - User + optional: false + description: 'User that sent the join request' + - + name: date + types: + - int + optional: false + description: 'Date the request was sent in Unix time' + - + name: bio + types: + - string + optional: true + description: 'Optional. Bio of the user.' + - + name: invite_link + types: + - ChatInviteLink + optional: true + description: 'Optional. Chat invite link that was used by the user to send the join request' + extended_by: { } + - + name: ChatPermissions + description: 'Describes actions that a non-administrator user is allowed to take in a chat.' + fields: + - + name: can_send_messages + types: + - bool + optional: true + description: 'Optional. True, if the user is allowed to send text messages, contacts, locations and venues' + - + name: can_send_media_messages + types: + - bool + optional: true + description: 'Optional. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages' + - + name: can_send_polls + types: + - bool + optional: true + description: 'Optional. True, if the user is allowed to send polls, implies can_send_messages' + - + name: can_send_other_messages + types: + - bool + optional: true + description: 'Optional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages' + - + name: can_add_web_page_previews + types: + - bool + optional: true + description: 'Optional. True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages' + - + name: can_change_info + types: + - bool + optional: true + description: 'Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups' + - + name: can_invite_users + types: + - bool + optional: true + description: 'Optional. True, if the user is allowed to invite new users to the chat' + - + name: can_pin_messages + types: + - bool + optional: true + description: 'Optional. True, if the user is allowed to pin messages. Ignored in public supergroups' + extended_by: { } + - + name: ChatLocation + description: 'Represents a location to which a chat is connected.' + fields: + - + name: location + types: + - Location + optional: false + description: "The location to which the supergroup is connected. Can't be a live location." + - + name: address + types: + - string + optional: false + description: 'Location address; 1-64 characters, as defined by the chat owner' + extended_by: { } + - + name: BotCommand + description: 'This object represents a bot command.' + fields: + - + name: command + types: + - string + optional: false + description: 'Text of the command; 1-32 characters. Can contain only lowercase English letters, digits and underscores.' + - + name: description + types: + - string + optional: false + description: 'Description of the command; 1-256 characters.' + extended_by: { } + - + name: BotCommandScope + description: 'This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported:' + fields: { } + extended_by: + - BotCommandScopeDefault + - BotCommandScopeAllPrivateChats + - BotCommandScopeAllGroupChats + - BotCommandScopeAllChatAdministrators + - BotCommandScopeChat + - BotCommandScopeChatAdministrators + - BotCommandScopeChatMember + - + name: BotCommandScopeDefault + description: 'Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user.' + fields: + - + name: type + types: + - string + optional: false + description: 'Scope type, must be default' + default: default + extended_by: { } + - + name: BotCommandScopeAllPrivateChats + description: 'Represents the scope of bot commands, covering all private chats.' + fields: + - + name: type + types: + - string + optional: false + description: 'Scope type, must be all_private_chats' + default: all_private_chats + extended_by: { } + - + name: BotCommandScopeAllGroupChats + description: 'Represents the scope of bot commands, covering all group and supergroup chats.' + fields: + - + name: type + types: + - string + optional: false + description: 'Scope type, must be all_group_chats' + default: all_group_chats + extended_by: { } + - + name: BotCommandScopeAllChatAdministrators + description: 'Represents the scope of bot commands, covering all group and supergroup chat administrators.' + fields: + - + name: type + types: + - string + optional: false + description: 'Scope type, must be all_chat_administrators' + default: all_chat_administrators + extended_by: { } + - + name: BotCommandScopeChat + description: 'Represents the scope of bot commands, covering a specific chat.' + fields: + - + name: type + types: + - string + optional: false + description: 'Scope type, must be chat' + default: chat + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)' + extended_by: { } + - + name: BotCommandScopeChatAdministrators + description: 'Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.' + fields: + - + name: type + types: + - string + optional: false + description: 'Scope type, must be chat_administrators' + default: chat_administrators + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)' + extended_by: { } + - + name: BotCommandScopeChatMember + description: 'Represents the scope of bot commands, covering a specific member of a group or supergroup chat.' + fields: + - + name: type + types: + - string + optional: false + description: 'Scope type, must be chat_member' + default: chat_member + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)' + - + name: user_id + types: + - int + optional: false + description: 'Unique identifier of the target user' + extended_by: { } + - + name: MenuButton + description: "This object describes the bot's menu button in a private chat. It should be one of" + fields: { } + extended_by: + - MenuButtonCommands + - MenuButtonWebApp + - MenuButtonDefault + - + name: MenuButtonCommands + description: "Represents a menu button, which opens the bot's list of commands." + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the button, must be commands' + default: commands + extended_by: { } + - + name: MenuButtonWebApp + description: 'Represents a menu button, which launches a Web App.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the button, must be web_app' + default: web_app + - + name: text + types: + - string + optional: false + description: 'Text on the button' + - + name: web_app + types: + - WebAppInfo + optional: false + description: 'Description of the Web App that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery.' + extended_by: { } + - + name: MenuButtonDefault + description: 'Describes that no specific value for the menu button was set.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the button, must be default' + default: default + extended_by: { } + - + name: ResponseParameters + description: 'Describes why a request was unsuccessful.' + fields: + - + name: migrate_to_chat_id + types: + - int + optional: true + 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.' + - + name: retry_after + types: + - int + optional: true + description: 'Optional. In case of exceeding flood control, the number of seconds left to wait before the request can be repeated' + extended_by: { } + - + name: InputMedia + description: 'This object represents the content of a media message to be sent. It should be one of' + fields: { } + extended_by: + - InputMediaAnimation + - InputMediaDocument + - InputMediaAudio + - InputMediaPhoto + - InputMediaVideo + - + name: InputMediaPhoto + description: 'Represents a photo to be sent.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be photo' + default: photo + - + name: media + types: + - string + optional: false + description: 'File to send. 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 “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »' + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the photo caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + extended_by: { } + - + name: InputMediaVideo + description: 'Represents a video to be sent.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be video' + default: video + - + name: media + types: + - string + optional: false + description: 'File to send. 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 “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »' + - + name: thumb + types: + - InputFile + - string + optional: true + description: "Optional. 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption of the video to be sent, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the video caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: width + types: + - int + optional: true + description: 'Optional. Video width' + - + name: height + types: + - int + optional: true + description: 'Optional. Video height' + - + name: duration + types: + - int + optional: true + description: 'Optional. Video duration in seconds' + - + name: supports_streaming + types: + - bool + optional: true + description: 'Optional. Pass True if the uploaded video is suitable for streaming' + extended_by: { } + - + name: InputMediaAnimation + description: 'Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be animation' + default: animation + - + name: media + types: + - string + optional: false + description: 'File to send. 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 “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »' + - + name: thumb + types: + - InputFile + - string + optional: true + description: "Optional. 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption of the animation to be sent, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the animation caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: width + types: + - int + optional: true + description: 'Optional. Animation width' + - + name: height + types: + - int + optional: true + description: 'Optional. Animation height' + - + name: duration + types: + - int + optional: true + description: 'Optional. Animation duration in seconds' + extended_by: { } + - + name: InputMediaAudio + description: 'Represents an audio file to be treated as music to be sent.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be audio' + default: audio + - + name: media + types: + - string + optional: false + description: 'File to send. 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 “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »' + - + name: thumb + types: + - InputFile + - string + optional: true + description: "Optional. 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption of the audio to be sent, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the audio caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: duration + types: + - int + optional: true + description: 'Optional. Duration of the audio in seconds' + - + name: performer + types: + - string + optional: true + description: 'Optional. Performer of the audio' + - + name: title + types: + - string + optional: true + description: 'Optional. Title of the audio' + extended_by: { } + - + name: InputMediaDocument + description: 'Represents a general file to be sent.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be document' + default: document + - + name: media + types: + - string + optional: false + description: 'File to send. 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 “attach://” to upload a new one using multipart/form-data under name. More information on Sending Files »' + - + name: thumb + types: + - InputFile + - string + optional: true + description: "Optional. 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption of the document to be sent, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the document caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: disable_content_type_detection + types: + - bool + optional: true + description: 'Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data. Always True, if the document is sent as part of an album.' + extended_by: { } + - + name: InputFile + description: 'This object represents the contents of a file to be uploaded. Must be posted using multipart/form-data in the usual way that files are uploaded via the browser.' + fields: { } + extended_by: { } + - + name: Sticker + description: 'This object represents a sticker.' + fields: + - + name: file_id + types: + - string + optional: false + description: 'Identifier for this file, which can be used to download or reuse the file' + - + name: file_unique_id + types: + - string + optional: false + 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." + - + name: type + types: + - string + optional: false + description: 'Type of the sticker, currently one of “regular”, “mask”, “custom_emoji”. The type of the sticker is independent from its format, which is determined by the fields is_animated and is_video.' + - + name: width + types: + - int + optional: false + description: 'Sticker width' + - + name: height + types: + - int + optional: false + description: 'Sticker height' + - + name: is_animated + types: + - bool + optional: false + description: 'True, if the sticker is animated' + - + name: is_video + types: + - bool + optional: false + description: 'True, if the sticker is a video sticker' + - + name: thumb + types: + - PhotoSize + optional: true + description: 'Optional. Sticker thumbnail in the .WEBP or .JPG format' + - + name: emoji + types: + - string + optional: true + description: 'Optional. Emoji associated with the sticker' + - + name: set_name + types: + - string + optional: true + description: 'Optional. Name of the sticker set to which the sticker belongs' + - + name: premium_animation + types: + - File + optional: true + description: 'Optional. For premium regular stickers, premium animation for the sticker' + - + name: mask_position + types: + - MaskPosition + optional: true + description: 'Optional. For mask stickers, the position where the mask should be placed' + - + name: custom_emoji_id + types: + - string + optional: true + description: 'Optional. For custom emoji stickers, unique identifier of the custom emoji' + - + name: file_size + types: + - int + optional: true + description: 'Optional. File size in bytes' + extended_by: { } + - + name: StickerSet + description: 'This object represents a sticker set.' + fields: + - + name: name + types: + - string + optional: false + description: 'Sticker set name' + - + name: title + types: + - string + optional: false + description: 'Sticker set title' + - + name: sticker_type + types: + - string + optional: false + description: 'Type of stickers in the set, currently one of “regular”, “mask”, “custom_emoji”' + - + name: is_animated + types: + - bool + optional: false + description: 'True, if the sticker set contains animated stickers' + - + name: is_video + types: + - bool + optional: false + description: 'True, if the sticker set contains video stickers' + - + name: stickers + types: + - Array + optional: false + description: 'List of all set stickers' + - + name: thumb + types: + - PhotoSize + optional: true + description: 'Optional. Sticker set thumbnail in the .WEBP, .TGS, or .WEBM format' + extended_by: { } + - + name: MaskPosition + description: 'This object describes the position on faces where a mask should be placed by default.' + fields: + - + name: point + types: + - string + optional: false + description: 'The part of the face relative to which the mask should be placed. One of “forehead”, “eyes”, “mouth”, or “chin”.' + - + name: x_shift + types: + - float + optional: false + description: 'Shift by X-axis measured in widths of the mask scaled to the face size, from left to right. For example, choosing -1.0 will place mask just to the left of the default mask position.' + - + name: y_shift + types: + - float + optional: false + description: 'Shift by Y-axis measured in heights of the mask scaled to the face size, from top to bottom. For example, 1.0 will place the mask just below the default mask position.' + - + name: scale + types: + - float + optional: false + description: 'Mask scaling coefficient. For example, 2.0 means double size.' + extended_by: { } + - + name: InlineQuery + description: 'This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.' + fields: + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this query' + - + name: from + types: + - User + optional: false + description: Sender + - + name: query + types: + - string + optional: false + description: 'Text of the query (up to 256 characters)' + - + name: offset + types: + - string + optional: false + description: 'Offset of the results to be returned, can be controlled by the bot' + - + name: chat_type + types: + - string + optional: true + description: 'Optional. Type of the chat from which the inline query was sent. Can be either “sender” for a private chat with the inline query sender, “private”, “group”, “supergroup”, or “channel”. The chat type should be always known for requests sent from official clients and most third-party clients, unless the request was sent from a secret chat' + - + name: location + types: + - Location + optional: true + description: 'Optional. Sender location, only for bots that request user location' + extended_by: { } + - + name: InlineQueryResult + description: 'This object represents one result of an inline query. Telegram clients currently support results of the following 20 types:' + fields: { } + extended_by: + - InlineQueryResultCachedAudio + - InlineQueryResultCachedDocument + - InlineQueryResultCachedGif + - InlineQueryResultCachedMpeg4Gif + - InlineQueryResultCachedPhoto + - InlineQueryResultCachedSticker + - InlineQueryResultCachedVideo + - InlineQueryResultCachedVoice + - InlineQueryResultArticle + - InlineQueryResultAudio + - InlineQueryResultContact + - InlineQueryResultGame + - InlineQueryResultDocument + - InlineQueryResultGif + - InlineQueryResultLocation + - InlineQueryResultMpeg4Gif + - InlineQueryResultPhoto + - InlineQueryResultVenue + - InlineQueryResultVideo + - InlineQueryResultVoice + - + name: InlineQueryResultArticle + description: 'Represents a link to an article or web page.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be article' + default: article + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 Bytes' + - + name: title + types: + - string + optional: false + description: 'Title of the result' + - + name: input_message_content + types: + - InputMessageContent + optional: false + description: 'Content of the message to be sent' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: url + types: + - string + optional: true + description: 'Optional. URL of the result' + - + name: hide_url + types: + - bool + optional: true + description: "Optional. Pass True if you don't want the URL to be shown in the message" + - + name: description + types: + - string + optional: true + description: 'Optional. Short description of the result' + - + name: thumb_url + types: + - string + optional: true + description: 'Optional. Url of the thumbnail for the result' + - + name: thumb_width + types: + - int + optional: true + description: 'Optional. Thumbnail width' + - + name: thumb_height + types: + - int + optional: true + description: 'Optional. Thumbnail height' + extended_by: { } + - + name: InlineQueryResultPhoto + description: 'Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be photo' + default: photo + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: photo_url + types: + - string + optional: false + description: 'A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB' + - + name: thumb_url + types: + - string + optional: false + description: 'URL of the thumbnail for the photo' + - + name: photo_width + types: + - int + optional: true + description: 'Optional. Width of the photo' + - + name: photo_height + types: + - int + optional: true + description: 'Optional. Height of the photo' + - + name: title + types: + - string + optional: true + description: 'Optional. Title for the result' + - + name: description + types: + - string + optional: true + description: 'Optional. Short description of the result' + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the photo caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the photo' + extended_by: { } + - + name: InlineQueryResultGif + description: 'Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be gif' + default: gif + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: gif_url + types: + - string + optional: false + description: 'A valid URL for the GIF file. File size must not exceed 1MB' + - + name: gif_width + types: + - int + optional: true + description: 'Optional. Width of the GIF' + - + name: gif_height + types: + - int + optional: true + description: 'Optional. Height of the GIF' + - + name: gif_duration + types: + - int + optional: true + description: 'Optional. Duration of the GIF in seconds' + - + name: thumb_url + types: + - string + optional: false + description: 'URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result' + - + name: thumb_mime_type + types: + - string + optional: true + description: 'Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”' + default: image/jpeg + - + name: title + types: + - string + optional: true + description: 'Optional. Title for the result' + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the GIF animation' + extended_by: { } + - + name: InlineQueryResultMpeg4Gif + description: 'Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be mpeg4_gif' + default: mpeg4_gif + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: mpeg4_url + types: + - string + optional: false + description: 'A valid URL for the MPEG4 file. File size must not exceed 1MB' + - + name: mpeg4_width + types: + - int + optional: true + description: 'Optional. Video width' + - + name: mpeg4_height + types: + - int + optional: true + description: 'Optional. Video height' + - + name: mpeg4_duration + types: + - int + optional: true + description: 'Optional. Video duration in seconds' + - + name: thumb_url + types: + - string + optional: false + description: 'URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result' + - + name: thumb_mime_type + types: + - string + optional: true + description: 'Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”' + default: image/jpeg + - + name: title + types: + - string + optional: true + description: 'Optional. Title for the result' + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the video animation' + extended_by: { } + - + name: InlineQueryResultVideo + description: 'Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be video' + default: video + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: video_url + types: + - string + optional: false + description: 'A valid URL for the embedded video player or video file' + - + name: mime_type + types: + - string + optional: false + description: 'MIME type of the content of the video URL, “text/html” or “video/mp4”' + - + name: thumb_url + types: + - string + optional: false + description: 'URL of the thumbnail (JPEG only) for the video' + - + name: title + types: + - string + optional: false + description: 'Title for the result' + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption of the video to be sent, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the video caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: video_width + types: + - int + optional: true + description: 'Optional. Video width' + - + name: video_height + types: + - int + optional: true + description: 'Optional. Video height' + - + name: video_duration + types: + - int + optional: true + description: 'Optional. Video duration in seconds' + - + name: description + types: + - string + optional: true + description: 'Optional. Short description of the result' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video).' + extended_by: { } + - + name: InlineQueryResultAudio + description: 'Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be audio' + default: audio + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: audio_url + types: + - string + optional: false + description: 'A valid URL for the audio file' + - + name: title + types: + - string + optional: false + description: Title + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the audio caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: performer + types: + - string + optional: true + description: 'Optional. Performer' + - + name: audio_duration + types: + - int + optional: true + description: 'Optional. Audio duration in seconds' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the audio' + extended_by: { } + - + name: InlineQueryResultVoice + description: 'Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be voice' + default: voice + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: voice_url + types: + - string + optional: false + description: 'A valid URL for the voice recording' + - + name: title + types: + - string + optional: false + description: 'Recording title' + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the voice message caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: voice_duration + types: + - int + optional: true + description: 'Optional. Recording duration in seconds' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the voice recording' + extended_by: { } + - + name: InlineQueryResultDocument + description: 'Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be document' + default: document + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: title + types: + - string + optional: false + description: 'Title for the result' + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption of the document to be sent, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the document caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: document_url + types: + - string + optional: false + description: 'A valid URL for the file' + - + name: mime_type + types: + - string + optional: false + description: 'MIME type of the content of the file, either “application/pdf” or “application/zip”' + - + name: description + types: + - string + optional: true + description: 'Optional. Short description of the result' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the file' + - + name: thumb_url + types: + - string + optional: true + description: 'Optional. URL of the thumbnail (JPEG only) for the file' + - + name: thumb_width + types: + - int + optional: true + description: 'Optional. Thumbnail width' + - + name: thumb_height + types: + - int + optional: true + description: 'Optional. Thumbnail height' + extended_by: { } + - + name: InlineQueryResultLocation + description: 'Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be location' + default: location + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 Bytes' + - + name: latitude + types: + - float + optional: false + description: 'Location latitude in degrees' + - + name: longitude + types: + - float + optional: false + description: 'Location longitude in degrees' + - + name: title + types: + - string + optional: false + description: 'Location title' + - + name: horizontal_accuracy + types: + - float + optional: true + description: 'Optional. The radius of uncertainty for the location, measured in meters; 0-1500' + - + name: live_period + types: + - int + optional: true + description: 'Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.' + - + name: heading + types: + - int + optional: true + description: 'Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.' + - + name: proximity_alert_radius + types: + - int + optional: true + description: 'Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the location' + - + name: thumb_url + types: + - string + optional: true + description: 'Optional. Url of the thumbnail for the result' + - + name: thumb_width + types: + - int + optional: true + description: 'Optional. Thumbnail width' + - + name: thumb_height + types: + - int + optional: true + description: 'Optional. Thumbnail height' + extended_by: { } + - + name: InlineQueryResultVenue + description: 'Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be venue' + default: venue + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 Bytes' + - + name: latitude + types: + - float + optional: false + description: 'Latitude of the venue location in degrees' + - + name: longitude + types: + - float + optional: false + description: 'Longitude of the venue location in degrees' + - + name: title + types: + - string + optional: false + description: 'Title of the venue' + - + name: address + types: + - string + optional: false + description: 'Address of the venue' + - + name: foursquare_id + types: + - string + optional: true + description: 'Optional. Foursquare identifier of the venue if known' + - + name: foursquare_type + types: + - string + optional: true + description: 'Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)' + - + name: google_place_id + types: + - string + optional: true + description: 'Optional. Google Places identifier of the venue' + - + name: google_place_type + types: + - string + optional: true + description: 'Optional. Google Places type of the venue. (See supported types.)' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the venue' + - + name: thumb_url + types: + - string + optional: true + description: 'Optional. Url of the thumbnail for the result' + - + name: thumb_width + types: + - int + optional: true + description: 'Optional. Thumbnail width' + - + name: thumb_height + types: + - int + optional: true + description: 'Optional. Thumbnail height' + extended_by: { } + - + name: InlineQueryResultContact + description: 'Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be contact' + default: contact + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 Bytes' + - + name: phone_number + types: + - string + optional: false + description: "Contact's phone number" + - + name: first_name + types: + - string + optional: false + description: "Contact's first name" + - + name: last_name + types: + - string + optional: true + description: "Optional. Contact's last name" + - + name: vcard + types: + - string + optional: true + description: 'Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the contact' + - + name: thumb_url + types: + - string + optional: true + description: 'Optional. Url of the thumbnail for the result' + - + name: thumb_width + types: + - int + optional: true + description: 'Optional. Thumbnail width' + - + name: thumb_height + types: + - int + optional: true + description: 'Optional. Thumbnail height' + extended_by: { } + - + name: InlineQueryResultGame + description: 'Represents a Game.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be game' + default: game + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: game_short_name + types: + - string + optional: false + description: 'Short name of the game' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + extended_by: { } + - + name: InlineQueryResultCachedPhoto + description: 'Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be photo' + default: photo + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: photo_file_id + types: + - string + optional: false + description: 'A valid file identifier of the photo' + - + name: title + types: + - string + optional: true + description: 'Optional. Title for the result' + - + name: description + types: + - string + optional: true + description: 'Optional. Short description of the result' + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the photo caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the photo' + extended_by: { } + - + name: InlineQueryResultCachedGif + description: 'Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be gif' + default: gif + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: gif_file_id + types: + - string + optional: false + description: 'A valid file identifier for the GIF file' + - + name: title + types: + - string + optional: true + description: 'Optional. Title for the result' + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the GIF animation' + extended_by: { } + - + name: InlineQueryResultCachedMpeg4Gif + description: 'Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be mpeg4_gif' + default: mpeg4_gif + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: mpeg4_file_id + types: + - string + optional: false + description: 'A valid file identifier for the MPEG4 file' + - + name: title + types: + - string + optional: true + description: 'Optional. Title for the result' + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the video animation' + extended_by: { } + - + name: InlineQueryResultCachedSticker + description: 'Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be sticker' + default: sticker + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: sticker_file_id + types: + - string + optional: false + description: 'A valid file identifier of the sticker' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the sticker' + extended_by: { } + - + name: InlineQueryResultCachedDocument + description: 'Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be document' + default: document + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: title + types: + - string + optional: false + description: 'Title for the result' + - + name: document_file_id + types: + - string + optional: false + description: 'A valid file identifier for the file' + - + name: description + types: + - string + optional: true + description: 'Optional. Short description of the result' + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption of the document to be sent, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the document caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the file' + extended_by: { } + - + name: InlineQueryResultCachedVideo + description: 'Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be video' + default: video + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: video_file_id + types: + - string + optional: false + description: 'A valid file identifier for the video file' + - + name: title + types: + - string + optional: false + description: 'Title for the result' + - + name: description + types: + - string + optional: true + description: 'Optional. Short description of the result' + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption of the video to be sent, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the video caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the video' + extended_by: { } + - + name: InlineQueryResultCachedVoice + description: 'Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be voice' + default: voice + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: voice_file_id + types: + - string + optional: false + description: 'A valid file identifier for the voice message' + - + name: title + types: + - string + optional: false + description: 'Voice message title' + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the voice message caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the voice message' + extended_by: { } + - + name: InlineQueryResultCachedAudio + description: 'Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.' + fields: + - + name: type + types: + - string + optional: false + description: 'Type of the result, must be audio' + default: audio + - + name: id + types: + - string + optional: false + description: 'Unique identifier for this result, 1-64 bytes' + - + name: audio_file_id + types: + - string + optional: false + description: 'A valid file identifier for the audio file' + - + name: caption + types: + - string + optional: true + description: 'Optional. Caption, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the audio caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'Optional. Inline keyboard attached to the message' + - + name: input_message_content + types: + - InputMessageContent + optional: true + description: 'Optional. Content of the message to be sent instead of the audio' + extended_by: { } + - + name: InputMessageContent + description: 'This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types:' + fields: { } + extended_by: + - InputTextMessageContent + - InputLocationMessageContent + - InputVenueMessageContent + - InputContactMessageContent + - InputInvoiceMessageContent + - + name: InputTextMessageContent + description: 'Represents the content of a text message to be sent as the result of an inline query.' + fields: + - + name: message_text + types: + - string + optional: false + description: 'Text of the message to be sent, 1-4096 characters' + - + name: parse_mode + types: + - string + optional: true + description: 'Optional. Mode for parsing entities in the message text. See formatting options for more details.' + - + name: entities + types: + - Array + optional: true + description: 'Optional. List of special entities that appear in message text, which can be specified instead of parse_mode' + - + name: disable_web_page_preview + types: + - bool + optional: true + description: 'Optional. Disables link previews for links in the sent message' + extended_by: { } + - + name: InputLocationMessageContent + description: 'Represents the content of a location message to be sent as the result of an inline query.' + fields: + - + name: latitude + types: + - float + optional: false + description: 'Latitude of the location in degrees' + - + name: longitude + types: + - float + optional: false + description: 'Longitude of the location in degrees' + - + name: horizontal_accuracy + types: + - float + optional: true + description: 'Optional. The radius of uncertainty for the location, measured in meters; 0-1500' + - + name: live_period + types: + - int + optional: true + description: 'Optional. Period in seconds for which the location can be updated, should be between 60 and 86400.' + - + name: heading + types: + - int + optional: true + description: 'Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.' + - + name: proximity_alert_radius + types: + - int + optional: true + description: 'Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.' + extended_by: { } + - + name: InputVenueMessageContent + description: 'Represents the content of a venue message to be sent as the result of an inline query.' + fields: + - + name: latitude + types: + - float + optional: false + description: 'Latitude of the venue in degrees' + - + name: longitude + types: + - float + optional: false + description: 'Longitude of the venue in degrees' + - + name: title + types: + - string + optional: false + description: 'Name of the venue' + - + name: address + types: + - string + optional: false + description: 'Address of the venue' + - + name: foursquare_id + types: + - string + optional: true + description: 'Optional. Foursquare identifier of the venue, if known' + - + name: foursquare_type + types: + - string + optional: true + description: 'Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)' + - + name: google_place_id + types: + - string + optional: true + description: 'Optional. Google Places identifier of the venue' + - + name: google_place_type + types: + - string + optional: true + description: 'Optional. Google Places type of the venue. (See supported types.)' + extended_by: { } + - + name: InputContactMessageContent + description: 'Represents the content of a contact message to be sent as the result of an inline query.' + fields: + - + name: phone_number + types: + - string + optional: false + description: "Contact's phone number" + - + name: first_name + types: + - string + optional: false + description: "Contact's first name" + - + name: last_name + types: + - string + optional: true + description: "Optional. Contact's last name" + - + name: vcard + types: + - string + optional: true + description: 'Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes' + extended_by: { } + - + name: InputInvoiceMessageContent + description: 'Represents the content of an invoice message to be sent as the result of an inline query.' + fields: + - + name: title + types: + - string + optional: false + description: 'Product name, 1-32 characters' + - + name: description + types: + - string + optional: false + description: 'Product description, 1-255 characters' + - + name: payload + types: + - string + optional: false + description: 'Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.' + - + name: provider_token + types: + - string + optional: false + description: 'Payment provider token, obtained via @BotFather' + - + name: currency + types: + - string + optional: false + description: 'Three-letter ISO 4217 currency code, see more on currencies' + - + name: prices + types: + - Array + optional: false + description: 'Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)' + - + name: max_tip_amount + types: + - int + optional: true + description: 'Optional. 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' + default: 0 + - + name: suggested_tip_amounts + types: + - Array + optional: true + description: 'Optional. A JSON-serialized array of suggested amounts of tip 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.' + - + name: provider_data + types: + - string + optional: true + description: 'Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment provider. A detailed description of the required fields should be provided by the payment provider.' + - + name: photo_url + types: + - string + optional: true + description: 'Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service.' + - + name: photo_size + types: + - int + optional: true + description: 'Optional. Photo size in bytes' + - + name: photo_width + types: + - int + optional: true + description: 'Optional. Photo width' + - + name: photo_height + types: + - int + optional: true + description: 'Optional. Photo height' + - + name: need_name + types: + - bool + optional: true + description: "Optional. Pass True if you require the user's full name to complete the order" + - + name: need_phone_number + types: + - bool + optional: true + description: "Optional. Pass True if you require the user's phone number to complete the order" + - + name: need_email + types: + - bool + optional: true + description: "Optional. Pass True if you require the user's email address to complete the order" + - + name: need_shipping_address + types: + - bool + optional: true + description: "Optional. Pass True if you require the user's shipping address to complete the order" + - + name: send_phone_number_to_provider + types: + - bool + optional: true + description: "Optional. Pass True if the user's phone number should be sent to provider" + - + name: send_email_to_provider + types: + - bool + optional: true + description: "Optional. Pass True if the user's email address should be sent to provider" + - + name: is_flexible + types: + - bool + optional: true + description: 'Optional. Pass True if the final price depends on the shipping method' + extended_by: { } + - + name: ChosenInlineResult + description: 'Represents a result of an inline query that was chosen by the user and sent to their chat partner.' + fields: + - + name: result_id + types: + - string + optional: false + description: 'The unique identifier for the result that was chosen' + - + name: from + types: + - User + optional: false + description: 'The user that chose the result' + - + name: location + types: + - Location + optional: true + description: 'Optional. Sender location, only for bots that require user location' + - + name: inline_message_id + types: + - string + optional: true + description: 'Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.' + - + name: query + types: + - string + optional: false + description: 'The query that was used to obtain the result' + extended_by: { } + - + name: SentWebAppMessage + description: 'Describes an inline message sent by a Web App on behalf of a user.' + fields: + - + name: inline_message_id + types: + - string + optional: true + description: 'Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message.' + extended_by: { } + - + name: LabeledPrice + description: 'This object represents a portion of the price for goods or services.' + fields: + - + name: label + types: + - string + optional: false + description: 'Portion label' + - + name: amount + types: + - int + optional: false + description: 'Price of the product in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).' + extended_by: { } + - + name: Invoice + description: 'This object contains basic information about an invoice.' + fields: + - + name: title + types: + - string + optional: false + description: 'Product name' + - + name: description + types: + - string + optional: false + description: 'Product description' + - + name: start_parameter + types: + - string + optional: false + description: 'Unique bot deep-linking parameter that can be used to generate this invoice' + - + name: currency + types: + - string + optional: false + description: 'Three-letter ISO 4217 currency code' + - + name: total_amount + types: + - int + optional: false + description: 'Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).' + extended_by: { } + - + name: ShippingAddress + description: 'This object represents a shipping address.' + fields: + - + name: country_code + types: + - string + optional: false + description: 'Two-letter ISO 3166-1 alpha-2 country code' + - + name: state + types: + - string + optional: false + description: 'State, if applicable' + - + name: city + types: + - string + optional: false + description: City + - + name: street_line1 + types: + - string + optional: false + description: 'First line for the address' + - + name: street_line2 + types: + - string + optional: false + description: 'Second line for the address' + - + name: post_code + types: + - string + optional: false + description: 'Address post code' + extended_by: { } + - + name: OrderInfo + description: 'This object represents information about an order.' + fields: + - + name: name + types: + - string + optional: true + description: 'Optional. User name' + - + name: phone_number + types: + - string + optional: true + description: "Optional. User's phone number" + - + name: email + types: + - string + optional: true + description: 'Optional. User email' + - + name: shipping_address + types: + - ShippingAddress + optional: true + description: 'Optional. User shipping address' + extended_by: { } + - + name: ShippingOption + description: 'This object represents one shipping option.' + fields: + - + name: id + types: + - string + optional: false + description: 'Shipping option identifier' + - + name: title + types: + - string + optional: false + description: 'Option title' + - + name: prices + types: + - Array + optional: false + description: 'List of price portions' + extended_by: { } + - + name: SuccessfulPayment + description: 'This object contains basic information about a successful payment.' + fields: + - + name: currency + types: + - string + optional: false + description: 'Three-letter ISO 4217 currency code' + - + name: total_amount + types: + - int + optional: false + description: 'Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).' + - + name: invoice_payload + types: + - string + optional: false + description: 'Bot specified invoice payload' + - + name: shipping_option_id + types: + - string + optional: true + description: 'Optional. Identifier of the shipping option chosen by the user' + - + name: order_info + types: + - OrderInfo + optional: true + description: 'Optional. Order information provided by the user' + - + name: telegram_payment_charge_id + types: + - string + optional: false + description: 'Telegram payment identifier' + - + name: provider_payment_charge_id + types: + - string + optional: false + description: 'Provider payment identifier' + extended_by: { } + - + name: ShippingQuery + description: 'This object contains information about an incoming shipping query.' + fields: + - + name: id + types: + - string + optional: false + description: 'Unique query identifier' + - + name: from + types: + - User + optional: false + description: 'User who sent the query' + - + name: invoice_payload + types: + - string + optional: false + description: 'Bot specified invoice payload' + - + name: shipping_address + types: + - ShippingAddress + optional: false + description: 'User specified shipping address' + extended_by: { } + - + name: PreCheckoutQuery + description: 'This object contains information about an incoming pre-checkout query.' + fields: + - + name: id + types: + - string + optional: false + description: 'Unique query identifier' + - + name: from + types: + - User + optional: false + description: 'User who sent the query' + - + name: currency + types: + - string + optional: false + description: 'Three-letter ISO 4217 currency code' + - + name: total_amount + types: + - int + optional: false + description: 'Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).' + - + name: invoice_payload + types: + - string + optional: false + description: 'Bot specified invoice payload' + - + name: shipping_option_id + types: + - string + optional: true + description: 'Optional. Identifier of the shipping option chosen by the user' + - + name: order_info + types: + - OrderInfo + optional: true + description: 'Optional. Order information provided by the user' + extended_by: { } + - + name: PassportData + description: 'Describes Telegram Passport data shared with the bot by the user.' + fields: + - + name: data + types: + - Array + optional: false + description: 'Array with information about documents and other Telegram Passport elements that was shared with the bot' + - + name: credentials + types: + - EncryptedCredentials + optional: false + description: 'Encrypted credentials required to decrypt the data' + extended_by: { } + - + name: PassportFile + description: "This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB." + fields: + - + name: file_id + types: + - string + optional: false + description: 'Identifier for this file, which can be used to download or reuse the file' + - + name: file_unique_id + types: + - string + optional: false + 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." + - + name: file_size + types: + - int + optional: false + description: 'File size in bytes' + - + name: file_date + types: + - int + optional: false + description: 'Unix time when the file was uploaded' + extended_by: { } + - + name: EncryptedPassportElement + description: 'Describes documents or other Telegram Passport elements shared with the bot by the user.' + fields: + - + name: type + types: + - string + optional: false + description: 'Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”, “phone_number”, “email”.' + - + name: data + types: + - string + optional: true + description: 'Optional. Base64-encoded encrypted Telegram Passport element data provided by the user, available for “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials.' + - + name: phone_number + types: + - string + optional: true + description: "Optional. User's verified phone number, available only for “phone_number” type" + - + name: email + types: + - string + optional: true + description: "Optional. User's verified email address, available only for “email” type" + - + name: files + types: + - Array + optional: true + description: 'Optional. Array of encrypted files with documents provided by the user, available for “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials.' + - + name: front_side + types: + - PassportFile + optional: true + description: 'Optional. Encrypted file with the front side of the document, provided by the user. Available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.' + - + name: reverse_side + types: + - PassportFile + optional: true + description: 'Optional. Encrypted file with the reverse side of the document, provided by the user. Available for “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying EncryptedCredentials.' + - + name: selfie + types: + - PassportFile + optional: true + description: 'Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available for “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be decrypted and verified using the accompanying EncryptedCredentials.' + - + name: translation + types: + - Array + optional: true + description: 'Optional. Array of encrypted files with translated versions of documents provided by the user. Available if requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” types. Files can be decrypted and verified using the accompanying EncryptedCredentials.' + - + name: hash + types: + - string + optional: false + description: 'Base64-encoded element hash for using in PassportElementErrorUnspecified' + extended_by: { } + - + name: EncryptedCredentials + description: 'Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.' + fields: + - + name: data + types: + - string + optional: false + description: "Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for EncryptedPassportElement decryption and authentication" + - + name: hash + types: + - string + optional: false + description: 'Base64-encoded data hash for data authentication' + - + name: secret + types: + - string + optional: false + description: "Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption" + extended_by: { } + - + name: PassportElementError + description: 'This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of:' + fields: { } + extended_by: + - PassportElementErrorDataField + - PassportElementErrorFrontSide + - PassportElementErrorReverseSide + - PassportElementErrorSelfie + - PassportElementErrorFile + - PassportElementErrorFiles + - PassportElementErrorTranslationFile + - PassportElementErrorTranslationFiles + - PassportElementErrorUnspecified + - + name: PassportElementErrorDataField + description: "Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes." + fields: + - + name: source + types: + - string + optional: false + description: 'Error source, must be data' + default: data + - + name: type + types: + - string + optional: false + description: "The section of the user's Telegram Passport which has the error, one of “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport”, “address”" + - + name: field_name + types: + - string + optional: false + description: 'Name of the data field which has the error' + - + name: data_hash + types: + - string + optional: false + description: 'Base64-encoded data hash' + - + name: message + types: + - string + optional: false + description: 'Error message' + extended_by: { } + - + name: PassportElementErrorFrontSide + description: 'Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.' + fields: + - + name: source + types: + - string + optional: false + description: 'Error source, must be front_side' + default: front_side + - + name: type + types: + - string + optional: false + description: "The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”" + - + name: file_hash + types: + - string + optional: false + description: 'Base64-encoded hash of the file with the front side of the document' + - + name: message + types: + - string + optional: false + description: 'Error message' + extended_by: { } + - + name: PassportElementErrorReverseSide + description: 'Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes.' + fields: + - + name: source + types: + - string + optional: false + description: 'Error source, must be reverse_side' + default: reverse_side + - + name: type + types: + - string + optional: false + description: "The section of the user's Telegram Passport which has the issue, one of “driver_license”, “identity_card”" + - + name: file_hash + types: + - string + optional: false + description: 'Base64-encoded hash of the file with the reverse side of the document' + - + name: message + types: + - string + optional: false + description: 'Error message' + extended_by: { } + - + name: PassportElementErrorSelfie + description: 'Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.' + fields: + - + name: source + types: + - string + optional: false + description: 'Error source, must be selfie' + default: selfie + - + name: type + types: + - string + optional: false + description: "The section of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”" + - + name: file_hash + types: + - string + optional: false + description: 'Base64-encoded hash of the file with the selfie' + - + name: message + types: + - string + optional: false + description: 'Error message' + extended_by: { } + - + name: PassportElementErrorFile + description: 'Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.' + fields: + - + name: source + types: + - string + optional: false + description: 'Error source, must be file' + default: file + - + name: type + types: + - string + optional: false + description: "The section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”" + - + name: file_hash + types: + - string + optional: false + description: 'Base64-encoded file hash' + - + name: message + types: + - string + optional: false + description: 'Error message' + extended_by: { } + - + name: PassportElementErrorFiles + description: 'Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes.' + fields: + - + name: source + types: + - string + optional: false + description: 'Error source, must be files' + default: files + - + name: type + types: + - string + optional: false + description: "The section of the user's Telegram Passport which has the issue, one of “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”" + - + name: file_hashes + types: + - Array + optional: false + description: 'List of base64-encoded file hashes' + - + name: message + types: + - string + optional: false + description: 'Error message' + extended_by: { } + - + name: PassportElementErrorTranslationFile + description: 'Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.' + fields: + - + name: source + types: + - string + optional: false + description: 'Error source, must be translation_file' + default: translation_file + - + name: type + types: + - string + optional: false + description: "Type of element of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”" + - + name: file_hash + types: + - string + optional: false + description: 'Base64-encoded file hash' + - + name: message + types: + - string + optional: false + description: 'Error message' + extended_by: { } + - + name: PassportElementErrorTranslationFiles + description: 'Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change.' + fields: + - + name: source + types: + - string + optional: false + description: 'Error source, must be translation_files' + default: translation_files + - + name: type + types: + - string + optional: false + description: "Type of element of the user's Telegram Passport which has the issue, one of “passport”, “driver_license”, “identity_card”, “internal_passport”, “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration”, “temporary_registration”" + - + name: file_hashes + types: + - Array + optional: false + description: 'List of base64-encoded file hashes' + - + name: message + types: + - string + optional: false + description: 'Error message' + extended_by: { } + - + name: PassportElementErrorUnspecified + description: 'Represents an issue in an unspecified place. The error is considered resolved when new data is added.' + fields: + - + name: source + types: + - string + optional: false + description: 'Error source, must be unspecified' + default: unspecified + - + name: type + types: + - string + optional: false + description: "Type of element of the user's Telegram Passport which has the issue" + - + name: element_hash + types: + - string + optional: false + description: 'Base64-encoded element hash' + - + name: message + types: + - string + optional: false + description: 'Error message' + extended_by: { } + - + name: Game + description: 'This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.' + fields: + - + name: title + types: + - string + optional: false + description: 'Title of the game' + - + name: description + types: + - string + optional: false + description: 'Description of the game' + - + name: photo + types: + - Array + optional: false + description: 'Photo that will be displayed in the game message in chats.' + - + name: text + types: + - string + optional: true + description: 'Optional. Brief description of the game or high scores included in the game message. Can be automatically edited to include current high scores for the game when the bot calls setGameScore, or manually edited using editMessageText. 0-4096 characters.' + - + name: text_entities + types: + - Array + optional: true + description: 'Optional. Special entities that appear in text, such as usernames, URLs, bot commands, etc.' + - + name: animation + types: + - Animation + optional: true + description: 'Optional. Animation that will be displayed in the game message in chats. Upload via BotFather' + extended_by: { } + - + name: CallbackGame + description: 'A placeholder, currently holds no information. Use BotFather to set up your game.' + fields: { } + extended_by: { } + - + name: GameHighScore + description: 'This object represents one row of the high scores table for a game.' + fields: + - + name: position + types: + - int + optional: false + description: 'Position in high score table for the game' + - + name: user + types: + - User + optional: false + description: User + - + name: score + types: + - int + optional: false + description: Score + extended_by: { } +methods: + - + name: getUpdates + description: 'Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects.' + fields: + - + name: offset + types: + - int + optional: true + 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 forgotten.' + - + name: limit + types: + - int + optional: true + description: 'Limits the number of updates to be retrieved. Values between 1-100 are accepted. Defaults to 100.' + default: 100 + - + name: timeout + types: + - int + optional: true + 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.' + default: 0 + - + name: allowed_updates + types: + - Array + optional: true + 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 (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 getUpdates, so unwanted updates may be received for a short period of time." + return_types: + - Array + - + name: 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, we will give up after a reasonable amount of attempts. Returns True on success.\nIf 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 “X-Telegram-Bot-Api-Secret-Token” with the secret token as content." + fields: + - + name: url + types: + - string + optional: false + description: 'HTTPS URL to send updates to. Use an empty string to remove webhook integration' + - + name: certificate + types: + - InputFile + optional: true + description: 'Upload your public key certificate so that the root certificate in use can be checked. See our self-signed guide for details.' + - + name: ip_address + types: + - string + optional: true + description: 'The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS' + - + name: max_connections + types: + - int + optional: true + 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." + default: 40 + - + name: allowed_updates + types: + - Array + optional: true + 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 (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." + - + name: drop_pending_updates + types: + - bool + optional: true + description: 'Pass True to drop all pending updates' + - + name: secret_token + types: + - string + optional: true + description: 'A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” 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.' + return_types: + - bool + - + name: deleteWebhook + description: 'Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success.' + fields: + - + name: drop_pending_updates + types: + - bool + optional: true + description: 'Pass True to drop all pending updates' + return_types: + - bool + - + name: 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.' + fields: { } + return_types: + - WebhookInfo + - + name: 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." + fields: { } + return_types: + - User + - + name: 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.' + fields: { } + return_types: + - bool + - + name: 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." + fields: { } + return_types: + - bool + - + name: sendMessage + description: 'Use this method to send text messages. On success, the sent Message is returned.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: text + types: + - string + optional: false + description: 'Text of the message to be sent, 1-4096 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Mode for parsing entities in the message text. See formatting options for more details.' + - + name: entities + types: + - Array + optional: true + description: 'A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode' + - + name: disable_web_page_preview + types: + - bool + optional: true + description: 'Disables link previews for links in this message' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + - ReplyKeyboardMarkup + - ReplyKeyboardRemove + - ForceReply + optional: true + description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.' + return_types: + - Message + - + name: forwardMessage + description: "Use this method to forward messages of any kind. Service messages can't be forwarded. On success, the sent Message is returned." + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: from_chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the forwarded message from forwarding and saving' + - + name: message_id + types: + - int + optional: false + description: 'Message identifier in the chat specified in from_chat_id' + return_types: + - Message + - + name: copyMessage + description: "Use this method to copy messages of any kind. Service 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." + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: from_chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)' + - + name: message_id + types: + - int + optional: false + description: 'Message identifier in the chat specified in from_chat_id' + - + name: caption + types: + - string + optional: true + description: 'New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept' + - + name: parse_mode + types: + - string + optional: true + description: 'Mode for parsing entities in the new caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'A JSON-serialized list of special entities that appear in the new caption, which can be specified instead of parse_mode' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + - ReplyKeyboardMarkup + - ReplyKeyboardRemove + - ForceReply + optional: true + description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.' + return_types: + - MessageId + - + name: sendPhoto + description: 'Use this method to send photos. On success, the sent Message is returned.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: photo + types: + - InputFile + - string + optional: false + 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 »" + - + name: caption + types: + - string + optional: true + description: 'Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Mode for parsing entities in the photo caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + - ReplyKeyboardMarkup + - ReplyKeyboardRemove + - ForceReply + optional: true + description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.' + return_types: + - Message + - + name: 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.\nFor sending voice messages, use the sendVoice method instead." + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: audio + types: + - InputFile + - string + optional: false + 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 »' + - + name: caption + types: + - string + optional: true + description: 'Audio caption, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Mode for parsing entities in the audio caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: duration + types: + - int + optional: true + description: 'Duration of the audio in seconds' + - + name: performer + types: + - string + optional: true + description: Performer + - + name: title + types: + - string + optional: true + description: 'Track name' + - + name: thumb + types: + - InputFile + - string + optional: true + 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + - ReplyKeyboardMarkup + - ReplyKeyboardRemove + - ForceReply + optional: true + description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.' + return_types: + - Message + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: document + types: + - InputFile + - string + optional: false + 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 »' + - + name: thumb + types: + - InputFile + - string + optional: true + 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + - + name: caption + types: + - string + optional: true + description: 'Document caption (may also be used when resending documents by file_id), 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Mode for parsing entities in the document caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: disable_content_type_detection + types: + - bool + optional: true + description: 'Disables automatic server-side content type detection for files uploaded using multipart/form-data' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + - ReplyKeyboardMarkup + - ReplyKeyboardRemove + - ForceReply + optional: true + description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.' + return_types: + - Message + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: video + types: + - InputFile + - string + optional: false + 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 »' + - + name: duration + types: + - int + optional: true + description: 'Duration of sent video in seconds' + - + name: width + types: + - int + optional: true + description: 'Video width' + - + name: height + types: + - int + optional: true + description: 'Video height' + - + name: thumb + types: + - InputFile + - string + optional: true + 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + - + name: caption + types: + - string + optional: true + description: 'Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Mode for parsing entities in the video caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: supports_streaming + types: + - bool + optional: true + description: 'Pass True if the uploaded video is suitable for streaming' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + - ReplyKeyboardMarkup + - ReplyKeyboardRemove + - ForceReply + optional: true + description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.' + return_types: + - Message + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: animation + types: + - InputFile + - string + optional: false + 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 »' + - + name: duration + types: + - int + optional: true + description: 'Duration of sent animation in seconds' + - + name: width + types: + - int + optional: true + description: 'Animation width' + - + name: height + types: + - int + optional: true + description: 'Animation height' + - + name: thumb + types: + - InputFile + - string + optional: true + 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + - + name: caption + types: + - string + optional: true + description: 'Animation caption (may also be used when resending animation by file_id), 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Mode for parsing entities in the animation caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + - ReplyKeyboardMarkup + - ReplyKeyboardRemove + - ForceReply + optional: true + description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.' + return_types: + - Message + - + name: 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 (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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: voice + types: + - InputFile + - string + optional: false + 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 »' + - + name: caption + types: + - string + optional: true + description: 'Voice message caption, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Mode for parsing entities in the voice message caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: duration + types: + - int + optional: true + description: 'Duration of the voice message in seconds' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + - ReplyKeyboardMarkup + - ReplyKeyboardRemove + - ForceReply + optional: true + description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.' + return_types: + - Message + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: video_note + types: + - InputFile + - string + optional: false + 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 ». Sending video notes by a URL is currently unsupported' + - + name: duration + types: + - int + optional: true + description: 'Duration of sent video in seconds' + - + name: length + types: + - int + optional: true + description: 'Video width and height, i.e. diameter of the video message' + - + name: thumb + types: + - InputFile + - string + optional: true + 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »" + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + - ReplyKeyboardMarkup + - ReplyKeyboardRemove + - ForceReply + optional: true + description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.' + return_types: + - Message + - + name: 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 Messages that were sent is returned.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: media + types: + - Array + optional: false + description: 'A JSON-serialized array describing messages to be sent, must include 2-10 items' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends messages silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent messages from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the messages are a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + return_types: + - Array + - + name: sendLocation + description: 'Use this method to send point on the map. On success, the sent Message is returned.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: latitude + types: + - float + optional: false + description: 'Latitude of the location' + - + name: longitude + types: + - float + optional: false + description: 'Longitude of the location' + - + name: horizontal_accuracy + types: + - float + optional: true + description: 'The radius of uncertainty for the location, measured in meters; 0-1500' + - + name: live_period + types: + - int + optional: true + description: 'Period in seconds for which the location will be updated (see Live Locations, should be between 60 and 86400.' + - + name: heading + types: + - int + optional: true + description: 'For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.' + - + name: proximity_alert_radius + types: + - int + optional: true + 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.' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + - ReplyKeyboardMarkup + - ReplyKeyboardRemove + - ForceReply + optional: true + description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.' + return_types: + - Message + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: true + 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)' + - + name: message_id + types: + - int + optional: true + description: 'Required if inline_message_id is not specified. Identifier of the message to edit' + - + name: inline_message_id + types: + - string + optional: true + description: 'Required if chat_id and message_id are not specified. Identifier of the inline message' + - + name: latitude + types: + - float + optional: false + description: 'Latitude of new location' + - + name: longitude + types: + - float + optional: false + description: 'Longitude of new location' + - + name: horizontal_accuracy + types: + - float + optional: true + description: 'The radius of uncertainty for the location, measured in meters; 0-1500' + - + name: heading + types: + - int + optional: true + description: 'Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.' + - + name: proximity_alert_radius + types: + - int + optional: true + description: 'The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'A JSON-serialized object for a new inline keyboard.' + return_types: + - Message + - bool + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: true + 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)' + - + name: message_id + types: + - int + optional: true + description: 'Required if inline_message_id is not specified. Identifier of the message with live location to stop' + - + name: inline_message_id + types: + - string + optional: true + description: 'Required if chat_id and message_id are not specified. Identifier of the inline message' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'A JSON-serialized object for a new inline keyboard.' + return_types: + - Message + - bool + - + name: sendVenue + description: 'Use this method to send information about a venue. On success, the sent Message is returned.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: latitude + types: + - float + optional: false + description: 'Latitude of the venue' + - + name: longitude + types: + - float + optional: false + description: 'Longitude of the venue' + - + name: title + types: + - string + optional: false + description: 'Name of the venue' + - + name: address + types: + - string + optional: false + description: 'Address of the venue' + - + name: foursquare_id + types: + - string + optional: true + description: 'Foursquare identifier of the venue' + - + name: foursquare_type + types: + - string + optional: true + description: 'Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)' + - + name: google_place_id + types: + - string + optional: true + description: 'Google Places identifier of the venue' + - + name: google_place_type + types: + - string + optional: true + description: 'Google Places type of the venue. (See supported types.)' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + - ReplyKeyboardMarkup + - ReplyKeyboardRemove + - ForceReply + optional: true + description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.' + return_types: + - Message + - + name: sendContact + description: 'Use this method to send phone contacts. On success, the sent Message is returned.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: phone_number + types: + - string + optional: false + description: "Contact's phone number" + - + name: first_name + types: + - string + optional: false + description: "Contact's first name" + - + name: last_name + types: + - string + optional: true + description: "Contact's last name" + - + name: vcard + types: + - string + optional: true + description: 'Additional data about the contact in the form of a vCard, 0-2048 bytes' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + - ReplyKeyboardMarkup + - ReplyKeyboardRemove + - ForceReply + optional: true + description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove keyboard or to force a reply from the user.' + return_types: + - Message + - + name: sendPoll + description: 'Use this method to send a native poll. On success, the sent Message is returned.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: question + types: + - string + optional: false + description: 'Poll question, 1-300 characters' + - + name: options + types: + - Array + optional: false + description: 'A JSON-serialized list of answer options, 2-10 strings 1-100 characters each' + - + name: is_anonymous + types: + - bool + optional: true + description: 'True, if the poll needs to be anonymous, defaults to True' + default: true + - + name: type + types: + - string + optional: true + description: 'Poll type, “quiz” or “regular”, defaults to “regular”' + default: regular + - + name: allows_multiple_answers + types: + - bool + optional: true + description: 'True, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False' + default: false + - + name: correct_option_id + types: + - int + optional: true + description: '0-based identifier of the correct answer option, required for polls in quiz mode' + - + name: explanation + types: + - string + optional: true + 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' + - + name: explanation_parse_mode + types: + - string + optional: true + description: 'Mode for parsing entities in the explanation. See formatting options for more details.' + - + name: explanation_entities + types: + - Array + optional: true + description: 'A JSON-serialized list of special entities that appear in the poll explanation, which can be specified instead of parse_mode' + - + name: open_period + types: + - int + optional: true + description: "Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date." + - + name: close_date + types: + - int + optional: true + 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." + - + name: is_closed + types: + - bool + optional: true + description: 'Pass True if the poll needs to be immediately closed. This can be useful for poll preview.' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + - ReplyKeyboardMarkup + - ReplyKeyboardRemove + - ForceReply + optional: true + description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.' + return_types: + - Message + - + name: sendDice + description: 'Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: emoji + types: + - string + optional: true + description: '____simple_html_dom__voku__html_wrapper____>Emoji on which the dice throw animation is based. Currently, must be one of “🎲”, “🎯”, “🏀”, “⚽”, “🎳”, or “🎰”. Dice can have values 1-6 for “🎲”, “🎯” and “🎳”, values 1-5 for “🏀” and “⚽”, and values 1-64 for “🎰”. Defaults to “🎲”' + default: 🎲 + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + - ReplyKeyboardMarkup + - ReplyKeyboardRemove + - ForceReply + optional: true + description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.' + return_types: + - Message + - + name: 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.\nWe only recommend using this method when a response from the bot will take a noticeable amount of time to arrive." + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: action + types: + - string + optional: false + 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.' + return_types: + - bool + - + name: getUserProfilePhotos + description: 'Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.' + fields: + - + name: user_id + types: + - int + optional: false + description: 'Unique identifier of the target user' + - + name: offset + types: + - int + optional: true + description: 'Sequential number of the first photo to be returned. By default, all photos are returned.' + - + name: limit + types: + - int + optional: true + description: 'Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.' + default: 100 + return_types: + - UserProfilePhotos + - + name: 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.' + fields: + - + name: file_id + types: + - string + optional: false + description: 'File identifier to get information about' + return_types: + - File + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)' + - + name: user_id + types: + - int + optional: false + description: 'Unique identifier of the target user' + - + name: until_date + types: + - int + optional: true + 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.' + - + name: revoke_messages + types: + - bool + optional: true + 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.' + return_types: + - bool + - + name: 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." + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)' + - + name: user_id + types: + - int + optional: false + description: 'Unique identifier of the target user' + - + name: only_if_banned + types: + - bool + optional: true + description: 'Do nothing if the user is not banned' + return_types: + - bool + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)' + - + name: user_id + types: + - int + optional: false + description: 'Unique identifier of the target user' + - + name: permissions + types: + - ChatPermissions + optional: false + description: 'A JSON-serialized object for new user permissions' + - + name: until_date + types: + - int + optional: true + 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' + return_types: + - bool + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: user_id + types: + - int + optional: false + description: 'Unique identifier of the target user' + - + name: is_anonymous + types: + - bool + optional: true + description: "Pass True if the administrator's presence in the chat is hidden" + - + name: can_manage_chat + types: + - bool + optional: true + description: 'Pass True if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege' + - + name: can_post_messages + types: + - bool + optional: true + description: 'Pass True if the administrator can create channel posts, channels only' + - + name: can_edit_messages + types: + - bool + optional: true + description: 'Pass True if the administrator can edit messages of other users and can pin messages, channels only' + - + name: can_delete_messages + types: + - bool + optional: true + description: 'Pass True if the administrator can delete messages of other users' + - + name: can_manage_video_chats + types: + - bool + optional: true + description: 'Pass True if the administrator can manage video chats' + - + name: can_restrict_members + types: + - bool + optional: true + description: 'Pass True if the administrator can restrict, ban or unban chat members' + - + name: can_promote_members + types: + - bool + optional: true + description: 'Pass True if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by him)' + - + name: can_change_info + types: + - bool + optional: true + description: 'Pass True if the administrator can change chat title, photo and other settings' + - + name: can_invite_users + types: + - bool + optional: true + description: 'Pass True if the administrator can invite new users to the chat' + - + name: can_pin_messages + types: + - bool + optional: true + description: 'Pass True if the administrator can pin messages, supergroups only' + return_types: + - bool + - + name: setChatAdministratorCustomTitle + description: 'Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)' + - + name: user_id + types: + - int + optional: false + description: 'Unique identifier of the target user' + - + name: custom_title + types: + - string + optional: false + description: 'New custom title for the administrator; 0-16 characters, emoji are not allowed' + return_types: + - bool + - + name: 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." + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: sender_chat_id + types: + - int + optional: false + description: 'Unique identifier of the target sender chat' + return_types: + - bool + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: sender_chat_id + types: + - int + optional: false + description: 'Unique identifier of the target sender chat' + return_types: + - bool + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)' + - + name: permissions + types: + - ChatPermissions + optional: false + description: 'A JSON-serialized object for new default chat permissions' + return_types: + - bool + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + return_types: + - string + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: name + types: + - string + optional: true + description: 'Invite link name; 0-32 characters' + - + name: expire_date + types: + - int + optional: true + description: 'Point in time (Unix timestamp) when the link will expire' + - + name: member_limit + types: + - int + optional: true + description: 'The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999' + - + name: creates_join_request + types: + - bool + optional: true + 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" + return_types: + - ChatInviteLink + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: invite_link + types: + - string + optional: false + description: 'The invite link to edit' + - + name: name + types: + - string + optional: true + description: 'Invite link name; 0-32 characters' + - + name: expire_date + types: + - int + optional: true + description: 'Point in time (Unix timestamp) when the link will expire' + - + name: member_limit + types: + - int + optional: true + description: 'The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999' + - + name: creates_join_request + types: + - bool + optional: true + 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" + return_types: + - ChatInviteLink + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier of the target chat or username of the target channel (in the format @channelusername)' + - + name: invite_link + types: + - string + optional: false + description: 'The invite link to revoke' + return_types: + - ChatInviteLink + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: user_id + types: + - int + optional: false + description: 'Unique identifier of the target user' + return_types: + - bool + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: user_id + types: + - int + optional: false + description: 'Unique identifier of the target user' + return_types: + - bool + - + name: 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." + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: photo + types: + - InputFile + optional: false + description: 'New chat photo, uploaded using multipart/form-data' + return_types: + - bool + - + name: 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." + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + return_types: + - bool + - + name: 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." + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: title + types: + - string + optional: false + description: 'New chat title, 1-255 characters' + return_types: + - bool + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: description + types: + - string + optional: true + description: 'New chat description, 0-255 characters' + return_types: + - bool + - + name: pinChatMessage + description: "Use this method to add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success." + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: message_id + types: + - int + optional: false + description: 'Identifier of a message to pin' + - + name: disable_notification + types: + - bool + optional: true + 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.' + return_types: + - bool + - + name: unpinChatMessage + description: "Use this method to remove a message from the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success." + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: message_id + types: + - int + optional: true + description: 'Identifier of a message to unpin. If not specified, the most recent pinned message (by sending date) will be unpinned.' + return_types: + - bool + - + name: unpinAllChatMessages + description: "Use this method to clear the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success." + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + return_types: + - bool + - + name: leaveChat + description: 'Use this method for your bot to leave a group, supergroup or channel. Returns True on success.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)' + return_types: + - bool + - + name: getChat + description: 'Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a Chat object on success.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)' + return_types: + - Chat + - + name: getChatAdministrators + description: "Use this method to get a list of administrators in a chat, which aren't bots. Returns an Array of ChatMember objects." + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)' + return_types: + - Array + - + name: getChatMemberCount + description: 'Use this method to get the number of members in a chat. Returns Int on success.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)' + return_types: + - int + - + name: getChatMember + description: 'Use this method to get information about a member of a chat. Returns a ChatMember object on success.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)' + - + name: user_id + types: + - int + optional: false + description: 'Unique identifier of the target user' + return_types: + - ChatMember + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)' + - + name: sticker_set_name + types: + - string + optional: false + description: 'Name of the sticker set to be set as the group sticker set' + return_types: + - bool + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)' + return_types: + - bool + - + name: 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.' + fields: + - + name: callback_query_id + types: + - string + optional: false + description: 'Unique identifier for the query to be answered' + - + name: text + types: + - string + optional: true + description: 'Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters' + - + name: show_alert + types: + - bool + optional: true + 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.' + default: false + - + name: url + types: + - string + optional: true + 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." + - + name: cache_time + types: + - int + optional: true + 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.' + default: 0 + return_types: + - bool + - + name: setMyCommands + description: "Use this method to change the list of the bot's commands. See https://core.telegram.org/bots#commands for more details about bot commands. Returns True on success." + fields: + - + name: commands + types: + - Array + optional: false + 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." + - + name: scope + types: + - BotCommandScope + optional: true + description: 'A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.' + default: BotCommandScopeDefault + - + name: language_code + types: + - string + optional: true + 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' + return_types: + - bool + - + name: 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." + fields: + - + name: scope + types: + - BotCommandScope + optional: true + description: 'A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.' + default: BotCommandScopeDefault + - + name: language_code + types: + - string + optional: true + 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' + return_types: + - bool + - + name: 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." + fields: + - + name: scope + types: + - BotCommandScope + optional: true + description: 'A JSON-serialized object, describing scope of users. Defaults to BotCommandScopeDefault.' + default: BotCommandScopeDefault + - + name: language_code + types: + - string + optional: true + description: 'A two-letter ISO 639-1 language code or an empty string' + return_types: + - Array + - + name: 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." + fields: + - + name: chat_id + types: + - int + optional: true + description: "Unique identifier for the target private chat. If not specified, default bot's menu button will be changed" + - + name: menu_button + types: + - MenuButton + optional: true + description: "A JSON-serialized object for the bot's new menu button. Defaults to MenuButtonDefault" + default: MenuButtonDefault + return_types: + - bool + - + name: 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." + fields: + - + name: chat_id + types: + - int + optional: true + description: "Unique identifier for the target private chat. If not specified, default bot's menu button will be returned" + return_types: + - MenuButton + - + name: 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 are free to modify the list before adding the bot. Returns True on success." + fields: + - + name: rights + types: + - ChatAdministratorRights + optional: true + description: 'A JSON-serialized object describing new default administrator rights. If not specified, the default administrator rights will be cleared.' + - + name: for_channels + types: + - bool + optional: true + 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.' + return_types: + - bool + - + name: getMyDefaultAdministratorRights + description: 'Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success.' + fields: + - + name: for_channels + types: + - bool + optional: true + 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.' + return_types: + - ChatAdministratorRights + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: true + 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)' + - + name: message_id + types: + - int + optional: true + description: 'Required if inline_message_id is not specified. Identifier of the message to edit' + - + name: inline_message_id + types: + - string + optional: true + description: 'Required if chat_id and message_id are not specified. Identifier of the inline message' + - + name: text + types: + - string + optional: false + description: 'New text of the message, 1-4096 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Mode for parsing entities in the message text. See formatting options for more details.' + - + name: entities + types: + - Array + optional: true + description: 'A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode' + - + name: disable_web_page_preview + types: + - bool + optional: true + description: 'Disables link previews for links in this message' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'A JSON-serialized object for an inline keyboard.' + return_types: + - Message + - bool + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: true + 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)' + - + name: message_id + types: + - int + optional: true + description: 'Required if inline_message_id is not specified. Identifier of the message to edit' + - + name: inline_message_id + types: + - string + optional: true + description: 'Required if chat_id and message_id are not specified. Identifier of the inline message' + - + name: caption + types: + - string + optional: true + description: 'New caption of the message, 0-1024 characters after entities parsing' + - + name: parse_mode + types: + - string + optional: true + description: 'Mode for parsing entities in the message caption. See formatting options for more details.' + - + name: caption_entities + types: + - Array + optional: true + description: 'A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'A JSON-serialized object for an inline keyboard.' + return_types: + - Message + - bool + - + name: editMessageMedia + description: "Use this method to edit animation, audio, document, photo, or video 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." + fields: + - + name: chat_id + types: + - int + - string + optional: true + 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)' + - + name: message_id + types: + - int + optional: true + description: 'Required if inline_message_id is not specified. Identifier of the message to edit' + - + name: inline_message_id + types: + - string + optional: true + description: 'Required if chat_id and message_id are not specified. Identifier of the inline message' + - + name: media + types: + - InputMedia + optional: false + description: 'A JSON-serialized object for a new media content of the message' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'A JSON-serialized object for a new inline keyboard.' + return_types: + - Message + - bool + - + name: 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.' + fields: + - + name: chat_id + types: + - int + - string + optional: true + 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)' + - + name: message_id + types: + - int + optional: true + description: 'Required if inline_message_id is not specified. Identifier of the message to edit' + - + name: inline_message_id + types: + - string + optional: true + description: 'Required if chat_id and message_id are not specified. Identifier of the inline message' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'A JSON-serialized object for an inline keyboard.' + return_types: + - Message + - bool + - + name: stopPoll + description: 'Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: message_id + types: + - int + optional: false + description: 'Identifier of the original message with the poll' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + description: 'A JSON-serialized object for a new message inline keyboard.' + return_types: + - Poll + - + name: 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.- 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 permission in a supergroup or a channel, it can delete any message there.Returns True on success.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: message_id + types: + - int + optional: false + description: 'Identifier of the message to delete' + return_types: + - bool + - + name: sendSticker + description: 'Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: sticker + types: + - InputFile + - string + optional: false + 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 file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + - ReplyKeyboardMarkup + - ReplyKeyboardRemove + - ForceReply + optional: true + description: 'Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.' + return_types: + - Message + - + name: getStickerSet + description: 'Use this method to get a sticker set. On success, a StickerSet object is returned.' + fields: + - + name: name + types: + - string + optional: false + description: 'Name of the sticker set' + return_types: + - StickerSet + - + name: getCustomEmojiStickers + description: 'Use this method to get information about custom emoji stickers by their identifiers. Returns an Array of Sticker objects.' + fields: + - + name: custom_emoji_ids + types: + - Array + optional: false + description: 'List of custom emoji identifiers. At most 200 custom emoji identifiers can be specified.' + return_types: + - Array + - + name: uploadStickerFile + description: 'Use this method to upload a .PNG file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success.' + fields: + - + name: user_id + types: + - int + optional: false + description: 'User identifier of sticker file owner' + - + name: png_sticker + types: + - InputFile + optional: false + description: 'PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. More information on Sending Files »' + return_types: + - File + - + name: 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. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Returns True on success.' + fields: + - + name: user_id + types: + - int + optional: false + description: 'User identifier of created sticker set owner' + - + name: name + types: + - string + optional: false + 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.' + - + name: title + types: + - string + optional: false + description: 'Sticker set title, 1-64 characters' + - + name: png_sticker + types: + - InputFile + - string + optional: true + description: 'PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. 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 »' + - + name: tgs_sticker + types: + - InputFile + optional: true + description: 'TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#animated-sticker-requirements for technical requirements' + - + name: webm_sticker + types: + - InputFile + optional: true + description: 'WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-sticker-requirements for technical requirements' + - + name: sticker_type + types: + - string + optional: true + description: "Type of stickers in the set, pass “regular” or “mask”. Custom emoji sticker sets can't be created via the Bot API at the moment. By default, a regular sticker set is created." + - + name: emojis + types: + - string + optional: false + description: 'One or more emoji corresponding to the sticker' + - + name: mask_position + types: + - MaskPosition + optional: true + description: 'A JSON-serialized object for position where the mask should be placed on faces' + return_types: + - bool + - + name: addStickerToSet + description: 'Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.' + fields: + - + name: user_id + types: + - int + optional: false + description: 'User identifier of sticker set owner' + - + name: name + types: + - string + optional: false + description: 'Sticker set name' + - + name: png_sticker + types: + - InputFile + - string + optional: true + description: 'PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. 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 »' + - + name: tgs_sticker + types: + - InputFile + optional: true + description: 'TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#animated-sticker-requirements for technical requirements' + - + name: webm_sticker + types: + - InputFile + optional: true + description: 'WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-sticker-requirements for technical requirements' + - + name: emojis + types: + - string + optional: false + description: 'One or more emoji corresponding to the sticker' + - + name: mask_position + types: + - MaskPosition + optional: true + description: 'A JSON-serialized object for position where the mask should be placed on faces' + return_types: + - bool + - + name: setStickerPositionInSet + description: 'Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.' + fields: + - + name: sticker + types: + - string + optional: false + description: 'File identifier of the sticker' + - + name: position + types: + - int + optional: false + description: 'New sticker position in the set, zero-based' + return_types: + - bool + - + name: deleteStickerFromSet + description: 'Use this method to delete a sticker from a set created by the bot. Returns True on success.' + fields: + - + name: sticker + types: + - string + optional: false + description: 'File identifier of the sticker' + return_types: + - bool + - + name: setStickerSetThumb + description: 'Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Video thumbnails can be set only for video sticker sets only. Returns True on success.' + fields: + - + name: name + types: + - string + optional: false + description: 'Sticker set name' + - + name: user_id + types: + - int + optional: false + description: 'User identifier of the sticker set owner' + - + name: thumb + types: + - InputFile + - string + optional: true + description: "A PNG image with the thumbnail, must be up to 128 kilobytes in size and have width and height exactly 100px, or a TGS animation with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#animated-sticker-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-sticker-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 ». Animated sticker set thumbnails can't be uploaded via HTTP URL." + return_types: + - bool + - + name: 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.' + fields: + - + name: inline_query_id + types: + - string + optional: false + description: 'Unique identifier for the answered query' + - + name: results + types: + - Array + optional: false + description: 'A JSON-serialized array of results for the inline query' + - + name: cache_time + types: + - int + optional: true + description: 'The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.' + default: 300 + - + name: is_personal + types: + - bool + optional: true + 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' + - + name: next_offset + types: + - string + optional: true + description: "Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes." + - + name: switch_pm_text + types: + - string + optional: true + description: 'If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with the parameter switch_pm_parameter' + - + name: switch_pm_parameter + types: + - string + optional: true + description: "Deep-linking parameter for the /start message sent to the bot when user presses the switch button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.Example: An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to adapt search results accordingly. To do this, it displays a 'Connect your YouTube account' button above the results, or even before showing any. The user presses the button, switches to a private chat with the bot and, in doing so, passes a start parameter that instructs the bot to return an OAuth link. Once done, the bot can offer a switch_inline button so that the user can easily return to the chat where they wanted to use the bot's inline capabilities." + return_types: + - bool + - + name: 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.' + fields: + - + name: web_app_query_id + types: + - string + optional: false + description: 'Unique identifier for the query to be answered' + - + name: result + types: + - InlineQueryResult + optional: false + description: 'A JSON-serialized object describing the message to be sent' + return_types: + - SentWebAppMessage + - + name: sendInvoice + description: 'Use this method to send invoices. On success, the sent Message is returned.' + fields: + - + name: chat_id + types: + - int + - string + optional: false + description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: title + types: + - string + optional: false + description: 'Product name, 1-32 characters' + - + name: description + types: + - string + optional: false + description: 'Product description, 1-255 characters' + - + name: payload + types: + - string + optional: false + description: 'Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.' + - + name: provider_token + types: + - string + optional: false + description: 'Payment provider token, obtained via @BotFather' + - + name: currency + types: + - string + optional: false + description: 'Three-letter ISO 4217 currency code, see more on currencies' + - + name: prices + types: + - Array + optional: false + description: 'Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)' + - + name: max_tip_amount + types: + - int + optional: true + 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' + default: 0 + - + name: suggested_tip_amounts + types: + - Array + optional: true + 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.' + - + name: start_parameter + types: + - string + optional: true + 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' + - + name: provider_data + types: + - string + optional: true + 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.' + - + name: photo_url + types: + - string + optional: true + description: 'URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service. People like it better when they see what they are paying for.' + - + name: photo_size + types: + - int + optional: true + description: 'Photo size in bytes' + - + name: photo_width + types: + - int + optional: true + description: 'Photo width' + - + name: photo_height + types: + - int + optional: true + description: 'Photo height' + - + name: need_name + types: + - bool + optional: true + description: "Pass True if you require the user's full name to complete the order" + - + name: need_phone_number + types: + - bool + optional: true + description: "Pass True if you require the user's phone number to complete the order" + - + name: need_email + types: + - bool + optional: true + description: "Pass True if you require the user's email address to complete the order" + - + name: need_shipping_address + types: + - bool + optional: true + description: "Pass True if you require the user's shipping address to complete the order" + - + name: send_phone_number_to_provider + types: + - bool + optional: true + description: "Pass True if the user's phone number should be sent to provider" + - + name: send_email_to_provider + types: + - bool + optional: true + description: "Pass True if the user's email address should be sent to provider" + - + name: is_flexible + types: + - bool + optional: true + description: 'Pass True if the final price depends on the shipping method' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + 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." + return_types: + - Message + - + name: createInvoiceLink + description: 'Use this method to create a link for an invoice. Returns the created invoice link as String on success.' + fields: + - + name: title + types: + - string + optional: false + description: 'Product name, 1-32 characters' + - + name: description + types: + - string + optional: false + description: 'Product description, 1-255 characters' + - + name: payload + types: + - string + optional: false + description: 'Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.' + - + name: provider_token + types: + - string + optional: false + description: 'Payment provider token, obtained via BotFather' + - + name: currency + types: + - string + optional: false + description: 'Three-letter ISO 4217 currency code, see more on currencies' + - + name: prices + types: + - Array + optional: false + description: 'Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)' + - + name: max_tip_amount + types: + - int + optional: true + 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' + default: 0 + - + name: suggested_tip_amounts + types: + - Array + optional: true + 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.' + - + name: provider_data + types: + - string + optional: true + 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.' + - + name: photo_url + types: + - string + optional: true + description: 'URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service.' + - + name: photo_size + types: + - int + optional: true + description: 'Photo size in bytes' + - + name: photo_width + types: + - int + optional: true + description: 'Photo width' + - + name: photo_height + types: + - int + optional: true + description: 'Photo height' + - + name: need_name + types: + - bool + optional: true + description: "Pass True if you require the user's full name to complete the order" + - + name: need_phone_number + types: + - bool + optional: true + description: "Pass True if you require the user's phone number to complete the order" + - + name: need_email + types: + - bool + optional: true + description: "Pass True if you require the user's email address to complete the order" + - + name: need_shipping_address + types: + - bool + optional: true + description: "Pass True if you require the user's shipping address to complete the order" + - + name: send_phone_number_to_provider + types: + - bool + optional: true + description: "Pass True if the user's phone number should be sent to the provider" + - + name: send_email_to_provider + types: + - bool + optional: true + description: "Pass True if the user's email address should be sent to the provider" + - + name: is_flexible + types: + - bool + optional: true + description: 'Pass True if the final price depends on the shipping method' + return_types: + - string + - + name: 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.' + fields: + - + name: shipping_query_id + types: + - string + optional: false + description: 'Unique identifier for the query to be answered' + - + name: ok + types: + - bool + optional: false + 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)' + - + name: shipping_options + types: + - Array + optional: true + description: 'Required if ok is True. A JSON-serialized array of available shipping options.' + - + name: error_message + types: + - string + optional: true + description: 'Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. "Sorry, delivery to your desired address is unavailable''). Telegram will display this message to the user.' + return_types: + - bool + - + name: 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.' + fields: + - + name: pre_checkout_query_id + types: + - string + optional: false + description: 'Unique identifier for the query to be answered' + - + name: ok + types: + - bool + optional: false + 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.' + - + name: error_message + types: + - string + optional: true + 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.' + return_types: + - bool + - + name: 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.\nUse 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." + fields: + - + name: user_id + types: + - int + optional: false + description: 'User identifier' + - + name: errors + types: + - Array + optional: false + description: 'A JSON-serialized array describing the errors' + return_types: + - bool + - + name: sendGame + description: 'Use this method to send a game. On success, the sent Message is returned.' + fields: + - + name: chat_id + types: + - int + optional: false + description: 'Unique identifier for the target chat' + - + name: game_short_name + types: + - string + optional: false + description: 'Short name of the game, serves as the unique identifier for the game. Set up your games via @BotFather.' + - + name: disable_notification + types: + - bool + optional: true + description: 'Sends the message silently. Users will receive a notification with no sound.' + - + name: protect_content + types: + - bool + optional: true + description: 'Protects the contents of the sent message from forwarding and saving' + - + name: reply_to_message_id + types: + - int + optional: true + description: 'If the message is a reply, ID of the original message' + - + name: allow_sending_without_reply + types: + - bool + optional: true + description: 'Pass True if the message should be sent even if the specified replied-to message is not found' + - + name: reply_markup + types: + - InlineKeyboardMarkup + optional: true + 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." + return_types: + - Message + - + name: 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." + fields: + - + name: user_id + types: + - int + optional: false + description: 'User identifier' + - + name: score + types: + - int + optional: false + description: 'New score, must be non-negative' + - + name: force + types: + - bool + optional: true + description: 'Pass True if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters' + - + name: disable_edit_message + types: + - bool + optional: true + description: 'Pass True if the game message should not be automatically edited to include the current scoreboard' + - + name: chat_id + types: + - int + optional: true + description: 'Required if inline_message_id is not specified. Unique identifier for the target chat' + - + name: message_id + types: + - int + optional: true + description: 'Required if inline_message_id is not specified. Identifier of the sent message' + - + name: inline_message_id + types: + - string + optional: true + description: 'Required if chat_id and message_id are not specified. Identifier of the inline message' + return_types: + - Message + - bool + - + name: 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.' + fields: + - + name: user_id + types: + - int + optional: false + description: 'Target user id' + - + name: chat_id + types: + - int + optional: true + description: 'Required if inline_message_id is not specified. Unique identifier for the target chat' + - + name: message_id + types: + - int + optional: true + description: 'Required if inline_message_id is not specified. Identifier of the sent message' + - + name: inline_message_id + types: + - string + optional: true + description: 'Required if chat_id and message_id are not specified. Identifier of the inline message' + return_types: + - Array diff --git a/files/openapi/json/v620.json b/files/openapi/json/v620.json new file mode 100644 index 0000000..4c9c82c --- /dev/null +++ b/files/openapi/json/v620.json @@ -0,0 +1,18767 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Telegram Bot API", + "description": "Auto-generated OpenAPI schema by TGScraper.", + "version": "6.2.0" + }, + "servers": [ + { + "url": "https://api.telegram.org/bot{token}", + "variables": { + "token": { + "default": "1234:AAbbcc", + "description": "Bot's unique authentication token, given by @BotFather." + } + } + } + ], + "externalDocs": { + "description": "Official Telegram Bot API documentation.", + "url": "https://core.telegram.org/bots/api" + }, + "components": { + "responses": { + "BadRequest": { + "description": "Bad request, you have provided malformed data.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "Unauthorized": { + "description": "The authorization token is invalid or it has been revoked.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "Forbidden": { + "description": "This action is forbidden.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "NotFound": { + "description": "The specified resource was not found.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "Conflict": { + "description": "There is a conflict with another instance using webhook or polling.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "TooManyRequests": { + "description": "You're doing too many requests, retry after a while.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "ServerError": { + "description": "The bot API is experiencing some issues, try again later.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + }, + "UnknownError": { + "description": "An unknown error occurred.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Error" + } + } + } + } + }, + "schemas": { + "Response": { + "type": "object", + "description": "Represents the default response object.", + "required": [ + "ok" + ], + "properties": { + "ok": { + "type": "boolean" + } + } + }, + "Success": { + "description": "Request was successful, the result is returned.", + "allOf": [ + { + "$ref": "#/components/schemas/Response" + }, + { + "type": "object", + "required": [ + "result" + ], + "properties": { + "result": { + "type": "object" + } + } + } + ] + }, + "Error": { + "description": "Request was unsuccessful, so an error occurred.", + "allOf": [ + { + "$ref": "#/components/schemas/Response" + }, + { + "type": "object", + "required": [ + "error_code", + "description" + ], + "properties": { + "error_code": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "parameters": { + "$ref": "#/components/schemas/ResponseParameters" + } + } + } + ] + }, + "Update": { + "description": "This object represents an incoming update.At most one of the optional parameters can be present in any given update.", + "required": [ + "update_id" + ], + "properties": { + "update_id": { + "type": "integer" + }, + "message": { + "$ref": "#/components/schemas/Message" + }, + "edited_message": { + "$ref": "#/components/schemas/Message" + }, + "channel_post": { + "$ref": "#/components/schemas/Message" + }, + "edited_channel_post": { + "$ref": "#/components/schemas/Message" + }, + "inline_query": { + "$ref": "#/components/schemas/InlineQuery" + }, + "chosen_inline_result": { + "$ref": "#/components/schemas/ChosenInlineResult" + }, + "callback_query": { + "$ref": "#/components/schemas/CallbackQuery" + }, + "shipping_query": { + "$ref": "#/components/schemas/ShippingQuery" + }, + "pre_checkout_query": { + "$ref": "#/components/schemas/PreCheckoutQuery" + }, + "poll": { + "$ref": "#/components/schemas/Poll" + }, + "poll_answer": { + "$ref": "#/components/schemas/PollAnswer" + }, + "my_chat_member": { + "$ref": "#/components/schemas/ChatMemberUpdated" + }, + "chat_member": { + "$ref": "#/components/schemas/ChatMemberUpdated" + }, + "chat_join_request": { + "$ref": "#/components/schemas/ChatJoinRequest" + } + }, + "type": "object" + }, + "WebhookInfo": { + "description": "Describes the current status of a webhook.", + "required": [ + "url", + "has_custom_certificate", + "pending_update_count" + ], + "properties": { + "url": { + "type": "string" + }, + "has_custom_certificate": { + "type": "boolean" + }, + "pending_update_count": { + "type": "integer" + }, + "ip_address": { + "type": "string" + }, + "last_error_date": { + "type": "integer" + }, + "last_error_message": { + "type": "string" + }, + "last_synchronization_error_date": { + "type": "integer" + }, + "max_connections": { + "type": "integer" + }, + "allowed_updates": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "type": "object" + }, + "User": { + "description": "This object represents a Telegram user or bot.", + "required": [ + "id", + "is_bot", + "first_name" + ], + "properties": { + "id": { + "type": "integer" + }, + "is_bot": { + "type": "boolean" + }, + "first_name": { + "type": "string" + }, + "last_name": { + "type": "string" + }, + "username": { + "type": "string" + }, + "language_code": { + "type": "string" + }, + "is_premium": { + "type": "boolean", + "default": true + }, + "added_to_attachment_menu": { + "type": "boolean", + "default": true + }, + "can_join_groups": { + "type": "boolean" + }, + "can_read_all_group_messages": { + "type": "boolean" + }, + "supports_inline_queries": { + "type": "boolean" + } + }, + "type": "object" + }, + "Chat": { + "description": "This object represents a chat.", + "required": [ + "id", + "type" + ], + "properties": { + "id": { + "type": "integer" + }, + "type": { + "type": "string" + }, + "title": { + "type": "string" + }, + "username": { + "type": "string" + }, + "first_name": { + "type": "string" + }, + "last_name": { + "type": "string" + }, + "photo": { + "$ref": "#/components/schemas/ChatPhoto" + }, + "bio": { + "type": "string" + }, + "has_private_forwards": { + "type": "boolean", + "default": true + }, + "has_restricted_voice_and_video_messages": { + "type": "boolean", + "default": true + }, + "join_to_send_messages": { + "type": "boolean", + "default": true + }, + "join_by_request": { + "type": "boolean", + "default": true + }, + "description": { + "type": "string" + }, + "invite_link": { + "type": "string" + }, + "pinned_message": { + "$ref": "#/components/schemas/Message" + }, + "permissions": { + "$ref": "#/components/schemas/ChatPermissions" + }, + "slow_mode_delay": { + "type": "integer" + }, + "message_auto_delete_time": { + "type": "integer" + }, + "has_protected_content": { + "type": "boolean", + "default": true + }, + "sticker_set_name": { + "type": "string" + }, + "can_set_sticker_set": { + "type": "boolean", + "default": true + }, + "linked_chat_id": { + "type": "integer" + }, + "location": { + "$ref": "#/components/schemas/ChatLocation" + } + }, + "type": "object" + }, + "Message": { + "description": "This object represents a message.", + "required": [ + "message_id", + "date", + "chat" + ], + "properties": { + "message_id": { + "type": "integer" + }, + "from": { + "$ref": "#/components/schemas/User" + }, + "sender_chat": { + "$ref": "#/components/schemas/Chat" + }, + "date": { + "type": "integer" + }, + "chat": { + "$ref": "#/components/schemas/Chat" + }, + "forward_from": { + "$ref": "#/components/schemas/User" + }, + "forward_from_chat": { + "$ref": "#/components/schemas/Chat" + }, + "forward_from_message_id": { + "type": "integer" + }, + "forward_signature": { + "type": "string" + }, + "forward_sender_name": { + "type": "string" + }, + "forward_date": { + "type": "integer" + }, + "is_automatic_forward": { + "type": "boolean", + "default": true + }, + "reply_to_message": { + "$ref": "#/components/schemas/Message" + }, + "via_bot": { + "$ref": "#/components/schemas/User" + }, + "edit_date": { + "type": "integer" + }, + "has_protected_content": { + "type": "boolean", + "default": true + }, + "media_group_id": { + "type": "string" + }, + "author_signature": { + "type": "string" + }, + "text": { + "type": "string" + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "animation": { + "$ref": "#/components/schemas/Animation" + }, + "audio": { + "$ref": "#/components/schemas/Audio" + }, + "document": { + "$ref": "#/components/schemas/Document" + }, + "photo": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PhotoSize" + } + }, + "sticker": { + "$ref": "#/components/schemas/Sticker" + }, + "video": { + "$ref": "#/components/schemas/Video" + }, + "video_note": { + "$ref": "#/components/schemas/VideoNote" + }, + "voice": { + "$ref": "#/components/schemas/Voice" + }, + "caption": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "contact": { + "$ref": "#/components/schemas/Contact" + }, + "dice": { + "$ref": "#/components/schemas/Dice" + }, + "game": { + "$ref": "#/components/schemas/Game" + }, + "poll": { + "$ref": "#/components/schemas/Poll" + }, + "venue": { + "$ref": "#/components/schemas/Venue" + }, + "location": { + "$ref": "#/components/schemas/Location" + }, + "new_chat_members": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + }, + "left_chat_member": { + "$ref": "#/components/schemas/User" + }, + "new_chat_title": { + "type": "string" + }, + "new_chat_photo": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PhotoSize" + } + }, + "delete_chat_photo": { + "type": "boolean", + "default": true + }, + "group_chat_created": { + "type": "boolean", + "default": true + }, + "supergroup_chat_created": { + "type": "boolean", + "default": true + }, + "channel_chat_created": { + "type": "boolean", + "default": true + }, + "message_auto_delete_timer_changed": { + "$ref": "#/components/schemas/MessageAutoDeleteTimerChanged" + }, + "migrate_to_chat_id": { + "type": "integer" + }, + "migrate_from_chat_id": { + "type": "integer" + }, + "pinned_message": { + "$ref": "#/components/schemas/Message" + }, + "invoice": { + "$ref": "#/components/schemas/Invoice" + }, + "successful_payment": { + "$ref": "#/components/schemas/SuccessfulPayment" + }, + "connected_website": { + "type": "string" + }, + "passport_data": { + "$ref": "#/components/schemas/PassportData" + }, + "proximity_alert_triggered": { + "$ref": "#/components/schemas/ProximityAlertTriggered" + }, + "video_chat_scheduled": { + "$ref": "#/components/schemas/VideoChatScheduled" + }, + "video_chat_started": { + "$ref": "#/components/schemas/VideoChatStarted" + }, + "video_chat_ended": { + "$ref": "#/components/schemas/VideoChatEnded" + }, + "video_chat_participants_invited": { + "$ref": "#/components/schemas/VideoChatParticipantsInvited" + }, + "web_app_data": { + "$ref": "#/components/schemas/WebAppData" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + }, + "type": "object" + }, + "MessageId": { + "description": "This object represents a unique message identifier.", + "required": [ + "message_id" + ], + "properties": { + "message_id": { + "type": "integer" + } + }, + "type": "object" + }, + "MessageEntity": { + "description": "This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.", + "required": [ + "type", + "offset", + "length" + ], + "properties": { + "type": { + "type": "string" + }, + "offset": { + "type": "integer" + }, + "length": { + "type": "integer" + }, + "url": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "language": { + "type": "string" + }, + "custom_emoji_id": { + "type": "string" + } + }, + "type": "object" + }, + "PhotoSize": { + "description": "This object represents one size of a photo or a file / sticker thumbnail.", + "required": [ + "file_id", + "file_unique_id", + "width", + "height" + ], + "properties": { + "file_id": { + "type": "string" + }, + "file_unique_id": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "file_size": { + "type": "integer" + } + }, + "type": "object" + }, + "Animation": { + "description": "This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).", + "required": [ + "file_id", + "file_unique_id", + "width", + "height", + "duration" + ], + "properties": { + "file_id": { + "type": "string" + }, + "file_unique_id": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "duration": { + "type": "integer" + }, + "thumb": { + "$ref": "#/components/schemas/PhotoSize" + }, + "file_name": { + "type": "string" + }, + "mime_type": { + "type": "string" + }, + "file_size": { + "type": "integer" + } + }, + "type": "object" + }, + "Audio": { + "description": "This object represents an audio file to be treated as music by the Telegram clients.", + "required": [ + "file_id", + "file_unique_id", + "duration" + ], + "properties": { + "file_id": { + "type": "string" + }, + "file_unique_id": { + "type": "string" + }, + "duration": { + "type": "integer" + }, + "performer": { + "type": "string" + }, + "title": { + "type": "string" + }, + "file_name": { + "type": "string" + }, + "mime_type": { + "type": "string" + }, + "file_size": { + "type": "integer" + }, + "thumb": { + "$ref": "#/components/schemas/PhotoSize" + } + }, + "type": "object" + }, + "Document": { + "description": "This object represents a general file (as opposed to photos, voice messages and audio files).", + "required": [ + "file_id", + "file_unique_id" + ], + "properties": { + "file_id": { + "type": "string" + }, + "file_unique_id": { + "type": "string" + }, + "thumb": { + "$ref": "#/components/schemas/PhotoSize" + }, + "file_name": { + "type": "string" + }, + "mime_type": { + "type": "string" + }, + "file_size": { + "type": "integer" + } + }, + "type": "object" + }, + "Video": { + "description": "This object represents a video file.", + "required": [ + "file_id", + "file_unique_id", + "width", + "height", + "duration" + ], + "properties": { + "file_id": { + "type": "string" + }, + "file_unique_id": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "duration": { + "type": "integer" + }, + "thumb": { + "$ref": "#/components/schemas/PhotoSize" + }, + "file_name": { + "type": "string" + }, + "mime_type": { + "type": "string" + }, + "file_size": { + "type": "integer" + } + }, + "type": "object" + }, + "VideoNote": { + "description": "This object represents a video message (available in Telegram apps as of v.4.0).", + "required": [ + "file_id", + "file_unique_id", + "length", + "duration" + ], + "properties": { + "file_id": { + "type": "string" + }, + "file_unique_id": { + "type": "string" + }, + "length": { + "type": "integer" + }, + "duration": { + "type": "integer" + }, + "thumb": { + "$ref": "#/components/schemas/PhotoSize" + }, + "file_size": { + "type": "integer" + } + }, + "type": "object" + }, + "Voice": { + "description": "This object represents a voice note.", + "required": [ + "file_id", + "file_unique_id", + "duration" + ], + "properties": { + "file_id": { + "type": "string" + }, + "file_unique_id": { + "type": "string" + }, + "duration": { + "type": "integer" + }, + "mime_type": { + "type": "string" + }, + "file_size": { + "type": "integer" + } + }, + "type": "object" + }, + "Contact": { + "description": "This object represents a phone contact.", + "required": [ + "phone_number", + "first_name" + ], + "properties": { + "phone_number": { + "type": "string" + }, + "first_name": { + "type": "string" + }, + "last_name": { + "type": "string" + }, + "user_id": { + "type": "integer" + }, + "vcard": { + "type": "string" + } + }, + "type": "object" + }, + "Dice": { + "description": "This object represents an animated emoji that displays a random value.", + "required": [ + "emoji", + "value" + ], + "properties": { + "emoji": { + "type": "string" + }, + "value": { + "type": "integer" + } + }, + "type": "object" + }, + "PollOption": { + "description": "This object contains information about one answer option in a poll.", + "required": [ + "text", + "voter_count" + ], + "properties": { + "text": { + "type": "string" + }, + "voter_count": { + "type": "integer" + } + }, + "type": "object" + }, + "PollAnswer": { + "description": "This object represents an answer of a user in a non-anonymous poll.", + "required": [ + "poll_id", + "user", + "option_ids" + ], + "properties": { + "poll_id": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "option_ids": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + "type": "object" + }, + "Poll": { + "description": "This object contains information about a poll.", + "required": [ + "id", + "question", + "options", + "total_voter_count", + "is_closed", + "is_anonymous", + "type", + "allows_multiple_answers" + ], + "properties": { + "id": { + "type": "string" + }, + "question": { + "type": "string" + }, + "options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PollOption" + } + }, + "total_voter_count": { + "type": "integer" + }, + "is_closed": { + "type": "boolean" + }, + "is_anonymous": { + "type": "boolean" + }, + "type": { + "type": "string" + }, + "allows_multiple_answers": { + "type": "boolean" + }, + "correct_option_id": { + "type": "integer" + }, + "explanation": { + "type": "string" + }, + "explanation_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "open_period": { + "type": "integer" + }, + "close_date": { + "type": "integer" + } + }, + "type": "object" + }, + "Location": { + "description": "This object represents a point on the map.", + "required": [ + "longitude", + "latitude" + ], + "properties": { + "longitude": { + "type": "number" + }, + "latitude": { + "type": "number" + }, + "horizontal_accuracy": { + "type": "number" + }, + "live_period": { + "type": "integer" + }, + "heading": { + "type": "integer" + }, + "proximity_alert_radius": { + "type": "integer" + } + }, + "type": "object" + }, + "Venue": { + "description": "This object represents a venue.", + "required": [ + "location", + "title", + "address" + ], + "properties": { + "location": { + "$ref": "#/components/schemas/Location" + }, + "title": { + "type": "string" + }, + "address": { + "type": "string" + }, + "foursquare_id": { + "type": "string" + }, + "foursquare_type": { + "type": "string" + }, + "google_place_id": { + "type": "string" + }, + "google_place_type": { + "type": "string" + } + }, + "type": "object" + }, + "WebAppData": { + "description": "Describes data sent from a Web App to the bot.", + "required": [ + "data", + "button_text" + ], + "properties": { + "data": { + "type": "string" + }, + "button_text": { + "type": "string" + } + }, + "type": "object" + }, + "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.", + "required": [ + "traveler", + "watcher", + "distance" + ], + "properties": { + "traveler": { + "$ref": "#/components/schemas/User" + }, + "watcher": { + "$ref": "#/components/schemas/User" + }, + "distance": { + "type": "integer" + } + }, + "type": "object" + }, + "MessageAutoDeleteTimerChanged": { + "description": "This object represents a service message about a change in auto-delete timer settings.", + "required": [ + "message_auto_delete_time" + ], + "properties": { + "message_auto_delete_time": { + "type": "integer" + } + }, + "type": "object" + }, + "VideoChatScheduled": { + "description": "This object represents a service message about a video chat scheduled in the chat.", + "required": [ + "start_date" + ], + "properties": { + "start_date": { + "type": "integer" + } + }, + "type": "object" + }, + "VideoChatStarted": { + "description": "This object represents a service message about a video chat started in the chat. Currently holds no information.", + "type": "object" + }, + "VideoChatEnded": { + "description": "This object represents a service message about a video chat ended in the chat.", + "required": [ + "duration" + ], + "properties": { + "duration": { + "type": "integer" + } + }, + "type": "object" + }, + "VideoChatParticipantsInvited": { + "description": "This object represents a service message about new members invited to a video chat.", + "required": [ + "users" + ], + "properties": { + "users": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + } + }, + "type": "object" + }, + "UserProfilePhotos": { + "description": "This object represent a user's profile pictures.", + "required": [ + "total_count", + "photos" + ], + "properties": { + "total_count": { + "type": "integer" + }, + "photos": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PhotoSize" + } + } + } + }, + "type": "object" + }, + "File": { + "description": "This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot/. 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.", + "required": [ + "file_id", + "file_unique_id" + ], + "properties": { + "file_id": { + "type": "string" + }, + "file_unique_id": { + "type": "string" + }, + "file_size": { + "type": "integer" + }, + "file_path": { + "type": "string" + } + }, + "type": "object" + }, + "WebAppInfo": { + "description": "Describes a Web App.", + "required": [ + "url" + ], + "properties": { + "url": { + "type": "string" + } + }, + "type": "object" + }, + "ReplyKeyboardMarkup": { + "description": "This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).", + "required": [ + "keyboard" + ], + "properties": { + "keyboard": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/KeyboardButton" + } + } + }, + "resize_keyboard": { + "type": "boolean" + }, + "one_time_keyboard": { + "type": "boolean" + }, + "input_field_placeholder": { + "type": "string" + }, + "selective": { + "type": "boolean" + } + }, + "type": "object" + }, + "KeyboardButton": { + "description": "This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields web_app, request_contact, request_location, and request_poll are mutually exclusive.", + "required": [ + "text" + ], + "properties": { + "text": { + "type": "string" + }, + "request_contact": { + "type": "boolean" + }, + "request_location": { + "type": "boolean" + }, + "request_poll": { + "$ref": "#/components/schemas/KeyboardButtonPollType" + }, + "web_app": { + "$ref": "#/components/schemas/WebAppInfo" + } + }, + "type": "object" + }, + "KeyboardButtonPollType": { + "description": "This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.", + "properties": { + "type": { + "type": "string" + } + }, + "type": "object" + }, + "ReplyKeyboardRemove": { + "description": "Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup).", + "required": [ + "remove_keyboard" + ], + "properties": { + "remove_keyboard": { + "type": "boolean", + "default": true + }, + "selective": { + "type": "boolean" + } + }, + "type": "object" + }, + "InlineKeyboardMarkup": { + "description": "This object represents an inline keyboard that appears right next to the message it belongs to.", + "required": [ + "inline_keyboard" + ], + "properties": { + "inline_keyboard": { + "type": "array", + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InlineKeyboardButton" + } + } + } + }, + "type": "object" + }, + "InlineKeyboardButton": { + "description": "This object represents one button of an inline keyboard. You must use exactly one of the optional fields.", + "required": [ + "text" + ], + "properties": { + "text": { + "type": "string" + }, + "url": { + "type": "string" + }, + "callback_data": { + "type": "string" + }, + "web_app": { + "$ref": "#/components/schemas/WebAppInfo" + }, + "login_url": { + "$ref": "#/components/schemas/LoginUrl" + }, + "switch_inline_query": { + "type": "string" + }, + "switch_inline_query_current_chat": { + "type": "string" + }, + "callback_game": { + "$ref": "#/components/schemas/CallbackGame" + }, + "pay": { + "type": "boolean" + } + }, + "type": "object" + }, + "LoginUrl": { + "description": "This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in:\nTelegram apps support these buttons as of version 5.7.", + "required": [ + "url" + ], + "properties": { + "url": { + "type": "string" + }, + "forward_text": { + "type": "string" + }, + "bot_username": { + "type": "string" + }, + "request_write_access": { + "type": "boolean" + } + }, + "type": "object" + }, + "CallbackQuery": { + "description": "This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present.", + "required": [ + "id", + "from", + "chat_instance" + ], + "properties": { + "id": { + "type": "string" + }, + "from": { + "$ref": "#/components/schemas/User" + }, + "message": { + "$ref": "#/components/schemas/Message" + }, + "inline_message_id": { + "type": "string" + }, + "chat_instance": { + "type": "string" + }, + "data": { + "type": "string" + }, + "game_short_name": { + "type": "string" + } + }, + "type": "object" + }, + "ForceReply": { + "description": "Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode.", + "required": [ + "force_reply" + ], + "properties": { + "force_reply": { + "type": "boolean", + "default": true + }, + "input_field_placeholder": { + "type": "string" + }, + "selective": { + "type": "boolean" + } + }, + "type": "object" + }, + "ChatPhoto": { + "description": "This object represents a chat photo.", + "required": [ + "small_file_id", + "small_file_unique_id", + "big_file_id", + "big_file_unique_id" + ], + "properties": { + "small_file_id": { + "type": "string" + }, + "small_file_unique_id": { + "type": "string" + }, + "big_file_id": { + "type": "string" + }, + "big_file_unique_id": { + "type": "string" + } + }, + "type": "object" + }, + "ChatInviteLink": { + "description": "Represents an invite link for a chat.", + "required": [ + "invite_link", + "creator", + "creates_join_request", + "is_primary", + "is_revoked" + ], + "properties": { + "invite_link": { + "type": "string" + }, + "creator": { + "$ref": "#/components/schemas/User" + }, + "creates_join_request": { + "type": "boolean" + }, + "is_primary": { + "type": "boolean" + }, + "is_revoked": { + "type": "boolean" + }, + "name": { + "type": "string" + }, + "expire_date": { + "type": "integer" + }, + "member_limit": { + "type": "integer" + }, + "pending_join_request_count": { + "type": "integer" + } + }, + "type": "object" + }, + "ChatAdministratorRights": { + "description": "Represents the rights of an administrator in a chat.", + "required": [ + "is_anonymous", + "can_manage_chat", + "can_delete_messages", + "can_manage_video_chats", + "can_restrict_members", + "can_promote_members", + "can_change_info", + "can_invite_users" + ], + "properties": { + "is_anonymous": { + "type": "boolean" + }, + "can_manage_chat": { + "type": "boolean" + }, + "can_delete_messages": { + "type": "boolean" + }, + "can_manage_video_chats": { + "type": "boolean" + }, + "can_restrict_members": { + "type": "boolean" + }, + "can_promote_members": { + "type": "boolean" + }, + "can_change_info": { + "type": "boolean" + }, + "can_invite_users": { + "type": "boolean" + }, + "can_post_messages": { + "type": "boolean" + }, + "can_edit_messages": { + "type": "boolean" + }, + "can_pin_messages": { + "type": "boolean" + } + }, + "type": "object" + }, + "ChatMember": { + "description": "This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported:", + "anyOf": [ + { + "$ref": "#/components/schemas/ChatMemberOwner" + }, + { + "$ref": "#/components/schemas/ChatMemberAdministrator" + }, + { + "$ref": "#/components/schemas/ChatMemberMember" + }, + { + "$ref": "#/components/schemas/ChatMemberRestricted" + }, + { + "$ref": "#/components/schemas/ChatMemberLeft" + }, + { + "$ref": "#/components/schemas/ChatMemberBanned" + } + ] + }, + "ChatMemberOwner": { + "description": "Represents a chat member that owns the chat and has all administrator privileges.", + "required": [ + "status", + "user", + "is_anonymous" + ], + "properties": { + "status": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "is_anonymous": { + "type": "boolean" + }, + "custom_title": { + "type": "string" + } + }, + "type": "object" + }, + "ChatMemberAdministrator": { + "description": "Represents a chat member that has some additional privileges.", + "required": [ + "status", + "user", + "can_be_edited", + "is_anonymous", + "can_manage_chat", + "can_delete_messages", + "can_manage_video_chats", + "can_restrict_members", + "can_promote_members", + "can_change_info", + "can_invite_users" + ], + "properties": { + "status": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "can_be_edited": { + "type": "boolean" + }, + "is_anonymous": { + "type": "boolean" + }, + "can_manage_chat": { + "type": "boolean" + }, + "can_delete_messages": { + "type": "boolean" + }, + "can_manage_video_chats": { + "type": "boolean" + }, + "can_restrict_members": { + "type": "boolean" + }, + "can_promote_members": { + "type": "boolean" + }, + "can_change_info": { + "type": "boolean" + }, + "can_invite_users": { + "type": "boolean" + }, + "can_post_messages": { + "type": "boolean" + }, + "can_edit_messages": { + "type": "boolean" + }, + "can_pin_messages": { + "type": "boolean" + }, + "custom_title": { + "type": "string" + } + }, + "type": "object" + }, + "ChatMemberMember": { + "description": "Represents a chat member that has no additional privileges or restrictions.", + "required": [ + "status", + "user" + ], + "properties": { + "status": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + } + }, + "type": "object" + }, + "ChatMemberRestricted": { + "description": "Represents a chat member that is under certain restrictions in the chat. Supergroups only.", + "required": [ + "status", + "user", + "is_member", + "can_change_info", + "can_invite_users", + "can_pin_messages", + "can_send_messages", + "can_send_media_messages", + "can_send_polls", + "can_send_other_messages", + "can_add_web_page_previews", + "until_date" + ], + "properties": { + "status": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "is_member": { + "type": "boolean" + }, + "can_change_info": { + "type": "boolean" + }, + "can_invite_users": { + "type": "boolean" + }, + "can_pin_messages": { + "type": "boolean" + }, + "can_send_messages": { + "type": "boolean" + }, + "can_send_media_messages": { + "type": "boolean" + }, + "can_send_polls": { + "type": "boolean" + }, + "can_send_other_messages": { + "type": "boolean" + }, + "can_add_web_page_previews": { + "type": "boolean" + }, + "until_date": { + "type": "integer" + } + }, + "type": "object" + }, + "ChatMemberLeft": { + "description": "Represents a chat member that isn't currently a member of the chat, but may join it themselves.", + "required": [ + "status", + "user" + ], + "properties": { + "status": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + } + }, + "type": "object" + }, + "ChatMemberBanned": { + "description": "Represents a chat member that was banned in the chat and can't return to the chat or view chat messages.", + "required": [ + "status", + "user", + "until_date" + ], + "properties": { + "status": { + "type": "string" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "until_date": { + "type": "integer" + } + }, + "type": "object" + }, + "ChatMemberUpdated": { + "description": "This object represents changes in the status of a chat member.", + "required": [ + "chat", + "from", + "date", + "old_chat_member", + "new_chat_member" + ], + "properties": { + "chat": { + "$ref": "#/components/schemas/Chat" + }, + "from": { + "$ref": "#/components/schemas/User" + }, + "date": { + "type": "integer" + }, + "old_chat_member": { + "$ref": "#/components/schemas/ChatMember" + }, + "new_chat_member": { + "$ref": "#/components/schemas/ChatMember" + }, + "invite_link": { + "$ref": "#/components/schemas/ChatInviteLink" + } + }, + "type": "object" + }, + "ChatJoinRequest": { + "description": "Represents a join request sent to a chat.", + "required": [ + "chat", + "from", + "date" + ], + "properties": { + "chat": { + "$ref": "#/components/schemas/Chat" + }, + "from": { + "$ref": "#/components/schemas/User" + }, + "date": { + "type": "integer" + }, + "bio": { + "type": "string" + }, + "invite_link": { + "$ref": "#/components/schemas/ChatInviteLink" + } + }, + "type": "object" + }, + "ChatPermissions": { + "description": "Describes actions that a non-administrator user is allowed to take in a chat.", + "properties": { + "can_send_messages": { + "type": "boolean" + }, + "can_send_media_messages": { + "type": "boolean" + }, + "can_send_polls": { + "type": "boolean" + }, + "can_send_other_messages": { + "type": "boolean" + }, + "can_add_web_page_previews": { + "type": "boolean" + }, + "can_change_info": { + "type": "boolean" + }, + "can_invite_users": { + "type": "boolean" + }, + "can_pin_messages": { + "type": "boolean" + } + }, + "type": "object" + }, + "ChatLocation": { + "description": "Represents a location to which a chat is connected.", + "required": [ + "location", + "address" + ], + "properties": { + "location": { + "$ref": "#/components/schemas/Location" + }, + "address": { + "type": "string" + } + }, + "type": "object" + }, + "BotCommand": { + "description": "This object represents a bot command.", + "required": [ + "command", + "description" + ], + "properties": { + "command": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "type": "object" + }, + "BotCommandScope": { + "description": "This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported:", + "anyOf": [ + { + "$ref": "#/components/schemas/BotCommandScopeDefault" + }, + { + "$ref": "#/components/schemas/BotCommandScopeAllPrivateChats" + }, + { + "$ref": "#/components/schemas/BotCommandScopeAllGroupChats" + }, + { + "$ref": "#/components/schemas/BotCommandScopeAllChatAdministrators" + }, + { + "$ref": "#/components/schemas/BotCommandScopeChat" + }, + { + "$ref": "#/components/schemas/BotCommandScopeChatAdministrators" + }, + { + "$ref": "#/components/schemas/BotCommandScopeChatMember" + } + ] + }, + "BotCommandScopeDefault": { + "description": "Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user.", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "default": "default" + } + }, + "type": "object" + }, + "BotCommandScopeAllPrivateChats": { + "description": "Represents the scope of bot commands, covering all private chats.", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "default": "all_private_chats" + } + }, + "type": "object" + }, + "BotCommandScopeAllGroupChats": { + "description": "Represents the scope of bot commands, covering all group and supergroup chats.", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "default": "all_group_chats" + } + }, + "type": "object" + }, + "BotCommandScopeAllChatAdministrators": { + "description": "Represents the scope of bot commands, covering all group and supergroup chat administrators.", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "default": "all_chat_administrators" + } + }, + "type": "object" + }, + "BotCommandScopeChat": { + "description": "Represents the scope of bot commands, covering a specific chat.", + "required": [ + "type", + "chat_id" + ], + "properties": { + "type": { + "type": "string", + "default": "chat" + }, + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + }, + "type": "object" + }, + "BotCommandScopeChatAdministrators": { + "description": "Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.", + "required": [ + "type", + "chat_id" + ], + "properties": { + "type": { + "type": "string", + "default": "chat_administrators" + }, + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + }, + "type": "object" + }, + "BotCommandScopeChatMember": { + "description": "Represents the scope of bot commands, covering a specific member of a group or supergroup chat.", + "required": [ + "type", + "chat_id", + "user_id" + ], + "properties": { + "type": { + "type": "string", + "default": "chat_member" + }, + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + } + }, + "type": "object" + }, + "MenuButton": { + "description": "This object describes the bot's menu button in a private chat. It should be one of", + "anyOf": [ + { + "$ref": "#/components/schemas/MenuButtonCommands" + }, + { + "$ref": "#/components/schemas/MenuButtonWebApp" + }, + { + "$ref": "#/components/schemas/MenuButtonDefault" + } + ] + }, + "MenuButtonCommands": { + "description": "Represents a menu button, which opens the bot's list of commands.", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "default": "commands" + } + }, + "type": "object" + }, + "MenuButtonWebApp": { + "description": "Represents a menu button, which launches a Web App.", + "required": [ + "type", + "text", + "web_app" + ], + "properties": { + "type": { + "type": "string", + "default": "web_app" + }, + "text": { + "type": "string" + }, + "web_app": { + "$ref": "#/components/schemas/WebAppInfo" + } + }, + "type": "object" + }, + "MenuButtonDefault": { + "description": "Describes that no specific value for the menu button was set.", + "required": [ + "type" + ], + "properties": { + "type": { + "type": "string", + "default": "default" + } + }, + "type": "object" + }, + "ResponseParameters": { + "description": "Describes why a request was unsuccessful.", + "properties": { + "migrate_to_chat_id": { + "type": "integer" + }, + "retry_after": { + "type": "integer" + } + }, + "type": "object" + }, + "InputMedia": { + "description": "This object represents the content of a media message to be sent. It should be one of", + "anyOf": [ + { + "$ref": "#/components/schemas/InputMediaAnimation" + }, + { + "$ref": "#/components/schemas/InputMediaDocument" + }, + { + "$ref": "#/components/schemas/InputMediaAudio" + }, + { + "$ref": "#/components/schemas/InputMediaPhoto" + }, + { + "$ref": "#/components/schemas/InputMediaVideo" + } + ] + }, + "InputMediaPhoto": { + "description": "Represents a photo to be sent.", + "required": [ + "type", + "media" + ], + "properties": { + "type": { + "type": "string", + "default": "photo" + }, + "media": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + } + }, + "type": "object" + }, + "InputMediaVideo": { + "description": "Represents a video to be sent.", + "required": [ + "type", + "media" + ], + "properties": { + "type": { + "type": "string", + "default": "video" + }, + "media": { + "type": "string" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "duration": { + "type": "integer" + }, + "supports_streaming": { + "type": "boolean" + } + }, + "type": "object" + }, + "InputMediaAnimation": { + "description": "Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.", + "required": [ + "type", + "media" + ], + "properties": { + "type": { + "type": "string", + "default": "animation" + }, + "media": { + "type": "string" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "duration": { + "type": "integer" + } + }, + "type": "object" + }, + "InputMediaAudio": { + "description": "Represents an audio file to be treated as music to be sent.", + "required": [ + "type", + "media" + ], + "properties": { + "type": { + "type": "string", + "default": "audio" + }, + "media": { + "type": "string" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "duration": { + "type": "integer" + }, + "performer": { + "type": "string" + }, + "title": { + "type": "string" + } + }, + "type": "object" + }, + "InputMediaDocument": { + "description": "Represents a general file to be sent.", + "required": [ + "type", + "media" + ], + "properties": { + "type": { + "type": "string", + "default": "document" + }, + "media": { + "type": "string" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_content_type_detection": { + "type": "boolean" + } + }, + "type": "object" + }, + "InputFile": { + "description": "This object represents the contents of a file to be uploaded. Must be posted using multipart/form-data in the usual way that files are uploaded via the browser.", + "type": "object" + }, + "Sticker": { + "description": "This object represents a sticker.", + "required": [ + "file_id", + "file_unique_id", + "type", + "width", + "height", + "is_animated", + "is_video" + ], + "properties": { + "file_id": { + "type": "string" + }, + "file_unique_id": { + "type": "string" + }, + "type": { + "type": "string" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "is_animated": { + "type": "boolean" + }, + "is_video": { + "type": "boolean" + }, + "thumb": { + "$ref": "#/components/schemas/PhotoSize" + }, + "emoji": { + "type": "string" + }, + "set_name": { + "type": "string" + }, + "premium_animation": { + "$ref": "#/components/schemas/File" + }, + "mask_position": { + "$ref": "#/components/schemas/MaskPosition" + }, + "custom_emoji_id": { + "type": "string" + }, + "file_size": { + "type": "integer" + } + }, + "type": "object" + }, + "StickerSet": { + "description": "This object represents a sticker set.", + "required": [ + "name", + "title", + "sticker_type", + "is_animated", + "is_video", + "stickers" + ], + "properties": { + "name": { + "type": "string" + }, + "title": { + "type": "string" + }, + "sticker_type": { + "type": "string" + }, + "is_animated": { + "type": "boolean" + }, + "is_video": { + "type": "boolean" + }, + "stickers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Sticker" + } + }, + "thumb": { + "$ref": "#/components/schemas/PhotoSize" + } + }, + "type": "object" + }, + "MaskPosition": { + "description": "This object describes the position on faces where a mask should be placed by default.", + "required": [ + "point", + "x_shift", + "y_shift", + "scale" + ], + "properties": { + "point": { + "type": "string" + }, + "x_shift": { + "type": "number" + }, + "y_shift": { + "type": "number" + }, + "scale": { + "type": "number" + } + }, + "type": "object" + }, + "InlineQuery": { + "description": "This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.", + "required": [ + "id", + "from", + "query", + "offset" + ], + "properties": { + "id": { + "type": "string" + }, + "from": { + "$ref": "#/components/schemas/User" + }, + "query": { + "type": "string" + }, + "offset": { + "type": "string" + }, + "chat_type": { + "type": "string" + }, + "location": { + "$ref": "#/components/schemas/Location" + } + }, + "type": "object" + }, + "InlineQueryResult": { + "description": "This object represents one result of an inline query. Telegram clients currently support results of the following 20 types:", + "anyOf": [ + { + "$ref": "#/components/schemas/InlineQueryResultCachedAudio" + }, + { + "$ref": "#/components/schemas/InlineQueryResultCachedDocument" + }, + { + "$ref": "#/components/schemas/InlineQueryResultCachedGif" + }, + { + "$ref": "#/components/schemas/InlineQueryResultCachedMpeg4Gif" + }, + { + "$ref": "#/components/schemas/InlineQueryResultCachedPhoto" + }, + { + "$ref": "#/components/schemas/InlineQueryResultCachedSticker" + }, + { + "$ref": "#/components/schemas/InlineQueryResultCachedVideo" + }, + { + "$ref": "#/components/schemas/InlineQueryResultCachedVoice" + }, + { + "$ref": "#/components/schemas/InlineQueryResultArticle" + }, + { + "$ref": "#/components/schemas/InlineQueryResultAudio" + }, + { + "$ref": "#/components/schemas/InlineQueryResultContact" + }, + { + "$ref": "#/components/schemas/InlineQueryResultGame" + }, + { + "$ref": "#/components/schemas/InlineQueryResultDocument" + }, + { + "$ref": "#/components/schemas/InlineQueryResultGif" + }, + { + "$ref": "#/components/schemas/InlineQueryResultLocation" + }, + { + "$ref": "#/components/schemas/InlineQueryResultMpeg4Gif" + }, + { + "$ref": "#/components/schemas/InlineQueryResultPhoto" + }, + { + "$ref": "#/components/schemas/InlineQueryResultVenue" + }, + { + "$ref": "#/components/schemas/InlineQueryResultVideo" + }, + { + "$ref": "#/components/schemas/InlineQueryResultVoice" + } + ] + }, + "InlineQueryResultArticle": { + "description": "Represents a link to an article or web page.", + "required": [ + "type", + "id", + "title", + "input_message_content" + ], + "properties": { + "type": { + "type": "string", + "default": "article" + }, + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "url": { + "type": "string" + }, + "hide_url": { + "type": "boolean" + }, + "description": { + "type": "string" + }, + "thumb_url": { + "type": "string" + }, + "thumb_width": { + "type": "integer" + }, + "thumb_height": { + "type": "integer" + } + }, + "type": "object" + }, + "InlineQueryResultPhoto": { + "description": "Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.", + "required": [ + "type", + "id", + "photo_url", + "thumb_url" + ], + "properties": { + "type": { + "type": "string", + "default": "photo" + }, + "id": { + "type": "string" + }, + "photo_url": { + "type": "string" + }, + "thumb_url": { + "type": "string" + }, + "photo_width": { + "type": "integer" + }, + "photo_height": { + "type": "integer" + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + } + }, + "type": "object" + }, + "InlineQueryResultGif": { + "description": "Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.", + "required": [ + "type", + "id", + "gif_url", + "thumb_url" + ], + "properties": { + "type": { + "type": "string", + "default": "gif" + }, + "id": { + "type": "string" + }, + "gif_url": { + "type": "string" + }, + "gif_width": { + "type": "integer" + }, + "gif_height": { + "type": "integer" + }, + "gif_duration": { + "type": "integer" + }, + "thumb_url": { + "type": "string" + }, + "thumb_mime_type": { + "type": "string", + "default": "image/jpeg" + }, + "title": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + } + }, + "type": "object" + }, + "InlineQueryResultMpeg4Gif": { + "description": "Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.", + "required": [ + "type", + "id", + "mpeg4_url", + "thumb_url" + ], + "properties": { + "type": { + "type": "string", + "default": "mpeg4_gif" + }, + "id": { + "type": "string" + }, + "mpeg4_url": { + "type": "string" + }, + "mpeg4_width": { + "type": "integer" + }, + "mpeg4_height": { + "type": "integer" + }, + "mpeg4_duration": { + "type": "integer" + }, + "thumb_url": { + "type": "string" + }, + "thumb_mime_type": { + "type": "string", + "default": "image/jpeg" + }, + "title": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + } + }, + "type": "object" + }, + "InlineQueryResultVideo": { + "description": "Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.", + "required": [ + "type", + "id", + "video_url", + "mime_type", + "thumb_url", + "title" + ], + "properties": { + "type": { + "type": "string", + "default": "video" + }, + "id": { + "type": "string" + }, + "video_url": { + "type": "string" + }, + "mime_type": { + "type": "string" + }, + "thumb_url": { + "type": "string" + }, + "title": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "video_width": { + "type": "integer" + }, + "video_height": { + "type": "integer" + }, + "video_duration": { + "type": "integer" + }, + "description": { + "type": "string" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + } + }, + "type": "object" + }, + "InlineQueryResultAudio": { + "description": "Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.", + "required": [ + "type", + "id", + "audio_url", + "title" + ], + "properties": { + "type": { + "type": "string", + "default": "audio" + }, + "id": { + "type": "string" + }, + "audio_url": { + "type": "string" + }, + "title": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "performer": { + "type": "string" + }, + "audio_duration": { + "type": "integer" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + } + }, + "type": "object" + }, + "InlineQueryResultVoice": { + "description": "Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.", + "required": [ + "type", + "id", + "voice_url", + "title" + ], + "properties": { + "type": { + "type": "string", + "default": "voice" + }, + "id": { + "type": "string" + }, + "voice_url": { + "type": "string" + }, + "title": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "voice_duration": { + "type": "integer" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + } + }, + "type": "object" + }, + "InlineQueryResultDocument": { + "description": "Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.", + "required": [ + "type", + "id", + "title", + "document_url", + "mime_type" + ], + "properties": { + "type": { + "type": "string", + "default": "document" + }, + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "document_url": { + "type": "string" + }, + "mime_type": { + "type": "string" + }, + "description": { + "type": "string" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + }, + "thumb_url": { + "type": "string" + }, + "thumb_width": { + "type": "integer" + }, + "thumb_height": { + "type": "integer" + } + }, + "type": "object" + }, + "InlineQueryResultLocation": { + "description": "Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.", + "required": [ + "type", + "id", + "latitude", + "longitude", + "title" + ], + "properties": { + "type": { + "type": "string", + "default": "location" + }, + "id": { + "type": "string" + }, + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + }, + "title": { + "type": "string" + }, + "horizontal_accuracy": { + "type": "number" + }, + "live_period": { + "type": "integer" + }, + "heading": { + "type": "integer" + }, + "proximity_alert_radius": { + "type": "integer" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + }, + "thumb_url": { + "type": "string" + }, + "thumb_width": { + "type": "integer" + }, + "thumb_height": { + "type": "integer" + } + }, + "type": "object" + }, + "InlineQueryResultVenue": { + "description": "Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.", + "required": [ + "type", + "id", + "latitude", + "longitude", + "title", + "address" + ], + "properties": { + "type": { + "type": "string", + "default": "venue" + }, + "id": { + "type": "string" + }, + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + }, + "title": { + "type": "string" + }, + "address": { + "type": "string" + }, + "foursquare_id": { + "type": "string" + }, + "foursquare_type": { + "type": "string" + }, + "google_place_id": { + "type": "string" + }, + "google_place_type": { + "type": "string" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + }, + "thumb_url": { + "type": "string" + }, + "thumb_width": { + "type": "integer" + }, + "thumb_height": { + "type": "integer" + } + }, + "type": "object" + }, + "InlineQueryResultContact": { + "description": "Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.", + "required": [ + "type", + "id", + "phone_number", + "first_name" + ], + "properties": { + "type": { + "type": "string", + "default": "contact" + }, + "id": { + "type": "string" + }, + "phone_number": { + "type": "string" + }, + "first_name": { + "type": "string" + }, + "last_name": { + "type": "string" + }, + "vcard": { + "type": "string" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + }, + "thumb_url": { + "type": "string" + }, + "thumb_width": { + "type": "integer" + }, + "thumb_height": { + "type": "integer" + } + }, + "type": "object" + }, + "InlineQueryResultGame": { + "description": "Represents a Game.", + "required": [ + "type", + "id", + "game_short_name" + ], + "properties": { + "type": { + "type": "string", + "default": "game" + }, + "id": { + "type": "string" + }, + "game_short_name": { + "type": "string" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + }, + "type": "object" + }, + "InlineQueryResultCachedPhoto": { + "description": "Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.", + "required": [ + "type", + "id", + "photo_file_id" + ], + "properties": { + "type": { + "type": "string", + "default": "photo" + }, + "id": { + "type": "string" + }, + "photo_file_id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + } + }, + "type": "object" + }, + "InlineQueryResultCachedGif": { + "description": "Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.", + "required": [ + "type", + "id", + "gif_file_id" + ], + "properties": { + "type": { + "type": "string", + "default": "gif" + }, + "id": { + "type": "string" + }, + "gif_file_id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + } + }, + "type": "object" + }, + "InlineQueryResultCachedMpeg4Gif": { + "description": "Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.", + "required": [ + "type", + "id", + "mpeg4_file_id" + ], + "properties": { + "type": { + "type": "string", + "default": "mpeg4_gif" + }, + "id": { + "type": "string" + }, + "mpeg4_file_id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + } + }, + "type": "object" + }, + "InlineQueryResultCachedSticker": { + "description": "Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.", + "required": [ + "type", + "id", + "sticker_file_id" + ], + "properties": { + "type": { + "type": "string", + "default": "sticker" + }, + "id": { + "type": "string" + }, + "sticker_file_id": { + "type": "string" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + } + }, + "type": "object" + }, + "InlineQueryResultCachedDocument": { + "description": "Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file.", + "required": [ + "type", + "id", + "title", + "document_file_id" + ], + "properties": { + "type": { + "type": "string", + "default": "document" + }, + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "document_file_id": { + "type": "string" + }, + "description": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + } + }, + "type": "object" + }, + "InlineQueryResultCachedVideo": { + "description": "Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.", + "required": [ + "type", + "id", + "video_file_id", + "title" + ], + "properties": { + "type": { + "type": "string", + "default": "video" + }, + "id": { + "type": "string" + }, + "video_file_id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + } + }, + "type": "object" + }, + "InlineQueryResultCachedVoice": { + "description": "Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.", + "required": [ + "type", + "id", + "voice_file_id", + "title" + ], + "properties": { + "type": { + "type": "string", + "default": "voice" + }, + "id": { + "type": "string" + }, + "voice_file_id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + } + }, + "type": "object" + }, + "InlineQueryResultCachedAudio": { + "description": "Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.", + "required": [ + "type", + "id", + "audio_file_id" + ], + "properties": { + "type": { + "type": "string", + "default": "audio" + }, + "id": { + "type": "string" + }, + "audio_file_id": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + "input_message_content": { + "$ref": "#/components/schemas/InputMessageContent" + } + }, + "type": "object" + }, + "InputMessageContent": { + "description": "This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types:", + "anyOf": [ + { + "$ref": "#/components/schemas/InputTextMessageContent" + }, + { + "$ref": "#/components/schemas/InputLocationMessageContent" + }, + { + "$ref": "#/components/schemas/InputVenueMessageContent" + }, + { + "$ref": "#/components/schemas/InputContactMessageContent" + }, + { + "$ref": "#/components/schemas/InputInvoiceMessageContent" + } + ] + }, + "InputTextMessageContent": { + "description": "Represents the content of a text message to be sent as the result of an inline query.", + "required": [ + "message_text" + ], + "properties": { + "message_text": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_web_page_preview": { + "type": "boolean" + } + }, + "type": "object" + }, + "InputLocationMessageContent": { + "description": "Represents the content of a location message to be sent as the result of an inline query.", + "required": [ + "latitude", + "longitude" + ], + "properties": { + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + }, + "horizontal_accuracy": { + "type": "number" + }, + "live_period": { + "type": "integer" + }, + "heading": { + "type": "integer" + }, + "proximity_alert_radius": { + "type": "integer" + } + }, + "type": "object" + }, + "InputVenueMessageContent": { + "description": "Represents the content of a venue message to be sent as the result of an inline query.", + "required": [ + "latitude", + "longitude", + "title", + "address" + ], + "properties": { + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + }, + "title": { + "type": "string" + }, + "address": { + "type": "string" + }, + "foursquare_id": { + "type": "string" + }, + "foursquare_type": { + "type": "string" + }, + "google_place_id": { + "type": "string" + }, + "google_place_type": { + "type": "string" + } + }, + "type": "object" + }, + "InputContactMessageContent": { + "description": "Represents the content of a contact message to be sent as the result of an inline query.", + "required": [ + "phone_number", + "first_name" + ], + "properties": { + "phone_number": { + "type": "string" + }, + "first_name": { + "type": "string" + }, + "last_name": { + "type": "string" + }, + "vcard": { + "type": "string" + } + }, + "type": "object" + }, + "InputInvoiceMessageContent": { + "description": "Represents the content of an invoice message to be sent as the result of an inline query.", + "required": [ + "title", + "description", + "payload", + "provider_token", + "currency", + "prices" + ], + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "payload": { + "type": "string" + }, + "provider_token": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "prices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LabeledPrice" + } + }, + "max_tip_amount": { + "type": "integer" + }, + "suggested_tip_amounts": { + "type": "array", + "items": { + "type": "integer" + } + }, + "provider_data": { + "type": "string" + }, + "photo_url": { + "type": "string" + }, + "photo_size": { + "type": "integer" + }, + "photo_width": { + "type": "integer" + }, + "photo_height": { + "type": "integer" + }, + "need_name": { + "type": "boolean" + }, + "need_phone_number": { + "type": "boolean" + }, + "need_email": { + "type": "boolean" + }, + "need_shipping_address": { + "type": "boolean" + }, + "send_phone_number_to_provider": { + "type": "boolean" + }, + "send_email_to_provider": { + "type": "boolean" + }, + "is_flexible": { + "type": "boolean" + } + }, + "type": "object" + }, + "ChosenInlineResult": { + "description": "Represents a result of an inline query that was chosen by the user and sent to their chat partner.", + "required": [ + "result_id", + "from", + "query" + ], + "properties": { + "result_id": { + "type": "string" + }, + "from": { + "$ref": "#/components/schemas/User" + }, + "location": { + "$ref": "#/components/schemas/Location" + }, + "inline_message_id": { + "type": "string" + }, + "query": { + "type": "string" + } + }, + "type": "object" + }, + "SentWebAppMessage": { + "description": "Describes an inline message sent by a Web App on behalf of a user.", + "properties": { + "inline_message_id": { + "type": "string" + } + }, + "type": "object" + }, + "LabeledPrice": { + "description": "This object represents a portion of the price for goods or services.", + "required": [ + "label", + "amount" + ], + "properties": { + "label": { + "type": "string" + }, + "amount": { + "type": "integer" + } + }, + "type": "object" + }, + "Invoice": { + "description": "This object contains basic information about an invoice.", + "required": [ + "title", + "description", + "start_parameter", + "currency", + "total_amount" + ], + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "start_parameter": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "total_amount": { + "type": "integer" + } + }, + "type": "object" + }, + "ShippingAddress": { + "description": "This object represents a shipping address.", + "required": [ + "country_code", + "state", + "city", + "street_line1", + "street_line2", + "post_code" + ], + "properties": { + "country_code": { + "type": "string" + }, + "state": { + "type": "string" + }, + "city": { + "type": "string" + }, + "street_line1": { + "type": "string" + }, + "street_line2": { + "type": "string" + }, + "post_code": { + "type": "string" + } + }, + "type": "object" + }, + "OrderInfo": { + "description": "This object represents information about an order.", + "properties": { + "name": { + "type": "string" + }, + "phone_number": { + "type": "string" + }, + "email": { + "type": "string" + }, + "shipping_address": { + "$ref": "#/components/schemas/ShippingAddress" + } + }, + "type": "object" + }, + "ShippingOption": { + "description": "This object represents one shipping option.", + "required": [ + "id", + "title", + "prices" + ], + "properties": { + "id": { + "type": "string" + }, + "title": { + "type": "string" + }, + "prices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LabeledPrice" + } + } + }, + "type": "object" + }, + "SuccessfulPayment": { + "description": "This object contains basic information about a successful payment.", + "required": [ + "currency", + "total_amount", + "invoice_payload", + "telegram_payment_charge_id", + "provider_payment_charge_id" + ], + "properties": { + "currency": { + "type": "string" + }, + "total_amount": { + "type": "integer" + }, + "invoice_payload": { + "type": "string" + }, + "shipping_option_id": { + "type": "string" + }, + "order_info": { + "$ref": "#/components/schemas/OrderInfo" + }, + "telegram_payment_charge_id": { + "type": "string" + }, + "provider_payment_charge_id": { + "type": "string" + } + }, + "type": "object" + }, + "ShippingQuery": { + "description": "This object contains information about an incoming shipping query.", + "required": [ + "id", + "from", + "invoice_payload", + "shipping_address" + ], + "properties": { + "id": { + "type": "string" + }, + "from": { + "$ref": "#/components/schemas/User" + }, + "invoice_payload": { + "type": "string" + }, + "shipping_address": { + "$ref": "#/components/schemas/ShippingAddress" + } + }, + "type": "object" + }, + "PreCheckoutQuery": { + "description": "This object contains information about an incoming pre-checkout query.", + "required": [ + "id", + "from", + "currency", + "total_amount", + "invoice_payload" + ], + "properties": { + "id": { + "type": "string" + }, + "from": { + "$ref": "#/components/schemas/User" + }, + "currency": { + "type": "string" + }, + "total_amount": { + "type": "integer" + }, + "invoice_payload": { + "type": "string" + }, + "shipping_option_id": { + "type": "string" + }, + "order_info": { + "$ref": "#/components/schemas/OrderInfo" + } + }, + "type": "object" + }, + "PassportData": { + "description": "Describes Telegram Passport data shared with the bot by the user.", + "required": [ + "data", + "credentials" + ], + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EncryptedPassportElement" + } + }, + "credentials": { + "$ref": "#/components/schemas/EncryptedCredentials" + } + }, + "type": "object" + }, + "PassportFile": { + "description": "This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB.", + "required": [ + "file_id", + "file_unique_id", + "file_size", + "file_date" + ], + "properties": { + "file_id": { + "type": "string" + }, + "file_unique_id": { + "type": "string" + }, + "file_size": { + "type": "integer" + }, + "file_date": { + "type": "integer" + } + }, + "type": "object" + }, + "EncryptedPassportElement": { + "description": "Describes documents or other Telegram Passport elements shared with the bot by the user.", + "required": [ + "type", + "hash" + ], + "properties": { + "type": { + "type": "string" + }, + "data": { + "type": "string" + }, + "phone_number": { + "type": "string" + }, + "email": { + "type": "string" + }, + "files": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PassportFile" + } + }, + "front_side": { + "$ref": "#/components/schemas/PassportFile" + }, + "reverse_side": { + "$ref": "#/components/schemas/PassportFile" + }, + "selfie": { + "$ref": "#/components/schemas/PassportFile" + }, + "translation": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PassportFile" + } + }, + "hash": { + "type": "string" + } + }, + "type": "object" + }, + "EncryptedCredentials": { + "description": "Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.", + "required": [ + "data", + "hash", + "secret" + ], + "properties": { + "data": { + "type": "string" + }, + "hash": { + "type": "string" + }, + "secret": { + "type": "string" + } + }, + "type": "object" + }, + "PassportElementError": { + "description": "This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of:", + "anyOf": [ + { + "$ref": "#/components/schemas/PassportElementErrorDataField" + }, + { + "$ref": "#/components/schemas/PassportElementErrorFrontSide" + }, + { + "$ref": "#/components/schemas/PassportElementErrorReverseSide" + }, + { + "$ref": "#/components/schemas/PassportElementErrorSelfie" + }, + { + "$ref": "#/components/schemas/PassportElementErrorFile" + }, + { + "$ref": "#/components/schemas/PassportElementErrorFiles" + }, + { + "$ref": "#/components/schemas/PassportElementErrorTranslationFile" + }, + { + "$ref": "#/components/schemas/PassportElementErrorTranslationFiles" + }, + { + "$ref": "#/components/schemas/PassportElementErrorUnspecified" + } + ] + }, + "PassportElementErrorDataField": { + "description": "Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes.", + "required": [ + "source", + "type", + "field_name", + "data_hash", + "message" + ], + "properties": { + "source": { + "type": "string", + "default": "data" + }, + "type": { + "type": "string" + }, + "field_name": { + "type": "string" + }, + "data_hash": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "type": "object" + }, + "PassportElementErrorFrontSide": { + "description": "Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.", + "required": [ + "source", + "type", + "file_hash", + "message" + ], + "properties": { + "source": { + "type": "string", + "default": "front_side" + }, + "type": { + "type": "string" + }, + "file_hash": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "type": "object" + }, + "PassportElementErrorReverseSide": { + "description": "Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes.", + "required": [ + "source", + "type", + "file_hash", + "message" + ], + "properties": { + "source": { + "type": "string", + "default": "reverse_side" + }, + "type": { + "type": "string" + }, + "file_hash": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "type": "object" + }, + "PassportElementErrorSelfie": { + "description": "Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.", + "required": [ + "source", + "type", + "file_hash", + "message" + ], + "properties": { + "source": { + "type": "string", + "default": "selfie" + }, + "type": { + "type": "string" + }, + "file_hash": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "type": "object" + }, + "PassportElementErrorFile": { + "description": "Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.", + "required": [ + "source", + "type", + "file_hash", + "message" + ], + "properties": { + "source": { + "type": "string", + "default": "file" + }, + "type": { + "type": "string" + }, + "file_hash": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "type": "object" + }, + "PassportElementErrorFiles": { + "description": "Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes.", + "required": [ + "source", + "type", + "file_hashes", + "message" + ], + "properties": { + "source": { + "type": "string", + "default": "files" + }, + "type": { + "type": "string" + }, + "file_hashes": { + "type": "array", + "items": { + "type": "string" + } + }, + "message": { + "type": "string" + } + }, + "type": "object" + }, + "PassportElementErrorTranslationFile": { + "description": "Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.", + "required": [ + "source", + "type", + "file_hash", + "message" + ], + "properties": { + "source": { + "type": "string", + "default": "translation_file" + }, + "type": { + "type": "string" + }, + "file_hash": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "type": "object" + }, + "PassportElementErrorTranslationFiles": { + "description": "Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change.", + "required": [ + "source", + "type", + "file_hashes", + "message" + ], + "properties": { + "source": { + "type": "string", + "default": "translation_files" + }, + "type": { + "type": "string" + }, + "file_hashes": { + "type": "array", + "items": { + "type": "string" + } + }, + "message": { + "type": "string" + } + }, + "type": "object" + }, + "PassportElementErrorUnspecified": { + "description": "Represents an issue in an unspecified place. The error is considered resolved when new data is added.", + "required": [ + "source", + "type", + "element_hash", + "message" + ], + "properties": { + "source": { + "type": "string", + "default": "unspecified" + }, + "type": { + "type": "string" + }, + "element_hash": { + "type": "string" + }, + "message": { + "type": "string" + } + }, + "type": "object" + }, + "Game": { + "description": "This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.", + "required": [ + "title", + "description", + "photo" + ], + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "photo": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PhotoSize" + } + }, + "text": { + "type": "string" + }, + "text_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "animation": { + "$ref": "#/components/schemas/Animation" + } + }, + "type": "object" + }, + "CallbackGame": { + "description": "A placeholder, currently holds no information. Use BotFather to set up your game.", + "type": "object" + }, + "GameHighScore": { + "description": "This object represents one row of the high scores table for a game.", + "required": [ + "position", + "user", + "score" + ], + "properties": { + "position": { + "type": "integer" + }, + "user": { + "$ref": "#/components/schemas/User" + }, + "score": { + "type": "integer" + } + }, + "type": "object" + } + } + }, + "paths": { + "/getUpdates": { + "description": "Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects.", + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "offset": { + "type": "integer" + }, + "limit": { + "type": "integer", + "default": 100 + }, + "timeout": { + "type": "integer" + }, + "allowed_updates": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "offset": { + "type": "integer" + }, + "limit": { + "type": "integer", + "default": 100 + }, + "timeout": { + "type": "integer" + }, + "allowed_updates": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "offset": { + "type": "integer" + }, + "limit": { + "type": "integer", + "default": 100 + }, + "timeout": { + "type": "integer" + }, + "allowed_updates": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Update" + } + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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, we will give up after a reasonable amount of attempts. Returns True on success.\nIf 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 “X-Telegram-Bot-Api-Secret-Token” with the secret token as content.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "url" + ], + "properties": { + "url": { + "type": "string" + }, + "certificate": { + "$ref": "#/components/schemas/InputFile" + }, + "ip_address": { + "type": "string" + }, + "max_connections": { + "type": "integer", + "default": 40 + }, + "allowed_updates": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop_pending_updates": { + "type": "boolean" + }, + "secret_token": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "url" + ], + "properties": { + "url": { + "type": "string" + }, + "certificate": { + "$ref": "#/components/schemas/InputFile" + }, + "ip_address": { + "type": "string" + }, + "max_connections": { + "type": "integer", + "default": 40 + }, + "allowed_updates": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop_pending_updates": { + "type": "boolean" + }, + "secret_token": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "url" + ], + "properties": { + "url": { + "type": "string" + }, + "certificate": { + "$ref": "#/components/schemas/InputFile" + }, + "ip_address": { + "type": "string" + }, + "max_connections": { + "type": "integer", + "default": 40 + }, + "allowed_updates": { + "type": "array", + "items": { + "type": "string" + } + }, + "drop_pending_updates": { + "type": "boolean" + }, + "secret_token": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/deleteWebhook": { + "description": "Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success.", + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "drop_pending_updates": { + "type": "boolean" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "drop_pending_updates": { + "type": "boolean" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "drop_pending_updates": { + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object" + } + }, + "multipart/form-data": { + "schema": { + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/WebhookInfo" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object" + } + }, + "multipart/form-data": { + "schema": { + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/User" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object" + } + }, + "multipart/form-data": { + "schema": { + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object" + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object" + } + }, + "multipart/form-data": { + "schema": { + "type": "object" + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/sendMessage": { + "description": "Use this method to send text messages. On success, the sent Message is returned.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "text" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "text": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_web_page_preview": { + "type": "boolean" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "text" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "text": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_web_page_preview": { + "type": "boolean" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "text" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "text": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_web_page_preview": { + "type": "boolean" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/forwardMessage": { + "description": "Use this method to forward messages of any kind. Service messages can't be forwarded. On success, the sent Message is returned.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "from_chat_id", + "message_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "from_chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "message_id": { + "type": "integer" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "from_chat_id", + "message_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "from_chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "message_id": { + "type": "integer" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "from_chat_id", + "message_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "from_chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "message_id": { + "type": "integer" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/copyMessage": { + "description": "Use this method to copy messages of any kind. Service 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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "from_chat_id", + "message_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "from_chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "from_chat_id", + "message_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "from_chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "from_chat_id", + "message_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "from_chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/MessageId" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/sendPhoto": { + "description": "Use this method to send photos. On success, the sent Message is returned.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "photo" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "photo": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "photo" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "photo": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "photo" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "photo": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.\nFor sending voice messages, use the sendVoice method instead.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "audio" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "audio": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "duration": { + "type": "integer" + }, + "performer": { + "type": "string" + }, + "title": { + "type": "string" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "audio" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "audio": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "duration": { + "type": "integer" + }, + "performer": { + "type": "string" + }, + "title": { + "type": "string" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "audio" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "audio": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "duration": { + "type": "integer" + }, + "performer": { + "type": "string" + }, + "title": { + "type": "string" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "document" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "document": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_content_type_detection": { + "type": "boolean" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "document" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "document": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_content_type_detection": { + "type": "boolean" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "document" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "document": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_content_type_detection": { + "type": "boolean" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "video" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "video": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "duration": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "supports_streaming": { + "type": "boolean" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "video" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "video": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "duration": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "supports_streaming": { + "type": "boolean" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "video" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "video": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "duration": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "supports_streaming": { + "type": "boolean" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "animation" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "animation": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "duration": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "animation" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "animation": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "duration": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "animation" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "animation": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "duration": { + "type": "integer" + }, + "width": { + "type": "integer" + }, + "height": { + "type": "integer" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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 (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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "voice" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "voice": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "duration": { + "type": "integer" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "voice" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "voice": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "duration": { + "type": "integer" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "voice" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "voice": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "duration": { + "type": "integer" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "video_note" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "video_note": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "duration": { + "type": "integer" + }, + "length": { + "type": "integer" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "video_note" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "video_note": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "duration": { + "type": "integer" + }, + "length": { + "type": "integer" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "video_note" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "video_note": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "duration": { + "type": "integer" + }, + "length": { + "type": "integer" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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 Messages that were sent is returned.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "media" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "media": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputMediaAudio" + }, + { + "$ref": "#/components/schemas/InputMediaDocument" + }, + { + "$ref": "#/components/schemas/InputMediaPhoto" + }, + { + "$ref": "#/components/schemas/InputMediaVideo" + } + ] + } + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "media" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "media": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputMediaAudio" + }, + { + "$ref": "#/components/schemas/InputMediaDocument" + }, + { + "$ref": "#/components/schemas/InputMediaPhoto" + }, + { + "$ref": "#/components/schemas/InputMediaVideo" + } + ] + } + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "media" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "media": { + "type": "array", + "items": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputMediaAudio" + }, + { + "$ref": "#/components/schemas/InputMediaDocument" + }, + { + "$ref": "#/components/schemas/InputMediaPhoto" + }, + { + "$ref": "#/components/schemas/InputMediaVideo" + } + ] + } + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Message" + } + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/sendLocation": { + "description": "Use this method to send point on the map. On success, the sent Message is returned.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "latitude", + "longitude" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + }, + "horizontal_accuracy": { + "type": "number" + }, + "live_period": { + "type": "integer" + }, + "heading": { + "type": "integer" + }, + "proximity_alert_radius": { + "type": "integer" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "latitude", + "longitude" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + }, + "horizontal_accuracy": { + "type": "number" + }, + "live_period": { + "type": "integer" + }, + "heading": { + "type": "integer" + }, + "proximity_alert_radius": { + "type": "integer" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "latitude", + "longitude" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + }, + "horizontal_accuracy": { + "type": "number" + }, + "live_period": { + "type": "integer" + }, + "heading": { + "type": "integer" + }, + "proximity_alert_radius": { + "type": "integer" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + }, + "horizontal_accuracy": { + "type": "number" + }, + "heading": { + "type": "integer" + }, + "proximity_alert_radius": { + "type": "integer" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + }, + "required": [ + "latitude", + "longitude" + ] + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + }, + "horizontal_accuracy": { + "type": "number" + }, + "heading": { + "type": "integer" + }, + "proximity_alert_radius": { + "type": "integer" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + }, + "required": [ + "latitude", + "longitude" + ] + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + }, + "horizontal_accuracy": { + "type": "number" + }, + "heading": { + "type": "integer" + }, + "proximity_alert_radius": { + "type": "integer" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + }, + "required": [ + "latitude", + "longitude" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "anyOf": [ + { + "$ref": "#/components/schemas/Message" + }, + { + "type": "boolean" + } + ] + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "anyOf": [ + { + "$ref": "#/components/schemas/Message" + }, + { + "type": "boolean" + } + ] + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/sendVenue": { + "description": "Use this method to send information about a venue. On success, the sent Message is returned.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "latitude", + "longitude", + "title", + "address" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + }, + "title": { + "type": "string" + }, + "address": { + "type": "string" + }, + "foursquare_id": { + "type": "string" + }, + "foursquare_type": { + "type": "string" + }, + "google_place_id": { + "type": "string" + }, + "google_place_type": { + "type": "string" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "latitude", + "longitude", + "title", + "address" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + }, + "title": { + "type": "string" + }, + "address": { + "type": "string" + }, + "foursquare_id": { + "type": "string" + }, + "foursquare_type": { + "type": "string" + }, + "google_place_id": { + "type": "string" + }, + "google_place_type": { + "type": "string" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "latitude", + "longitude", + "title", + "address" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + }, + "title": { + "type": "string" + }, + "address": { + "type": "string" + }, + "foursquare_id": { + "type": "string" + }, + "foursquare_type": { + "type": "string" + }, + "google_place_id": { + "type": "string" + }, + "google_place_type": { + "type": "string" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/sendContact": { + "description": "Use this method to send phone contacts. On success, the sent Message is returned.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "phone_number", + "first_name" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "phone_number": { + "type": "string" + }, + "first_name": { + "type": "string" + }, + "last_name": { + "type": "string" + }, + "vcard": { + "type": "string" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "phone_number", + "first_name" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "phone_number": { + "type": "string" + }, + "first_name": { + "type": "string" + }, + "last_name": { + "type": "string" + }, + "vcard": { + "type": "string" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "phone_number", + "first_name" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "phone_number": { + "type": "string" + }, + "first_name": { + "type": "string" + }, + "last_name": { + "type": "string" + }, + "vcard": { + "type": "string" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/sendPoll": { + "description": "Use this method to send a native poll. On success, the sent Message is returned.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "question", + "options" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "question": { + "type": "string" + }, + "options": { + "type": "array", + "items": { + "type": "string" + } + }, + "is_anonymous": { + "type": "boolean", + "default": true + }, + "type": { + "type": "string", + "default": "regular" + }, + "allows_multiple_answers": { + "type": "boolean" + }, + "correct_option_id": { + "type": "integer" + }, + "explanation": { + "type": "string" + }, + "explanation_parse_mode": { + "type": "string" + }, + "explanation_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "open_period": { + "type": "integer" + }, + "close_date": { + "type": "integer" + }, + "is_closed": { + "type": "boolean" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "question", + "options" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "question": { + "type": "string" + }, + "options": { + "type": "array", + "items": { + "type": "string" + } + }, + "is_anonymous": { + "type": "boolean", + "default": true + }, + "type": { + "type": "string", + "default": "regular" + }, + "allows_multiple_answers": { + "type": "boolean" + }, + "correct_option_id": { + "type": "integer" + }, + "explanation": { + "type": "string" + }, + "explanation_parse_mode": { + "type": "string" + }, + "explanation_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "open_period": { + "type": "integer" + }, + "close_date": { + "type": "integer" + }, + "is_closed": { + "type": "boolean" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "question", + "options" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "question": { + "type": "string" + }, + "options": { + "type": "array", + "items": { + "type": "string" + } + }, + "is_anonymous": { + "type": "boolean", + "default": true + }, + "type": { + "type": "string", + "default": "regular" + }, + "allows_multiple_answers": { + "type": "boolean" + }, + "correct_option_id": { + "type": "integer" + }, + "explanation": { + "type": "string" + }, + "explanation_parse_mode": { + "type": "string" + }, + "explanation_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "open_period": { + "type": "integer" + }, + "close_date": { + "type": "integer" + }, + "is_closed": { + "type": "boolean" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/sendDice": { + "description": "Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "emoji": { + "type": "string", + "default": "🎲" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "emoji": { + "type": "string", + "default": "🎲" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "emoji": { + "type": "string", + "default": "🎲" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.\nWe only recommend using this method when a response from the bot will take a noticeable amount of time to arrive.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "action" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "action": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "action" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "action": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "action" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "action": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/getUserProfilePhotos": { + "description": "Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "user_id" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "offset": { + "type": "integer" + }, + "limit": { + "type": "integer", + "default": 100 + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "user_id" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "offset": { + "type": "integer" + }, + "limit": { + "type": "integer", + "default": 100 + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "user_id" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "offset": { + "type": "integer" + }, + "limit": { + "type": "integer", + "default": 100 + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/UserProfilePhotos" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "file_id" + ], + "properties": { + "file_id": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "file_id" + ], + "properties": { + "file_id": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "file_id" + ], + "properties": { + "file_id": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/File" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + }, + "until_date": { + "type": "integer" + }, + "revoke_messages": { + "type": "boolean" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + }, + "until_date": { + "type": "integer" + }, + "revoke_messages": { + "type": "boolean" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + }, + "until_date": { + "type": "integer" + }, + "revoke_messages": { + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + }, + "only_if_banned": { + "type": "boolean" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + }, + "only_if_banned": { + "type": "boolean" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + }, + "only_if_banned": { + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id", + "permissions" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + }, + "permissions": { + "$ref": "#/components/schemas/ChatPermissions" + }, + "until_date": { + "type": "integer" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id", + "permissions" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + }, + "permissions": { + "$ref": "#/components/schemas/ChatPermissions" + }, + "until_date": { + "type": "integer" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id", + "permissions" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + }, + "permissions": { + "$ref": "#/components/schemas/ChatPermissions" + }, + "until_date": { + "type": "integer" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + }, + "is_anonymous": { + "type": "boolean" + }, + "can_manage_chat": { + "type": "boolean" + }, + "can_post_messages": { + "type": "boolean" + }, + "can_edit_messages": { + "type": "boolean" + }, + "can_delete_messages": { + "type": "boolean" + }, + "can_manage_video_chats": { + "type": "boolean" + }, + "can_restrict_members": { + "type": "boolean" + }, + "can_promote_members": { + "type": "boolean" + }, + "can_change_info": { + "type": "boolean" + }, + "can_invite_users": { + "type": "boolean" + }, + "can_pin_messages": { + "type": "boolean" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + }, + "is_anonymous": { + "type": "boolean" + }, + "can_manage_chat": { + "type": "boolean" + }, + "can_post_messages": { + "type": "boolean" + }, + "can_edit_messages": { + "type": "boolean" + }, + "can_delete_messages": { + "type": "boolean" + }, + "can_manage_video_chats": { + "type": "boolean" + }, + "can_restrict_members": { + "type": "boolean" + }, + "can_promote_members": { + "type": "boolean" + }, + "can_change_info": { + "type": "boolean" + }, + "can_invite_users": { + "type": "boolean" + }, + "can_pin_messages": { + "type": "boolean" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + }, + "is_anonymous": { + "type": "boolean" + }, + "can_manage_chat": { + "type": "boolean" + }, + "can_post_messages": { + "type": "boolean" + }, + "can_edit_messages": { + "type": "boolean" + }, + "can_delete_messages": { + "type": "boolean" + }, + "can_manage_video_chats": { + "type": "boolean" + }, + "can_restrict_members": { + "type": "boolean" + }, + "can_promote_members": { + "type": "boolean" + }, + "can_change_info": { + "type": "boolean" + }, + "can_invite_users": { + "type": "boolean" + }, + "can_pin_messages": { + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/setChatAdministratorCustomTitle": { + "description": "Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id", + "custom_title" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + }, + "custom_title": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id", + "custom_title" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + }, + "custom_title": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id", + "custom_title" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + }, + "custom_title": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "sender_chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "sender_chat_id": { + "type": "integer" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "sender_chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "sender_chat_id": { + "type": "integer" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "sender_chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "sender_chat_id": { + "type": "integer" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "sender_chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "sender_chat_id": { + "type": "integer" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "sender_chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "sender_chat_id": { + "type": "integer" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "sender_chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "sender_chat_id": { + "type": "integer" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "permissions" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "permissions": { + "$ref": "#/components/schemas/ChatPermissions" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "permissions" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "permissions": { + "$ref": "#/components/schemas/ChatPermissions" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "permissions" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "permissions": { + "$ref": "#/components/schemas/ChatPermissions" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "string" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "name": { + "type": "string" + }, + "expire_date": { + "type": "integer" + }, + "member_limit": { + "type": "integer" + }, + "creates_join_request": { + "type": "boolean" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "name": { + "type": "string" + }, + "expire_date": { + "type": "integer" + }, + "member_limit": { + "type": "integer" + }, + "creates_join_request": { + "type": "boolean" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "name": { + "type": "string" + }, + "expire_date": { + "type": "integer" + }, + "member_limit": { + "type": "integer" + }, + "creates_join_request": { + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/ChatInviteLink" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "invite_link" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "invite_link": { + "type": "string" + }, + "name": { + "type": "string" + }, + "expire_date": { + "type": "integer" + }, + "member_limit": { + "type": "integer" + }, + "creates_join_request": { + "type": "boolean" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "invite_link" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "invite_link": { + "type": "string" + }, + "name": { + "type": "string" + }, + "expire_date": { + "type": "integer" + }, + "member_limit": { + "type": "integer" + }, + "creates_join_request": { + "type": "boolean" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "invite_link" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "invite_link": { + "type": "string" + }, + "name": { + "type": "string" + }, + "expire_date": { + "type": "integer" + }, + "member_limit": { + "type": "integer" + }, + "creates_join_request": { + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/ChatInviteLink" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "invite_link" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "invite_link": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "invite_link" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "invite_link": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "invite_link" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "invite_link": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/ChatInviteLink" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "photo" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "photo": { + "$ref": "#/components/schemas/InputFile" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "photo" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "photo": { + "$ref": "#/components/schemas/InputFile" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "photo" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "photo": { + "$ref": "#/components/schemas/InputFile" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "title" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "title": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "title" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "title": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "title" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "title": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "description": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "description": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "description": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/pinChatMessage": { + "description": "Use this method to add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "message_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "disable_notification": { + "type": "boolean" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "message_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "disable_notification": { + "type": "boolean" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "message_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "disable_notification": { + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/unpinChatMessage": { + "description": "Use this method to remove a message from the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/unpinAllChatMessages": { + "description": "Use this method to clear the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/leaveChat": { + "description": "Use this method for your bot to leave a group, supergroup or channel. Returns True on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/getChat": { + "description": "Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a Chat object on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Chat" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/getChatAdministrators": { + "description": "Use this method to get a list of administrators in a chat, which aren't bots. Returns an Array of ChatMember objects.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ChatMember" + } + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/getChatMemberCount": { + "description": "Use this method to get the number of members in a chat. Returns Int on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "integer" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/getChatMember": { + "description": "Use this method to get information about a member of a chat. Returns a ChatMember object on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "user_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "user_id": { + "type": "integer" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/ChatMember" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "sticker_set_name" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "sticker_set_name": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "sticker_set_name" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "sticker_set_name": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "sticker_set_name" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "sticker_set_name": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "callback_query_id" + ], + "properties": { + "callback_query_id": { + "type": "string" + }, + "text": { + "type": "string" + }, + "show_alert": { + "type": "boolean" + }, + "url": { + "type": "string" + }, + "cache_time": { + "type": "integer" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "callback_query_id" + ], + "properties": { + "callback_query_id": { + "type": "string" + }, + "text": { + "type": "string" + }, + "show_alert": { + "type": "boolean" + }, + "url": { + "type": "string" + }, + "cache_time": { + "type": "integer" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "callback_query_id" + ], + "properties": { + "callback_query_id": { + "type": "string" + }, + "text": { + "type": "string" + }, + "show_alert": { + "type": "boolean" + }, + "url": { + "type": "string" + }, + "cache_time": { + "type": "integer" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/setMyCommands": { + "description": "Use this method to change the list of the bot's commands. See https://core.telegram.org/bots#commands for more details about bot commands. Returns True on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "commands" + ], + "properties": { + "commands": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BotCommand" + } + }, + "scope": { + "$ref": "#/components/schemas/BotCommandScope", + "default": "BotCommandScopeDefault" + }, + "language_code": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "commands" + ], + "properties": { + "commands": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BotCommand" + } + }, + "scope": { + "$ref": "#/components/schemas/BotCommandScope", + "default": "BotCommandScopeDefault" + }, + "language_code": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "commands" + ], + "properties": { + "commands": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BotCommand" + } + }, + "scope": { + "$ref": "#/components/schemas/BotCommandScope", + "default": "BotCommandScopeDefault" + }, + "language_code": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "scope": { + "$ref": "#/components/schemas/BotCommandScope", + "default": "BotCommandScopeDefault" + }, + "language_code": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "scope": { + "$ref": "#/components/schemas/BotCommandScope", + "default": "BotCommandScopeDefault" + }, + "language_code": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "scope": { + "$ref": "#/components/schemas/BotCommandScope", + "default": "BotCommandScopeDefault" + }, + "language_code": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "scope": { + "$ref": "#/components/schemas/BotCommandScope", + "default": "BotCommandScopeDefault" + }, + "language_code": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "scope": { + "$ref": "#/components/schemas/BotCommandScope", + "default": "BotCommandScopeDefault" + }, + "language_code": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "scope": { + "$ref": "#/components/schemas/BotCommandScope", + "default": "BotCommandScopeDefault" + }, + "language_code": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BotCommand" + } + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "type": "integer" + }, + "menu_button": { + "$ref": "#/components/schemas/MenuButton", + "default": "MenuButtonDefault" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "type": "integer" + }, + "menu_button": { + "$ref": "#/components/schemas/MenuButton", + "default": "MenuButtonDefault" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "type": "integer" + }, + "menu_button": { + "$ref": "#/components/schemas/MenuButton", + "default": "MenuButtonDefault" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "type": "integer" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "type": "integer" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "type": "integer" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/MenuButton" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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 are free to modify the list before adding the bot. Returns True on success.", + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "rights": { + "$ref": "#/components/schemas/ChatAdministratorRights" + }, + "for_channels": { + "type": "boolean" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "rights": { + "$ref": "#/components/schemas/ChatAdministratorRights" + }, + "for_channels": { + "type": "boolean" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "rights": { + "$ref": "#/components/schemas/ChatAdministratorRights" + }, + "for_channels": { + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/getMyDefaultAdministratorRights": { + "description": "Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success.", + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "for_channels": { + "type": "boolean" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "for_channels": { + "type": "boolean" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "for_channels": { + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/ChatAdministratorRights" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "text": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_web_page_preview": { + "type": "boolean" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + }, + "required": [ + "text" + ] + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "text": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_web_page_preview": { + "type": "boolean" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + }, + "required": [ + "text" + ] + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "text": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "disable_web_page_preview": { + "type": "boolean" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + }, + "required": [ + "text" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "anyOf": [ + { + "$ref": "#/components/schemas/Message" + }, + { + "type": "boolean" + } + ] + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "caption": { + "type": "string" + }, + "parse_mode": { + "type": "string" + }, + "caption_entities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessageEntity" + } + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "anyOf": [ + { + "$ref": "#/components/schemas/Message" + }, + { + "type": "boolean" + } + ] + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/editMessageMedia": { + "description": "Use this method to edit animation, audio, document, photo, or video 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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "media": { + "$ref": "#/components/schemas/InputMedia" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + }, + "required": [ + "media" + ] + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "media": { + "$ref": "#/components/schemas/InputMedia" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + }, + "required": [ + "media" + ] + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "media": { + "$ref": "#/components/schemas/InputMedia" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + }, + "required": [ + "media" + ] + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "anyOf": [ + { + "$ref": "#/components/schemas/Message" + }, + { + "type": "boolean" + } + ] + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "anyOf": [ + { + "$ref": "#/components/schemas/Message" + }, + { + "type": "boolean" + } + ] + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/stopPoll": { + "description": "Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "message_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "message_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "message_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Poll" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.- 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 permission in a supergroup or a channel, it can delete any message there.Returns True on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "message_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "message_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "message_id" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "message_id": { + "type": "integer" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/sendSticker": { + "description": "Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "sticker" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "sticker": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "sticker" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "sticker": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "sticker" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "sticker": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "anyOf": [ + { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardMarkup" + }, + { + "$ref": "#/components/schemas/ReplyKeyboardRemove" + }, + { + "$ref": "#/components/schemas/ForceReply" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/getStickerSet": { + "description": "Use this method to get a sticker set. On success, a StickerSet object is returned.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "name" + ], + "properties": { + "name": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/StickerSet" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/getCustomEmojiStickers": { + "description": "Use this method to get information about custom emoji stickers by their identifiers. Returns an Array of Sticker objects.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "custom_emoji_ids" + ], + "properties": { + "custom_emoji_ids": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "custom_emoji_ids" + ], + "properties": { + "custom_emoji_ids": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "custom_emoji_ids" + ], + "properties": { + "custom_emoji_ids": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Sticker" + } + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/uploadStickerFile": { + "description": "Use this method to upload a .PNG file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "user_id", + "png_sticker" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "png_sticker": { + "$ref": "#/components/schemas/InputFile" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "user_id", + "png_sticker" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "png_sticker": { + "$ref": "#/components/schemas/InputFile" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "user_id", + "png_sticker" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "png_sticker": { + "$ref": "#/components/schemas/InputFile" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/File" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Returns True on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "user_id", + "name", + "title", + "emojis" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "title": { + "type": "string" + }, + "png_sticker": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "tgs_sticker": { + "$ref": "#/components/schemas/InputFile" + }, + "webm_sticker": { + "$ref": "#/components/schemas/InputFile" + }, + "sticker_type": { + "type": "string" + }, + "emojis": { + "type": "string" + }, + "mask_position": { + "$ref": "#/components/schemas/MaskPosition" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "user_id", + "name", + "title", + "emojis" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "title": { + "type": "string" + }, + "png_sticker": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "tgs_sticker": { + "$ref": "#/components/schemas/InputFile" + }, + "webm_sticker": { + "$ref": "#/components/schemas/InputFile" + }, + "sticker_type": { + "type": "string" + }, + "emojis": { + "type": "string" + }, + "mask_position": { + "$ref": "#/components/schemas/MaskPosition" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "user_id", + "name", + "title", + "emojis" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "title": { + "type": "string" + }, + "png_sticker": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "tgs_sticker": { + "$ref": "#/components/schemas/InputFile" + }, + "webm_sticker": { + "$ref": "#/components/schemas/InputFile" + }, + "sticker_type": { + "type": "string" + }, + "emojis": { + "type": "string" + }, + "mask_position": { + "$ref": "#/components/schemas/MaskPosition" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/addStickerToSet": { + "description": "Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "user_id", + "name", + "emojis" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "png_sticker": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "tgs_sticker": { + "$ref": "#/components/schemas/InputFile" + }, + "webm_sticker": { + "$ref": "#/components/schemas/InputFile" + }, + "emojis": { + "type": "string" + }, + "mask_position": { + "$ref": "#/components/schemas/MaskPosition" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "user_id", + "name", + "emojis" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "png_sticker": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "tgs_sticker": { + "$ref": "#/components/schemas/InputFile" + }, + "webm_sticker": { + "$ref": "#/components/schemas/InputFile" + }, + "emojis": { + "type": "string" + }, + "mask_position": { + "$ref": "#/components/schemas/MaskPosition" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "user_id", + "name", + "emojis" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "name": { + "type": "string" + }, + "png_sticker": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + }, + "tgs_sticker": { + "$ref": "#/components/schemas/InputFile" + }, + "webm_sticker": { + "$ref": "#/components/schemas/InputFile" + }, + "emojis": { + "type": "string" + }, + "mask_position": { + "$ref": "#/components/schemas/MaskPosition" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/setStickerPositionInSet": { + "description": "Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "sticker", + "position" + ], + "properties": { + "sticker": { + "type": "string" + }, + "position": { + "type": "integer" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "sticker", + "position" + ], + "properties": { + "sticker": { + "type": "string" + }, + "position": { + "type": "integer" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "sticker", + "position" + ], + "properties": { + "sticker": { + "type": "string" + }, + "position": { + "type": "integer" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/deleteStickerFromSet": { + "description": "Use this method to delete a sticker from a set created by the bot. Returns True on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "sticker" + ], + "properties": { + "sticker": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "sticker" + ], + "properties": { + "sticker": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "sticker" + ], + "properties": { + "sticker": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/setStickerSetThumb": { + "description": "Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Video thumbnails can be set only for video sticker sets only. Returns True on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "name", + "user_id" + ], + "properties": { + "name": { + "type": "string" + }, + "user_id": { + "type": "integer" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "name", + "user_id" + ], + "properties": { + "name": { + "type": "string" + }, + "user_id": { + "type": "integer" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "name", + "user_id" + ], + "properties": { + "name": { + "type": "string" + }, + "user_id": { + "type": "integer" + }, + "thumb": { + "anyOf": [ + { + "$ref": "#/components/schemas/InputFile" + }, + { + "type": "string" + } + ] + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "inline_query_id", + "results" + ], + "properties": { + "inline_query_id": { + "type": "string" + }, + "results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InlineQueryResult" + } + }, + "cache_time": { + "type": "integer", + "default": 300 + }, + "is_personal": { + "type": "boolean" + }, + "next_offset": { + "type": "string" + }, + "switch_pm_text": { + "type": "string" + }, + "switch_pm_parameter": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "inline_query_id", + "results" + ], + "properties": { + "inline_query_id": { + "type": "string" + }, + "results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InlineQueryResult" + } + }, + "cache_time": { + "type": "integer", + "default": 300 + }, + "is_personal": { + "type": "boolean" + }, + "next_offset": { + "type": "string" + }, + "switch_pm_text": { + "type": "string" + }, + "switch_pm_parameter": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "inline_query_id", + "results" + ], + "properties": { + "inline_query_id": { + "type": "string" + }, + "results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InlineQueryResult" + } + }, + "cache_time": { + "type": "integer", + "default": 300 + }, + "is_personal": { + "type": "boolean" + }, + "next_offset": { + "type": "string" + }, + "switch_pm_text": { + "type": "string" + }, + "switch_pm_parameter": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "web_app_query_id", + "result" + ], + "properties": { + "web_app_query_id": { + "type": "string" + }, + "result": { + "$ref": "#/components/schemas/InlineQueryResult" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "web_app_query_id", + "result" + ], + "properties": { + "web_app_query_id": { + "type": "string" + }, + "result": { + "$ref": "#/components/schemas/InlineQueryResult" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "web_app_query_id", + "result" + ], + "properties": { + "web_app_query_id": { + "type": "string" + }, + "result": { + "$ref": "#/components/schemas/InlineQueryResult" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/SentWebAppMessage" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/sendInvoice": { + "description": "Use this method to send invoices. On success, the sent Message is returned.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "title", + "description", + "payload", + "provider_token", + "currency", + "prices" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "payload": { + "type": "string" + }, + "provider_token": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "prices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LabeledPrice" + } + }, + "max_tip_amount": { + "type": "integer" + }, + "suggested_tip_amounts": { + "type": "array", + "items": { + "type": "integer" + } + }, + "start_parameter": { + "type": "string" + }, + "provider_data": { + "type": "string" + }, + "photo_url": { + "type": "string" + }, + "photo_size": { + "type": "integer" + }, + "photo_width": { + "type": "integer" + }, + "photo_height": { + "type": "integer" + }, + "need_name": { + "type": "boolean" + }, + "need_phone_number": { + "type": "boolean" + }, + "need_email": { + "type": "boolean" + }, + "need_shipping_address": { + "type": "boolean" + }, + "send_phone_number_to_provider": { + "type": "boolean" + }, + "send_email_to_provider": { + "type": "boolean" + }, + "is_flexible": { + "type": "boolean" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "title", + "description", + "payload", + "provider_token", + "currency", + "prices" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "payload": { + "type": "string" + }, + "provider_token": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "prices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LabeledPrice" + } + }, + "max_tip_amount": { + "type": "integer" + }, + "suggested_tip_amounts": { + "type": "array", + "items": { + "type": "integer" + } + }, + "start_parameter": { + "type": "string" + }, + "provider_data": { + "type": "string" + }, + "photo_url": { + "type": "string" + }, + "photo_size": { + "type": "integer" + }, + "photo_width": { + "type": "integer" + }, + "photo_height": { + "type": "integer" + }, + "need_name": { + "type": "boolean" + }, + "need_phone_number": { + "type": "boolean" + }, + "need_email": { + "type": "boolean" + }, + "need_shipping_address": { + "type": "boolean" + }, + "send_phone_number_to_provider": { + "type": "boolean" + }, + "send_email_to_provider": { + "type": "boolean" + }, + "is_flexible": { + "type": "boolean" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "title", + "description", + "payload", + "provider_token", + "currency", + "prices" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "payload": { + "type": "string" + }, + "provider_token": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "prices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LabeledPrice" + } + }, + "max_tip_amount": { + "type": "integer" + }, + "suggested_tip_amounts": { + "type": "array", + "items": { + "type": "integer" + } + }, + "start_parameter": { + "type": "string" + }, + "provider_data": { + "type": "string" + }, + "photo_url": { + "type": "string" + }, + "photo_size": { + "type": "integer" + }, + "photo_width": { + "type": "integer" + }, + "photo_height": { + "type": "integer" + }, + "need_name": { + "type": "boolean" + }, + "need_phone_number": { + "type": "boolean" + }, + "need_email": { + "type": "boolean" + }, + "need_shipping_address": { + "type": "boolean" + }, + "send_phone_number_to_provider": { + "type": "boolean" + }, + "send_email_to_provider": { + "type": "boolean" + }, + "is_flexible": { + "type": "boolean" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/createInvoiceLink": { + "description": "Use this method to create a link for an invoice. Returns the created invoice link as String on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "title", + "description", + "payload", + "provider_token", + "currency", + "prices" + ], + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "payload": { + "type": "string" + }, + "provider_token": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "prices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LabeledPrice" + } + }, + "max_tip_amount": { + "type": "integer" + }, + "suggested_tip_amounts": { + "type": "array", + "items": { + "type": "integer" + } + }, + "provider_data": { + "type": "string" + }, + "photo_url": { + "type": "string" + }, + "photo_size": { + "type": "integer" + }, + "photo_width": { + "type": "integer" + }, + "photo_height": { + "type": "integer" + }, + "need_name": { + "type": "boolean" + }, + "need_phone_number": { + "type": "boolean" + }, + "need_email": { + "type": "boolean" + }, + "need_shipping_address": { + "type": "boolean" + }, + "send_phone_number_to_provider": { + "type": "boolean" + }, + "send_email_to_provider": { + "type": "boolean" + }, + "is_flexible": { + "type": "boolean" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "title", + "description", + "payload", + "provider_token", + "currency", + "prices" + ], + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "payload": { + "type": "string" + }, + "provider_token": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "prices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LabeledPrice" + } + }, + "max_tip_amount": { + "type": "integer" + }, + "suggested_tip_amounts": { + "type": "array", + "items": { + "type": "integer" + } + }, + "provider_data": { + "type": "string" + }, + "photo_url": { + "type": "string" + }, + "photo_size": { + "type": "integer" + }, + "photo_width": { + "type": "integer" + }, + "photo_height": { + "type": "integer" + }, + "need_name": { + "type": "boolean" + }, + "need_phone_number": { + "type": "boolean" + }, + "need_email": { + "type": "boolean" + }, + "need_shipping_address": { + "type": "boolean" + }, + "send_phone_number_to_provider": { + "type": "boolean" + }, + "send_email_to_provider": { + "type": "boolean" + }, + "is_flexible": { + "type": "boolean" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "title", + "description", + "payload", + "provider_token", + "currency", + "prices" + ], + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "payload": { + "type": "string" + }, + "provider_token": { + "type": "string" + }, + "currency": { + "type": "string" + }, + "prices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LabeledPrice" + } + }, + "max_tip_amount": { + "type": "integer" + }, + "suggested_tip_amounts": { + "type": "array", + "items": { + "type": "integer" + } + }, + "provider_data": { + "type": "string" + }, + "photo_url": { + "type": "string" + }, + "photo_size": { + "type": "integer" + }, + "photo_width": { + "type": "integer" + }, + "photo_height": { + "type": "integer" + }, + "need_name": { + "type": "boolean" + }, + "need_phone_number": { + "type": "boolean" + }, + "need_email": { + "type": "boolean" + }, + "need_shipping_address": { + "type": "boolean" + }, + "send_phone_number_to_provider": { + "type": "boolean" + }, + "send_email_to_provider": { + "type": "boolean" + }, + "is_flexible": { + "type": "boolean" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "string" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "shipping_query_id", + "ok" + ], + "properties": { + "shipping_query_id": { + "type": "string" + }, + "ok": { + "type": "boolean" + }, + "shipping_options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ShippingOption" + } + }, + "error_message": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "shipping_query_id", + "ok" + ], + "properties": { + "shipping_query_id": { + "type": "string" + }, + "ok": { + "type": "boolean" + }, + "shipping_options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ShippingOption" + } + }, + "error_message": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "shipping_query_id", + "ok" + ], + "properties": { + "shipping_query_id": { + "type": "string" + }, + "ok": { + "type": "boolean" + }, + "shipping_options": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ShippingOption" + } + }, + "error_message": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "pre_checkout_query_id", + "ok" + ], + "properties": { + "pre_checkout_query_id": { + "type": "string" + }, + "ok": { + "type": "boolean" + }, + "error_message": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "pre_checkout_query_id", + "ok" + ], + "properties": { + "pre_checkout_query_id": { + "type": "string" + }, + "ok": { + "type": "boolean" + }, + "error_message": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "pre_checkout_query_id", + "ok" + ], + "properties": { + "pre_checkout_query_id": { + "type": "string" + }, + "ok": { + "type": "boolean" + }, + "error_message": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.\nUse 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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "user_id", + "errors" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PassportElementError" + } + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "user_id", + "errors" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PassportElementError" + } + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "user_id", + "errors" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "errors": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PassportElementError" + } + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "boolean" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/sendGame": { + "description": "Use this method to send a game. On success, the sent Message is returned.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "game_short_name" + ], + "properties": { + "chat_id": { + "type": "integer" + }, + "game_short_name": { + "type": "string" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "game_short_name" + ], + "properties": { + "chat_id": { + "type": "integer" + }, + "game_short_name": { + "type": "string" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "game_short_name" + ], + "properties": { + "chat_id": { + "type": "integer" + }, + "game_short_name": { + "type": "string" + }, + "disable_notification": { + "type": "boolean" + }, + "protect_content": { + "type": "boolean" + }, + "reply_to_message_id": { + "type": "integer" + }, + "allow_sending_without_reply": { + "type": "boolean" + }, + "reply_markup": { + "$ref": "#/components/schemas/InlineKeyboardMarkup" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "$ref": "#/components/schemas/Message" + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "user_id", + "score" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "score": { + "type": "integer" + }, + "force": { + "type": "boolean" + }, + "disable_edit_message": { + "type": "boolean" + }, + "chat_id": { + "type": "integer" + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "user_id", + "score" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "score": { + "type": "integer" + }, + "force": { + "type": "boolean" + }, + "disable_edit_message": { + "type": "boolean" + }, + "chat_id": { + "type": "integer" + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "user_id", + "score" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "score": { + "type": "integer" + }, + "force": { + "type": "boolean" + }, + "disable_edit_message": { + "type": "boolean" + }, + "chat_id": { + "type": "integer" + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "anyOf": [ + { + "$ref": "#/components/schemas/Message" + }, + { + "type": "boolean" + } + ] + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + }, + "/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.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "user_id" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "chat_id": { + "type": "integer" + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "user_id" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "chat_id": { + "type": "integer" + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "user_id" + ], + "properties": { + "user_id": { + "type": "integer" + }, + "chat_id": { + "type": "integer" + }, + "message_id": { + "type": "integer" + }, + "inline_message_id": { + "type": "string" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "Request was successful, the result is returned.", + "content": { + "application/json": { + "schema": { + "allOf": [ + { + "$ref": "#/components/schemas/Success" + }, + { + "type": "object", + "properties": { + "result": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameHighScore" + } + } + } + } + ] + } + } + } + }, + "400": { + "$ref": "#/components/responses/BadRequest" + }, + "401": { + "$ref": "#/components/responses/Unauthorized" + }, + "403": { + "$ref": "#/components/responses/Forbidden" + }, + "404": { + "$ref": "#/components/responses/NotFound" + }, + "409": { + "$ref": "#/components/responses/Conflict" + }, + "429": { + "$ref": "#/components/responses/TooManyRequests" + }, + "5XX": { + "$ref": "#/components/responses/ServerError" + }, + "default": { + "$ref": "#/components/responses/UnknownError" + } + } + } + } + } +} \ No newline at end of file diff --git a/files/openapi/yaml/v620.yaml b/files/openapi/yaml/v620.yaml new file mode 100644 index 0000000..2b5f7cf --- /dev/null +++ b/files/openapi/yaml/v620.yaml @@ -0,0 +1,12090 @@ +openapi: 3.0.0 +info: + title: 'Telegram Bot API' + description: 'Auto-generated OpenAPI schema by TGScraper.' + version: 6.2.0 +servers: + - + url: 'https://api.telegram.org/bot{token}' + variables: + token: + default: '1234:AAbbcc' + description: "Bot's unique authentication token, given by @BotFather." +externalDocs: + description: 'Official Telegram Bot API documentation.' + url: 'https://core.telegram.org/bots/api' +components: + responses: + BadRequest: + description: 'Bad request, you have provided malformed data.' + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + Unauthorized: + description: 'The authorization token is invalid or it has been revoked.' + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + Forbidden: + description: 'This action is forbidden.' + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + NotFound: + description: 'The specified resource was not found.' + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + Conflict: + description: 'There is a conflict with another instance using webhook or polling.' + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + TooManyRequests: + description: "You're doing too many requests, retry after a while." + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + ServerError: + description: 'The bot API is experiencing some issues, try again later.' + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + UnknownError: + description: 'An unknown error occurred.' + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + schemas: + Response: + type: object + description: 'Represents the default response object.' + required: + - ok + properties: + ok: + type: boolean + Success: + description: 'Request was successful, the result is returned.' + allOf: + - + $ref: '#/components/schemas/Response' + - + type: object + required: + - result + properties: + result: + type: object + Error: + description: 'Request was unsuccessful, so an error occurred.' + allOf: + - + $ref: '#/components/schemas/Response' + - + type: object + required: + - error_code + - description + properties: + error_code: + type: integer + description: + type: string + parameters: + $ref: '#/components/schemas/ResponseParameters' + Update: + description: 'This object represents an incoming update.At most one of the optional parameters can be present in any given update.' + required: + - update_id + properties: + update_id: + type: integer + message: + $ref: '#/components/schemas/Message' + edited_message: + $ref: '#/components/schemas/Message' + channel_post: + $ref: '#/components/schemas/Message' + edited_channel_post: + $ref: '#/components/schemas/Message' + inline_query: + $ref: '#/components/schemas/InlineQuery' + chosen_inline_result: + $ref: '#/components/schemas/ChosenInlineResult' + callback_query: + $ref: '#/components/schemas/CallbackQuery' + shipping_query: + $ref: '#/components/schemas/ShippingQuery' + pre_checkout_query: + $ref: '#/components/schemas/PreCheckoutQuery' + poll: + $ref: '#/components/schemas/Poll' + poll_answer: + $ref: '#/components/schemas/PollAnswer' + my_chat_member: + $ref: '#/components/schemas/ChatMemberUpdated' + chat_member: + $ref: '#/components/schemas/ChatMemberUpdated' + chat_join_request: + $ref: '#/components/schemas/ChatJoinRequest' + type: object + WebhookInfo: + description: 'Describes the current status of a webhook.' + required: + - url + - has_custom_certificate + - pending_update_count + properties: + url: + type: string + has_custom_certificate: + type: boolean + pending_update_count: + type: integer + ip_address: + type: string + last_error_date: + type: integer + last_error_message: + type: string + last_synchronization_error_date: + type: integer + max_connections: + type: integer + allowed_updates: + type: array + items: + type: string + type: object + User: + description: 'This object represents a Telegram user or bot.' + required: + - id + - is_bot + - first_name + properties: + id: + type: integer + is_bot: + type: boolean + first_name: + type: string + last_name: + type: string + username: + type: string + language_code: + type: string + is_premium: + type: boolean + default: true + added_to_attachment_menu: + type: boolean + default: true + can_join_groups: + type: boolean + can_read_all_group_messages: + type: boolean + supports_inline_queries: + type: boolean + type: object + Chat: + description: 'This object represents a chat.' + required: + - id + - type + properties: + id: + type: integer + type: + type: string + title: + type: string + username: + type: string + first_name: + type: string + last_name: + type: string + photo: + $ref: '#/components/schemas/ChatPhoto' + bio: + type: string + has_private_forwards: + type: boolean + default: true + has_restricted_voice_and_video_messages: + type: boolean + default: true + join_to_send_messages: + type: boolean + default: true + join_by_request: + type: boolean + default: true + description: + type: string + invite_link: + type: string + pinned_message: + $ref: '#/components/schemas/Message' + permissions: + $ref: '#/components/schemas/ChatPermissions' + slow_mode_delay: + type: integer + message_auto_delete_time: + type: integer + has_protected_content: + type: boolean + default: true + sticker_set_name: + type: string + can_set_sticker_set: + type: boolean + default: true + linked_chat_id: + type: integer + location: + $ref: '#/components/schemas/ChatLocation' + type: object + Message: + description: 'This object represents a message.' + required: + - message_id + - date + - chat + properties: + message_id: + type: integer + from: + $ref: '#/components/schemas/User' + sender_chat: + $ref: '#/components/schemas/Chat' + date: + type: integer + chat: + $ref: '#/components/schemas/Chat' + forward_from: + $ref: '#/components/schemas/User' + forward_from_chat: + $ref: '#/components/schemas/Chat' + forward_from_message_id: + type: integer + forward_signature: + type: string + forward_sender_name: + type: string + forward_date: + type: integer + is_automatic_forward: + type: boolean + default: true + reply_to_message: + $ref: '#/components/schemas/Message' + via_bot: + $ref: '#/components/schemas/User' + edit_date: + type: integer + has_protected_content: + type: boolean + default: true + media_group_id: + type: string + author_signature: + type: string + text: + type: string + entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + animation: + $ref: '#/components/schemas/Animation' + audio: + $ref: '#/components/schemas/Audio' + document: + $ref: '#/components/schemas/Document' + photo: + type: array + items: + $ref: '#/components/schemas/PhotoSize' + sticker: + $ref: '#/components/schemas/Sticker' + video: + $ref: '#/components/schemas/Video' + video_note: + $ref: '#/components/schemas/VideoNote' + voice: + $ref: '#/components/schemas/Voice' + caption: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + contact: + $ref: '#/components/schemas/Contact' + dice: + $ref: '#/components/schemas/Dice' + game: + $ref: '#/components/schemas/Game' + poll: + $ref: '#/components/schemas/Poll' + venue: + $ref: '#/components/schemas/Venue' + location: + $ref: '#/components/schemas/Location' + new_chat_members: + type: array + items: + $ref: '#/components/schemas/User' + left_chat_member: + $ref: '#/components/schemas/User' + new_chat_title: + type: string + new_chat_photo: + type: array + items: + $ref: '#/components/schemas/PhotoSize' + delete_chat_photo: + type: boolean + default: true + group_chat_created: + type: boolean + default: true + supergroup_chat_created: + type: boolean + default: true + channel_chat_created: + type: boolean + default: true + message_auto_delete_timer_changed: + $ref: '#/components/schemas/MessageAutoDeleteTimerChanged' + migrate_to_chat_id: + type: integer + migrate_from_chat_id: + type: integer + pinned_message: + $ref: '#/components/schemas/Message' + invoice: + $ref: '#/components/schemas/Invoice' + successful_payment: + $ref: '#/components/schemas/SuccessfulPayment' + connected_website: + type: string + passport_data: + $ref: '#/components/schemas/PassportData' + proximity_alert_triggered: + $ref: '#/components/schemas/ProximityAlertTriggered' + video_chat_scheduled: + $ref: '#/components/schemas/VideoChatScheduled' + video_chat_started: + $ref: '#/components/schemas/VideoChatStarted' + video_chat_ended: + $ref: '#/components/schemas/VideoChatEnded' + video_chat_participants_invited: + $ref: '#/components/schemas/VideoChatParticipantsInvited' + web_app_data: + $ref: '#/components/schemas/WebAppData' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + type: object + MessageId: + description: 'This object represents a unique message identifier.' + required: + - message_id + properties: + message_id: + type: integer + type: object + MessageEntity: + description: 'This object represents one special entity in a text message. For example, hashtags, usernames, URLs, etc.' + required: + - type + - offset + - length + properties: + type: + type: string + offset: + type: integer + length: + type: integer + url: + type: string + user: + $ref: '#/components/schemas/User' + language: + type: string + custom_emoji_id: + type: string + type: object + PhotoSize: + description: 'This object represents one size of a photo or a file / sticker thumbnail.' + required: + - file_id + - file_unique_id + - width + - height + properties: + file_id: + type: string + file_unique_id: + type: string + width: + type: integer + height: + type: integer + file_size: + type: integer + type: object + Animation: + description: 'This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound).' + required: + - file_id + - file_unique_id + - width + - height + - duration + properties: + file_id: + type: string + file_unique_id: + type: string + width: + type: integer + height: + type: integer + duration: + type: integer + thumb: + $ref: '#/components/schemas/PhotoSize' + file_name: + type: string + mime_type: + type: string + file_size: + type: integer + type: object + Audio: + description: 'This object represents an audio file to be treated as music by the Telegram clients.' + required: + - file_id + - file_unique_id + - duration + properties: + file_id: + type: string + file_unique_id: + type: string + duration: + type: integer + performer: + type: string + title: + type: string + file_name: + type: string + mime_type: + type: string + file_size: + type: integer + thumb: + $ref: '#/components/schemas/PhotoSize' + type: object + Document: + description: 'This object represents a general file (as opposed to photos, voice messages and audio files).' + required: + - file_id + - file_unique_id + properties: + file_id: + type: string + file_unique_id: + type: string + thumb: + $ref: '#/components/schemas/PhotoSize' + file_name: + type: string + mime_type: + type: string + file_size: + type: integer + type: object + Video: + description: 'This object represents a video file.' + required: + - file_id + - file_unique_id + - width + - height + - duration + properties: + file_id: + type: string + file_unique_id: + type: string + width: + type: integer + height: + type: integer + duration: + type: integer + thumb: + $ref: '#/components/schemas/PhotoSize' + file_name: + type: string + mime_type: + type: string + file_size: + type: integer + type: object + VideoNote: + description: 'This object represents a video message (available in Telegram apps as of v.4.0).' + required: + - file_id + - file_unique_id + - length + - duration + properties: + file_id: + type: string + file_unique_id: + type: string + length: + type: integer + duration: + type: integer + thumb: + $ref: '#/components/schemas/PhotoSize' + file_size: + type: integer + type: object + Voice: + description: 'This object represents a voice note.' + required: + - file_id + - file_unique_id + - duration + properties: + file_id: + type: string + file_unique_id: + type: string + duration: + type: integer + mime_type: + type: string + file_size: + type: integer + type: object + Contact: + description: 'This object represents a phone contact.' + required: + - phone_number + - first_name + properties: + phone_number: + type: string + first_name: + type: string + last_name: + type: string + user_id: + type: integer + vcard: + type: string + type: object + Dice: + description: 'This object represents an animated emoji that displays a random value.' + required: + - emoji + - value + properties: + emoji: + type: string + value: + type: integer + type: object + PollOption: + description: 'This object contains information about one answer option in a poll.' + required: + - text + - voter_count + properties: + text: + type: string + voter_count: + type: integer + type: object + PollAnswer: + description: 'This object represents an answer of a user in a non-anonymous poll.' + required: + - poll_id + - user + - option_ids + properties: + poll_id: + type: string + user: + $ref: '#/components/schemas/User' + option_ids: + type: array + items: + type: integer + type: object + Poll: + description: 'This object contains information about a poll.' + required: + - id + - question + - options + - total_voter_count + - is_closed + - is_anonymous + - type + - allows_multiple_answers + properties: + id: + type: string + question: + type: string + options: + type: array + items: + $ref: '#/components/schemas/PollOption' + total_voter_count: + type: integer + is_closed: + type: boolean + is_anonymous: + type: boolean + type: + type: string + allows_multiple_answers: + type: boolean + correct_option_id: + type: integer + explanation: + type: string + explanation_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + open_period: + type: integer + close_date: + type: integer + type: object + Location: + description: 'This object represents a point on the map.' + required: + - longitude + - latitude + properties: + longitude: + type: number + latitude: + type: number + horizontal_accuracy: + type: number + live_period: + type: integer + heading: + type: integer + proximity_alert_radius: + type: integer + type: object + Venue: + description: 'This object represents a venue.' + required: + - location + - title + - address + properties: + location: + $ref: '#/components/schemas/Location' + title: + type: string + address: + type: string + foursquare_id: + type: string + foursquare_type: + type: string + google_place_id: + type: string + google_place_type: + type: string + type: object + WebAppData: + description: 'Describes data sent from a Web App to the bot.' + required: + - data + - button_text + properties: + data: + type: string + button_text: + type: string + type: object + 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.' + required: + - traveler + - watcher + - distance + properties: + traveler: + $ref: '#/components/schemas/User' + watcher: + $ref: '#/components/schemas/User' + distance: + type: integer + type: object + MessageAutoDeleteTimerChanged: + description: 'This object represents a service message about a change in auto-delete timer settings.' + required: + - message_auto_delete_time + properties: + message_auto_delete_time: + type: integer + type: object + VideoChatScheduled: + description: 'This object represents a service message about a video chat scheduled in the chat.' + required: + - start_date + properties: + start_date: + type: integer + type: object + VideoChatStarted: + description: 'This object represents a service message about a video chat started in the chat. Currently holds no information.' + type: object + VideoChatEnded: + description: 'This object represents a service message about a video chat ended in the chat.' + required: + - duration + properties: + duration: + type: integer + type: object + VideoChatParticipantsInvited: + description: 'This object represents a service message about new members invited to a video chat.' + required: + - users + properties: + users: + type: array + items: + $ref: '#/components/schemas/User' + type: object + UserProfilePhotos: + description: "This object represent a user's profile pictures." + required: + - total_count + - photos + properties: + total_count: + type: integer + photos: + type: array + items: + type: array + items: + $ref: '#/components/schemas/PhotoSize' + type: object + File: + description: 'This object represents a file ready to be downloaded. The file can be downloaded via the link https://api.telegram.org/file/bot/. 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.' + required: + - file_id + - file_unique_id + properties: + file_id: + type: string + file_unique_id: + type: string + file_size: + type: integer + file_path: + type: string + type: object + WebAppInfo: + description: 'Describes a Web App.' + required: + - url + properties: + url: + type: string + type: object + ReplyKeyboardMarkup: + description: 'This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).' + required: + - keyboard + properties: + keyboard: + type: array + items: + type: array + items: + $ref: '#/components/schemas/KeyboardButton' + resize_keyboard: + type: boolean + one_time_keyboard: + type: boolean + input_field_placeholder: + type: string + selective: + type: boolean + type: object + KeyboardButton: + description: 'This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields web_app, request_contact, request_location, and request_poll are mutually exclusive.' + required: + - text + properties: + text: + type: string + request_contact: + type: boolean + request_location: + type: boolean + request_poll: + $ref: '#/components/schemas/KeyboardButtonPollType' + web_app: + $ref: '#/components/schemas/WebAppInfo' + type: object + KeyboardButtonPollType: + description: 'This object represents type of a poll, which is allowed to be created and sent when the corresponding button is pressed.' + properties: + type: + type: string + type: object + ReplyKeyboardRemove: + description: 'Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup).' + required: + - remove_keyboard + properties: + remove_keyboard: + type: boolean + default: true + selective: + type: boolean + type: object + InlineKeyboardMarkup: + description: 'This object represents an inline keyboard that appears right next to the message it belongs to.' + required: + - inline_keyboard + properties: + inline_keyboard: + type: array + items: + type: array + items: + $ref: '#/components/schemas/InlineKeyboardButton' + type: object + InlineKeyboardButton: + description: 'This object represents one button of an inline keyboard. You must use exactly one of the optional fields.' + required: + - text + properties: + text: + type: string + url: + type: string + callback_data: + type: string + web_app: + $ref: '#/components/schemas/WebAppInfo' + login_url: + $ref: '#/components/schemas/LoginUrl' + switch_inline_query: + type: string + switch_inline_query_current_chat: + type: string + callback_game: + $ref: '#/components/schemas/CallbackGame' + pay: + type: boolean + type: object + LoginUrl: + description: "This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in:\nTelegram apps support these buttons as of version 5.7." + required: + - url + properties: + url: + type: string + forward_text: + type: string + bot_username: + type: string + request_write_access: + type: boolean + type: object + CallbackQuery: + description: 'This object represents an incoming callback query from a callback button in an inline keyboard. If the button that originated the query was attached to a message sent by the bot, the field message will be present. If the button was attached to a message sent via the bot (in inline mode), the field inline_message_id will be present. Exactly one of the fields data or game_short_name will be present.' + required: + - id + - from + - chat_instance + properties: + id: + type: string + from: + $ref: '#/components/schemas/User' + message: + $ref: '#/components/schemas/Message' + inline_message_id: + type: string + chat_instance: + type: string + data: + type: string + game_short_name: + type: string + type: object + ForceReply: + description: "Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode." + required: + - force_reply + properties: + force_reply: + type: boolean + default: true + input_field_placeholder: + type: string + selective: + type: boolean + type: object + ChatPhoto: + description: 'This object represents a chat photo.' + required: + - small_file_id + - small_file_unique_id + - big_file_id + - big_file_unique_id + properties: + small_file_id: + type: string + small_file_unique_id: + type: string + big_file_id: + type: string + big_file_unique_id: + type: string + type: object + ChatInviteLink: + description: 'Represents an invite link for a chat.' + required: + - invite_link + - creator + - creates_join_request + - is_primary + - is_revoked + properties: + invite_link: + type: string + creator: + $ref: '#/components/schemas/User' + creates_join_request: + type: boolean + is_primary: + type: boolean + is_revoked: + type: boolean + name: + type: string + expire_date: + type: integer + member_limit: + type: integer + pending_join_request_count: + type: integer + type: object + ChatAdministratorRights: + description: 'Represents the rights of an administrator in a chat.' + required: + - is_anonymous + - can_manage_chat + - can_delete_messages + - can_manage_video_chats + - can_restrict_members + - can_promote_members + - can_change_info + - can_invite_users + properties: + is_anonymous: + type: boolean + can_manage_chat: + type: boolean + can_delete_messages: + type: boolean + can_manage_video_chats: + type: boolean + can_restrict_members: + type: boolean + can_promote_members: + type: boolean + can_change_info: + type: boolean + can_invite_users: + type: boolean + can_post_messages: + type: boolean + can_edit_messages: + type: boolean + can_pin_messages: + type: boolean + type: object + ChatMember: + description: 'This object contains information about one member of a chat. Currently, the following 6 types of chat members are supported:' + anyOf: + - + $ref: '#/components/schemas/ChatMemberOwner' + - + $ref: '#/components/schemas/ChatMemberAdministrator' + - + $ref: '#/components/schemas/ChatMemberMember' + - + $ref: '#/components/schemas/ChatMemberRestricted' + - + $ref: '#/components/schemas/ChatMemberLeft' + - + $ref: '#/components/schemas/ChatMemberBanned' + ChatMemberOwner: + description: 'Represents a chat member that owns the chat and has all administrator privileges.' + required: + - status + - user + - is_anonymous + properties: + status: + type: string + user: + $ref: '#/components/schemas/User' + is_anonymous: + type: boolean + custom_title: + type: string + type: object + ChatMemberAdministrator: + description: 'Represents a chat member that has some additional privileges.' + required: + - status + - user + - can_be_edited + - is_anonymous + - can_manage_chat + - can_delete_messages + - can_manage_video_chats + - can_restrict_members + - can_promote_members + - can_change_info + - can_invite_users + properties: + status: + type: string + user: + $ref: '#/components/schemas/User' + can_be_edited: + type: boolean + is_anonymous: + type: boolean + can_manage_chat: + type: boolean + can_delete_messages: + type: boolean + can_manage_video_chats: + type: boolean + can_restrict_members: + type: boolean + can_promote_members: + type: boolean + can_change_info: + type: boolean + can_invite_users: + type: boolean + can_post_messages: + type: boolean + can_edit_messages: + type: boolean + can_pin_messages: + type: boolean + custom_title: + type: string + type: object + ChatMemberMember: + description: 'Represents a chat member that has no additional privileges or restrictions.' + required: + - status + - user + properties: + status: + type: string + user: + $ref: '#/components/schemas/User' + type: object + ChatMemberRestricted: + description: 'Represents a chat member that is under certain restrictions in the chat. Supergroups only.' + required: + - status + - user + - is_member + - can_change_info + - can_invite_users + - can_pin_messages + - can_send_messages + - can_send_media_messages + - can_send_polls + - can_send_other_messages + - can_add_web_page_previews + - until_date + properties: + status: + type: string + user: + $ref: '#/components/schemas/User' + is_member: + type: boolean + can_change_info: + type: boolean + can_invite_users: + type: boolean + can_pin_messages: + type: boolean + can_send_messages: + type: boolean + can_send_media_messages: + type: boolean + can_send_polls: + type: boolean + can_send_other_messages: + type: boolean + can_add_web_page_previews: + type: boolean + until_date: + type: integer + type: object + ChatMemberLeft: + description: "Represents a chat member that isn't currently a member of the chat, but may join it themselves." + required: + - status + - user + properties: + status: + type: string + user: + $ref: '#/components/schemas/User' + type: object + ChatMemberBanned: + description: "Represents a chat member that was banned in the chat and can't return to the chat or view chat messages." + required: + - status + - user + - until_date + properties: + status: + type: string + user: + $ref: '#/components/schemas/User' + until_date: + type: integer + type: object + ChatMemberUpdated: + description: 'This object represents changes in the status of a chat member.' + required: + - chat + - from + - date + - old_chat_member + - new_chat_member + properties: + chat: + $ref: '#/components/schemas/Chat' + from: + $ref: '#/components/schemas/User' + date: + type: integer + old_chat_member: + $ref: '#/components/schemas/ChatMember' + new_chat_member: + $ref: '#/components/schemas/ChatMember' + invite_link: + $ref: '#/components/schemas/ChatInviteLink' + type: object + ChatJoinRequest: + description: 'Represents a join request sent to a chat.' + required: + - chat + - from + - date + properties: + chat: + $ref: '#/components/schemas/Chat' + from: + $ref: '#/components/schemas/User' + date: + type: integer + bio: + type: string + invite_link: + $ref: '#/components/schemas/ChatInviteLink' + type: object + ChatPermissions: + description: 'Describes actions that a non-administrator user is allowed to take in a chat.' + properties: + can_send_messages: + type: boolean + can_send_media_messages: + type: boolean + can_send_polls: + type: boolean + can_send_other_messages: + type: boolean + can_add_web_page_previews: + type: boolean + can_change_info: + type: boolean + can_invite_users: + type: boolean + can_pin_messages: + type: boolean + type: object + ChatLocation: + description: 'Represents a location to which a chat is connected.' + required: + - location + - address + properties: + location: + $ref: '#/components/schemas/Location' + address: + type: string + type: object + BotCommand: + description: 'This object represents a bot command.' + required: + - command + - description + properties: + command: + type: string + description: + type: string + type: object + BotCommandScope: + description: 'This object represents the scope to which bot commands are applied. Currently, the following 7 scopes are supported:' + anyOf: + - + $ref: '#/components/schemas/BotCommandScopeDefault' + - + $ref: '#/components/schemas/BotCommandScopeAllPrivateChats' + - + $ref: '#/components/schemas/BotCommandScopeAllGroupChats' + - + $ref: '#/components/schemas/BotCommandScopeAllChatAdministrators' + - + $ref: '#/components/schemas/BotCommandScopeChat' + - + $ref: '#/components/schemas/BotCommandScopeChatAdministrators' + - + $ref: '#/components/schemas/BotCommandScopeChatMember' + BotCommandScopeDefault: + description: 'Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user.' + required: + - type + properties: + type: + type: string + default: default + type: object + BotCommandScopeAllPrivateChats: + description: 'Represents the scope of bot commands, covering all private chats.' + required: + - type + properties: + type: + type: string + default: all_private_chats + type: object + BotCommandScopeAllGroupChats: + description: 'Represents the scope of bot commands, covering all group and supergroup chats.' + required: + - type + properties: + type: + type: string + default: all_group_chats + type: object + BotCommandScopeAllChatAdministrators: + description: 'Represents the scope of bot commands, covering all group and supergroup chat administrators.' + required: + - type + properties: + type: + type: string + default: all_chat_administrators + type: object + BotCommandScopeChat: + description: 'Represents the scope of bot commands, covering a specific chat.' + required: + - type + - chat_id + properties: + type: + type: string + default: chat + chat_id: + anyOf: + - + type: integer + - + type: string + type: object + BotCommandScopeChatAdministrators: + description: 'Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.' + required: + - type + - chat_id + properties: + type: + type: string + default: chat_administrators + chat_id: + anyOf: + - + type: integer + - + type: string + type: object + BotCommandScopeChatMember: + description: 'Represents the scope of bot commands, covering a specific member of a group or supergroup chat.' + required: + - type + - chat_id + - user_id + properties: + type: + type: string + default: chat_member + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + type: object + MenuButton: + description: "This object describes the bot's menu button in a private chat. It should be one of" + anyOf: + - + $ref: '#/components/schemas/MenuButtonCommands' + - + $ref: '#/components/schemas/MenuButtonWebApp' + - + $ref: '#/components/schemas/MenuButtonDefault' + MenuButtonCommands: + description: "Represents a menu button, which opens the bot's list of commands." + required: + - type + properties: + type: + type: string + default: commands + type: object + MenuButtonWebApp: + description: 'Represents a menu button, which launches a Web App.' + required: + - type + - text + - web_app + properties: + type: + type: string + default: web_app + text: + type: string + web_app: + $ref: '#/components/schemas/WebAppInfo' + type: object + MenuButtonDefault: + description: 'Describes that no specific value for the menu button was set.' + required: + - type + properties: + type: + type: string + default: default + type: object + ResponseParameters: + description: 'Describes why a request was unsuccessful.' + properties: + migrate_to_chat_id: + type: integer + retry_after: + type: integer + type: object + InputMedia: + description: 'This object represents the content of a media message to be sent. It should be one of' + anyOf: + - + $ref: '#/components/schemas/InputMediaAnimation' + - + $ref: '#/components/schemas/InputMediaDocument' + - + $ref: '#/components/schemas/InputMediaAudio' + - + $ref: '#/components/schemas/InputMediaPhoto' + - + $ref: '#/components/schemas/InputMediaVideo' + InputMediaPhoto: + description: 'Represents a photo to be sent.' + required: + - type + - media + properties: + type: + type: string + default: photo + media: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + type: object + InputMediaVideo: + description: 'Represents a video to be sent.' + required: + - type + - media + properties: + type: + type: string + default: video + media: + type: string + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + width: + type: integer + height: + type: integer + duration: + type: integer + supports_streaming: + type: boolean + type: object + InputMediaAnimation: + description: 'Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.' + required: + - type + - media + properties: + type: + type: string + default: animation + media: + type: string + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + width: + type: integer + height: + type: integer + duration: + type: integer + type: object + InputMediaAudio: + description: 'Represents an audio file to be treated as music to be sent.' + required: + - type + - media + properties: + type: + type: string + default: audio + media: + type: string + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + duration: + type: integer + performer: + type: string + title: + type: string + type: object + InputMediaDocument: + description: 'Represents a general file to be sent.' + required: + - type + - media + properties: + type: + type: string + default: document + media: + type: string + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_content_type_detection: + type: boolean + type: object + InputFile: + description: 'This object represents the contents of a file to be uploaded. Must be posted using multipart/form-data in the usual way that files are uploaded via the browser.' + type: object + Sticker: + description: 'This object represents a sticker.' + required: + - file_id + - file_unique_id + - type + - width + - height + - is_animated + - is_video + properties: + file_id: + type: string + file_unique_id: + type: string + type: + type: string + width: + type: integer + height: + type: integer + is_animated: + type: boolean + is_video: + type: boolean + thumb: + $ref: '#/components/schemas/PhotoSize' + emoji: + type: string + set_name: + type: string + premium_animation: + $ref: '#/components/schemas/File' + mask_position: + $ref: '#/components/schemas/MaskPosition' + custom_emoji_id: + type: string + file_size: + type: integer + type: object + StickerSet: + description: 'This object represents a sticker set.' + required: + - name + - title + - sticker_type + - is_animated + - is_video + - stickers + properties: + name: + type: string + title: + type: string + sticker_type: + type: string + is_animated: + type: boolean + is_video: + type: boolean + stickers: + type: array + items: + $ref: '#/components/schemas/Sticker' + thumb: + $ref: '#/components/schemas/PhotoSize' + type: object + MaskPosition: + description: 'This object describes the position on faces where a mask should be placed by default.' + required: + - point + - x_shift + - y_shift + - scale + properties: + point: + type: string + x_shift: + type: number + y_shift: + type: number + scale: + type: number + type: object + InlineQuery: + description: 'This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.' + required: + - id + - from + - query + - offset + properties: + id: + type: string + from: + $ref: '#/components/schemas/User' + query: + type: string + offset: + type: string + chat_type: + type: string + location: + $ref: '#/components/schemas/Location' + type: object + InlineQueryResult: + description: 'This object represents one result of an inline query. Telegram clients currently support results of the following 20 types:' + anyOf: + - + $ref: '#/components/schemas/InlineQueryResultCachedAudio' + - + $ref: '#/components/schemas/InlineQueryResultCachedDocument' + - + $ref: '#/components/schemas/InlineQueryResultCachedGif' + - + $ref: '#/components/schemas/InlineQueryResultCachedMpeg4Gif' + - + $ref: '#/components/schemas/InlineQueryResultCachedPhoto' + - + $ref: '#/components/schemas/InlineQueryResultCachedSticker' + - + $ref: '#/components/schemas/InlineQueryResultCachedVideo' + - + $ref: '#/components/schemas/InlineQueryResultCachedVoice' + - + $ref: '#/components/schemas/InlineQueryResultArticle' + - + $ref: '#/components/schemas/InlineQueryResultAudio' + - + $ref: '#/components/schemas/InlineQueryResultContact' + - + $ref: '#/components/schemas/InlineQueryResultGame' + - + $ref: '#/components/schemas/InlineQueryResultDocument' + - + $ref: '#/components/schemas/InlineQueryResultGif' + - + $ref: '#/components/schemas/InlineQueryResultLocation' + - + $ref: '#/components/schemas/InlineQueryResultMpeg4Gif' + - + $ref: '#/components/schemas/InlineQueryResultPhoto' + - + $ref: '#/components/schemas/InlineQueryResultVenue' + - + $ref: '#/components/schemas/InlineQueryResultVideo' + - + $ref: '#/components/schemas/InlineQueryResultVoice' + InlineQueryResultArticle: + description: 'Represents a link to an article or web page.' + required: + - type + - id + - title + - input_message_content + properties: + type: + type: string + default: article + id: + type: string + title: + type: string + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + url: + type: string + hide_url: + type: boolean + description: + type: string + thumb_url: + type: string + thumb_width: + type: integer + thumb_height: + type: integer + type: object + InlineQueryResultPhoto: + description: 'Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.' + required: + - type + - id + - photo_url + - thumb_url + properties: + type: + type: string + default: photo + id: + type: string + photo_url: + type: string + thumb_url: + type: string + photo_width: + type: integer + photo_height: + type: integer + title: + type: string + description: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + type: object + InlineQueryResultGif: + description: 'Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.' + required: + - type + - id + - gif_url + - thumb_url + properties: + type: + type: string + default: gif + id: + type: string + gif_url: + type: string + gif_width: + type: integer + gif_height: + type: integer + gif_duration: + type: integer + thumb_url: + type: string + thumb_mime_type: + type: string + default: image/jpeg + title: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + type: object + InlineQueryResultMpeg4Gif: + description: 'Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.' + required: + - type + - id + - mpeg4_url + - thumb_url + properties: + type: + type: string + default: mpeg4_gif + id: + type: string + mpeg4_url: + type: string + mpeg4_width: + type: integer + mpeg4_height: + type: integer + mpeg4_duration: + type: integer + thumb_url: + type: string + thumb_mime_type: + type: string + default: image/jpeg + title: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + type: object + InlineQueryResultVideo: + description: 'Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.' + required: + - type + - id + - video_url + - mime_type + - thumb_url + - title + properties: + type: + type: string + default: video + id: + type: string + video_url: + type: string + mime_type: + type: string + thumb_url: + type: string + title: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + video_width: + type: integer + video_height: + type: integer + video_duration: + type: integer + description: + type: string + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + type: object + InlineQueryResultAudio: + description: 'Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.' + required: + - type + - id + - audio_url + - title + properties: + type: + type: string + default: audio + id: + type: string + audio_url: + type: string + title: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + performer: + type: string + audio_duration: + type: integer + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + type: object + InlineQueryResultVoice: + description: 'Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.' + required: + - type + - id + - voice_url + - title + properties: + type: + type: string + default: voice + id: + type: string + voice_url: + type: string + title: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + voice_duration: + type: integer + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + type: object + InlineQueryResultDocument: + description: 'Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.' + required: + - type + - id + - title + - document_url + - mime_type + properties: + type: + type: string + default: document + id: + type: string + title: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + document_url: + type: string + mime_type: + type: string + description: + type: string + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + thumb_url: + type: string + thumb_width: + type: integer + thumb_height: + type: integer + type: object + InlineQueryResultLocation: + description: 'Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.' + required: + - type + - id + - latitude + - longitude + - title + properties: + type: + type: string + default: location + id: + type: string + latitude: + type: number + longitude: + type: number + title: + type: string + horizontal_accuracy: + type: number + live_period: + type: integer + heading: + type: integer + proximity_alert_radius: + type: integer + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + thumb_url: + type: string + thumb_width: + type: integer + thumb_height: + type: integer + type: object + InlineQueryResultVenue: + description: 'Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.' + required: + - type + - id + - latitude + - longitude + - title + - address + properties: + type: + type: string + default: venue + id: + type: string + latitude: + type: number + longitude: + type: number + title: + type: string + address: + type: string + foursquare_id: + type: string + foursquare_type: + type: string + google_place_id: + type: string + google_place_type: + type: string + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + thumb_url: + type: string + thumb_width: + type: integer + thumb_height: + type: integer + type: object + InlineQueryResultContact: + description: 'Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.' + required: + - type + - id + - phone_number + - first_name + properties: + type: + type: string + default: contact + id: + type: string + phone_number: + type: string + first_name: + type: string + last_name: + type: string + vcard: + type: string + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + thumb_url: + type: string + thumb_width: + type: integer + thumb_height: + type: integer + type: object + InlineQueryResultGame: + description: 'Represents a Game.' + required: + - type + - id + - game_short_name + properties: + type: + type: string + default: game + id: + type: string + game_short_name: + type: string + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + type: object + InlineQueryResultCachedPhoto: + description: 'Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.' + required: + - type + - id + - photo_file_id + properties: + type: + type: string + default: photo + id: + type: string + photo_file_id: + type: string + title: + type: string + description: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + type: object + InlineQueryResultCachedGif: + description: 'Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.' + required: + - type + - id + - gif_file_id + properties: + type: + type: string + default: gif + id: + type: string + gif_file_id: + type: string + title: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + type: object + InlineQueryResultCachedMpeg4Gif: + description: 'Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.' + required: + - type + - id + - mpeg4_file_id + properties: + type: + type: string + default: mpeg4_gif + id: + type: string + mpeg4_file_id: + type: string + title: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + type: object + InlineQueryResultCachedSticker: + description: 'Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.' + required: + - type + - id + - sticker_file_id + properties: + type: + type: string + default: sticker + id: + type: string + sticker_file_id: + type: string + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + type: object + InlineQueryResultCachedDocument: + description: 'Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file.' + required: + - type + - id + - title + - document_file_id + properties: + type: + type: string + default: document + id: + type: string + title: + type: string + document_file_id: + type: string + description: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + type: object + InlineQueryResultCachedVideo: + description: 'Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.' + required: + - type + - id + - video_file_id + - title + properties: + type: + type: string + default: video + id: + type: string + video_file_id: + type: string + title: + type: string + description: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + type: object + InlineQueryResultCachedVoice: + description: 'Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.' + required: + - type + - id + - voice_file_id + - title + properties: + type: + type: string + default: voice + id: + type: string + voice_file_id: + type: string + title: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + type: object + InlineQueryResultCachedAudio: + description: 'Represents a link to an MP3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.' + required: + - type + - id + - audio_file_id + properties: + type: + type: string + default: audio + id: + type: string + audio_file_id: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + input_message_content: + $ref: '#/components/schemas/InputMessageContent' + type: object + InputMessageContent: + description: 'This object represents the content of a message to be sent as a result of an inline query. Telegram clients currently support the following 5 types:' + anyOf: + - + $ref: '#/components/schemas/InputTextMessageContent' + - + $ref: '#/components/schemas/InputLocationMessageContent' + - + $ref: '#/components/schemas/InputVenueMessageContent' + - + $ref: '#/components/schemas/InputContactMessageContent' + - + $ref: '#/components/schemas/InputInvoiceMessageContent' + InputTextMessageContent: + description: 'Represents the content of a text message to be sent as the result of an inline query.' + required: + - message_text + properties: + message_text: + type: string + parse_mode: + type: string + entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_web_page_preview: + type: boolean + type: object + InputLocationMessageContent: + description: 'Represents the content of a location message to be sent as the result of an inline query.' + required: + - latitude + - longitude + properties: + latitude: + type: number + longitude: + type: number + horizontal_accuracy: + type: number + live_period: + type: integer + heading: + type: integer + proximity_alert_radius: + type: integer + type: object + InputVenueMessageContent: + description: 'Represents the content of a venue message to be sent as the result of an inline query.' + required: + - latitude + - longitude + - title + - address + properties: + latitude: + type: number + longitude: + type: number + title: + type: string + address: + type: string + foursquare_id: + type: string + foursquare_type: + type: string + google_place_id: + type: string + google_place_type: + type: string + type: object + InputContactMessageContent: + description: 'Represents the content of a contact message to be sent as the result of an inline query.' + required: + - phone_number + - first_name + properties: + phone_number: + type: string + first_name: + type: string + last_name: + type: string + vcard: + type: string + type: object + InputInvoiceMessageContent: + description: 'Represents the content of an invoice message to be sent as the result of an inline query.' + required: + - title + - description + - payload + - provider_token + - currency + - prices + properties: + title: + type: string + description: + type: string + payload: + type: string + provider_token: + type: string + currency: + type: string + prices: + type: array + items: + $ref: '#/components/schemas/LabeledPrice' + max_tip_amount: + type: integer + suggested_tip_amounts: + type: array + items: + type: integer + provider_data: + type: string + photo_url: + type: string + photo_size: + type: integer + photo_width: + type: integer + photo_height: + type: integer + need_name: + type: boolean + need_phone_number: + type: boolean + need_email: + type: boolean + need_shipping_address: + type: boolean + send_phone_number_to_provider: + type: boolean + send_email_to_provider: + type: boolean + is_flexible: + type: boolean + type: object + ChosenInlineResult: + description: 'Represents a result of an inline query that was chosen by the user and sent to their chat partner.' + required: + - result_id + - from + - query + properties: + result_id: + type: string + from: + $ref: '#/components/schemas/User' + location: + $ref: '#/components/schemas/Location' + inline_message_id: + type: string + query: + type: string + type: object + SentWebAppMessage: + description: 'Describes an inline message sent by a Web App on behalf of a user.' + properties: + inline_message_id: + type: string + type: object + LabeledPrice: + description: 'This object represents a portion of the price for goods or services.' + required: + - label + - amount + properties: + label: + type: string + amount: + type: integer + type: object + Invoice: + description: 'This object contains basic information about an invoice.' + required: + - title + - description + - start_parameter + - currency + - total_amount + properties: + title: + type: string + description: + type: string + start_parameter: + type: string + currency: + type: string + total_amount: + type: integer + type: object + ShippingAddress: + description: 'This object represents a shipping address.' + required: + - country_code + - state + - city + - street_line1 + - street_line2 + - post_code + properties: + country_code: + type: string + state: + type: string + city: + type: string + street_line1: + type: string + street_line2: + type: string + post_code: + type: string + type: object + OrderInfo: + description: 'This object represents information about an order.' + properties: + name: + type: string + phone_number: + type: string + email: + type: string + shipping_address: + $ref: '#/components/schemas/ShippingAddress' + type: object + ShippingOption: + description: 'This object represents one shipping option.' + required: + - id + - title + - prices + properties: + id: + type: string + title: + type: string + prices: + type: array + items: + $ref: '#/components/schemas/LabeledPrice' + type: object + SuccessfulPayment: + description: 'This object contains basic information about a successful payment.' + required: + - currency + - total_amount + - invoice_payload + - telegram_payment_charge_id + - provider_payment_charge_id + properties: + currency: + type: string + total_amount: + type: integer + invoice_payload: + type: string + shipping_option_id: + type: string + order_info: + $ref: '#/components/schemas/OrderInfo' + telegram_payment_charge_id: + type: string + provider_payment_charge_id: + type: string + type: object + ShippingQuery: + description: 'This object contains information about an incoming shipping query.' + required: + - id + - from + - invoice_payload + - shipping_address + properties: + id: + type: string + from: + $ref: '#/components/schemas/User' + invoice_payload: + type: string + shipping_address: + $ref: '#/components/schemas/ShippingAddress' + type: object + PreCheckoutQuery: + description: 'This object contains information about an incoming pre-checkout query.' + required: + - id + - from + - currency + - total_amount + - invoice_payload + properties: + id: + type: string + from: + $ref: '#/components/schemas/User' + currency: + type: string + total_amount: + type: integer + invoice_payload: + type: string + shipping_option_id: + type: string + order_info: + $ref: '#/components/schemas/OrderInfo' + type: object + PassportData: + description: 'Describes Telegram Passport data shared with the bot by the user.' + required: + - data + - credentials + properties: + data: + type: array + items: + $ref: '#/components/schemas/EncryptedPassportElement' + credentials: + $ref: '#/components/schemas/EncryptedCredentials' + type: object + PassportFile: + description: "This object represents a file uploaded to Telegram Passport. Currently all Telegram Passport files are in JPEG format when decrypted and don't exceed 10MB." + required: + - file_id + - file_unique_id + - file_size + - file_date + properties: + file_id: + type: string + file_unique_id: + type: string + file_size: + type: integer + file_date: + type: integer + type: object + EncryptedPassportElement: + description: 'Describes documents or other Telegram Passport elements shared with the bot by the user.' + required: + - type + - hash + properties: + type: + type: string + data: + type: string + phone_number: + type: string + email: + type: string + files: + type: array + items: + $ref: '#/components/schemas/PassportFile' + front_side: + $ref: '#/components/schemas/PassportFile' + reverse_side: + $ref: '#/components/schemas/PassportFile' + selfie: + $ref: '#/components/schemas/PassportFile' + translation: + type: array + items: + $ref: '#/components/schemas/PassportFile' + hash: + type: string + type: object + EncryptedCredentials: + description: 'Describes data required for decrypting and authenticating EncryptedPassportElement. See the Telegram Passport Documentation for a complete description of the data decryption and authentication processes.' + required: + - data + - hash + - secret + properties: + data: + type: string + hash: + type: string + secret: + type: string + type: object + PassportElementError: + description: 'This object represents an error in the Telegram Passport element which was submitted that should be resolved by the user. It should be one of:' + anyOf: + - + $ref: '#/components/schemas/PassportElementErrorDataField' + - + $ref: '#/components/schemas/PassportElementErrorFrontSide' + - + $ref: '#/components/schemas/PassportElementErrorReverseSide' + - + $ref: '#/components/schemas/PassportElementErrorSelfie' + - + $ref: '#/components/schemas/PassportElementErrorFile' + - + $ref: '#/components/schemas/PassportElementErrorFiles' + - + $ref: '#/components/schemas/PassportElementErrorTranslationFile' + - + $ref: '#/components/schemas/PassportElementErrorTranslationFiles' + - + $ref: '#/components/schemas/PassportElementErrorUnspecified' + PassportElementErrorDataField: + description: "Represents an issue in one of the data fields that was provided by the user. The error is considered resolved when the field's value changes." + required: + - source + - type + - field_name + - data_hash + - message + properties: + source: + type: string + default: data + type: + type: string + field_name: + type: string + data_hash: + type: string + message: + type: string + type: object + PassportElementErrorFrontSide: + description: 'Represents an issue with the front side of a document. The error is considered resolved when the file with the front side of the document changes.' + required: + - source + - type + - file_hash + - message + properties: + source: + type: string + default: front_side + type: + type: string + file_hash: + type: string + message: + type: string + type: object + PassportElementErrorReverseSide: + description: 'Represents an issue with the reverse side of a document. The error is considered resolved when the file with reverse side of the document changes.' + required: + - source + - type + - file_hash + - message + properties: + source: + type: string + default: reverse_side + type: + type: string + file_hash: + type: string + message: + type: string + type: object + PassportElementErrorSelfie: + description: 'Represents an issue with the selfie with a document. The error is considered resolved when the file with the selfie changes.' + required: + - source + - type + - file_hash + - message + properties: + source: + type: string + default: selfie + type: + type: string + file_hash: + type: string + message: + type: string + type: object + PassportElementErrorFile: + description: 'Represents an issue with a document scan. The error is considered resolved when the file with the document scan changes.' + required: + - source + - type + - file_hash + - message + properties: + source: + type: string + default: file + type: + type: string + file_hash: + type: string + message: + type: string + type: object + PassportElementErrorFiles: + description: 'Represents an issue with a list of scans. The error is considered resolved when the list of files containing the scans changes.' + required: + - source + - type + - file_hashes + - message + properties: + source: + type: string + default: files + type: + type: string + file_hashes: + type: array + items: + type: string + message: + type: string + type: object + PassportElementErrorTranslationFile: + description: 'Represents an issue with one of the files that constitute the translation of a document. The error is considered resolved when the file changes.' + required: + - source + - type + - file_hash + - message + properties: + source: + type: string + default: translation_file + type: + type: string + file_hash: + type: string + message: + type: string + type: object + PassportElementErrorTranslationFiles: + description: 'Represents an issue with the translated version of a document. The error is considered resolved when a file with the document translation change.' + required: + - source + - type + - file_hashes + - message + properties: + source: + type: string + default: translation_files + type: + type: string + file_hashes: + type: array + items: + type: string + message: + type: string + type: object + PassportElementErrorUnspecified: + description: 'Represents an issue in an unspecified place. The error is considered resolved when new data is added.' + required: + - source + - type + - element_hash + - message + properties: + source: + type: string + default: unspecified + type: + type: string + element_hash: + type: string + message: + type: string + type: object + Game: + description: 'This object represents a game. Use BotFather to create and edit games, their short names will act as unique identifiers.' + required: + - title + - description + - photo + properties: + title: + type: string + description: + type: string + photo: + type: array + items: + $ref: '#/components/schemas/PhotoSize' + text: + type: string + text_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + animation: + $ref: '#/components/schemas/Animation' + type: object + CallbackGame: + description: 'A placeholder, currently holds no information. Use BotFather to set up your game.' + type: object + GameHighScore: + description: 'This object represents one row of the high scores table for a game.' + required: + - position + - user + - score + properties: + position: + type: integer + user: + $ref: '#/components/schemas/User' + score: + type: integer + type: object +paths: + /getUpdates: + description: 'Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects.' + post: + requestBody: + content: + application/json: + schema: + type: object + properties: + offset: + type: integer + limit: + type: integer + default: 100 + timeout: + type: integer + allowed_updates: + type: array + items: + type: string + application/x-www-form-urlencoded: + schema: + type: object + properties: + offset: + type: integer + limit: + type: integer + default: 100 + timeout: + type: integer + allowed_updates: + type: array + items: + type: string + multipart/form-data: + schema: + type: object + properties: + offset: + type: integer + limit: + type: integer + default: 100 + timeout: + type: integer + allowed_updates: + type: array + items: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: array + items: + $ref: '#/components/schemas/Update' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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, we will give up after a reasonable amount of attempts. Returns True on success.\nIf 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 “X-Telegram-Bot-Api-Secret-Token” with the secret token as content." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - url + properties: + url: + type: string + certificate: + $ref: '#/components/schemas/InputFile' + ip_address: + type: string + max_connections: + type: integer + default: 40 + allowed_updates: + type: array + items: + type: string + drop_pending_updates: + type: boolean + secret_token: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - url + properties: + url: + type: string + certificate: + $ref: '#/components/schemas/InputFile' + ip_address: + type: string + max_connections: + type: integer + default: 40 + allowed_updates: + type: array + items: + type: string + drop_pending_updates: + type: boolean + secret_token: + type: string + multipart/form-data: + schema: + type: object + required: + - url + properties: + url: + type: string + certificate: + $ref: '#/components/schemas/InputFile' + ip_address: + type: string + max_connections: + type: integer + default: 40 + allowed_updates: + type: array + items: + type: string + drop_pending_updates: + type: boolean + secret_token: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /deleteWebhook: + description: 'Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success.' + post: + requestBody: + content: + application/json: + schema: + type: object + properties: + drop_pending_updates: + type: boolean + application/x-www-form-urlencoded: + schema: + type: object + properties: + drop_pending_updates: + type: boolean + multipart/form-data: + schema: + type: object + properties: + drop_pending_updates: + type: boolean + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + content: + application/json: + schema: + type: object + application/x-www-form-urlencoded: + schema: + type: object + multipart/form-data: + schema: + type: object + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/WebhookInfo' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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." + post: + requestBody: + content: + application/json: + schema: + type: object + application/x-www-form-urlencoded: + schema: + type: object + multipart/form-data: + schema: + type: object + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/User' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + content: + application/json: + schema: + type: object + application/x-www-form-urlencoded: + schema: + type: object + multipart/form-data: + schema: + type: object + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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." + post: + requestBody: + content: + application/json: + schema: + type: object + application/x-www-form-urlencoded: + schema: + type: object + multipart/form-data: + schema: + type: object + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /sendMessage: + description: 'Use this method to send text messages. On success, the sent Message is returned.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - text + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + text: + type: string + parse_mode: + type: string + entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_web_page_preview: + type: boolean + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - text + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + text: + type: string + parse_mode: + type: string + entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_web_page_preview: + type: boolean + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + multipart/form-data: + schema: + type: object + required: + - chat_id + - text + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + text: + type: string + parse_mode: + type: string + entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_web_page_preview: + type: boolean + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /forwardMessage: + description: "Use this method to forward messages of any kind. Service messages can't be forwarded. On success, the sent Message is returned." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - from_chat_id + - message_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + from_chat_id: + anyOf: + - + type: integer + - + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + message_id: + type: integer + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - from_chat_id + - message_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + from_chat_id: + anyOf: + - + type: integer + - + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + message_id: + type: integer + multipart/form-data: + schema: + type: object + required: + - chat_id + - from_chat_id + - message_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + from_chat_id: + anyOf: + - + type: integer + - + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + message_id: + type: integer + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /copyMessage: + description: "Use this method to copy messages of any kind. Service 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." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - from_chat_id + - message_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + from_chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - from_chat_id + - message_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + from_chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + multipart/form-data: + schema: + type: object + required: + - chat_id + - from_chat_id + - message_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + from_chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/MessageId' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /sendPhoto: + description: 'Use this method to send photos. On success, the sent Message is returned.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - photo + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + photo: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - photo + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + photo: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + multipart/form-data: + schema: + type: object + required: + - chat_id + - photo + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + photo: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.\nFor sending voice messages, use the sendVoice method instead." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - audio + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + audio: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + duration: + type: integer + performer: + type: string + title: + type: string + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - audio + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + audio: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + duration: + type: integer + performer: + type: string + title: + type: string + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + multipart/form-data: + schema: + type: object + required: + - chat_id + - audio + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + audio: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + duration: + type: integer + performer: + type: string + title: + type: string + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - document + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + document: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_content_type_detection: + type: boolean + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - document + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + document: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_content_type_detection: + type: boolean + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + multipart/form-data: + schema: + type: object + required: + - chat_id + - document + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + document: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_content_type_detection: + type: boolean + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - video + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + video: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + duration: + type: integer + width: + type: integer + height: + type: integer + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + supports_streaming: + type: boolean + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - video + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + video: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + duration: + type: integer + width: + type: integer + height: + type: integer + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + supports_streaming: + type: boolean + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + multipart/form-data: + schema: + type: object + required: + - chat_id + - video + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + video: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + duration: + type: integer + width: + type: integer + height: + type: integer + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + supports_streaming: + type: boolean + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - animation + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + animation: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + duration: + type: integer + width: + type: integer + height: + type: integer + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - animation + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + animation: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + duration: + type: integer + width: + type: integer + height: + type: integer + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + multipart/form-data: + schema: + type: object + required: + - chat_id + - animation + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + animation: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + duration: + type: integer + width: + type: integer + height: + type: integer + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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 (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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - voice + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + voice: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + duration: + type: integer + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - voice + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + voice: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + duration: + type: integer + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + multipart/form-data: + schema: + type: object + required: + - chat_id + - voice + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + voice: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + duration: + type: integer + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - video_note + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + video_note: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + duration: + type: integer + length: + type: integer + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - video_note + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + video_note: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + duration: + type: integer + length: + type: integer + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + multipart/form-data: + schema: + type: object + required: + - chat_id + - video_note + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + video_note: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + duration: + type: integer + length: + type: integer + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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 Messages that were sent is returned.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - media + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + media: + type: array + items: + anyOf: + - + $ref: '#/components/schemas/InputMediaAudio' + - + $ref: '#/components/schemas/InputMediaDocument' + - + $ref: '#/components/schemas/InputMediaPhoto' + - + $ref: '#/components/schemas/InputMediaVideo' + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - media + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + media: + type: array + items: + anyOf: + - + $ref: '#/components/schemas/InputMediaAudio' + - + $ref: '#/components/schemas/InputMediaDocument' + - + $ref: '#/components/schemas/InputMediaPhoto' + - + $ref: '#/components/schemas/InputMediaVideo' + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + multipart/form-data: + schema: + type: object + required: + - chat_id + - media + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + media: + type: array + items: + anyOf: + - + $ref: '#/components/schemas/InputMediaAudio' + - + $ref: '#/components/schemas/InputMediaDocument' + - + $ref: '#/components/schemas/InputMediaPhoto' + - + $ref: '#/components/schemas/InputMediaVideo' + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: array + items: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /sendLocation: + description: 'Use this method to send point on the map. On success, the sent Message is returned.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - latitude + - longitude + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + latitude: + type: number + longitude: + type: number + horizontal_accuracy: + type: number + live_period: + type: integer + heading: + type: integer + proximity_alert_radius: + type: integer + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - latitude + - longitude + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + latitude: + type: number + longitude: + type: number + horizontal_accuracy: + type: number + live_period: + type: integer + heading: + type: integer + proximity_alert_radius: + type: integer + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + multipart/form-data: + schema: + type: object + required: + - chat_id + - latitude + - longitude + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + latitude: + type: number + longitude: + type: number + horizontal_accuracy: + type: number + live_period: + type: integer + heading: + type: integer + proximity_alert_radius: + type: integer + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + latitude: + type: number + longitude: + type: number + horizontal_accuracy: + type: number + heading: + type: integer + proximity_alert_radius: + type: integer + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + required: + - latitude + - longitude + application/x-www-form-urlencoded: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + latitude: + type: number + longitude: + type: number + horizontal_accuracy: + type: number + heading: + type: integer + proximity_alert_radius: + type: integer + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + required: + - latitude + - longitude + multipart/form-data: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + latitude: + type: number + longitude: + type: number + horizontal_accuracy: + type: number + heading: + type: integer + proximity_alert_radius: + type: integer + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + required: + - latitude + - longitude + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + anyOf: + - + $ref: '#/components/schemas/Message' + - + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + content: + application/json: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + application/x-www-form-urlencoded: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + multipart/form-data: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + anyOf: + - + $ref: '#/components/schemas/Message' + - + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /sendVenue: + description: 'Use this method to send information about a venue. On success, the sent Message is returned.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - latitude + - longitude + - title + - address + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + latitude: + type: number + longitude: + type: number + title: + type: string + address: + type: string + foursquare_id: + type: string + foursquare_type: + type: string + google_place_id: + type: string + google_place_type: + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - latitude + - longitude + - title + - address + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + latitude: + type: number + longitude: + type: number + title: + type: string + address: + type: string + foursquare_id: + type: string + foursquare_type: + type: string + google_place_id: + type: string + google_place_type: + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + multipart/form-data: + schema: + type: object + required: + - chat_id + - latitude + - longitude + - title + - address + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + latitude: + type: number + longitude: + type: number + title: + type: string + address: + type: string + foursquare_id: + type: string + foursquare_type: + type: string + google_place_id: + type: string + google_place_type: + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /sendContact: + description: 'Use this method to send phone contacts. On success, the sent Message is returned.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - phone_number + - first_name + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + phone_number: + type: string + first_name: + type: string + last_name: + type: string + vcard: + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - phone_number + - first_name + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + phone_number: + type: string + first_name: + type: string + last_name: + type: string + vcard: + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + multipart/form-data: + schema: + type: object + required: + - chat_id + - phone_number + - first_name + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + phone_number: + type: string + first_name: + type: string + last_name: + type: string + vcard: + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /sendPoll: + description: 'Use this method to send a native poll. On success, the sent Message is returned.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - question + - options + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + question: + type: string + options: + type: array + items: + type: string + is_anonymous: + type: boolean + default: true + type: + type: string + default: regular + allows_multiple_answers: + type: boolean + correct_option_id: + type: integer + explanation: + type: string + explanation_parse_mode: + type: string + explanation_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + open_period: + type: integer + close_date: + type: integer + is_closed: + type: boolean + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - question + - options + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + question: + type: string + options: + type: array + items: + type: string + is_anonymous: + type: boolean + default: true + type: + type: string + default: regular + allows_multiple_answers: + type: boolean + correct_option_id: + type: integer + explanation: + type: string + explanation_parse_mode: + type: string + explanation_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + open_period: + type: integer + close_date: + type: integer + is_closed: + type: boolean + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + multipart/form-data: + schema: + type: object + required: + - chat_id + - question + - options + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + question: + type: string + options: + type: array + items: + type: string + is_anonymous: + type: boolean + default: true + type: + type: string + default: regular + allows_multiple_answers: + type: boolean + correct_option_id: + type: integer + explanation: + type: string + explanation_parse_mode: + type: string + explanation_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + open_period: + type: integer + close_date: + type: integer + is_closed: + type: boolean + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /sendDice: + description: 'Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + emoji: + type: string + default: 🎲 + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + emoji: + type: string + default: 🎲 + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + multipart/form-data: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + emoji: + type: string + default: 🎲 + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.\nWe only recommend using this method when a response from the bot will take a noticeable amount of time to arrive." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - action + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + action: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - action + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + action: + type: string + multipart/form-data: + schema: + type: object + required: + - chat_id + - action + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + action: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /getUserProfilePhotos: + description: 'Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - user_id + properties: + user_id: + type: integer + offset: + type: integer + limit: + type: integer + default: 100 + application/x-www-form-urlencoded: + schema: + type: object + required: + - user_id + properties: + user_id: + type: integer + offset: + type: integer + limit: + type: integer + default: 100 + multipart/form-data: + schema: + type: object + required: + - user_id + properties: + user_id: + type: integer + offset: + type: integer + limit: + type: integer + default: 100 + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/UserProfilePhotos' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - file_id + properties: + file_id: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - file_id + properties: + file_id: + type: string + multipart/form-data: + schema: + type: object + required: + - file_id + properties: + file_id: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/File' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + until_date: + type: integer + revoke_messages: + type: boolean + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + until_date: + type: integer + revoke_messages: + type: boolean + multipart/form-data: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + until_date: + type: integer + revoke_messages: + type: boolean + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + only_if_banned: + type: boolean + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + only_if_banned: + type: boolean + multipart/form-data: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + only_if_banned: + type: boolean + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - user_id + - permissions + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + permissions: + $ref: '#/components/schemas/ChatPermissions' + until_date: + type: integer + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - user_id + - permissions + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + permissions: + $ref: '#/components/schemas/ChatPermissions' + until_date: + type: integer + multipart/form-data: + schema: + type: object + required: + - chat_id + - user_id + - permissions + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + permissions: + $ref: '#/components/schemas/ChatPermissions' + until_date: + type: integer + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + is_anonymous: + type: boolean + can_manage_chat: + type: boolean + can_post_messages: + type: boolean + can_edit_messages: + type: boolean + can_delete_messages: + type: boolean + can_manage_video_chats: + type: boolean + can_restrict_members: + type: boolean + can_promote_members: + type: boolean + can_change_info: + type: boolean + can_invite_users: + type: boolean + can_pin_messages: + type: boolean + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + is_anonymous: + type: boolean + can_manage_chat: + type: boolean + can_post_messages: + type: boolean + can_edit_messages: + type: boolean + can_delete_messages: + type: boolean + can_manage_video_chats: + type: boolean + can_restrict_members: + type: boolean + can_promote_members: + type: boolean + can_change_info: + type: boolean + can_invite_users: + type: boolean + can_pin_messages: + type: boolean + multipart/form-data: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + is_anonymous: + type: boolean + can_manage_chat: + type: boolean + can_post_messages: + type: boolean + can_edit_messages: + type: boolean + can_delete_messages: + type: boolean + can_manage_video_chats: + type: boolean + can_restrict_members: + type: boolean + can_promote_members: + type: boolean + can_change_info: + type: boolean + can_invite_users: + type: boolean + can_pin_messages: + type: boolean + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /setChatAdministratorCustomTitle: + description: 'Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - user_id + - custom_title + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + custom_title: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - user_id + - custom_title + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + custom_title: + type: string + multipart/form-data: + schema: + type: object + required: + - chat_id + - user_id + - custom_title + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + custom_title: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - sender_chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + sender_chat_id: + type: integer + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - sender_chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + sender_chat_id: + type: integer + multipart/form-data: + schema: + type: object + required: + - chat_id + - sender_chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + sender_chat_id: + type: integer + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - sender_chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + sender_chat_id: + type: integer + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - sender_chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + sender_chat_id: + type: integer + multipart/form-data: + schema: + type: object + required: + - chat_id + - sender_chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + sender_chat_id: + type: integer + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - permissions + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + permissions: + $ref: '#/components/schemas/ChatPermissions' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - permissions + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + permissions: + $ref: '#/components/schemas/ChatPermissions' + multipart/form-data: + schema: + type: object + required: + - chat_id + - permissions + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + permissions: + $ref: '#/components/schemas/ChatPermissions' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + multipart/form-data: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: string + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + name: + type: string + expire_date: + type: integer + member_limit: + type: integer + creates_join_request: + type: boolean + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + name: + type: string + expire_date: + type: integer + member_limit: + type: integer + creates_join_request: + type: boolean + multipart/form-data: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + name: + type: string + expire_date: + type: integer + member_limit: + type: integer + creates_join_request: + type: boolean + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/ChatInviteLink' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - invite_link + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + invite_link: + type: string + name: + type: string + expire_date: + type: integer + member_limit: + type: integer + creates_join_request: + type: boolean + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - invite_link + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + invite_link: + type: string + name: + type: string + expire_date: + type: integer + member_limit: + type: integer + creates_join_request: + type: boolean + multipart/form-data: + schema: + type: object + required: + - chat_id + - invite_link + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + invite_link: + type: string + name: + type: string + expire_date: + type: integer + member_limit: + type: integer + creates_join_request: + type: boolean + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/ChatInviteLink' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - invite_link + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + invite_link: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - invite_link + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + invite_link: + type: string + multipart/form-data: + schema: + type: object + required: + - chat_id + - invite_link + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + invite_link: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/ChatInviteLink' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + multipart/form-data: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + multipart/form-data: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - photo + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + photo: + $ref: '#/components/schemas/InputFile' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - photo + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + photo: + $ref: '#/components/schemas/InputFile' + multipart/form-data: + schema: + type: object + required: + - chat_id + - photo + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + photo: + $ref: '#/components/schemas/InputFile' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + multipart/form-data: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - title + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + title: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - title + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + title: + type: string + multipart/form-data: + schema: + type: object + required: + - chat_id + - title + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + title: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + description: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + description: + type: string + multipart/form-data: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + description: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /pinChatMessage: + description: "Use this method to add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - message_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + disable_notification: + type: boolean + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - message_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + disable_notification: + type: boolean + multipart/form-data: + schema: + type: object + required: + - chat_id + - message_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + disable_notification: + type: boolean + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /unpinChatMessage: + description: "Use this method to remove a message from the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + multipart/form-data: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /unpinAllChatMessages: + description: "Use this method to clear the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + multipart/form-data: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /leaveChat: + description: 'Use this method for your bot to leave a group, supergroup or channel. Returns True on success.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + multipart/form-data: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /getChat: + description: 'Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a Chat object on success.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + multipart/form-data: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Chat' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /getChatAdministrators: + description: "Use this method to get a list of administrators in a chat, which aren't bots. Returns an Array of ChatMember objects." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + multipart/form-data: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: array + items: + $ref: '#/components/schemas/ChatMember' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /getChatMemberCount: + description: 'Use this method to get the number of members in a chat. Returns Int on success.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + multipart/form-data: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: integer + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /getChatMember: + description: 'Use this method to get information about a member of a chat. Returns a ChatMember object on success.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + multipart/form-data: + schema: + type: object + required: + - chat_id + - user_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + user_id: + type: integer + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/ChatMember' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - sticker_set_name + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + sticker_set_name: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - sticker_set_name + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + sticker_set_name: + type: string + multipart/form-data: + schema: + type: object + required: + - chat_id + - sticker_set_name + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + sticker_set_name: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + multipart/form-data: + schema: + type: object + required: + - chat_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - callback_query_id + properties: + callback_query_id: + type: string + text: + type: string + show_alert: + type: boolean + url: + type: string + cache_time: + type: integer + application/x-www-form-urlencoded: + schema: + type: object + required: + - callback_query_id + properties: + callback_query_id: + type: string + text: + type: string + show_alert: + type: boolean + url: + type: string + cache_time: + type: integer + multipart/form-data: + schema: + type: object + required: + - callback_query_id + properties: + callback_query_id: + type: string + text: + type: string + show_alert: + type: boolean + url: + type: string + cache_time: + type: integer + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /setMyCommands: + description: "Use this method to change the list of the bot's commands. See https://core.telegram.org/bots#commands for more details about bot commands. Returns True on success." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - commands + properties: + commands: + type: array + items: + $ref: '#/components/schemas/BotCommand' + scope: + $ref: '#/components/schemas/BotCommandScope' + default: BotCommandScopeDefault + language_code: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - commands + properties: + commands: + type: array + items: + $ref: '#/components/schemas/BotCommand' + scope: + $ref: '#/components/schemas/BotCommandScope' + default: BotCommandScopeDefault + language_code: + type: string + multipart/form-data: + schema: + type: object + required: + - commands + properties: + commands: + type: array + items: + $ref: '#/components/schemas/BotCommand' + scope: + $ref: '#/components/schemas/BotCommandScope' + default: BotCommandScopeDefault + language_code: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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." + post: + requestBody: + content: + application/json: + schema: + type: object + properties: + scope: + $ref: '#/components/schemas/BotCommandScope' + default: BotCommandScopeDefault + language_code: + type: string + application/x-www-form-urlencoded: + schema: + type: object + properties: + scope: + $ref: '#/components/schemas/BotCommandScope' + default: BotCommandScopeDefault + language_code: + type: string + multipart/form-data: + schema: + type: object + properties: + scope: + $ref: '#/components/schemas/BotCommandScope' + default: BotCommandScopeDefault + language_code: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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." + post: + requestBody: + content: + application/json: + schema: + type: object + properties: + scope: + $ref: '#/components/schemas/BotCommandScope' + default: BotCommandScopeDefault + language_code: + type: string + application/x-www-form-urlencoded: + schema: + type: object + properties: + scope: + $ref: '#/components/schemas/BotCommandScope' + default: BotCommandScopeDefault + language_code: + type: string + multipart/form-data: + schema: + type: object + properties: + scope: + $ref: '#/components/schemas/BotCommandScope' + default: BotCommandScopeDefault + language_code: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: array + items: + $ref: '#/components/schemas/BotCommand' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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." + post: + requestBody: + content: + application/json: + schema: + type: object + properties: + chat_id: + type: integer + menu_button: + $ref: '#/components/schemas/MenuButton' + default: MenuButtonDefault + application/x-www-form-urlencoded: + schema: + type: object + properties: + chat_id: + type: integer + menu_button: + $ref: '#/components/schemas/MenuButton' + default: MenuButtonDefault + multipart/form-data: + schema: + type: object + properties: + chat_id: + type: integer + menu_button: + $ref: '#/components/schemas/MenuButton' + default: MenuButtonDefault + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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." + post: + requestBody: + content: + application/json: + schema: + type: object + properties: + chat_id: + type: integer + application/x-www-form-urlencoded: + schema: + type: object + properties: + chat_id: + type: integer + multipart/form-data: + schema: + type: object + properties: + chat_id: + type: integer + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/MenuButton' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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 are free to modify the list before adding the bot. Returns True on success." + post: + requestBody: + content: + application/json: + schema: + type: object + properties: + rights: + $ref: '#/components/schemas/ChatAdministratorRights' + for_channels: + type: boolean + application/x-www-form-urlencoded: + schema: + type: object + properties: + rights: + $ref: '#/components/schemas/ChatAdministratorRights' + for_channels: + type: boolean + multipart/form-data: + schema: + type: object + properties: + rights: + $ref: '#/components/schemas/ChatAdministratorRights' + for_channels: + type: boolean + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /getMyDefaultAdministratorRights: + description: 'Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success.' + post: + requestBody: + content: + application/json: + schema: + type: object + properties: + for_channels: + type: boolean + application/x-www-form-urlencoded: + schema: + type: object + properties: + for_channels: + type: boolean + multipart/form-data: + schema: + type: object + properties: + for_channels: + type: boolean + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/ChatAdministratorRights' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + text: + type: string + parse_mode: + type: string + entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_web_page_preview: + type: boolean + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + required: + - text + application/x-www-form-urlencoded: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + text: + type: string + parse_mode: + type: string + entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_web_page_preview: + type: boolean + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + required: + - text + multipart/form-data: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + text: + type: string + parse_mode: + type: string + entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + disable_web_page_preview: + type: boolean + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + required: + - text + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + anyOf: + - + $ref: '#/components/schemas/Message' + - + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + content: + application/json: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + application/x-www-form-urlencoded: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + multipart/form-data: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + caption: + type: string + parse_mode: + type: string + caption_entities: + type: array + items: + $ref: '#/components/schemas/MessageEntity' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + anyOf: + - + $ref: '#/components/schemas/Message' + - + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /editMessageMedia: + description: "Use this method to edit animation, audio, document, photo, or video 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." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + media: + $ref: '#/components/schemas/InputMedia' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + required: + - media + application/x-www-form-urlencoded: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + media: + $ref: '#/components/schemas/InputMedia' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + required: + - media + multipart/form-data: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + media: + $ref: '#/components/schemas/InputMedia' + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + required: + - media + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + anyOf: + - + $ref: '#/components/schemas/Message' + - + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + content: + application/json: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + application/x-www-form-urlencoded: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + multipart/form-data: + schema: + type: object + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + inline_message_id: + type: string + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + anyOf: + - + $ref: '#/components/schemas/Message' + - + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /stopPoll: + description: 'Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - message_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - message_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + multipart/form-data: + schema: + type: object + required: + - chat_id + - message_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Poll' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.- 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 permission in a supergroup or a channel, it can delete any message there.Returns True on success.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - message_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - message_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + multipart/form-data: + schema: + type: object + required: + - chat_id + - message_id + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + message_id: + type: integer + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /sendSticker: + description: 'Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - sticker + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + sticker: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - sticker + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + sticker: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + multipart/form-data: + schema: + type: object + required: + - chat_id + - sticker + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + sticker: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + anyOf: + - + $ref: '#/components/schemas/InlineKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardMarkup' + - + $ref: '#/components/schemas/ReplyKeyboardRemove' + - + $ref: '#/components/schemas/ForceReply' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /getStickerSet: + description: 'Use this method to get a sticker set. On success, a StickerSet object is returned.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - name + properties: + name: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - name + properties: + name: + type: string + multipart/form-data: + schema: + type: object + required: + - name + properties: + name: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/StickerSet' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /getCustomEmojiStickers: + description: 'Use this method to get information about custom emoji stickers by their identifiers. Returns an Array of Sticker objects.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - custom_emoji_ids + properties: + custom_emoji_ids: + type: array + items: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - custom_emoji_ids + properties: + custom_emoji_ids: + type: array + items: + type: string + multipart/form-data: + schema: + type: object + required: + - custom_emoji_ids + properties: + custom_emoji_ids: + type: array + items: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: array + items: + $ref: '#/components/schemas/Sticker' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /uploadStickerFile: + description: 'Use this method to upload a .PNG file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - user_id + - png_sticker + properties: + user_id: + type: integer + png_sticker: + $ref: '#/components/schemas/InputFile' + application/x-www-form-urlencoded: + schema: + type: object + required: + - user_id + - png_sticker + properties: + user_id: + type: integer + png_sticker: + $ref: '#/components/schemas/InputFile' + multipart/form-data: + schema: + type: object + required: + - user_id + - png_sticker + properties: + user_id: + type: integer + png_sticker: + $ref: '#/components/schemas/InputFile' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/File' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Returns True on success.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - user_id + - name + - title + - emojis + properties: + user_id: + type: integer + name: + type: string + title: + type: string + png_sticker: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + tgs_sticker: + $ref: '#/components/schemas/InputFile' + webm_sticker: + $ref: '#/components/schemas/InputFile' + sticker_type: + type: string + emojis: + type: string + mask_position: + $ref: '#/components/schemas/MaskPosition' + application/x-www-form-urlencoded: + schema: + type: object + required: + - user_id + - name + - title + - emojis + properties: + user_id: + type: integer + name: + type: string + title: + type: string + png_sticker: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + tgs_sticker: + $ref: '#/components/schemas/InputFile' + webm_sticker: + $ref: '#/components/schemas/InputFile' + sticker_type: + type: string + emojis: + type: string + mask_position: + $ref: '#/components/schemas/MaskPosition' + multipart/form-data: + schema: + type: object + required: + - user_id + - name + - title + - emojis + properties: + user_id: + type: integer + name: + type: string + title: + type: string + png_sticker: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + tgs_sticker: + $ref: '#/components/schemas/InputFile' + webm_sticker: + $ref: '#/components/schemas/InputFile' + sticker_type: + type: string + emojis: + type: string + mask_position: + $ref: '#/components/schemas/MaskPosition' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /addStickerToSet: + description: 'Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - user_id + - name + - emojis + properties: + user_id: + type: integer + name: + type: string + png_sticker: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + tgs_sticker: + $ref: '#/components/schemas/InputFile' + webm_sticker: + $ref: '#/components/schemas/InputFile' + emojis: + type: string + mask_position: + $ref: '#/components/schemas/MaskPosition' + application/x-www-form-urlencoded: + schema: + type: object + required: + - user_id + - name + - emojis + properties: + user_id: + type: integer + name: + type: string + png_sticker: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + tgs_sticker: + $ref: '#/components/schemas/InputFile' + webm_sticker: + $ref: '#/components/schemas/InputFile' + emojis: + type: string + mask_position: + $ref: '#/components/schemas/MaskPosition' + multipart/form-data: + schema: + type: object + required: + - user_id + - name + - emojis + properties: + user_id: + type: integer + name: + type: string + png_sticker: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + tgs_sticker: + $ref: '#/components/schemas/InputFile' + webm_sticker: + $ref: '#/components/schemas/InputFile' + emojis: + type: string + mask_position: + $ref: '#/components/schemas/MaskPosition' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /setStickerPositionInSet: + description: 'Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - sticker + - position + properties: + sticker: + type: string + position: + type: integer + application/x-www-form-urlencoded: + schema: + type: object + required: + - sticker + - position + properties: + sticker: + type: string + position: + type: integer + multipart/form-data: + schema: + type: object + required: + - sticker + - position + properties: + sticker: + type: string + position: + type: integer + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /deleteStickerFromSet: + description: 'Use this method to delete a sticker from a set created by the bot. Returns True on success.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - sticker + properties: + sticker: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - sticker + properties: + sticker: + type: string + multipart/form-data: + schema: + type: object + required: + - sticker + properties: + sticker: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /setStickerSetThumb: + description: 'Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Video thumbnails can be set only for video sticker sets only. Returns True on success.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - name + - user_id + properties: + name: + type: string + user_id: + type: integer + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - name + - user_id + properties: + name: + type: string + user_id: + type: integer + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + multipart/form-data: + schema: + type: object + required: + - name + - user_id + properties: + name: + type: string + user_id: + type: integer + thumb: + anyOf: + - + $ref: '#/components/schemas/InputFile' + - + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - inline_query_id + - results + properties: + inline_query_id: + type: string + results: + type: array + items: + $ref: '#/components/schemas/InlineQueryResult' + cache_time: + type: integer + default: 300 + is_personal: + type: boolean + next_offset: + type: string + switch_pm_text: + type: string + switch_pm_parameter: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - inline_query_id + - results + properties: + inline_query_id: + type: string + results: + type: array + items: + $ref: '#/components/schemas/InlineQueryResult' + cache_time: + type: integer + default: 300 + is_personal: + type: boolean + next_offset: + type: string + switch_pm_text: + type: string + switch_pm_parameter: + type: string + multipart/form-data: + schema: + type: object + required: + - inline_query_id + - results + properties: + inline_query_id: + type: string + results: + type: array + items: + $ref: '#/components/schemas/InlineQueryResult' + cache_time: + type: integer + default: 300 + is_personal: + type: boolean + next_offset: + type: string + switch_pm_text: + type: string + switch_pm_parameter: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - web_app_query_id + - result + properties: + web_app_query_id: + type: string + result: + $ref: '#/components/schemas/InlineQueryResult' + application/x-www-form-urlencoded: + schema: + type: object + required: + - web_app_query_id + - result + properties: + web_app_query_id: + type: string + result: + $ref: '#/components/schemas/InlineQueryResult' + multipart/form-data: + schema: + type: object + required: + - web_app_query_id + - result + properties: + web_app_query_id: + type: string + result: + $ref: '#/components/schemas/InlineQueryResult' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/SentWebAppMessage' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /sendInvoice: + description: 'Use this method to send invoices. On success, the sent Message is returned.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - title + - description + - payload + - provider_token + - currency + - prices + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + title: + type: string + description: + type: string + payload: + type: string + provider_token: + type: string + currency: + type: string + prices: + type: array + items: + $ref: '#/components/schemas/LabeledPrice' + max_tip_amount: + type: integer + suggested_tip_amounts: + type: array + items: + type: integer + start_parameter: + type: string + provider_data: + type: string + photo_url: + type: string + photo_size: + type: integer + photo_width: + type: integer + photo_height: + type: integer + need_name: + type: boolean + need_phone_number: + type: boolean + need_email: + type: boolean + need_shipping_address: + type: boolean + send_phone_number_to_provider: + type: boolean + send_email_to_provider: + type: boolean + is_flexible: + type: boolean + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - title + - description + - payload + - provider_token + - currency + - prices + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + title: + type: string + description: + type: string + payload: + type: string + provider_token: + type: string + currency: + type: string + prices: + type: array + items: + $ref: '#/components/schemas/LabeledPrice' + max_tip_amount: + type: integer + suggested_tip_amounts: + type: array + items: + type: integer + start_parameter: + type: string + provider_data: + type: string + photo_url: + type: string + photo_size: + type: integer + photo_width: + type: integer + photo_height: + type: integer + need_name: + type: boolean + need_phone_number: + type: boolean + need_email: + type: boolean + need_shipping_address: + type: boolean + send_phone_number_to_provider: + type: boolean + send_email_to_provider: + type: boolean + is_flexible: + type: boolean + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + multipart/form-data: + schema: + type: object + required: + - chat_id + - title + - description + - payload + - provider_token + - currency + - prices + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + title: + type: string + description: + type: string + payload: + type: string + provider_token: + type: string + currency: + type: string + prices: + type: array + items: + $ref: '#/components/schemas/LabeledPrice' + max_tip_amount: + type: integer + suggested_tip_amounts: + type: array + items: + type: integer + start_parameter: + type: string + provider_data: + type: string + photo_url: + type: string + photo_size: + type: integer + photo_width: + type: integer + photo_height: + type: integer + need_name: + type: boolean + need_phone_number: + type: boolean + need_email: + type: boolean + need_shipping_address: + type: boolean + send_phone_number_to_provider: + type: boolean + send_email_to_provider: + type: boolean + is_flexible: + type: boolean + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /createInvoiceLink: + description: 'Use this method to create a link for an invoice. Returns the created invoice link as String on success.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - title + - description + - payload + - provider_token + - currency + - prices + properties: + title: + type: string + description: + type: string + payload: + type: string + provider_token: + type: string + currency: + type: string + prices: + type: array + items: + $ref: '#/components/schemas/LabeledPrice' + max_tip_amount: + type: integer + suggested_tip_amounts: + type: array + items: + type: integer + provider_data: + type: string + photo_url: + type: string + photo_size: + type: integer + photo_width: + type: integer + photo_height: + type: integer + need_name: + type: boolean + need_phone_number: + type: boolean + need_email: + type: boolean + need_shipping_address: + type: boolean + send_phone_number_to_provider: + type: boolean + send_email_to_provider: + type: boolean + is_flexible: + type: boolean + application/x-www-form-urlencoded: + schema: + type: object + required: + - title + - description + - payload + - provider_token + - currency + - prices + properties: + title: + type: string + description: + type: string + payload: + type: string + provider_token: + type: string + currency: + type: string + prices: + type: array + items: + $ref: '#/components/schemas/LabeledPrice' + max_tip_amount: + type: integer + suggested_tip_amounts: + type: array + items: + type: integer + provider_data: + type: string + photo_url: + type: string + photo_size: + type: integer + photo_width: + type: integer + photo_height: + type: integer + need_name: + type: boolean + need_phone_number: + type: boolean + need_email: + type: boolean + need_shipping_address: + type: boolean + send_phone_number_to_provider: + type: boolean + send_email_to_provider: + type: boolean + is_flexible: + type: boolean + multipart/form-data: + schema: + type: object + required: + - title + - description + - payload + - provider_token + - currency + - prices + properties: + title: + type: string + description: + type: string + payload: + type: string + provider_token: + type: string + currency: + type: string + prices: + type: array + items: + $ref: '#/components/schemas/LabeledPrice' + max_tip_amount: + type: integer + suggested_tip_amounts: + type: array + items: + type: integer + provider_data: + type: string + photo_url: + type: string + photo_size: + type: integer + photo_width: + type: integer + photo_height: + type: integer + need_name: + type: boolean + need_phone_number: + type: boolean + need_email: + type: boolean + need_shipping_address: + type: boolean + send_phone_number_to_provider: + type: boolean + send_email_to_provider: + type: boolean + is_flexible: + type: boolean + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: string + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - shipping_query_id + - ok + properties: + shipping_query_id: + type: string + ok: + type: boolean + shipping_options: + type: array + items: + $ref: '#/components/schemas/ShippingOption' + error_message: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - shipping_query_id + - ok + properties: + shipping_query_id: + type: string + ok: + type: boolean + shipping_options: + type: array + items: + $ref: '#/components/schemas/ShippingOption' + error_message: + type: string + multipart/form-data: + schema: + type: object + required: + - shipping_query_id + - ok + properties: + shipping_query_id: + type: string + ok: + type: boolean + shipping_options: + type: array + items: + $ref: '#/components/schemas/ShippingOption' + error_message: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - pre_checkout_query_id + - ok + properties: + pre_checkout_query_id: + type: string + ok: + type: boolean + error_message: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - pre_checkout_query_id + - ok + properties: + pre_checkout_query_id: + type: string + ok: + type: boolean + error_message: + type: string + multipart/form-data: + schema: + type: object + required: + - pre_checkout_query_id + - ok + properties: + pre_checkout_query_id: + type: string + ok: + type: boolean + error_message: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.\nUse 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." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - user_id + - errors + properties: + user_id: + type: integer + errors: + type: array + items: + $ref: '#/components/schemas/PassportElementError' + application/x-www-form-urlencoded: + schema: + type: object + required: + - user_id + - errors + properties: + user_id: + type: integer + errors: + type: array + items: + $ref: '#/components/schemas/PassportElementError' + multipart/form-data: + schema: + type: object + required: + - user_id + - errors + properties: + user_id: + type: integer + errors: + type: array + items: + $ref: '#/components/schemas/PassportElementError' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /sendGame: + description: 'Use this method to send a game. On success, the sent Message is returned.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - game_short_name + properties: + chat_id: + type: integer + game_short_name: + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - game_short_name + properties: + chat_id: + type: integer + game_short_name: + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + multipart/form-data: + schema: + type: object + required: + - chat_id + - game_short_name + properties: + chat_id: + type: integer + game_short_name: + type: string + disable_notification: + type: boolean + protect_content: + type: boolean + reply_to_message_id: + type: integer + allow_sending_without_reply: + type: boolean + reply_markup: + $ref: '#/components/schemas/InlineKeyboardMarkup' + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + $ref: '#/components/schemas/Message' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - user_id + - score + properties: + user_id: + type: integer + score: + type: integer + force: + type: boolean + disable_edit_message: + type: boolean + chat_id: + type: integer + message_id: + type: integer + inline_message_id: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - user_id + - score + properties: + user_id: + type: integer + score: + type: integer + force: + type: boolean + disable_edit_message: + type: boolean + chat_id: + type: integer + message_id: + type: integer + inline_message_id: + type: string + multipart/form-data: + schema: + type: object + required: + - user_id + - score + properties: + user_id: + type: integer + score: + type: integer + force: + type: boolean + disable_edit_message: + type: boolean + chat_id: + type: integer + message_id: + type: integer + inline_message_id: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + anyOf: + - + $ref: '#/components/schemas/Message' + - + type: boolean + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' + /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.' + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - user_id + properties: + user_id: + type: integer + chat_id: + type: integer + message_id: + type: integer + inline_message_id: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - user_id + properties: + user_id: + type: integer + chat_id: + type: integer + message_id: + type: integer + inline_message_id: + type: string + multipart/form-data: + schema: + type: object + required: + - user_id + properties: + user_id: + type: integer + chat_id: + type: integer + message_id: + type: integer + inline_message_id: + type: string + responses: + 200: + description: 'Request was successful, the result is returned.' + content: + application/json: + schema: + allOf: + - + $ref: '#/components/schemas/Success' + - + type: object + properties: + result: + type: array + items: + $ref: '#/components/schemas/GameHighScore' + 400: + $ref: '#/components/responses/BadRequest' + 401: + $ref: '#/components/responses/Unauthorized' + 403: + $ref: '#/components/responses/Forbidden' + 404: + $ref: '#/components/responses/NotFound' + 409: + $ref: '#/components/responses/Conflict' + 429: + $ref: '#/components/responses/TooManyRequests' + 5XX: + $ref: '#/components/responses/ServerError' + default: + $ref: '#/components/responses/UnknownError' diff --git a/files/postman/v620.json b/files/postman/v620.json new file mode 100644 index 0000000..b2a5e3f --- /dev/null +++ b/files/postman/v620.json @@ -0,0 +1,4924 @@ +{ + "info": { + "name": "Telegram Bot API", + "description": "Auto-generated Postman collection by TGScraper.", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "version": "6.2.0" + }, + "variable": { + "key": "token", + "description": "Bot's unique authentication token, given by @BotFather.", + "type": "string", + "value": "1234:AAbbcc" + }, + "item": [ + { + "name": "getUpdates", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "offset", + "disabled": true, + "description": "Optional. 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 forgotten.", + "type": "text" + }, + { + "key": "limit", + "disabled": true, + "description": "Optional. Limits the number of updates to be retrieved. Values between 1-100 are accepted. Defaults to 100.", + "type": "text", + "value": "100" + }, + { + "key": "timeout", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + }, + { + "key": "allowed_updates", + "disabled": true, + "description": "Optional. 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 (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 getUpdates, so unwanted updates may be received for a short period of time.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/getUpdates", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "getUpdates" + ] + }, + "description": "Use this method to receive incoming updates using long polling (wiki). Returns an Array of Update objects." + } + }, + { + "name": "setWebhook", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "url", + "disabled": false, + "description": "Required. HTTPS URL to send updates to. Use an empty string to remove webhook integration", + "type": "text" + }, + { + "key": "certificate", + "disabled": true, + "description": "Optional. Upload your public key certificate so that the root certificate in use can be checked. See our self-signed guide for details.", + "type": "text" + }, + { + "key": "ip_address", + "disabled": true, + "description": "Optional. The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS", + "type": "text" + }, + { + "key": "max_connections", + "disabled": true, + "description": "Optional. 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.", + "type": "text", + "value": "40" + }, + { + "key": "allowed_updates", + "disabled": true, + "description": "Optional. 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 (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.", + "type": "text" + }, + { + "key": "drop_pending_updates", + "disabled": true, + "description": "Optional. Pass True to drop all pending updates", + "type": "text" + }, + { + "key": "secret_token", + "disabled": true, + "description": "Optional. A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” 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.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/setWebhook", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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, we will give up after a reasonable amount of attempts. Returns True on success.\nIf 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 “X-Telegram-Bot-Api-Secret-Token” with the secret token as content." + } + }, + { + "name": "deleteWebhook", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "drop_pending_updates", + "disabled": true, + "description": "Optional. Pass True to drop all pending updates", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/deleteWebhook", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "deleteWebhook" + ] + }, + "description": "Use this method to remove webhook integration if you decide to switch back to getUpdates. Returns True on success." + } + }, + { + "name": "getWebhookInfo", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/getWebhookInfo", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "getMe", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/getMe", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "logOut", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/logOut", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "close", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/close", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "sendMessage", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "text", + "disabled": false, + "description": "Required. Text of the message to be sent, 1-4096 characters after entities parsing", + "type": "text" + }, + { + "key": "parse_mode", + "disabled": true, + "description": "Optional. Mode for parsing entities in the message text. See formatting options for more details.", + "type": "text" + }, + { + "key": "entities", + "disabled": true, + "description": "Optional. A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode", + "type": "text" + }, + { + "key": "disable_web_page_preview", + "disabled": true, + "description": "Optional. Disables link previews for links in this message", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendMessage", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "sendMessage" + ] + }, + "description": "Use this method to send text messages. On success, the sent Message is returned." + } + }, + { + "name": "forwardMessage", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "from_chat_id", + "disabled": false, + "description": "Required. Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the forwarded message from forwarding and saving", + "type": "text" + }, + { + "key": "message_id", + "disabled": false, + "description": "Required. Message identifier in the chat specified in from_chat_id", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/forwardMessage", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "forwardMessage" + ] + }, + "description": "Use this method to forward messages of any kind. Service messages can't be forwarded. On success, the sent Message is returned." + } + }, + { + "name": "copyMessage", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "from_chat_id", + "disabled": false, + "description": "Required. Unique identifier for the chat where the original message was sent (or channel username in the format @channelusername)", + "type": "text" + }, + { + "key": "message_id", + "disabled": false, + "description": "Required. Message identifier in the chat specified in from_chat_id", + "type": "text" + }, + { + "key": "caption", + "disabled": true, + "description": "Optional. New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept", + "type": "text" + }, + { + "key": "parse_mode", + "disabled": true, + "description": "Optional. Mode for parsing entities in the new caption. See formatting options for more details.", + "type": "text" + }, + { + "key": "caption_entities", + "disabled": true, + "description": "Optional. A JSON-serialized list of special entities that appear in the new caption, which can be specified instead of parse_mode", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/copyMessage", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "copyMessage" + ] + }, + "description": "Use this method to copy messages of any kind. Service 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." + } + }, + { + "name": "sendPhoto", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "photo", + "disabled": false, + "description": "Required. 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 »", + "type": "text" + }, + { + "key": "caption", + "disabled": true, + "description": "Optional. Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing", + "type": "text" + }, + { + "key": "parse_mode", + "disabled": true, + "description": "Optional. Mode for parsing entities in the photo caption. See formatting options for more details.", + "type": "text" + }, + { + "key": "caption_entities", + "disabled": true, + "description": "Optional. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendPhoto", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "sendPhoto" + ] + }, + "description": "Use this method to send photos. On success, the sent Message is returned." + } + }, + { + "name": "sendAudio", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "audio", + "disabled": false, + "description": "Required. 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 »", + "type": "text" + }, + { + "key": "caption", + "disabled": true, + "description": "Optional. Audio caption, 0-1024 characters after entities parsing", + "type": "text" + }, + { + "key": "parse_mode", + "disabled": true, + "description": "Optional. Mode for parsing entities in the audio caption. See formatting options for more details.", + "type": "text" + }, + { + "key": "caption_entities", + "disabled": true, + "description": "Optional. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode", + "type": "text" + }, + { + "key": "duration", + "disabled": true, + "description": "Optional. Duration of the audio in seconds", + "type": "text" + }, + { + "key": "performer", + "disabled": true, + "description": "Optional. Performer", + "type": "text" + }, + { + "key": "title", + "disabled": true, + "description": "Optional. Track name", + "type": "text" + }, + { + "key": "thumb", + "disabled": true, + "description": "Optional. 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendAudio", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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.\nFor sending voice messages, use the sendVoice method instead." + } + }, + { + "name": "sendDocument", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "document", + "disabled": false, + "description": "Required. 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 »", + "type": "text" + }, + { + "key": "thumb", + "disabled": true, + "description": "Optional. 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »", + "type": "text" + }, + { + "key": "caption", + "disabled": true, + "description": "Optional. Document caption (may also be used when resending documents by file_id), 0-1024 characters after entities parsing", + "type": "text" + }, + { + "key": "parse_mode", + "disabled": true, + "description": "Optional. Mode for parsing entities in the document caption. See formatting options for more details.", + "type": "text" + }, + { + "key": "caption_entities", + "disabled": true, + "description": "Optional. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode", + "type": "text" + }, + { + "key": "disable_content_type_detection", + "disabled": true, + "description": "Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendDocument", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "sendVideo", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "video", + "disabled": false, + "description": "Required. 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 »", + "type": "text" + }, + { + "key": "duration", + "disabled": true, + "description": "Optional. Duration of sent video in seconds", + "type": "text" + }, + { + "key": "width", + "disabled": true, + "description": "Optional. Video width", + "type": "text" + }, + { + "key": "height", + "disabled": true, + "description": "Optional. Video height", + "type": "text" + }, + { + "key": "thumb", + "disabled": true, + "description": "Optional. 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »", + "type": "text" + }, + { + "key": "caption", + "disabled": true, + "description": "Optional. Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities parsing", + "type": "text" + }, + { + "key": "parse_mode", + "disabled": true, + "description": "Optional. Mode for parsing entities in the video caption. See formatting options for more details.", + "type": "text" + }, + { + "key": "caption_entities", + "disabled": true, + "description": "Optional. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode", + "type": "text" + }, + { + "key": "supports_streaming", + "disabled": true, + "description": "Optional. Pass True if the uploaded video is suitable for streaming", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendVideo", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "sendAnimation", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "animation", + "disabled": false, + "description": "Required. 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 »", + "type": "text" + }, + { + "key": "duration", + "disabled": true, + "description": "Optional. Duration of sent animation in seconds", + "type": "text" + }, + { + "key": "width", + "disabled": true, + "description": "Optional. Animation width", + "type": "text" + }, + { + "key": "height", + "disabled": true, + "description": "Optional. Animation height", + "type": "text" + }, + { + "key": "thumb", + "disabled": true, + "description": "Optional. 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »", + "type": "text" + }, + { + "key": "caption", + "disabled": true, + "description": "Optional. Animation caption (may also be used when resending animation by file_id), 0-1024 characters after entities parsing", + "type": "text" + }, + { + "key": "parse_mode", + "disabled": true, + "description": "Optional. Mode for parsing entities in the animation caption. See formatting options for more details.", + "type": "text" + }, + { + "key": "caption_entities", + "disabled": true, + "description": "Optional. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendAnimation", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "sendVoice", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "voice", + "disabled": false, + "description": "Required. 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 »", + "type": "text" + }, + { + "key": "caption", + "disabled": true, + "description": "Optional. Voice message caption, 0-1024 characters after entities parsing", + "type": "text" + }, + { + "key": "parse_mode", + "disabled": true, + "description": "Optional. Mode for parsing entities in the voice message caption. See formatting options for more details.", + "type": "text" + }, + { + "key": "caption_entities", + "disabled": true, + "description": "Optional. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode", + "type": "text" + }, + { + "key": "duration", + "disabled": true, + "description": "Optional. Duration of the voice message in seconds", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendVoice", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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 (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." + } + }, + { + "name": "sendVideoNote", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "video_note", + "disabled": false, + "description": "Required. 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 ». Sending video notes by a URL is currently unsupported", + "type": "text" + }, + { + "key": "duration", + "disabled": true, + "description": "Optional. Duration of sent video in seconds", + "type": "text" + }, + { + "key": "length", + "disabled": true, + "description": "Optional. Video width and height, i.e. diameter of the video message", + "type": "text" + }, + { + "key": "thumb", + "disabled": true, + "description": "Optional. 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 “attach://” if the thumbnail was uploaded using multipart/form-data under . More information on Sending Files »", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendVideoNote", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "sendMediaGroup", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "media", + "disabled": false, + "description": "Required. A JSON-serialized array describing messages to be sent, must include 2-10 items", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends messages silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent messages from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the messages are a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendMediaGroup", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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 Messages that were sent is returned." + } + }, + { + "name": "sendLocation", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "latitude", + "disabled": false, + "description": "Required. Latitude of the location", + "type": "text" + }, + { + "key": "longitude", + "disabled": false, + "description": "Required. Longitude of the location", + "type": "text" + }, + { + "key": "horizontal_accuracy", + "disabled": true, + "description": "Optional. The radius of uncertainty for the location, measured in meters; 0-1500", + "type": "text" + }, + { + "key": "live_period", + "disabled": true, + "description": "Optional. Period in seconds for which the location will be updated (see Live Locations, should be between 60 and 86400.", + "type": "text" + }, + { + "key": "heading", + "disabled": true, + "description": "Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.", + "type": "text" + }, + { + "key": "proximity_alert_radius", + "disabled": true, + "description": "Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendLocation", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "sendLocation" + ] + }, + "description": "Use this method to send point on the map. On success, the sent Message is returned." + } + }, + { + "name": "editMessageLiveLocation", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "message_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Identifier of the message to edit", + "type": "text" + }, + { + "key": "inline_message_id", + "disabled": true, + "description": "Optional. Required if chat_id and message_id are not specified. Identifier of the inline message", + "type": "text" + }, + { + "key": "latitude", + "disabled": false, + "description": "Required. Latitude of new location", + "type": "text" + }, + { + "key": "longitude", + "disabled": false, + "description": "Required. Longitude of new location", + "type": "text" + }, + { + "key": "horizontal_accuracy", + "disabled": true, + "description": "Optional. The radius of uncertainty for the location, measured in meters; 0-1500", + "type": "text" + }, + { + "key": "heading", + "disabled": true, + "description": "Optional. Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.", + "type": "text" + }, + { + "key": "proximity_alert_radius", + "disabled": true, + "description": "Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. A JSON-serialized object for a new inline keyboard.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/editMessageLiveLocation", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "stopMessageLiveLocation", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "message_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Identifier of the message with live location to stop", + "type": "text" + }, + { + "key": "inline_message_id", + "disabled": true, + "description": "Optional. Required if chat_id and message_id are not specified. Identifier of the inline message", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. A JSON-serialized object for a new inline keyboard.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/stopMessageLiveLocation", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "sendVenue", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "latitude", + "disabled": false, + "description": "Required. Latitude of the venue", + "type": "text" + }, + { + "key": "longitude", + "disabled": false, + "description": "Required. Longitude of the venue", + "type": "text" + }, + { + "key": "title", + "disabled": false, + "description": "Required. Name of the venue", + "type": "text" + }, + { + "key": "address", + "disabled": false, + "description": "Required. Address of the venue", + "type": "text" + }, + { + "key": "foursquare_id", + "disabled": true, + "description": "Optional. Foursquare identifier of the venue", + "type": "text" + }, + { + "key": "foursquare_type", + "disabled": true, + "description": "Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)", + "type": "text" + }, + { + "key": "google_place_id", + "disabled": true, + "description": "Optional. Google Places identifier of the venue", + "type": "text" + }, + { + "key": "google_place_type", + "disabled": true, + "description": "Optional. Google Places type of the venue. (See supported types.)", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendVenue", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "sendVenue" + ] + }, + "description": "Use this method to send information about a venue. On success, the sent Message is returned." + } + }, + { + "name": "sendContact", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "phone_number", + "disabled": false, + "description": "Required. Contact's phone number", + "type": "text" + }, + { + "key": "first_name", + "disabled": false, + "description": "Required. Contact's first name", + "type": "text" + }, + { + "key": "last_name", + "disabled": true, + "description": "Optional. Contact's last name", + "type": "text" + }, + { + "key": "vcard", + "disabled": true, + "description": "Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove keyboard or to force a reply from the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendContact", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "sendContact" + ] + }, + "description": "Use this method to send phone contacts. On success, the sent Message is returned." + } + }, + { + "name": "sendPoll", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "question", + "disabled": false, + "description": "Required. Poll question, 1-300 characters", + "type": "text" + }, + { + "key": "options", + "disabled": false, + "description": "Required. A JSON-serialized list of answer options, 2-10 strings 1-100 characters each", + "type": "text" + }, + { + "key": "is_anonymous", + "disabled": true, + "description": "Optional. True, if the poll needs to be anonymous, defaults to True", + "type": "text", + "value": "1" + }, + { + "key": "type", + "disabled": true, + "description": "Optional. Poll type, “quiz” or “regular”, defaults to “regular”", + "type": "text", + "value": "regular" + }, + { + "key": "allows_multiple_answers", + "disabled": true, + "description": "Optional. True, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False", + "type": "text" + }, + { + "key": "correct_option_id", + "disabled": true, + "description": "Optional. 0-based identifier of the correct answer option, required for polls in quiz mode", + "type": "text" + }, + { + "key": "explanation", + "disabled": true, + "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 with at most 2 line feeds after entities parsing", + "type": "text" + }, + { + "key": "explanation_parse_mode", + "disabled": true, + "description": "Optional. Mode for parsing entities in the explanation. See formatting options for more details.", + "type": "text" + }, + { + "key": "explanation_entities", + "disabled": true, + "description": "Optional. A JSON-serialized list of special entities that appear in the poll explanation, which can be specified instead of parse_mode", + "type": "text" + }, + { + "key": "open_period", + "disabled": true, + "description": "Optional. Amount of time in seconds the poll will be active after creation, 5-600. Can't be used together with close_date.", + "type": "text" + }, + { + "key": "close_date", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + }, + { + "key": "is_closed", + "disabled": true, + "description": "Optional. Pass True if the poll needs to be immediately closed. This can be useful for poll preview.", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendPoll", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "sendPoll" + ] + }, + "description": "Use this method to send a native poll. On success, the sent Message is returned." + } + }, + { + "name": "sendDice", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "emoji", + "disabled": true, + "description": "Optional. ____simple_html_dom__voku__html_wrapper____>Emoji on which the dice throw animation is based. Currently, must be one of “🎲”, “🎯”, “🏀”, “⚽”, “🎳”, or “🎰”. Dice can have values 1-6 for “🎲”, “🎯” and “🎳”, values 1-5 for “🏀” and “⚽”, and values 1-64 for “🎰”. Defaults to “🎲”", + "type": "text", + "value": "🎲" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendDice", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "sendDice" + ] + }, + "description": "Use this method to send an animated emoji that will display a random value. On success, the sent Message is returned." + } + }, + { + "name": "sendChatAction", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "action", + "disabled": false, + "description": "Required. 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.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendChatAction", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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.\nWe only recommend using this method when a response from the bot will take a noticeable amount of time to arrive." + } + }, + { + "name": "getUserProfilePhotos", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "user_id", + "disabled": false, + "description": "Required. Unique identifier of the target user", + "type": "text" + }, + { + "key": "offset", + "disabled": true, + "description": "Optional. Sequential number of the first photo to be returned. By default, all photos are returned.", + "type": "text" + }, + { + "key": "limit", + "disabled": true, + "description": "Optional. Limits the number of photos to be retrieved. Values between 1-100 are accepted. Defaults to 100.", + "type": "text", + "value": "100" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/getUserProfilePhotos", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "getUserProfilePhotos" + ] + }, + "description": "Use this method to get a list of profile pictures for a user. Returns a UserProfilePhotos object." + } + }, + { + "name": "getFile", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "file_id", + "disabled": false, + "description": "Required. File identifier to get information about", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/getFile", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "banChatMember", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "user_id", + "disabled": false, + "description": "Required. Unique identifier of the target user", + "type": "text" + }, + { + "key": "until_date", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + }, + { + "key": "revoke_messages", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/banChatMember", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "unbanChatMember", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "user_id", + "disabled": false, + "description": "Required. Unique identifier of the target user", + "type": "text" + }, + { + "key": "only_if_banned", + "disabled": true, + "description": "Optional. Do nothing if the user is not banned", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/unbanChatMember", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "restrictChatMember", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", + "type": "text" + }, + { + "key": "user_id", + "disabled": false, + "description": "Required. Unique identifier of the target user", + "type": "text" + }, + { + "key": "permissions", + "disabled": false, + "description": "Required. A JSON-serialized object for new user permissions", + "type": "text" + }, + { + "key": "until_date", + "disabled": true, + "description": "Optional. 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", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/restrictChatMember", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "promoteChatMember", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "user_id", + "disabled": false, + "description": "Required. Unique identifier of the target user", + "type": "text" + }, + { + "key": "is_anonymous", + "disabled": true, + "description": "Optional. Pass True if the administrator's presence in the chat is hidden", + "type": "text" + }, + { + "key": "can_manage_chat", + "disabled": true, + "description": "Optional. Pass True if the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege", + "type": "text" + }, + { + "key": "can_post_messages", + "disabled": true, + "description": "Optional. Pass True if the administrator can create channel posts, channels only", + "type": "text" + }, + { + "key": "can_edit_messages", + "disabled": true, + "description": "Optional. Pass True if the administrator can edit messages of other users and can pin messages, channels only", + "type": "text" + }, + { + "key": "can_delete_messages", + "disabled": true, + "description": "Optional. Pass True if the administrator can delete messages of other users", + "type": "text" + }, + { + "key": "can_manage_video_chats", + "disabled": true, + "description": "Optional. Pass True if the administrator can manage video chats", + "type": "text" + }, + { + "key": "can_restrict_members", + "disabled": true, + "description": "Optional. Pass True if the administrator can restrict, ban or unban chat members", + "type": "text" + }, + { + "key": "can_promote_members", + "disabled": true, + "description": "Optional. Pass True if the administrator can add new administrators with a subset of their own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by him)", + "type": "text" + }, + { + "key": "can_change_info", + "disabled": true, + "description": "Optional. Pass True if the administrator can change chat title, photo and other settings", + "type": "text" + }, + { + "key": "can_invite_users", + "disabled": true, + "description": "Optional. Pass True if the administrator can invite new users to the chat", + "type": "text" + }, + { + "key": "can_pin_messages", + "disabled": true, + "description": "Optional. Pass True if the administrator can pin messages, supergroups only", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/promoteChatMember", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "setChatAdministratorCustomTitle", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", + "type": "text" + }, + { + "key": "user_id", + "disabled": false, + "description": "Required. Unique identifier of the target user", + "type": "text" + }, + { + "key": "custom_title", + "disabled": false, + "description": "Required. New custom title for the administrator; 0-16 characters, emoji are not allowed", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/setChatAdministratorCustomTitle", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "setChatAdministratorCustomTitle" + ] + }, + "description": "Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success." + } + }, + { + "name": "banChatSenderChat", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "sender_chat_id", + "disabled": false, + "description": "Required. Unique identifier of the target sender chat", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/banChatSenderChat", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "unbanChatSenderChat", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "sender_chat_id", + "disabled": false, + "description": "Required. Unique identifier of the target sender chat", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/unbanChatSenderChat", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "setChatPermissions", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", + "type": "text" + }, + { + "key": "permissions", + "disabled": false, + "description": "Required. A JSON-serialized object for new default chat permissions", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/setChatPermissions", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "exportChatInviteLink", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/exportChatInviteLink", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "createChatInviteLink", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "name", + "disabled": true, + "description": "Optional. Invite link name; 0-32 characters", + "type": "text" + }, + { + "key": "expire_date", + "disabled": true, + "description": "Optional. Point in time (Unix timestamp) when the link will expire", + "type": "text" + }, + { + "key": "member_limit", + "disabled": true, + "description": "Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999", + "type": "text" + }, + { + "key": "creates_join_request", + "disabled": true, + "description": "Optional. True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/createChatInviteLink", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "editChatInviteLink", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "invite_link", + "disabled": false, + "description": "Required. The invite link to edit", + "type": "text" + }, + { + "key": "name", + "disabled": true, + "description": "Optional. Invite link name; 0-32 characters", + "type": "text" + }, + { + "key": "expire_date", + "disabled": true, + "description": "Optional. Point in time (Unix timestamp) when the link will expire", + "type": "text" + }, + { + "key": "member_limit", + "disabled": true, + "description": "Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999", + "type": "text" + }, + { + "key": "creates_join_request", + "disabled": true, + "description": "Optional. True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can't be specified", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/editChatInviteLink", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "revokeChatInviteLink", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier of the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "invite_link", + "disabled": false, + "description": "Required. The invite link to revoke", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/revokeChatInviteLink", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "approveChatJoinRequest", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "user_id", + "disabled": false, + "description": "Required. Unique identifier of the target user", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/approveChatJoinRequest", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "declineChatJoinRequest", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "user_id", + "disabled": false, + "description": "Required. Unique identifier of the target user", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/declineChatJoinRequest", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "setChatPhoto", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "photo", + "disabled": false, + "description": "Required. New chat photo, uploaded using multipart/form-data", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/setChatPhoto", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "deleteChatPhoto", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/deleteChatPhoto", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "setChatTitle", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "title", + "disabled": false, + "description": "Required. New chat title, 1-255 characters", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/setChatTitle", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "setChatDescription", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "description", + "disabled": true, + "description": "Optional. New chat description, 0-255 characters", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/setChatDescription", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "pinChatMessage", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "message_id", + "disabled": false, + "description": "Required. Identifier of a message to pin", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/pinChatMessage", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "pinChatMessage" + ] + }, + "description": "Use this method to add a message to the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success." + } + }, + { + "name": "unpinChatMessage", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "message_id", + "disabled": true, + "description": "Optional. Identifier of a message to unpin. If not specified, the most recent pinned message (by sending date) will be unpinned.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/unpinChatMessage", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "unpinChatMessage" + ] + }, + "description": "Use this method to remove a message from the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success." + } + }, + { + "name": "unpinAllChatMessages", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/unpinAllChatMessages", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "unpinAllChatMessages" + ] + }, + "description": "Use this method to clear the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns True on success." + } + }, + { + "name": "leaveChat", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/leaveChat", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "leaveChat" + ] + }, + "description": "Use this method for your bot to leave a group, supergroup or channel. Returns True on success." + } + }, + { + "name": "getChat", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/getChat", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "getChat" + ] + }, + "description": "Use this method to get up to date information about the chat (current name of the user for one-on-one conversations, current username of a user, group or channel, etc.). Returns a Chat object on success." + } + }, + { + "name": "getChatAdministrators", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/getChatAdministrators", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "getChatAdministrators" + ] + }, + "description": "Use this method to get a list of administrators in a chat, which aren't bots. Returns an Array of ChatMember objects." + } + }, + { + "name": "getChatMemberCount", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/getChatMemberCount", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "getChatMemberCount" + ] + }, + "description": "Use this method to get the number of members in a chat. Returns Int on success." + } + }, + { + "name": "getChatMember", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target supergroup or channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "user_id", + "disabled": false, + "description": "Required. Unique identifier of the target user", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/getChatMember", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "getChatMember" + ] + }, + "description": "Use this method to get information about a member of a chat. Returns a ChatMember object on success." + } + }, + { + "name": "setChatStickerSet", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", + "type": "text" + }, + { + "key": "sticker_set_name", + "disabled": false, + "description": "Required. Name of the sticker set to be set as the group sticker set", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/setChatStickerSet", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "deleteChatStickerSet", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/deleteChatStickerSet", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "answerCallbackQuery", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "callback_query_id", + "disabled": false, + "description": "Required. Unique identifier for the query to be answered", + "type": "text" + }, + { + "key": "text", + "disabled": true, + "description": "Optional. Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters", + "type": "text" + }, + { + "key": "show_alert", + "disabled": true, + "description": "Optional. If True, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false.", + "type": "text" + }, + { + "key": "url", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + }, + { + "key": "cache_time", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/answerCallbackQuery", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "setMyCommands", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "commands", + "disabled": false, + "description": "Required. 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.", + "type": "text" + }, + { + "key": "scope", + "disabled": true, + "description": "Optional. A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.", + "type": "text", + "value": "BotCommandScopeDefault" + }, + { + "key": "language_code", + "disabled": true, + "description": "Optional. 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", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/setMyCommands", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "setMyCommands" + ] + }, + "description": "Use this method to change the list of the bot's commands. See https://core.telegram.org/bots#commands for more details about bot commands. Returns True on success." + } + }, + { + "name": "deleteMyCommands", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "scope", + "disabled": true, + "description": "Optional. A JSON-serialized object, describing scope of users for which the commands are relevant. Defaults to BotCommandScopeDefault.", + "type": "text", + "value": "BotCommandScopeDefault" + }, + { + "key": "language_code", + "disabled": true, + "description": "Optional. 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", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/deleteMyCommands", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "getMyCommands", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "scope", + "disabled": true, + "description": "Optional. A JSON-serialized object, describing scope of users. Defaults to BotCommandScopeDefault.", + "type": "text", + "value": "BotCommandScopeDefault" + }, + { + "key": "language_code", + "disabled": true, + "description": "Optional. A two-letter ISO 639-1 language code or an empty string", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/getMyCommands", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "setChatMenuButton", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": true, + "description": "Optional. Unique identifier for the target private chat. If not specified, default bot's menu button will be changed", + "type": "text" + }, + { + "key": "menu_button", + "disabled": true, + "description": "Optional. A JSON-serialized object for the bot's new menu button. Defaults to MenuButtonDefault", + "type": "text", + "value": "MenuButtonDefault" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/setChatMenuButton", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "getChatMenuButton", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": true, + "description": "Optional. Unique identifier for the target private chat. If not specified, default bot's menu button will be returned", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/getChatMenuButton", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "setMyDefaultAdministratorRights", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "rights", + "disabled": true, + "description": "Optional. A JSON-serialized object describing new default administrator rights. If not specified, the default administrator rights will be cleared.", + "type": "text" + }, + { + "key": "for_channels", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/setMyDefaultAdministratorRights", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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 are free to modify the list before adding the bot. Returns True on success." + } + }, + { + "name": "getMyDefaultAdministratorRights", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "for_channels", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/getMyDefaultAdministratorRights", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "getMyDefaultAdministratorRights" + ] + }, + "description": "Use this method to get the current default administrator rights of the bot. Returns ChatAdministratorRights on success." + } + }, + { + "name": "editMessageText", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "message_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Identifier of the message to edit", + "type": "text" + }, + { + "key": "inline_message_id", + "disabled": true, + "description": "Optional. Required if chat_id and message_id are not specified. Identifier of the inline message", + "type": "text" + }, + { + "key": "text", + "disabled": false, + "description": "Required. New text of the message, 1-4096 characters after entities parsing", + "type": "text" + }, + { + "key": "parse_mode", + "disabled": true, + "description": "Optional. Mode for parsing entities in the message text. See formatting options for more details.", + "type": "text" + }, + { + "key": "entities", + "disabled": true, + "description": "Optional. A JSON-serialized list of special entities that appear in message text, which can be specified instead of parse_mode", + "type": "text" + }, + { + "key": "disable_web_page_preview", + "disabled": true, + "description": "Optional. Disables link previews for links in this message", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. A JSON-serialized object for an inline keyboard.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/editMessageText", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "editMessageCaption", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "message_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Identifier of the message to edit", + "type": "text" + }, + { + "key": "inline_message_id", + "disabled": true, + "description": "Optional. Required if chat_id and message_id are not specified. Identifier of the inline message", + "type": "text" + }, + { + "key": "caption", + "disabled": true, + "description": "Optional. New caption of the message, 0-1024 characters after entities parsing", + "type": "text" + }, + { + "key": "parse_mode", + "disabled": true, + "description": "Optional. Mode for parsing entities in the message caption. See formatting options for more details.", + "type": "text" + }, + { + "key": "caption_entities", + "disabled": true, + "description": "Optional. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. A JSON-serialized object for an inline keyboard.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/editMessageCaption", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "editMessageMedia", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "message_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Identifier of the message to edit", + "type": "text" + }, + { + "key": "inline_message_id", + "disabled": true, + "description": "Optional. Required if chat_id and message_id are not specified. Identifier of the inline message", + "type": "text" + }, + { + "key": "media", + "disabled": false, + "description": "Required. A JSON-serialized object for a new media content of the message", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. A JSON-serialized object for a new inline keyboard.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/editMessageMedia", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "editMessageMedia" + ] + }, + "description": "Use this method to edit animation, audio, document, photo, or video 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." + } + }, + { + "name": "editMessageReplyMarkup", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "message_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Identifier of the message to edit", + "type": "text" + }, + { + "key": "inline_message_id", + "disabled": true, + "description": "Optional. Required if chat_id and message_id are not specified. Identifier of the inline message", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. A JSON-serialized object for an inline keyboard.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/editMessageReplyMarkup", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "stopPoll", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "message_id", + "disabled": false, + "description": "Required. Identifier of the original message with the poll", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. A JSON-serialized object for a new message inline keyboard.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/stopPoll", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "stopPoll" + ] + }, + "description": "Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned." + } + }, + { + "name": "deleteMessage", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "message_id", + "disabled": false, + "description": "Required. Identifier of the message to delete", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/deleteMessage", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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.- 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 permission in a supergroup or a channel, it can delete any message there.Returns True on success." + } + }, + { + "name": "sendSticker", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "sticker", + "disabled": false, + "description": "Required. 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 file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendSticker", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "sendSticker" + ] + }, + "description": "Use this method to send static .WEBP, animated .TGS, or video .WEBM stickers. On success, the sent Message is returned." + } + }, + { + "name": "getStickerSet", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "name", + "disabled": false, + "description": "Required. Name of the sticker set", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/getStickerSet", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "getStickerSet" + ] + }, + "description": "Use this method to get a sticker set. On success, a StickerSet object is returned." + } + }, + { + "name": "getCustomEmojiStickers", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "custom_emoji_ids", + "disabled": false, + "description": "Required. List of custom emoji identifiers. At most 200 custom emoji identifiers can be specified.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/getCustomEmojiStickers", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "getCustomEmojiStickers" + ] + }, + "description": "Use this method to get information about custom emoji stickers by their identifiers. Returns an Array of Sticker objects." + } + }, + { + "name": "uploadStickerFile", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "user_id", + "disabled": false, + "description": "Required. User identifier of sticker file owner", + "type": "text" + }, + { + "key": "png_sticker", + "disabled": false, + "description": "Required. PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. More information on Sending Files »", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/uploadStickerFile", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "uploadStickerFile" + ] + }, + "description": "Use this method to upload a .PNG file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success." + } + }, + { + "name": "createNewStickerSet", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "user_id", + "disabled": false, + "description": "Required. User identifier of created sticker set owner", + "type": "text" + }, + { + "key": "name", + "disabled": false, + "description": "Required. 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.", + "type": "text" + }, + { + "key": "title", + "disabled": false, + "description": "Required. Sticker set title, 1-64 characters", + "type": "text" + }, + { + "key": "png_sticker", + "disabled": true, + "description": "Optional. PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. 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 »", + "type": "text" + }, + { + "key": "tgs_sticker", + "disabled": true, + "description": "Optional. TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#animated-sticker-requirements for technical requirements", + "type": "text" + }, + { + "key": "webm_sticker", + "disabled": true, + "description": "Optional. WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-sticker-requirements for technical requirements", + "type": "text" + }, + { + "key": "sticker_type", + "disabled": true, + "description": "Optional. Type of stickers in the set, pass “regular” or “mask”. Custom emoji sticker sets can't be created via the Bot API at the moment. By default, a regular sticker set is created.", + "type": "text" + }, + { + "key": "emojis", + "disabled": false, + "description": "Required. One or more emoji corresponding to the sticker", + "type": "text" + }, + { + "key": "mask_position", + "disabled": true, + "description": "Optional. A JSON-serialized object for position where the mask should be placed on faces", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/createNewStickerSet", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Returns True on success." + } + }, + { + "name": "addStickerToSet", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "user_id", + "disabled": false, + "description": "Required. User identifier of sticker set owner", + "type": "text" + }, + { + "key": "name", + "disabled": false, + "description": "Required. Sticker set name", + "type": "text" + }, + { + "key": "png_sticker", + "disabled": true, + "description": "Optional. PNG image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px. 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 »", + "type": "text" + }, + { + "key": "tgs_sticker", + "disabled": true, + "description": "Optional. TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#animated-sticker-requirements for technical requirements", + "type": "text" + }, + { + "key": "webm_sticker", + "disabled": true, + "description": "Optional. WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-sticker-requirements for technical requirements", + "type": "text" + }, + { + "key": "emojis", + "disabled": false, + "description": "Required. One or more emoji corresponding to the sticker", + "type": "text" + }, + { + "key": "mask_position", + "disabled": true, + "description": "Optional. A JSON-serialized object for position where the mask should be placed on faces", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/addStickerToSet", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "addStickerToSet" + ] + }, + "description": "Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success." + } + }, + { + "name": "setStickerPositionInSet", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "sticker", + "disabled": false, + "description": "Required. File identifier of the sticker", + "type": "text" + }, + { + "key": "position", + "disabled": false, + "description": "Required. New sticker position in the set, zero-based", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/setStickerPositionInSet", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "setStickerPositionInSet" + ] + }, + "description": "Use this method to move a sticker in a set created by the bot to a specific position. Returns True on success." + } + }, + { + "name": "deleteStickerFromSet", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "sticker", + "disabled": false, + "description": "Required. File identifier of the sticker", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/deleteStickerFromSet", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "deleteStickerFromSet" + ] + }, + "description": "Use this method to delete a sticker from a set created by the bot. Returns True on success." + } + }, + { + "name": "setStickerSetThumb", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "name", + "disabled": false, + "description": "Required. Sticker set name", + "type": "text" + }, + { + "key": "user_id", + "disabled": false, + "description": "Required. User identifier of the sticker set owner", + "type": "text" + }, + { + "key": "thumb", + "disabled": true, + "description": "Optional. A PNG image with the thumbnail, must be up to 128 kilobytes in size and have width and height exactly 100px, or a TGS animation with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#animated-sticker-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-sticker-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 ». Animated sticker set thumbnails can't be uploaded via HTTP URL.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/setStickerSetThumb", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "setStickerSetThumb" + ] + }, + "description": "Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Video thumbnails can be set only for video sticker sets only. Returns True on success." + } + }, + { + "name": "answerInlineQuery", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "inline_query_id", + "disabled": false, + "description": "Required. Unique identifier for the answered query", + "type": "text" + }, + { + "key": "results", + "disabled": false, + "description": "Required. A JSON-serialized array of results for the inline query", + "type": "text" + }, + { + "key": "cache_time", + "disabled": true, + "description": "Optional. The maximum amount of time in seconds that the result of the inline query may be cached on the server. Defaults to 300.", + "type": "text", + "value": "300" + }, + { + "key": "is_personal", + "disabled": true, + "description": "Optional. 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", + "type": "text" + }, + { + "key": "next_offset", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + }, + { + "key": "switch_pm_text", + "disabled": true, + "description": "Optional. If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with the parameter switch_pm_parameter", + "type": "text" + }, + { + "key": "switch_pm_parameter", + "disabled": true, + "description": "Optional. Deep-linking parameter for the /start message sent to the bot when user presses the switch button. 1-64 characters, only A-Z, a-z, 0-9, _ and - are allowed.Example: An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to adapt search results accordingly. To do this, it displays a 'Connect your YouTube account' button above the results, or even before showing any. The user presses the button, switches to a private chat with the bot and, in doing so, passes a start parameter that instructs the bot to return an OAuth link. Once done, the bot can offer a switch_inline button so that the user can easily return to the chat where they wanted to use the bot's inline capabilities.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/answerInlineQuery", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "answerWebAppQuery", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "web_app_query_id", + "disabled": false, + "description": "Required. Unique identifier for the query to be answered", + "type": "text" + }, + { + "key": "result", + "disabled": false, + "description": "Required. A JSON-serialized object describing the message to be sent", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/answerWebAppQuery", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "sendInvoice", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", + "type": "text" + }, + { + "key": "title", + "disabled": false, + "description": "Required. Product name, 1-32 characters", + "type": "text" + }, + { + "key": "description", + "disabled": false, + "description": "Required. Product description, 1-255 characters", + "type": "text" + }, + { + "key": "payload", + "disabled": false, + "description": "Required. Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.", + "type": "text" + }, + { + "key": "provider_token", + "disabled": false, + "description": "Required. Payment provider token, obtained via @BotFather", + "type": "text" + }, + { + "key": "currency", + "disabled": false, + "description": "Required. Three-letter ISO 4217 currency code, see more on currencies", + "type": "text" + }, + { + "key": "prices", + "disabled": false, + "description": "Required. Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)", + "type": "text" + }, + { + "key": "max_tip_amount", + "disabled": true, + "description": "Optional. 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", + "type": "text" + }, + { + "key": "suggested_tip_amounts", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + }, + { + "key": "start_parameter", + "disabled": true, + "description": "Optional. 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", + "type": "text" + }, + { + "key": "provider_data", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + }, + { + "key": "photo_url", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + }, + { + "key": "photo_size", + "disabled": true, + "description": "Optional. Photo size in bytes", + "type": "text" + }, + { + "key": "photo_width", + "disabled": true, + "description": "Optional. Photo width", + "type": "text" + }, + { + "key": "photo_height", + "disabled": true, + "description": "Optional. Photo height", + "type": "text" + }, + { + "key": "need_name", + "disabled": true, + "description": "Optional. Pass True if you require the user's full name to complete the order", + "type": "text" + }, + { + "key": "need_phone_number", + "disabled": true, + "description": "Optional. Pass True if you require the user's phone number to complete the order", + "type": "text" + }, + { + "key": "need_email", + "disabled": true, + "description": "Optional. Pass True if you require the user's email address to complete the order", + "type": "text" + }, + { + "key": "need_shipping_address", + "disabled": true, + "description": "Optional. Pass True if you require the user's shipping address to complete the order", + "type": "text" + }, + { + "key": "send_phone_number_to_provider", + "disabled": true, + "description": "Optional. Pass True if the user's phone number should be sent to provider", + "type": "text" + }, + { + "key": "send_email_to_provider", + "disabled": true, + "description": "Optional. Pass True if the user's email address should be sent to provider", + "type": "text" + }, + { + "key": "is_flexible", + "disabled": true, + "description": "Optional. Pass True if the final price depends on the shipping method", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendInvoice", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "sendInvoice" + ] + }, + "description": "Use this method to send invoices. On success, the sent Message is returned." + } + }, + { + "name": "createInvoiceLink", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "title", + "disabled": false, + "description": "Required. Product name, 1-32 characters", + "type": "text" + }, + { + "key": "description", + "disabled": false, + "description": "Required. Product description, 1-255 characters", + "type": "text" + }, + { + "key": "payload", + "disabled": false, + "description": "Required. Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes.", + "type": "text" + }, + { + "key": "provider_token", + "disabled": false, + "description": "Required. Payment provider token, obtained via BotFather", + "type": "text" + }, + { + "key": "currency", + "disabled": false, + "description": "Required. Three-letter ISO 4217 currency code, see more on currencies", + "type": "text" + }, + { + "key": "prices", + "disabled": false, + "description": "Required. Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.)", + "type": "text" + }, + { + "key": "max_tip_amount", + "disabled": true, + "description": "Optional. 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", + "type": "text" + }, + { + "key": "suggested_tip_amounts", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + }, + { + "key": "provider_data", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + }, + { + "key": "photo_url", + "disabled": true, + "description": "Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a service.", + "type": "text" + }, + { + "key": "photo_size", + "disabled": true, + "description": "Optional. Photo size in bytes", + "type": "text" + }, + { + "key": "photo_width", + "disabled": true, + "description": "Optional. Photo width", + "type": "text" + }, + { + "key": "photo_height", + "disabled": true, + "description": "Optional. Photo height", + "type": "text" + }, + { + "key": "need_name", + "disabled": true, + "description": "Optional. Pass True if you require the user's full name to complete the order", + "type": "text" + }, + { + "key": "need_phone_number", + "disabled": true, + "description": "Optional. Pass True if you require the user's phone number to complete the order", + "type": "text" + }, + { + "key": "need_email", + "disabled": true, + "description": "Optional. Pass True if you require the user's email address to complete the order", + "type": "text" + }, + { + "key": "need_shipping_address", + "disabled": true, + "description": "Optional. Pass True if you require the user's shipping address to complete the order", + "type": "text" + }, + { + "key": "send_phone_number_to_provider", + "disabled": true, + "description": "Optional. Pass True if the user's phone number should be sent to the provider", + "type": "text" + }, + { + "key": "send_email_to_provider", + "disabled": true, + "description": "Optional. Pass True if the user's email address should be sent to the provider", + "type": "text" + }, + { + "key": "is_flexible", + "disabled": true, + "description": "Optional. Pass True if the final price depends on the shipping method", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/createInvoiceLink", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "createInvoiceLink" + ] + }, + "description": "Use this method to create a link for an invoice. Returns the created invoice link as String on success." + } + }, + { + "name": "answerShippingQuery", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "shipping_query_id", + "disabled": false, + "description": "Required. Unique identifier for the query to be answered", + "type": "text" + }, + { + "key": "ok", + "disabled": false, + "description": "Required. 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)", + "type": "text" + }, + { + "key": "shipping_options", + "disabled": true, + "description": "Optional. Required if ok is True. A JSON-serialized array of available shipping options.", + "type": "text" + }, + { + "key": "error_message", + "disabled": true, + "description": "Optional. Required if ok is False. Error message in human readable form that explains why it is impossible to complete the order (e.g. \"Sorry, delivery to your desired address is unavailable'). Telegram will display this message to the user.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/answerShippingQuery", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "answerPreCheckoutQuery", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "pre_checkout_query_id", + "disabled": false, + "description": "Required. Unique identifier for the query to be answered", + "type": "text" + }, + { + "key": "ok", + "disabled": false, + "description": "Required. 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.", + "type": "text" + }, + { + "key": "error_message", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/answerPreCheckoutQuery", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "setPassportDataErrors", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "user_id", + "disabled": false, + "description": "Required. User identifier", + "type": "text" + }, + { + "key": "errors", + "disabled": false, + "description": "Required. A JSON-serialized array describing the errors", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/setPassportDataErrors", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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.\nUse 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." + } + }, + { + "name": "sendGame", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "chat_id", + "disabled": false, + "description": "Required. Unique identifier for the target chat", + "type": "text" + }, + { + "key": "game_short_name", + "disabled": false, + "description": "Required. Short name of the game, serves as the unique identifier for the game. Set up your games via @BotFather.", + "type": "text" + }, + { + "key": "disable_notification", + "disabled": true, + "description": "Optional. Sends the message silently. Users will receive a notification with no sound.", + "type": "text" + }, + { + "key": "protect_content", + "disabled": true, + "description": "Optional. Protects the contents of the sent message from forwarding and saving", + "type": "text" + }, + { + "key": "reply_to_message_id", + "disabled": true, + "description": "Optional. If the message is a reply, ID of the original message", + "type": "text" + }, + { + "key": "allow_sending_without_reply", + "disabled": true, + "description": "Optional. Pass True if the message should be sent even if the specified replied-to message is not found", + "type": "text" + }, + { + "key": "reply_markup", + "disabled": true, + "description": "Optional. 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.", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/sendGame", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "sendGame" + ] + }, + "description": "Use this method to send a game. On success, the sent Message is returned." + } + }, + { + "name": "setGameScore", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "user_id", + "disabled": false, + "description": "Required. User identifier", + "type": "text" + }, + { + "key": "score", + "disabled": false, + "description": "Required. New score, must be non-negative", + "type": "text" + }, + { + "key": "force", + "disabled": true, + "description": "Optional. Pass True if the high score is allowed to decrease. This can be useful when fixing mistakes or banning cheaters", + "type": "text" + }, + { + "key": "disable_edit_message", + "disabled": true, + "description": "Optional. Pass True if the game message should not be automatically edited to include the current scoreboard", + "type": "text" + }, + { + "key": "chat_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Unique identifier for the target chat", + "type": "text" + }, + { + "key": "message_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Identifier of the sent message", + "type": "text" + }, + { + "key": "inline_message_id", + "disabled": true, + "description": "Optional. Required if chat_id and message_id are not specified. Identifier of the inline message", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/setGameScore", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + }, + { + "name": "getGameHighScores", + "request": { + "method": "POST", + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "user_id", + "disabled": false, + "description": "Required. Target user id", + "type": "text" + }, + { + "key": "chat_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Unique identifier for the target chat", + "type": "text" + }, + { + "key": "message_id", + "disabled": true, + "description": "Optional. Required if inline_message_id is not specified. Identifier of the sent message", + "type": "text" + }, + { + "key": "inline_message_id", + "disabled": true, + "description": "Optional. Required if chat_id and message_id are not specified. Identifier of the inline message", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/getGameHighScores", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "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." + } + } + ] +} \ No newline at end of file diff --git a/files/stubs/v620.zip b/files/stubs/v620.zip new file mode 100644 index 0000000000000000000000000000000000000000..063952498b8efed3c40434a5fd5111751d77a0eb GIT binary patch literal 266706 zcmeFa3z%fdRUTMK7{LHS4`9&?E>gjCOWoCv=@|+2sC%lbyJt%3o+-MjXRJlId@J)- zRd#1(rt;A}rPb~?2CcyM!rEp5TgH+<3z^sQFkUaVWng*gGrONLiwz4H`$Kqbvn(sb z%7At;yZ?VqoVXG9MrLJp)@XX9=HrgK^2Uug5pm+Y&xy6Sz3{Ua78X7i&%#$O{Q0l{ zhd2Ko{>A6j3ol#P*zXmC6IYAQ=)!0?>~>bVdwY4OIauoL_Bx{%FTCgL{=uJo_h<22 z{@=sr@$-H6b@IJp(90V|wo$Z;oqoQz+-tov*PJtfv$sB_x%_5 zecp-Jzdn29R^HDB!+xu?ld+quyPXYpi)>3^I+pE?2E%Nt$Qlm1?DZ$^`@G(0tKDkY zXNyCA_m=E_YjgkE`~J)O)}qP(=qrD%ap})2Eb#eiKl#;8yVWVac2xBDuN8w)d$^J} zc8liPZg<$7dl@Em?iZxi=%97!3!LS;^a$&uMUe(rk@|99@3h`IDza9y=nPxit)ic8 zcl%iU)*!P{P91;fOt!T@EC#6|TFq3q%h|2G-D+mrt#;J8+t{%H%ZtnSXf@UCyE~(H zJA0xxY;`+%dnwy!4bi;iRotQ)TPslmD0ZR&DbuYQlL6X z4sZwZvF!G4tFfCk@{X)AzXZ}Z(QGg*@+P|zxHk8=6yc)ggeY5d9SKNW{{-xMoZnXL zZ*}v2^J?C|IqFqm*EZQr*C@jZ3f0N5`J{Xxu$*}WL8{+uv0wDs`#MM(nBHjU)^VlV z0Rs1;&uJ32+JS+Ba_L6<-n?!HxyRBXiCwaNq1f?6KV9o}vO_pn; zXoN}!*`l>}J$ekS?*AKp>347Z)E6u)@LBZxFKD&exz%koiWr9vfiVMPlU)aFxrWpU zB+1tL-R7t<6vQ}|ojU%&>5yCpdum%M%qYQyd`|%@VTY$5eDHuCgAY>uUg!>wH;ZjZ zIV5zlnxJy~?QY&=|EEsBN!dFXD*68H7MN_OD-u_;HR!eTeSGK$(+FqaScd-!mEZ4< zNMdn>z>l+DzuN%X6fwcKX}b|q0IucxJdy0+790j^QVtx*pWteMA@KOv|G0zwF34*_@^}6>UKth zV_7k5EFBHucWg|097Mol8>T2}{*nZ(ygT1`n zF2IpTofanG1U*}(>DgzzbXjn6!1bpB*`^t01d%quYm&LRib;Ftv-t zb`G5aLv^#0;YOTipNp8uMyt21OPZj_icx43E>vJX;g?pr1F{nvaq$v<)Jw#z!Q|o%&0fgCG*n93Szy_STD0Youdmn!_aC-QA zm-0Xc{ZutVVp8#RqrjUOBVvKmp}dE|FL+XVQ-V@G3H8Zg#?GC%2)yLs-05}! zI~I*cynnM0#Q~=bvMzhTwio?dpmy;VdMeMMuJ_w1cyUOoyS65f4M1dxQZ*G;kDy4i z>ui%)gt498ZZ)xw;kwFsmd>7%ceC`iTeNm|hhw^XOkXDY+v;}PwKTg`WcA6tA$4w3jTU(oREb;%Y_X6AdcwkKag1!SgG2T>CEr7YLPT4WeP;m#+uA9{ z%fxrODk>J6SUU?qmqgS)#HBH@*$dgTKvNaM?*uL$RfjCmHkCw&_6agIBO?*=D$<|{ z&1kk)8{IXN@8$$4-l>^klI=PKXdqFG)Jp-cS@guX3Bi$T=Qj{S$ZofpSe(}2a=UoC z1p&yPsj5=6`^As_H}8PimCqM@rDz4#jjII}#yOOrdNb3jM+VlZs3(2@)pRbjM#CqZaNVa31h&9i}-Si5^S?aQmC z^uJqVgLjk4J9bwR4_H=c4feZZeJj@}`u%Qyg+?O7W&hroRmj7ujcj)Bwpp#2!0NQ_ zMK8gYQc89G-}j~4qqkx0`Mk!jKh&fZwUe(my1jy1JI7Y&+9&$-YI5aWN<|hxGFs?M zn>9?D5yP`p^LBi^k1f{aE@k7a)?i|Jf2ROivv~)V#_nm zQdN~XS7JAY!UWmiZgpcQfcM-OolE9MGX50Utx4%B{77pL%Fwfe$iScCa));I{)><_Y0<+I@Mvd&GXb*Buniq z%VN36g#0^O26WUKhf=&iD==WOJ5!H<)hBywz~_(9FzE2dJKRo~tnZHz#2 zWJH+W!d;)+K~=o;BhUN@?>K@;Zqf=oFw&G`0Z2%^8yzeE>;y z=#_#L08=olcX1eHv* zi3qPEc7o{_i*5Hwgi5ZrZU?@U8N0J@qW;`*6yswATCgW}WXH*?nYo`2>cAQQ5&%?r z@@05F2k#ugq#wpkh5f_Lw4L4Tz~>hpLvMcH_8qJ?y$vA{zjRI$h80CQJ>XJyb=5rZy)XF94}B9%HhfC6-deZaUhWKT&t=wAYfahJObpd=v>pHnmp*aM*rXDm zcO8ZnarMz^Lf01@3%hw|hie9VXf89eAOaa8=vO{oGDZ7fWEl7pMUJveB97!{6Lw*z!s6yC+sh~TI-A>MNsJ*W?VT!D7 z<$rqRJHPzLK<4>;NkHm-MCl<&M!v5*+01gioW%fA2jV>uG!QJmkCI;1u4tNFu zK#1)(p^^1*vfN9=26YeyqM;S8v&_~+`=gH+{KFY(gN^a*gOElfG~kO@x((6qtDEEy zwe4ObcnEefS!irO!GSPt@Q^TM)-ptm^VWN|=wBQ2s-FGddg2uydM!fh`IO#|i`~YE z+;#4QZyn8a>Q_sSsg_Y3ciKKJ7NMezFd&IhU^H0v3#^I|$8p9|{$8Q_?kG(#^oFAY z7~!N&t;gZz=^4xCLsA{1(Q2?P8Lk1VX+ZJPoLJI*0(rxd3h<_zNL`-3$Z@KLg7iI&&O9g1$@W z8c&IatQ|+kjn;rxMpbu&s!|siXbffBN}_ z?|C2S3!g9Z^2G}MPMuq=VQ~dUhq)C~PQiVpkFN2wO-O;v!x+zqwd!X+-htUi)H9s&IR_b{gnV*d=)CN1yq-!r%fn zVpt06id&+H$BX>3Lb$M>j;qTUK^M|yQGoBpGO2i$8D1mm9cU3!GHxI~Q1{yLa)zst zv`M!NouL2(=#i6v2nbz{`Z7dzYV~02@(tdK0j?=yj;0a=<3|LYg|L9|sz}Py9$SMo zeKloA{o)oPYNG%K>*$)kiaJV@8%0*P9J9vHCkV=#1Z2`kMUHU2m!&r#Sguw(Rgmt=eJd$K1A!^k#ql@Q04={E`!i5ctDuw&~xBu*q{@a%yU!EoE_d5{E)3+qDIf0dbh8gjBypNxbo!Mck2=*X}sPh3Q= zqm??*)LM;ms-qjH)P!hnB%geE3VI~|Z;doBH7D?X*STsq8XiKhBf{*J6friYj#run zlBH0r(_!7Tg&9)l@bM@*wg&|Eiu@LQ|2gBt0tV%wAe9km(GFN}&eMQgZuOzM$v2Ms zDPLAK4u>8QyP;y58g-j}%qDVPVO0Hmqaqw^?4T>yClS7@qAp)(2=Y>P&Djc6H^fvC zD#Z5@E}!>ZWs5xtAf9?@FSNQQQA}LZX(2JR-a@|#AjpWT)Agc>>>(0cU^t-+?72<_ zFbWOPb|Z^JG9$W@H2vbFl88zkY|p-M=EdRbD9oClZN<>nV#a)FGZ8^ zJv&Ry%u_>%pA1e zF@PnBxCjol=HYs(JXf;nX<@BE0GP}EQ%jjpF+dlC0}kZliKhxJsd*&XSX3kgimzjM zoB9px;IOlfm{?`Y?X0?3b4g?ybx8SPgJ{xCL$Y#~-;E56X!Q{3K*6u-mR^FD( zEfW2Wi)=`oP-)hu<_Y$QkPJ{uXElZDN!#VKt8UVGFDbrmP#8~B22=hxzrnOz!D$gu zs1QvOI2PERbPNFBn1`pzsA^|}TkD-bII>Eg_-nakjAaC!?Z|PQ7Ss@mDf~=-_~6?2 zz8_JCd`cUzh>+~*5`2oyxostJchg%<f^6IgSt$74y?^2 zqs~3&THvV`e$pvfv8r05D0Iq^KeKTVIi5fH6XNqJPnu98&fpe)>uTkuK=(IFFK_A5 zskqT>DGoWc;8_T{R!FPo|6UG5n9LSfku(a&3D}qJm1088In+A>t103VPtQpyCOxac zF`d5@(|`U)pZLaaL}(hHGCb|6Vr#kAW37O>>2BH8bbQ7r3rG`G#2l_%c+wzBQ$~c& zmSJSYs6_G83>WN&*&PPMdl_OHVA0CU2JW_hgW7|Xn{fv zYboUeOfbV@i31cFn9z5hC75-1hFsMd>QB7n-M{pkpR=&QrwrJ4!tmUC==zyy16NBa z7P^q_$GzZ`ootb;I2oK`NXYyQXRUXt7Q7WwyNDH1SVIhN;STQ?JEL~a7&D0(+sg+x z?cdN*pfqn5d)*r?9}^~l3vtJkXB*zTM$}oV7uYoD+!jiNRw(aBLk8_RFey-U zaHUCFgUuYK3Gw{XvWmZjP$dsu&1XYN(eSI5YbIi({2CqB@SA!@nS7)_M_-AW=q=_V z+B+2(v-2|usH^Igt--RJ-3+}svC8dU=*zKApQPLs_2{FCs=|sbPZ^mc1g^-Ip1O2l zjjpn#x2`?vb}St0yzg@60HsSr9K;9>x(EhjOouo4C+6h+Q-W?OTZ&?Kbz)LpA2vSiO)-U^B1ReEQ*LP|mqN=-~CmuFO~A?tQ9Y99jR$l9Vd5X?$z>^Ql#h2io> z(PR;V%ULHqofug4OaI$9eZkKmsEW_Q>L%SbbF<8vCh62ob{^#FP_X>kvKaBq>ZWuT zthFt*P(UhewD-1U@xR^4cAQ_Awss}j61HU#KCzy9|JfBuhObQW2@eD3!V zS!-bY%z?V3#d9yQ{LSS)91!b}TIQyW6MOf>G1V$X9|brB@{anfnrT%AA;)%xn*)HG zA`jXc?C}1wU6M*}K+J`QOiBzmHb>7Hs;XHr{LJ8VA`2r9DO&|`!z+!aSY`}Zue`I(wqQy6ZK2p=F3D=IOUO+Y#qMK3r6jq-mgCciL zzYsd@Wjk37u-h^*wCOS&Qp54v$Iw?K#kwJNS0>PT_o}YS7SH_c-~JE4Mn0uQV%__7 z=0?A=tCUmOK40#s_a&52-DmY) z#JvkS$x)Sm-YY&*oz8TADntmxNP(_CX85E8}{ zD?G}%vKGx&F2sFqa#rcjqg45OO4cM#G|A}@UB6U!Y4l>`=8_1M@N-bQLinxy?tX!6 z2`>mri85;!B#fe_7eyhN5~Z^v2){#7NSbt;N43s2XdNmlZLDQhN6&wRaaluA2UPnn zJ6#o-lM)7qDdkQYoK>OF~cg-m`1wYG2_2<_0M*7$!$rZRYt3pU7p`opPXuvY*{BAP0D%1^B9 zXQj~DhOfEjM0`$;n=w3VY39ff1URs5Gvm!F^ttjrp@mSsggF^OBd&&o?#Xe=)S8%G zeqUPgV9%9me>z#=OD?UNX_6;TW;ZWT=%XEsg~NRpp!{kxCns~3aMx>4F8zViCy}cc z&VaUi+Gh}0j5sXaGt6%6UJ-IPYbpA!F>aDX%vxP=$N^3SDoKpE?~cirf(IN-axGb* znoXy~Cs)70Pgi_wzWcGzA}KwMS+gTm8g*vP_PrNv@M#!rkT6yYYjP(t5VAB^P7i9r zFEF;Fx@${&a=*{gm4#vn6&Y72(Kkx;OvSCL>`)B!#plU0{LxeuP3T~2DA`Q3|3cVA z9U;>1aB);6bOdv-?%Nm;Rh{RD-|+f3{A)zV@mccn!G*XE@^ZV)aJl6$@pyh6XqrL1 zBvEOc5+_o1`=F9;HURo&ocs_jnF;L__-Ml#^GTwv-(UKfA9&9Zi1K{OVr40D{xV4R z+(Op4j{O>?8l)C#jE#>xEI=h&m%zG*7SFc8j+py4?tfFyy?mg?Ko%%@ZVg!zjVFtK`kdH7bn z2VVXqzi|Z;J)hV4Q(NQXi zDBF@wo|@sd6lJI5xS(|R*x1`r#zN=090lretWY|?cwot3(Waczz~hc+L07iBpFO&I z`6zWK4I_YbeMGk4Xeqsmp@@5PE~%AIu6wtN#gc|MJmS;H?Ro| zK{RW6r7Ge$x8=AV4QjAZW2pMwbuQt1PTw_2Dt-16VU&r>M}R+8~F)ltuW$Uc%>q07|=oyCA<%t4y%5 zCeZ>^^6X?t%yUFFJ-GKs=Dn+{BQ@;q$(JCGK1&4i$NtijANi*Uw&zpc5Kz-8q*C|c zD>KsV;Sox${+*yZro~8uxrpV3{UI#&i6JU=geH|I_xYKS+z+!(`IP-mDp;ipo>3%-QR$^aE^kL*3cW;(6)U8Fh!8r9qeh*HLb!d~FT0eQNa=Z=DyV=I$ zVZ3MT`OG%T)AGj>~m6lXcfM%{>pFu z$xCoc@_D&;5cxpcIlyz*q*&qiNkDyG_1dx3s+|U&8Sahc#k#l`M5rE6r9P$lu%o0& zXOamj99Lr!(WzsJRuaTCoLkJi>Pa|Kw zlEDMGAW^USkR)-kYE}?~V<&}%`gydt*Acab2*5J-F5l{+qQ1m<@KqoONYnalKJ{b) zMsYLZEO&sLkW6@4q@SJd;UWN_h|_WG0*_!c%OB9ah+v*DqN|t(OC<)ga$_>Ch(m~w zl*+FRWYbb@$O+Igsg zEvhA2s$^t)(N)A$)><7`>g5i4XS8a@n~?n&$VOon2rgwf=8I`*h`yLa(l9Wlb50=g zQM1*>m?l2qpR%L)U-4kt|4O-62ax2Uvi$2Ls1QjyCuqFss%;1K?>R@RU5baKgQ`X)#Nm>dx>v?l1r3vmu9((9$x&l7BlfI_}+k^|lv+ zKrVbPo`tVm_^Xe6@be1%i_dF3(R8_3B0#w6$8(U-ij^YK`6SCg)m-s?FS-10{tjlq zr;MbonYowyhzUG|Na}GNd!}D&km3f$lBsc6D2o+LKyDTx4Ntl8e6n1LGuI|bZa-}# z>$HAgH+JM#RgjYq)*P#;?R7Y0>ZKD+1AB1Tb*h8KRtML5J6YNF7SU4Og}cOorb}3* z>Wm5Y`t<;5dEunJzjBoJLs4<4c1Us4XMr%mtJ!4@^xM2-kBG(rU5wB!ug8W?%AalZ z1HIt9>Lt72ZDagk=_!56JPM!TuD!4N7w`C?p9j6;GlAyuV88}22dP$zZH=V4jt`IK zH5AhD1XO9BYx1e2d2X7_>fdF+w!4KaI4B0Byw}UzA~NLOmmSFsPGhT<`1_p_om5YI z*(dL3s&(lJ$fVnw(x({4fEM$7aVe^#2bU&Cw+BW!Xq6-h%d=Z6D3ZfK?b9dEyeVPv zwRO71Vmc|m`dvk@6C5YC`hkJeXlNONi8UGw3*PaoS999Z1;{hID=9ELrnl}hoG$+9 z*Ijw&r(U?Qz^A;`@KM<0=B9z{WRh4~8iXCLM*z znk8|62lv6>Q;Lc$NP?$X7;c6~@d|06eU=J?wKVUH@CG;bX#bkx&Oe;c$?DHbAb4j^ ze$7K%r9K!fTm#Wkc^WLX`9w64ZjtNpl9U@eSEV%TG+TlcGfaKh!Xjz)?Ow0QVL*il z2S9j}VPlsUNz|6`x^j{? zc8liKXDxqO0~)RW!_$Ez)Ag>-VwQ6On?N;Ts?2B(X}6PP7G++Sail8N{q$i}vB~&# z-OyC>)O)F>ayI}%HBg=jcLKmOFh=}9xu-$FYXUvz3>1lJWDu*;C@$1VvIqkxauM?? zaarE^3PSGnB7tjjkAMXN=6NTRxQ-@?C7jQ@0iWdGAQp^mb=UvWzkO<`CUa!C@QW1 zq!?etz!L0gvdhJwr+N&;sbBwV-}Dy5YVs)ydf04Tu}ujvAQ7Iw_RiRzJu6JLNO?ih zaS!A&QJ{`7k}~2!nj|fO8=ydt6GKIFmN*CKe*R9EySki=9ur-evWo6jTwa>XBsHev z^>paWw~V?d;Yi2B_4|H_3w_<@s1M&?tx(61G}_I~V-oEzU0 zea^yUm4+BhntX81I4sc5-Lls2-lpXUS{1k$;tCP-NQ)b;oG63ok&l=qY!myD=VRF54{(DWQxQ9hEnQb6P*V)R#r0X{@8#(1rMk3v-bi zFwBk=OFK&_x|83md}CMYYF$gn&%D;|25#!ghPS&JXUsY20t|3Dy1T7hVAw_xZx{(- zkkG4<8X&p?k-K)s1I7?*4gPj#c|hx98G}UUE3UQExbaSto)P;tHqxm#R_FdUw|riz z3q<*8SCM|*cnv87by3O$|Jz~}>n+}74$^}nxa6n?mPUIbxK(35^IOn4SX2;ZMg*nX zK8X=9w$eH~vkW>Kz_Oa*zHd;OO9sISa$Y)r%T-R-w_TJ&PNHcOYD&Ka@! z=4@Gj6rmik%yO!+(w2_^lQ~9it-pF@NTy{4tMq5at+fM6!Do%A*S{X^zf&@s?&YW&ab@lcM!Y9=ha^Lk^sUL?8rJz zW25#V#6Z`(oR0O-!n@Yxf4K%YW!Vu#EIlp%ME=WO?`Y|tQSDbq0`^}Dla>iqXxukG zq*)tLozC#QaI{5f52ZE{MgF0^UwF?4Ag%KGO225LUvI!M;&7A>ccAjzTzgEvUNV*U z@t7&)iI5qlI|Mg+11OJyepFmj;fk09ajf8;*)at?BPIv zOQ;c!>eiy6GlfSOGcyL*!Chpt3Spk#XysRAN+Nu*H6Q~8xoLH7mRTEIBmUxZ$tZLg z9Sb+oMQVY+vYR-EV=R$qeCc1 z^Z(qY*wO1M;$ORaTfNhC9cK}Q*zMLWsJ%Pbec@P0y`#1lZm&vy5P~igm&6erol^a`oc*yp-gWG z$Oc$?&>0r{Uj^4k-jAv*xV9Itq8eyek-FTA`r=@cSMv@effY>Wfc1|%`jOx3i}J};m#;PRh;a1-Sac}; z01i{Q?De~Bf`GPW3m16ERnLsI@P8e#7J^bCBJm(#{9s44O9{s(iiT&xE4OM+QGc*WQ&n~6y{~=6SAP`l zD?VQlNbZ$tsf_KKTaKv(8n9O{#nj#=g&Ak#{8R_k$k?RcY$y9q4T9DEGCMy%L9l#UnyYlO-}`Q=?v!V1W;0>lw*cgRjw zx=5XlHbhOn`rk4#^jzj_tzcEP(T;$$j(Sur&q$^EftZ3LHs&n5!fn9Mt83nT@h|^J zD?~P-LgzAT2ORz>m2MC3m})dyu-tZv?3_x2Pvt?idST%m0}7>}O#)PTi%{_hHQYRu z-X=a0ks|R$l|`;t{Kv`Tr%s+eLr&~sW3wD30{W%Vz^n+tU?uU_UZ!U*2ihidN$!>N znpnz{Z>Kya&L`G2eJu>QMI>ap7YEypeeaoU}uO3Ld9gyd^~8P z`{$m)1anOo?y7TlHbmp7PE-u+c32J{9z`iZu{K%L zTU7mc;&!L#&rOFb{dodh{+<+&Fy$$&J&1|Phu!{jYv&>Vg|FbS>@Dfz_bkZG>-!&h z(=uEHeEu^p1~DsnmCk<_v6uq`aCWtiT3L*$Xz(Zh_!FPl1`K@48ege6jyb@oo{tusAs65vhXt6jI_+b$Sv*)D z941iQERsER<~Tr+PIka`p(;1KBiQ$kqsK;Tz)MH8Ji7>;j9nPy+v042xfO0tcw0ob zE>|V?CIY%lD#guG0{c$WLPOoe3k`81X!VGl_~6ZN+sFN6d`cGOI3G%Zi3l+VMX2aqKo|DCn}_e+JWMKd@8;pZWoF;9_z~l^{q?5L z+na}#QsBJbt(TlBfcMnpiRyAfF7eu`3qsO$oTTJ>O*o<7rWJxxACCqJwM1h)6P5FH z?`i=$uxGIcdHYP2gJ0Y~`tjRPF!{W}3(3gwUC~@*xp0@d;Bw?Wo13Q}ID+T$m6j=1 zpSl&e0hnjF5jfF2wha=6+-8k4&@k^_m#&+PMq8Q>Xqdq_kCd+{ zE%V#RfExg@$U&H?SKZOS`LXwX&~AJFV!xw^I9cxXSb}%%tt-2lN%>jsWRGoZtgYJ( zpm~OlG63bQD&1be*h6&>S1X$!s?4f_(h#-UK{yjGUw9WKXxB|-Teo91qVcr4Ld{>v ze)qEwLdK_*TGw}5J$T!8AU?x*Kfh<8(%(#LwQ;+9Tmx^j)%7Q`2Tnco(D73UQts{M z$4{eVFx&#kN7``ZmS5SrbRI0Oexq$W#dOMx!&24suitvbw9jYgNUVJ`Xq-X8KgVB(M7BP%dtyo5mZWpES3WUU?H&2BemHN zuxPJSTkl&rT&zWMqa=J($CQ96WvAgag}T;LjpF=Q-~OFn^NTP;@%buGlVwj03>P>+ za|uiob8pLpzCCAkI2BfljJRw1W;t6^(&59oQ*O#0leftUj8*IX26n2SH(Mz25AkT! zX(00iSp}e4Mt^KbhPvegcx$DUjRe;Z&Z1h(sRvJ<40rgvuEpXmj5hD01+l%{XyCHz z#=e)V0tZ7v+=M9D>dGMIL?I|8#v4EqDFgf-^^kGO$R@=0kB~8epSFtOZKiuXbW%)T zZ+hs=$&(S@>wOJ87jCqKpqc>fG60DV6Jq&t7g0qE7WTP>Q;m4Au61vLS4wt`LxQF3 zD)VvzK*6z~96tbf5fkM3cLL;H)ZZc}p9kK({OQ)-Xb*6MZ(+w}t6>?$uVhzw8#n-y zp4`d+zSr*}Pl{tAVi5-$2`rS^)TJS_Qd}4}sZ%HUe+SLW55LUOuPH{_B&)Rg$Txq< zZ~aq9Bz#J_4V%*_t}%&XZjw-TH65LnI7h^bAje7*I)FRQT>xTDYDi=dDycDF`(-sI zO@P3uVlxEU1{os6i6M3XFYlL$-5(w_4X(u5aI*$Z3=vkAAmFJ(eU08zF~wdY+HTJmK!TpuU6CV}9;Ce(MEa455Wj8UC{l&ZydlLwasd}BL4iU)gP>9%l`JHYOKQvoXrr{YHGqXBL0>cOBj|kbH8)dK|SFTL%WKsmKLAO28sCG zm;dCiUHF#>z~OVhUuuUk%cEge6Oxz`--lTSi6--3p)|4g={ACF>T%`)0m9=h%}NrA zA?2Dl)~s?^9l#5Dg}@`zwUfNcn-9at%c{cc;XPP0fRG&4MI z7uzT{03&CPfT67dxUXqoR-u47h_IbN8%4Mz79qfUwd){8slUH0k=Z7xRB7?IJo5D) zc^XAG`IOOuD=4|Ll{apZlFx5Nh{6L+S!f=*r}^pom^c9wJt;#WdUas6+mR2 zkU(LEcq?8@sl`#5cCgl7ZXTy=)$hV{;FjnK{P5c=lrpuj`h(VxO9!GS574Rr2+J zfAE99*M>!c&xHIV$%mR-q%5V|eXwvuhf24BZ={l%7Ul{M z(llj$*@IUvq^2m{j>%gJZc{2_#duhWTJmA4M`>E^F~OgoYBiBv9?mZ8O&O^Sq74&d zHPPu~1+G4@RP{QHL9ec5qTBT8(-0n;y>4yhMy|$`mPuJjsNvmVFKZ^=yh`ep5Vc^>=TxowBRi2&nG}$Me@F^T z23vQYaFzfu>D7Sq1ipGEe(ZIB@l~&dsg6$>lF5!}t9Mlo4&_7y{mpzHLXFhyHl}!1 zF(VsuG6bys z2Vo;H4d^)z7qLRHd`?)QJ3+NSdCk8b{UI#qd|v4}HNjSDp#MD-Tnjt&T)7-6#f&#F z+r46MOB{)ez!j?G4(v{La$pZP9r_N?bsSC8u8(vhFsdf~zXpWyN?xb@~qMb==_ zC)vw%$MT8`V9oR!i=P`GA{ri0|MA2KQI^TEbAV!bfGjwik!BXrWA|p+g*dx|G`0gD zG#UuK>0^1hJL(VKIifkKw55#&&>LU2{by-2_kn|n#Uh->Qg-ArH1v~NyG}O8Js#%wVdGwA??Xx7yO`l28G zxsN@5WMP3%nfLD0kGbiZ>u0({O3BMvvrH=s79Cm{{sL`-6}&+{5F9U&+1xkGatRIx z*JtS3`b&6WBh5o47)RUQ{fRehF)e=Yhp<_jnvpS zVgQ8hs5{2w9~JbgB3@eca(CMH7r)dJouu=f7@(>%Nx+?xcDCx)5quw-DX{42xpQcAgZ$?K`2&>TFT79BjI;|fk1f_odmxCBZ6gO0@%tF2Gxf^!CNze z*w)zaqDqUG&--+9YD!Jj5V!`%N^152)`|a zkr6*M%``461p)P_Wd=ChPc0(N%m{>2K2}|{(6LXl>H2ZEU2vO4NKr{Zu1%p6%yE-! zd(_8AeT~--?z+&+PEdytVkM;kR*F&fDvKtD@0j!3xM~#N=-S_j4I(wI&J%&W02G0Z zxT!ngJBOXDcD|G-BP@X5CWc9%q_@BADWwsNlMr5()x|-;a!o)yHkupj5G|v5faTc; zPo3fnYWS@65wOA3L2yRq)uoUoO*S@w1|x}5sL@&{CQI;NASZIB+YF-EtBsb zW&G(ZM7kt>j)2Nx!x=+Pn#gNzbP1(1>MVDp6Qi|AuM1(M+=+tlzE*oeP>YVBu28n9 zgOz|J@Fl&NII?p8xh_X?5$mH&K$0`eKAk z!v8ZhJywxCU}{oml0{I*&8=D>_58AY0)%9V%EYJ_yNwZz5R(Q*h&b|ivGp^JY(2xH z;KoReugJK@xQcaLgjPeuaBnrD0G2(U7sOZ#NnPd1tvf3%Ojx2e5|dvCle}5y4$+vr z=mBlUEx3Cf?YQffH}uH2sd>va1rrxt?g|<=tX?D(qM3AhtUaREqyijKDy@i4$bZ-neP;9a5ti!>k$A{9%y&^oOH~a)@k^uTlW4 zb=$Q>r-(#BU1W)e9@>qAgYTjt*=e>YKPTq=B#rnJCoKlxaihu0JLj(EqL_xe3Zx)7 z;&n*O#2gqCC*x4m#vL~;dmk;N4Ul;cNoo)E&{Kz~aX4mtsE3MCqh?5ubTBjJsn`jE z6POj59iBW&d)X0kLu7-R62$_a5KQR#SFsUs`EJD6Yv2xkm4#39aI`}%oP^HMw5i?V(L+Y z(^4JUCH^>%h3UwsMO%Q9ieg^st?+cvv}N`JEjR*wXRB!BP=Dm4c{Q7#(J8GiivR*q zCurCJy6N0-jTcNK&@Uwu6BrNwqa5nGeFQcU7VzZ>cIFvk4C1Vq4WjABZj)(Ku$m;y z8gR>40utL%bk)nZhqd&;GO=?#N9%6Ge@YkK4VqeD_iAM_Vmqcz`&~UjvC6<|hZ{DB zC~FYh0yh!^b4&Ur<~bLp6`s9`180_7lZGorj1so64dVg#QudzxLfChfvd1kdDM4bN z)NSN4FMTS{y}U{Y_jgdO+-;IM%F-52cQR{--`99FvQJq8MH!J5`l&O~!+@$*`dm3y zO!*w>P%;E8`!gXlAq4UulK?aDRNJPWp5wmWeOj%?2$a@1(!AU!HRa2VF433cOb6>D zxf2xWa%(zpbwg}+;O@vij^!?^rG>*~y&MF;gLNwSYp}uYV?oiZj$7fs zs8-}dT&TH#<3q!+kLg0duNnoz`~e$7%dK%u5p6{^l#=EZYV)R7#)k@S8m-e71BY3S zd6Af)SOO`E_`A~&nA@9!t5>suUAP`CalKDx1dPT>p<(%@UVlClEc(e9NZd;`i3%L< zmq}}K3BgJS?RB&s^i#*0jGvM86|95)J!y25TY$;9)x*^ts4Bu>@PlE2O3LfY{dXjO z;$2h?0WlL2!xcLvJdBAE1Bg>^6Yy)PvDE3ToRT-|;S}d8g5=A}#-TJ?_LePz?kx9u zXrsuV3R@Vx_yK>K!IaM3 zs)i%J;p4-9+iE?s0HZ%(a*rqkT8}lJ-+M|Ol9ZtVu#)H+@IhnM)u0 z+(%0s^;5AIhrgHhx;I*}(L&t(^yMIC*@t5RgSSwvEYjob2tee%(TXsHRAv+ZHxN)Z zcZYlJP1sB}H*a-sjyCo0+kFPS_1Wy)lM-=YsELIjU3^GF5pn!}{{!Fpqjog$?;pm$ zMf}lMf1iI6Hl*kP4u1Jy`Q?B6OwjtH@B8t3pS`_pZM^X zz8Aa6r<87}QLE?m0)0L6OAyr#J%cS@BpECZ%yfyMHyMsani$U9_E~dCqm70{-^Ud? zU^ulPLUN_B7ilUtP)0p)S)sim0%aGW&Cn!a5|RXehV?*Zg*Ma%B?abruEw6vGNM-V z^Wi1j&Q40$p{AS5$bzt3b$*Ai=?E6tOGMqb+8nyRpa14-{^(DyL2BSrih@#t<1*|} zb01UR(r@ zf_qj=sYY^XeU!Vnb3wL?zEnWG)Y)mb2D`ZXa0s~se&Z$z$MJ>*_RdiQo&r>95o~_g$#GFhb$HxP98gKjU&~#x1?WmP{SCP zj|~f0fsZjVQZK4Kq0I4Ug?aK6L-Uowwdm#g`eJr!>CA(W>jv0yNM4`^Z^=%bd2k8U z8P%>)Jl&(%XBGn_4C$~eMtoyHbpgf=>b9y0yQ_cExx*uL&143c?GYA;c|h+b0U#s= z3gTOLn8j&FWGG@(A%+P*G^}kE~ zez(7lEXmgVG-Z6(o=v2hq!@;Pg?Ne)uFfcRF=lhNqJUP<7^Ee(?S5^OEJa7*9TiNe zK^XdwP{Y<=cTlJtPsa(jtu+{o0Edgt0@ufeih}}tN;1ZqsH6=^0vC`KsK{%-YA)Px zf3pD-mH&}><(<5}8T1kEsZEL6WpqH?iwh7mP*fI3k3yGC`gVMcI0?5coxWpNi|ro6 zcd71m<<0OD;F`hZUe)pK=#`g#{AaGAfKIvfYW$-;sH)pq#t7WF97i@?b zR#b;!Pmp~uC(#O<-P@gZH%C!=CWqlyIT?a-2`u67l~i{(tg|TT*}!qud>@yRR*nwo z34spK3w3k=!qp#$zmu|*6x}9&ChWWw9S%T{RG2csrdKRl>|o#{dTKaM=oQY&97u2l z=^z@iI3wr-ls;VVC#8qrGpQ8w6#^|yqqA0aqk8Ie{b<`-N7c(;6+>aNwQ9{%0cjV) zM%_zPA#*;e9-9*5%DR^a4RhZ2mMzLx-c%dZL(mXoI?@0ipUC04z4+4s5IhV81YM^$>{)qwCY)Fg+7ZeWwz$p6g zo-qauGR#s2gDhnkGCmN%J>Dew;AzQs#+5Cg2smMozL4M`CEO3U#JPm@M(5FG_X2Dp zp~si1Uh==c;lfw_Jh%>@lJk_xgj}h+>~5u?raFJ6{7IdAX{XXCCFrDX`-PmlDM7ZI zP+zc53G!;D=StIr3Hk>=^1i?N+t3jBl!k%Q9t($bzNg{qHh*U6r$hHYIB8WggG`i8f9%ddzBW*x|JDkCwLia>5cM{lz(RIuwto`G zvJ^TlEaHW~D!(9uf#N}MT=*dpXwefQh-B`yt_NI^`Z9k0?|t~+ z|2VuCe9AM2!i+1sMdKz+`?@>5-Ck$(;)VBo-9Pw~@8+V*|2=#jKi_wsk6T`=8b zxz~CJj|=3>`?SDVwZrKa)3HM*hRIa`VN!Uo9L6|X^^!%pbgV8RaU#S??J4+NSCav$ z(aO7CH+FF|a(FNFnbW7!6*!A9cxX-ss{UQ>WDfMF`P7ivfHGgM`Ik$hBG) zOGmVhZfn4{EZhM^4f>CSTq534#Q$K2J%VTx1TwNkqRXnN6Q~}J_z&EL<>oMiPYIY6 z)$c6rG6B#Wr3V;v^zyeipE&U_VcFC_H%W!h z(HDWPMm<6QJYz5)EkVkE_poFL2J8<{5RHyE8NVtf(=TpGO^&H%CiR*)H7Y^Hk#SjX-aA$PMz?30-d#J)j+3T55Y z3L*{z-yO9h!2=E^$`Hfh*mO#KlGUb3!&aQR0lxdO(2m8d*^w%ZIx1+asg3{x_tJ+z7Vy=qlhdHai- z-vSAqPieKK`9KU=b2Dw<(@b(Z8AK?r6L07l%Z{9S=;YIQj%r>*j|Ejo-9QRSrO0p{ zEgR9MDg=$hT^b^e#94Pq^ZYvyB^JxK%aXLIqph$_$fb;-Qe>P;AR?p{^Qn99bPs|x z^;8VwjRid?c40rSq;c5IF0n%}-epG~I&<=AJa@zX0G>P9opIB+EB40Csoa_Bd46p4 z&f*pDh4Lx=<&;U8YQ*)J`$&hK&2*{*g-8W1cWP~A!;=fv>QC!ux-Uk~8ihxa`q~v@ z!jZPIv9umXf-~O$Q{43$-fqXXQX9jIVgXC?y`>{|-t-L{zi<|s9-lAw?oUlM5qr-y zQLi3tZO@HnsZIlZ55a>)FygFg-wuS+VA@90P2t1qq^jqLI<=+?DyJ-SxY zby;=$u~TYN_172V5}KRw3%dZVMD8t9TEKvga!i~rOK@GGen3ZS8=o6nWKRg zV;iI!9yqP{?IwRG#@HTq?x|j%*|*jaM@vOKB(Kh1DYXk%T%lXsx>URU&1>6LIqw}Gd*A8%ptJEQ^)`vx zcpPabb8}zc(>)1q>r)(UQ`!QLz<#dzn~qxvWjBxM(dhze5Dl?2+^q?Qo=rww2fP(( z@xf6)W?zW97s~;q(JE^YqzX7`cq05q6XIqPGDj&JrDWqNLo1&6mp}Vgz71h(e98-w zq+;#d2TAMR&XOx~Pfa3Uk3wWju;PnS_l>2|tcuZEYWPqvIxV}^uS}HU#>s;N$&7Ud zq`@#pDXb9pZF6wlZzcJ|gW^Z1GKs2q^vfUkXW#ydxRjpH>&DwD ztTg!CRK8}cu$~XkVqw*vL&{-c5WndT+Sx5@AZE4fil&oexfgen64RM5q-5$$|7KRYh z2>gslUxCS|+d0u|(r7|s4?`n@7w>BI_#z-YhQk)@JOvuBSiNv5eZu- zxNxeXPnFbao3iYP#(2Pvh2z6@wrI;>a=1#J##E~^<1Ti8E^c|RBEjsJya(JUOkI3S+^9aAz|LP6Q^yidKx;lhitUHY5F%v$z1&Z8_{R_v@* z4*4CuXMXN90y6o0rRR`q>FRBB^T#p$PG?+@7)$w�r$f?1<1v{l_^AR#hW15nFr< z)pGjLNv(9m3sNR@aXTL(;5qJrJGOyQasSmY?;vn>s~Fxc5W~lQMhF&)1bf+EYg&(> z{ophI>eg$&09R<^d5PZwy-a@Y71wU2TVR`&R+L6m(x`fk(o$yqdCvz@msm~6-Qkxt z^d4CxeKHUkDH$$5l&1OXZNGXEYlv_+1cVhXHUuS@;C64~ z?sBQXbw6TLG+5|%v4tueH<_7%F5wPC+#4@_8%UupP&keAVi_kb+N~2pq#aVJSQ~6G zWS|T83Ng)yvSaWRg4ql(reV7HE40~{z&ZpnlVC_7q@=*(4fi<0D_T@ zE=RSja4zQ?Ug4V^L~0nzg8fZ`)EGVH?kfvcpoBx;8CVJaIRP5KBn13O`mP09uE< zCZ6N!m>W2&PGS-)1@f{-H?Ay)-d? zo_o~i8zHySU9BUMp#|n{7e$lT41-u8DIY1-2omBUcY$(jhHQ9_0P6=cG;r9_XGjka zF$u#@w^GfmK5bkrQ(KDUf`Q%I;mXNJ|(1;pO@V4N)_6 zQgFb*P|l|*H4U|N2fqeK)LeeDB|&=_8-a~-B}4=`8Z%i4|4nQ(3#~0nepMArS5ug@ zNbVdcpkIMoVk}XKztt;4fHr$?4WT zVnDXPxkF~@V{XX9@OBF~_wX8RoQP4!{%~7GvK3FZHU;q7{qn~AFjSy#2 zIIL|`s?nI}ETjV)R7#TN$&*R)@PR}R7*HF~L$A|U6J%L$wTc`7Y@^Q#DcospFGxpk zm!LXTrw$FRQMi__%$apLx+OHo2l1Ck0^K6wB9t;lcq(uwbl6qAnQSF-tqZ`XOJkw-`;=o&>HA6~JJ5xl?h>UHi9eS->Z{>|d` z^^5u|ILxLiy(ZtB5R=OzH@aJcO}x`aqkdan?hc2&0h0TMuzRsq#!|Pxqb&+tqoHk@ z-Q!3ZJ1%vuAE`GKa<-}DO!|DospF?loj(5HgAX1*dFu27231>X7arN_wsFotJN5S# z5^h@!`A+{CypwD}YHsq{{}p~tVtf-x{&E|-G>d)-Izucw?D~CeqyIL;wnDuYd=%3G1e^d;wm8dsg0(uB$j%F8!y>N%m=hSy66O~dVGYi0Z_P({;` z?Z5j%FZJG(5}Lk$r_#C$zvUe(iSxGKK~xmpv#V;=ESiCy*xsf=6HJ7+bDu)lJ!Wgc zk_UwXw2(|o4R+9@`G?|g$PLAq)Rk@`vnhYSB2h$UzH;9t#|qf1beM=g(s@+L-DNBu z&PcTWl%nNAZ-5LD)2Lmyhl`+*x`=|6y5K00(DMnk>>-?&_pjijc;XXy3a;afP68&_ zVTFgw=Y9kf+~R0B_LoV8h16&hC+{$`941xwrm_oTr)za`W`?4Qr3y~XC~RTv-pwskr2+kv-?sA3 z%}p_%5Ni9Ch0;)eFyBE1j_~)MONH9(7dxuPDzBEVhQ%Jzq)?Tn`Zhe@w!93wi0GuI z!RqUCnI*ikW^z!GCT>-obUaR&H-iA)ZUb+&lYKHCqulWLYW22iK4KADyd*uh}%PbRA8I43>yv_ zuG!yn7SI$F#eK}wW6@=5-Zh+bnDaPm206wrYbM%sa?mNmYpB**Gl|Vj!P4E%ViBor=Qez5t#^s36+#wGv?OYx9+~0>S0l~*fpLzy zg>wZtbGvlHiXIYf0WodV&f#f*vDNh|pV;p-?Ui>Jxc=dJ#L)fQtwCU}_1a?{2xlP_ z4>KHR5bR>JYlZH1;3}+#^StD9KJl(UM!YefGNOtehvm>`a*dbE%&%;W>36yf6f?3K zvk_xsyF`07m;;J#OQt!0rlWyNkIU~6!xFM|wM4fD%P`jOqskg9_LX-Q)CY(?Ax!nx zd-7y-83wmUK$J&|3|7+4dmvAoVr)jfM_1W3UF}f#An?f1xdJY;r%A zKFJ6GsS8`)F|D3d7d4H***_5QIdeb_S-@XnI+@GjYzoA-Gb4Yph9T+=57}tjtMrxj3=e z#{rJX?IXuJUg9{CD3mM0xLPx2ic^+U5a6s(k*8_N3P+SuCW|u7pzm z*cxK8+`gDZVhBCAWx%Tz0s#I))4#K?I8i^?om+@%ACGO5N=bNdLG?$jQpi2R%!P)HO z@ly|?6n(H!=iPjesor`Q71H){0|CJ~E*ecxJz@$C-A$`N9Yf%F92>o8t{w3!K!ze_Ux>l4i}fK>Rd&Z_9sNm@-4Xm_Zs&M$nF} zpwzc;QP7lAz^bZsj>(7^TOl;9Vh>kkbYPIiizb393tUXYJ9i&KMgGgM?9Bw*E|NL9 z2Gaw!hb!&(P$G!h-|_$a<^OO4hnr7%>pGpjb02PYGTp&;Wc6MpEqdak zV`3@*Untk9Q~c^NmvxWo4?{HsPl8GE-kp7{bC){OX%$13vX>8cHBQn(w)0+VDU8NG z!R`PZ*!g8{k#Gh+!~uMfo8f(1*66g&Z=v4>B!fA*Z+t0;Zv=49gF{S z)3%gOF&(Ybs6+j4+>1sGoI97vOM13kPDmdm6Ohr*OSzE=ATD3$Y{HTDjZ>Xv-K`t& zYekmbyx+$)oQo|nWZJUS7xN2`{^{BO3$AfKrQENB1W{Th!5z|yCVKX0RvSAd`A>?^ z@-j>yhZuon5CIO~{njRy{aveZazA`@*cG{_N}{wb@S@aE+Obhu@kL}N(7I$U3T7gV zmf}m;iHWmgMbOMPLoUdermLi6?11&1&0wez5Uc#?E|i3w%vs8=BB~uI?fP;fV z%tI%|H}EFhq5&y0z$`6hI_`)rBA=}DbB$^ScOUK8cwz%dsS(oaKsk0kgEeYzmCL;ANr_*H|WuSmJs+OShW===xtF@m3 zNy!L|wyYR9uEPv2HT*=@kzSl?31#f?kjl4_QQ|@~ByggunJ*n6tC3CE*l+;<`-HR5*1~P(`m!2f* zjbf*>8OO4t?V`eRRbz^R%+G*}2Y7>83%FF?BZm#u-C~ueF?(zy$+vaQ_4;@H;I&<7 zt$a$8Cc}m1J}B&Drla9BMn*Y>$vp|=uc(G@jxr$Ti8!Qg=NN6-kaJ-thSeXr)JYxF zT1PGlwKuRgbqAFBjslupE*ik)%mnUD)EQ0pdbPQ$qyog{>2&9XWupYAh$_;3(5;yL z<*x51(X7AH9pT>J$)V`d1@OGlM$x#a9*l-~wgxNmX3B2L5c2>m>nR-`A8rN>1qcYV zN)l#PMOvXtabT(+=m&maX2i6Ke*!=hDJ9dE(BA>d7V$!7nA5d}SG4a6x;DJ(+G(Aw zIN~-TI-fkwY**}6t>C5A+tl&g1?V*@L^??@B|M+I?Q=oG0%y8!Agz6=(3t!v3iqid*%UT>C4EI?#4{OA{xYJ_~uQvp<7#HID z<(lgR57Be%i0dUOYjUnSqjeVXLIoyxj8NJYu(wgCLk=k2$*?4{A_ju_vDU6w39XB) z7b?pD&s4z#9;Ln^Ji&Rf8+(J-0?iD!_96)dbc8&QZppwDy0m zn^+a@{^)_L!);v4$fp$UO7-xfD{(nD&#HHM2uh;G9*4VNY}rhy*5;n7h}e$fl4vc3 zbh3x(?b%crZIfs6+@Y(AvguUEUC2t6MwCU#ozO{;sJ9Q1si2NRO|JrTV8)qU3BQ9v zE+{3)^JkVE`I5AAgfy5wSwBPpl*Bzg09!%O0myp!y(`xYp%MpPE^$OR41A%uiMkjf zLUb|`%9|I2D8OF_zEgIAtT(mu@C#Q_-StYIQas&28QAQB(=f)a?sQN;+Reb-SpY!U z%-^Lt_F8*F?q)5a^7o4|wO@#Y8VJWCj{EMUs2yu(a#dh1?nen3j5McXRMb5OKx}s5F4mxF@)HlQ9c+VAjwM3#DT3sP?cYV#px-=?{m; zIE^}s0+FX?HDSJrU=^!`(E_seyVWq^VZ3LXsM{uj4X40a-R_I60V{4nPBQiwQUS@I z0d0|pJl11&bv#Hycu-KmzIPCYg9x;5=ldvZBSjtEIq`c&0>lxR)yFdTAZs9FIWI1X zr9~B&5u!tQS&|W7(P?wpT5%7j%Ly?mpj>G z8yjoulcepUZz&YEs>BhCELP>kSYRd;>2uK!5#OWR9luFdI|h0 z%sWbqqZ#E0SHsL8kP=2Kv=$O1jfkS8CGeWqrxQ^Q5+leA%xPRcV*MV6U*_u4bW z<4N_EjsY-|om^g}ESgoVXEPANrr&Qn;asD5@0AL=KA!^C7KkOK_+_9~)s;s-_O?HH z<9!PYe8$DrXaLLHgfRBMYNs<1#Va{3qjQHswODs3f_<@V;nA7ml#$4aWnu@CTY}i~ z+7P0WojxtifFrOZ*aMQq54jKLTg|sT%ztdQn&(W`#@|AYU6n!{2)1xm5#;XS))gb1 zDgtT);yofoNtQts@&954LRV@|!G~f(L4dF&gvVH5i-1$&H~zqre~~r3fN4&QBiTj0 zb&M=`FDNq!PKPj*+Op7;`Oq1_SqYT!M9Dgo(F`dA*vdM!Rf2f2euoztOZ8nfGdmM_ zy#%kUIpeE@vH9IpN@9I@G9x!gxC2K~qrcTc-98wzopl_p1gz0+-bNvafN|>n5myl2 zyNkeQHL>Y@zLwVTnwbqN9Gb#d*j#Tha%e(rM3Ap~aYeaEwPL=(QkvjVUC2nbFboAD z56mA%)|IAm{ZM2Viviq_4@4be_1e6lH3~`N397G7D1*Z-(L~xrjGP7*ohnW;O5j17 zDS~kTqTx2&G z#*-Mv@K6B(p?Mtk^f!a)fefH1EUod_2qYHl!|JLoE$)v%#5*~0E!k|~Q_3`3!8sCEJ);}$9jJI*=)A#3bz_Vzyd%-@xO zd=v-3Ek?2|0A1$nx5XwIV_m-(j{5A-kr~+(d;>Bko#PE1fKb10>P;xJe$r}yDlM=k z;%Gu9!$n{*${9V>Zj=wnk({179*BAKB92KvoDR@#YCIA<#WZ*nVGym@xKYP2$Zrf* zUJk`L?2+wsLb@#c@oc9HV#o9E_5i1HfP2Kiy6`XVSLx+&PNyk1XGMK6D?FbG3bEo? z6BCuIBrd@#nD`HTL0^V^(=!UyFk}J62nxFIIG>1~PUCPA=yt2m06ll#fl>wi4e`G5 z)Wa#17XWcWsR^ezO`>q;kU;Y-&;VWm(P&fnu5~?04y{7_z#G2v z9e)5w`INVL5KT2z@=CEioC8#aFz(J<_RF7>;a?(su*M_z!*6_r2>w2zudDCOgzNLo0;3 za@BLMSC(}wRcF+qg#LyakCYuf2Cu-`N5d?F+oDDGMg>_56D|S`IK9~9 zP~eY#c-d5Uc~rP~BIVc$#v88=kAUlWP^7cR;a~*Aykm$2rBL8dN{o*K$?$GGEZR*1 z3Kum7Nr;|ZQutc1i8LXrD{)ahI$}mO_l%TUq?6zv41D%33^1e{e`kQhK~7UVzEsH% z8xvhroi0&g#qIbKi0a|@crHG((oPNC363v%+fC%KWv2l|d^6FqhxR2yTeroK^n_MT zSNYzSl%5aR;E~N)cB4i!&eLq1hrN{HQe}+z?F`qs28Xn&C~^jB2o-job*-(VUos(7 zxEZ4X&kI)lQ@vbnc89rOQ0rmNG8BXXsE_M*+Y)Ag{52QNl*Y)j30731((@D}-FhU@ zac;6|_rrjk5=o(GNs$p-z&e`9LN(UKeCg$9{r-<`=bBzub^%dpYn#j=+5T3 z^@pgpnUn^n$vU%msd6T!SJ7F;b|C+`y(=CVwUBF1!ROMXo(y995xSOP|4`c$>`x3u zNvY?q32bI;5sB-z3aFAvmjiFrf}zv=)`%;1hG-|Ng}qll^_OV7zUteWt^CeU`M~J|PV$F?!kEATj zKiGp6nimz11#T%~yn|%XpJ;Yb+q5{U<$sE&5t7V^LJ|t`zo2jQ za(#U|hpNqqEN@r64?kY==JW zqg5#61@;Du>MW-z$vqm^_mwT86sLAOf%|xmD+nCVT$uC`OvjMh%GJ4h*?AvA9i#Vwzl&3G2CHTqQq@lOD1woDV+%J2u60Y0_XrOV8Pbs4hIQYWxS}TRN@6Y>!o{?pA9%N1gH*D{0Sf)Khk2*KO*$?D7l~gT zjV+KE3vxj_ojj>J3&W@A5Gm@QWD3HOeHRJ*R=rX8sBVZuninwJA6zl_DMx3JBB&8> zOmU&I!|qacvDnTr2LTonGyug4CTSFikD)gZ$68XkTWPlizjhyw|BimQZeDxnn^jU{yVfjao>Fm zlpFMbFWykT+-rgMp}+8#cWlrM{f<)LJ$qmasWdyT8NINR-YthW%IHN?lbUM*c}Am7 zYNgKQNiC2hXV-F!YexIy*mvE2qqv5kE=a!V1!QExW4Jd9i_;(5P0BksuEUzsb$mmF zRZRk3vRkeqlRcl-k^*_rr8so41@{ znU2kyNv)Np-;NO|GvSAsp1F3-QYQ4{W8CwKsVU z$M``l6w?lT3(;iQJ22{0$O{xAHoW*iuw3V_fgqvTf^Z0gO)rO_7qF@u%gAc1zI0#! zPa;bO1l--uLa28uj8d9z5aL7omgiO0YUeU)PQ>_j-L=5-r+|Xt1BMuPb%zDdWx*E^ zhhXI+=jj}PYRH(+SwgD$YWLaN=^Et9lj0L7K952sMK~6Q)N>$C$Z+?HB#f?&Ron$% zNw|tu`o%!?#WJ#uS-~3Qj)!@2HRKouqbHu)bQ}dMsg7K$zA(3N}_`2zA~Q)-FDqT(Pi0>=9AgsCI`za16}`ri-Wt zr{eV4%x60pm{)pOLR*Z%Mk8AR&xI_|)||dz*uGpJCWnloaTm$qHZ zSkh&TD0mp()zGQ<@PYkWX+pWv7ytrw=4XbVKK|RQ0`W1z`OBQK%m=DBqv1ikfc3twS%v}`BSF5p0S^)P{x zl^4&RI6e+k1Uoz!d4%;EU&`aN<5VUS&ZCfMA%_Jo(){xGsJ#?)HY%@x+kpAkyRDL0 zX|g3|kYz=ZmdC?5xgKwwHu-NMz$M^v&Oc58UCj#SsPAUH2F+duJ!+}(I z^yTylDB(-d`mzG0I&|y$^OZ43Bi#qaEcYHbOS2IP@2N_`MTTp5KHg9?%G}wlaIaox@)ghiOEoeN=kde z&w8Dq1l_kU|Ix2m)YvJL3U@lZ3o-Z*)Jj``@?E=&^b1ljrh%&Q%XDX-KT~bBci(b1 z-r714BVB8c-@_0rr-t+M$4(tTJU4aX`275yiuA%SzH<`_=-^(JP$N3QIK1}JM5-f* zn7f@7h)W<3O23in35pEbuz7SiOkjRA)1wNC1W1O6+k>FWm>3BiLmLe!ojEZ(hf#&7 zI{@SeTr^)GAI#FkQLBBoUiTB=3w<+T5hu^_8||R{_ulgvtdM3f9&nj7wTcE+`Xe#Y z##Gzv1(+Ox5^(W3X*8cYGu&zjxMEjO;KH>5TDh6%2iZ>m!E06gZ@VjS4exFOw9DsI ztC0zSiWlGP;eW(y!H)q58Ar_02vy=|ewyDUeK{|gzvZ@uUD9wx-$U7B+cK<;Syr(~ z;Io&FyHaBulIJ)i)A3muaD0y0#DTVQnr}0a!APvxANYy{NjnF|sIDY9SPobrfKtEa zG{>Px+zI@ErR0MkD)Pi(cfczluvL^OF$7a z;*FcxYC=O1e~(QjcWQitC^Sh?iIkgNi6B@;dWjY4>sGp8W(1%;Y&4#vE=sk6yK?2> z90pw`D;nz?HR#5@{)H-HGi1{oQ0y$}E#2N}7V#FP}kVNlu5PzS-MpM1js+>`t28&h{%A*lmDDIY% zXgZ8bdJk~+Kug95=3fFo@z!SX2euQC%o8}>VJ286MRj&pA2R`bYog{hF%v4-<-sqz zmRimAnb#iNa{$mq89yT0;#zJvZC08s>zd4HtR`o>SPWOPTW%w%C@rtdMwrtZ<2?I&GYc?Cz zc;&|iUYV@AZ6|m)E%1>uh-CUCs#v+Y^sYwZ4Y;xxDQdJE+Z_FQ@pl_ol{J+^Y&<1M z*Gfbj2*b{)O|!Zg#(EFh`;)fc$aRTQ!Lg4;9-SuJEh$shL{d=)F5TR855X?A25;VU z#y!(EBLGcA%2N_l+)Xe-9>VTY1!4ttxW>7;c&~A-l-?ZRn7tTT4JYy>Io_eSFwH=# z+Yqr2YBT!=LGozRI$Hzl$A5^xiA%831?_?W!Cy`4;$9mROa5V}yHMeo+!x7+oKP;1 z)z+ZntU==nBFL$Ma#CrjlL(9{0$Ozd>Pg((PGeX$)|9oC!GoJj&p+CkdgLD8wW{-r9TnijXOEUNtu-c@U&#?$aA$dV+B6}605ge{K{Y0Nn} z>Vy04idkxd0g@9*mW!n^V@Ur1rbOWTY?>J|;t`qJ@hF=~NEwc)asLUyz!xZ5#Z;bB#@ zRbWHqpE{^%-^8F7ZjH}GP$m}1+-jmCg}S6&WpcWBfw?+}X>vB^ns(T@OVD7(P>cho_CX`cEAR*uPX|CcWuewG z{e0|tfv4!xOdHEg_yYr7OG_s(wR;;Wj&!FhUQvNrd4OlSV(+H%6z@ezDiaCKEO|M) z#uV(da%PO!D`h6_u(?l#@^fR!T2O!{s5q`ubW17Oe}%9>b)xrJN@bU9T@3J11D(u3sLfkmJg^F5fIqWSsEmL^GYsPQ zOK=SWpDV~nC>rtB8HO3y?UT4w%~WjPQEeUzp8-wzk}h-N9s@lw>fz1!4Biapof5?s z@PH>DwH*={YQbo`asQ32piWGaNIIh^bh>h{z4zC*#0X7b*m?!F4*MDWJe=#48Ra+= zLvSHd@)RBuahDOowtJXdu*;0v1qgHKQ%q++7m+*@iEOI|U_JZZ8VyE##gIW1n4XLv z#RRz}n;NdUD+LE(tbGAD`$W%62U;2N`x}9E{G3ruFzZB+L*kSo;IpdKz3&r zI?DiA?y#_0g<%r%J~>J2sP~5Fq8s}$Fv0~jhDq+e?Mk1~*wmgeXz}*q>rn_c@ie~d zai8)r#@<;5_6n05`@aDx00(G)XzJL%@4&&>45A(bK_)VZY>@Lz02%L_01OwL7#An= z$$6lAh+1p|4`hyaSDxes3O)ka4d`a6 zf=o}H<`u4D4YvBAfRI&HB$R-R7+2a?@fZGSv%#rM_5zXX+zoJe5Yn=9aDJhau`qn@ z1825{c4aqQ9-FZDpg`x+Eyx>#^d!{RNG5hxl0ffO@1MLu=m7oGMC)S-nkT)RqH?Ig zw9sg+1xL_`R8S|Sw$_5;I?BsxBd;NV`Acvkj0w|Gp`tmABMspv)mNrSzHLA`W<`qN zjs>T2ik!_(wa((4OX6i8>KcjDT_{`NL$b6{nW8=exfw?-GjbOG*KWG+N?lMW%OUZ? z>7SvnFtVuH&;XfEl8hn&-;Yx%%ZUw~OODGn<*f7oY`T{@Z)LOG;j8EyyrcMTWNBzx zs^qrJs3)o0_jXsk;#-i@VC~NUij-);9kWF|&<+dLLTmyp7sG8TVarCV^-`vRVYotb zP>KO+DSEg`*ifMOi-?13&?X1hgIXKaCL~qMnk!&Icj5TMpIM*c<@6x0N}o>5P3t=` zJ#!m*gNf;blQd7lRJ#S`IlXK|&F0Qw@KNcVKb263Z@@fnkNE}$3P1&+Ue^{yL)G&N zh_GvhV3vU&;NzTD9{InF0jT`pfC!3&F@C;Q=T_H|pp6Fty z@@q?LsZ!j#YAV0RaC2pu9|^L-KD49D-O=Sze7Z1a8zGuokvRmlUu2mB6b5cNPE!J7 zer?E!hOGTYHVR%UoycDdr44yAkH1idzQm-{*JzNz{EAf;k4#mp)zulmfn1^6A$mwh zB=qzcVrGNw5kM|4GkGsaTbT{*so6ESA%1}qt2~} z8;-dsaSWy75s&T`kBe*!DMTsJG_Gdnlaa|2thf~{CwO8&5)$CQ_*(%N8E5If(=5z zjuxGP9s``Fu1YO>p`fHd<}`RyDM{dbgd&oRe-+9{MiSez9V9W6)WghAtr?>%ASS2? zbdSKix4X5DS7~4tJ^eC9B|CJpueq1I&!(hurkp6Aup8F zM{{1wO;sHyTZ1UM%V)-Z^xSWiX@BZd;Qr>n)R$3Bkk%e*G#(<2el?GC#!(CH# zyJFniF)A^*XV$_;j?t)H`L)Ml#<);c$^p&E@TT%o4)-IoD&Un%`}?SOaV`AMX(8I;>%CCDN0$> zC*JHhi{Z{91V@Wyoo{&%kz7KQ!`8xL)W=DpXBiSBnyVy=L`&~TL<)HFv(46NNx)hV zG=p&5i4*tTr#)t5Ms zQy9-Jh*DR9$6Fzj>9J7)C$8zfwDHWzrSmC#xpR%V`7O9K_r}Yl`%)~(?r79^H0qnh zuwMCTXDBKcB%L7#A^2-6jHleHQH3h(sJ1VnYI{=HoHG*#Cr}b{pqCGdQ8ANBrTr>o zOr(EQLVIawKGy&aMb&w; zozT-uU2K>vUA3|T4so6IR`RStrzkWR|Lai)U^7hzh=3Kz#aFE_bk|T()WR+K8+yw1 zl2B?$;diOHE&Xdk8~iGts;B}kbVg>N}bI4QL6=ibWCwNGyR@8MWc49*IvB5 zE7fQ@7r6)1%w#MoyGQcBeIuivBn?*dw{T7Opzj1JTqsCLVmSiR=MIgh`T{gBot6Pb%v~8-p0-y$TU6}z|mTzCd&hE^h z0_zm)1Ssz#9vDm%6u=bzgbG||?be z6yaNGWlSS6je`%{Q!hv?*61SD@-@Om`eZf|N`KV&tM7 zo8xA5QBbZ9A%aOv&t&sRNkuZ6om&UF61kD>i0nb5@N2!ci2Q{c%+^Z(lO-ktsiI5J zRQfJ-n(M|N-H+ZJkW)^|9BplUN8;!nx@{0RP(U7(&z%`ovx+q?;JxDV#dEE$B!nrf zdFmI$`Jk8~Vk&tj)-i4OZ~Rh$MR3*#yv(4l$e*OH3u+{>GS}j2tc#qt)mtehZa_}f zM^?E=vtruRko97#^Pb8JsTteohYS$mNyb~8Y?SVbopR5}WHPu<)Ko;9&;)vn>vyl8lXce;E9-0OcfzkLC%4c)=&2e36>p>XB@kDlxh&P zY!wfWs`A~%qaRZDndcR#wR0UYP9HHzDY_~~VJZhWhl3CodozSuxD(boj6N6~9c{{qhD^z#)0P#*r zVBJYF*3xYvFC_Ss-}w)QHAT7SzvalRSZ>JQ%Po&6y!Q|xg5oZs2EBdkX!$OpgYY0X zUO0L{L&n6e)y2*g?#AmtC~G>7#A6`h%t?urp%kO8v>`voxYEB`uC>}7VL0+{42(!(l+Inpuqef}ICVc>I&xB-x;9<;-Dx$PlFi z`wrd-jVWAsK>>bj=yrRj6FyI_l?^PDvZ1&0J099M(uICJvzz z7Y@2mnZc4O{@0$${_)#TD;Vk(c*8(YOfbLtcWDoB4Q#HHus|m6(`nbCk{4RiXv1f+ zVh#7G2cUl6#z=6jh(@Yp@Y9HQEFv_u_GF{k*jQ`AEr(_^5pzkkcp%W4XOz>#@389a z;7_Wut-Rq!ao;)#Bd;Pm%0BR4A_%{#TYET{cw5;@w_a_DlpOa8VK{#kcOOk%WTW;p zgzOsR@JZQ`qD5#s%W#TH5mjx8m0HFh;4xV)BQpk#LG{1muA>1?+<`&E<4u& zw*gl#7*OH0be6tFa966bo@5Ka&}_D0#}#FD?=*nStLw1wD!WpLTBA|}55wK4%6^Qu zI~&+If`oD}33Q1vHk7u88XYX@vH(tXnE^ml$#iNMoQe0KhcC0988pqLp7f?grK4S7 zkd*RU)sEPz{UUK=*Qn!1*@J4W-cDSl66eaJob1LucC=C7@`9@vd@03b3wAIpSk42E zQdt$QUAnt+t)gzvzrJ)1fX(%+VLls^xX5%~L=LMOly4Z+N)`$yDucV<8?X=&ubvS# zPK2X9mD|VffMZ+baJ6x>_?!WJmVg0Jk9`$qDQCS{2Q1CgYcAQxd_vOT2;Kt+;#XNa zr?VTDh;uSC7#7#oZ&45p*e1-Z+i6n&N^gRVigbpsJ$Hfwq}Aab*s0tuCg4U>PZoPk z=e&Jk!M5ScT6T5lg1CX^@sO-2LN>MbVXhkfg}v!yWm98BSwqQtxOR84X!3Kc4r{*j z*wN)KN<J!lS&Pa&D$w=_8m9ThKxt6q{h^xjbV3<%6ioL-YzW^c zly^8&tzYRz$&{a!1<&LE+BKTi=2tsw^?9sxe*R4Jba!6=KHDNk)nc=Ij>;EcRdYZ3 zC00!DthSnGZ70bcgZK(h4!*{ti_=a zo8RaEMDw4Qe}j_i7e9+X5lzP_kl3$Q!C=WLQ7F4ZNPh7!!pi6??J|6Id;XP7!dv=0 z=mr-W-*GT+{RW#%B&+3P$2@q%QGqqE_3;F91Xp%j0j4C`q zwee3St#p z%%PwXy@p8G?IyF^m~Z+jsY8Q*m_B2nN&68iAWldO8br?ylwDMlWF0}5w+ERKh#V=7 zQA5jgC+_M81`M*YMW$jlEu??#6r}1|gk%a)A5Qe(Dme!o3~A<1W}R*eDm`&c$IRN@ z#YK#yLf?ZRKn+NXP$M-VJOZO@wiwCa$hE-}-)00~nRTcJq2=%bPne0uvURGbsf~vd zG(cODLRM340CrCol8Bl_l+LG`^VcXG27L-tOJINItkkjnNfji*&6XA+_=AXxHVbt`?e-_ zFnxRoZmAqX7>;szh%W_p6bRO+_t2<#)H(x05%h}xsykLbsCB}Nhq&Dg2Z=1zP{Tby zp#$u+g~O_?K?3Z7(AE)21pYT-Ibn%N0jh6L2S69LtFI|x%=dav<%RN>ZJd!_`%%~R zf(k|l(Dn6m-L)fvKnNkVMW{moZaogB0*>V6p$&wd9I9KTO-s<^BZ8X<&a?U=Km!D? z0r~^fuUbWKCAnZVzIvTta$w)|AyEP&_%XGvRkgCZ#X|y921pSiDbt|{17s=*Kzszq zrDu?~f;bk6{?nD!PG`OSyuEv?>$M4xW<)Gk*Cv{+mA&j?FDCf>PV;ouxM%P4`NRBr zwX=E;b>2+)5&cARO#0Qx>6%kIRAvyP#tOV8t57gd9qnjdrr>I0NI^BVp#&B2{t8qH zt%=HmTt%2O^e7B!V=y*Dx5R}8OBFa5jS_}HI2+Z^#9n~JV@%0aT|u~da`hd(acQ{y z(kin0-~f2(`;J@hqHef+H24az%iZZP0BHU?5*S{fenL4fF%C&a815sSL9>?SpCKj% zBhhGNu;@QZ*8 z);NPuMuAIom~|E>K-3$;&~+P_dIRSwcvKldGES}o;JTJjE)M3^R<#3SVAcZ}io_vK zrY$p9iga1viCHX-?su(Roz%#K$Z&`QBzB# zc#vG|kyxmE?@@GznBF3cV8^e(Bj_|w!DQi3`Qac{R2XQoewJG;V$87pNQwRsE)tu4 z825QvvPKLR$Ri*W1-7)F*lOY^m}10$1pIziV-qSE1tjcnGU+(=A(&=`mXnAox)jns6fO3m!ij|WjOEop zuE|&eU#p#&K&3(A_=n$WBKs;}Q(QicVJ74cnRg9R;B3=tHF-xxoe<4!=;GnRVcaZr zU%1aMLUS;=LsT>@HEH=i3sysrK2VY5(1rU0>%M48QwZzxwdHv|zN;0tM+lDEi>c*9 zN@9;RDM+e5Mm4Q|K0?){QNjWZ!47g~BK&}B-=nO68&4t>urqj2#S_xYKT7En+$IF5 zMS{8RMS9oE^CJ;{=)H>P#g*jV4D3#X$E>whYqz0;!NqNYnOg1u`|I@ON4YhjJnM-bm3_Y|7O1ax(c2ai_@;Z5uN~IE0@~*q&YBdBY$5Zb4D58HyQl@X;4~1q7)O zgiZfm#3m)%?`WI{V?2pd>OowSe{an%lyeduV*u-v4n_8<>`nJCqstB}eZhU#UxOL| ze-1mBq0GVvnE_~^)=VR}1SXCgU?FPYC5XhSIgrhv1bW-$7Qqn0TdI-_d@50F28k&U zM8OovGAlchp-F7d^h0Wr43>tt}yj zHO39m2vEpO!{Ku!Bg98yM9~;xfUb&>K_(yru+SXb=b9^2Eu#yXCm{0H79lU2Y!LlM zAsEfLpLkFC!TvH{&3+7y!RaE!n>NSBDlVzZZKYj@d7e(T;JRSxr*OsmK@Fsa#byBF z6ImQ`^%-b9Rucc)bX#VcZBNY+%U1(8M*JP~^{nG_ti~5B!rb69IGX1HDK!}LhWPf1 za!waXf?z@U2v?qui4s`+%CT{vjR4+%f8N6nNJIP&p7?4wH-D?7? zY8?@HOMKqb13YOghRT7Zx_62JF#-DrJgEW}4w1V}VPeR5Q0o)xZecitT#C9dfz7sh z#8Plup#EN^7t=}wxE0le)UxkouGyxG}nj;bdB31<}k0b`dU%S19+?Ill zM2Lqjie9&Rr&eog3ICJsI*zijl1)J$T?U)*daM|#k_i7jW{{vJPoW5VK*#GL8$TsV zx>ExCCE(R`dd@%zrEz>Y7+Pm)jjddY^zOwti*kexV*)q#k3SUH!|ZT)Jru0UYctqu zWmil}g0;)T#?GJOg7r2@z)s$6r15*%x;v*+%^8Uy~#lz6Hi({9g-S}oB> zgKFe_2<>mH)jHS_L`stp6uudh6lW(K=y@qgFnRl4q?gOqii1fG(|7n9dX*ja```;l zAC0Va7`>P9PSD13TxDqgc;99Guf#0%UITky0uZ-FH+Qit zhO#`e%f-4i--XK#)`BkhN`f{LeRIxHJQ!&JgF?lml@fqu>YZTkNkFs&)Pakfcex2k zXGKU#DQ4wj8>}}0znqQODu;0x*Y^C?vx5$)EG9J0AeulSDjYV+QDQ}PJQOt~Wi5!V zYt_~Un1SF@q0lNoe78{O$d2h>(|t)l6we%R2Wp3fg?dgo*AaMJkS*bw;kw( zUSHgcXSCQFVl`e=`NaVeCmflYEn!Gi7P=pn+ybZrTzNMm@Ov{=8yU?!V@`Y)A_NIs zjRHytmjbNxb_08A01N6!2MfZEIbiDx-rsz)b2)4PkfqHBxR3To3pr zD#*mMROc?MWN1vIW{2q%&g2os2#T32JXyz$3bZ!HNF$iQ3xw#;TKN)=#=!eMDPNZ76lfmJKHdm_c zNyO*X;}y%+sQr*VJ|SO+6W|?yRP?^4O$TeTLZFPmOi;5}*4PLbdSAuI8NE|Yn9d>D z$zcy<4d^ z>%@<(U!^fZ1O+9ja3rL3f(7CQ!CisNjBn=-TH8Tu8c;;YNb$yCq^3|4!bsKL?P?B2;lDa{&V7@2uFG74M9CeE-5(w7b6y6$`o|Yn~^g{ zWD2N7miNKxB~E3s9#^%CE=}VMCJvSKjA;S&R9$AtZIL#D5yaX(b)?H z%-Z-8qN>ZHG*<`nGz$?~?_5TU%`^r{k(unp4$u_^)A8b!_bx4iu(`_E7X2uB zeJ=#oj^w9T2ysDC91Uuj0!Imd^y+2UV7m>sdMe+^b%it`HDLS5Nl9Fza2qvP(D^e4 zCTj>|%!_Fx?sh7CZ>Bs6S5+?-+rBxq3aCH{Ee#eFS<&I?AzxAfR_0S;a$vD5PcXGZ zgrn0`QU)wJUhH42AC9ayMG3tU2W2?%+etT&Ob7r2`#1oGeofeMKmZDlElL(;{>)f9 zf{Gbvple@1R!addVfPczny4I)K1W-4CssAm+NMR-J^K?^I4I-9(jGDXW%*L9|1f4{ z-qD3ORYdHtnaH!EHkqRRQKQT#@2>`?M^`um_3m8aEAJAU{W$>Nu$$a%0G7oNO5__1 zo{D$Z5YPit{vyMj&@95@mEAC@^3KxS3yCg67V;W{+L(Ppo0iU9ARlaYoit5RzNFFL z8O>6+L+Gw3Lbo~7FVHwyuSWpcE9@nE$piX3%#qfi<&Si=QER32rTZ6ZZ;<++JMG7EgQDF6ze6A6WsYMW9+yN9&w^ zTw;r2L@)q0qN!2#r*d!pYKW$_vdhkHHq%P9$D?eF@v(x@g0#u4gJTg+ z&PSpT?(wYVhsL;t@a}{)o!-dg04(2=9`>(Xld|mq{Rmjw(m=mCTvY z(MW(Kvl1>;ft`S@kn5V&0l))^HnG+aUmvf2YhD&wMlvXmpdMv)9^gK7#!D^2koZ_9 zs$m-U@V3)jw-9I562tVBAxAM0K6AoA`Czdtq5j${)rZNKBbjF(~+ z8$-Ehu2U4)jLDXL@G$t;GHDt)NtG`(CQa0f*Hom0!~0cg*j%@!B`Kq==`SRyNKXfk z^z!_2lDm<|Jox_f^bW-yw-%mRJi1z=-N~v*OhTh|Jl)FBBS_PiFSG1t!A5(wwpP7z z>g4?x7Jd3sS%M2-V6!0@Am5WtN_L7#CM9vO`_NV^_mNUisn3K>Orov}X+le>m0%f; za_^yL=U5dhY{7oJo-Njvb-iH%9JsA2mKAn5&SjIf%7OtoGDE2}akkkCbXWlal_!`7 zpD8iHZ`x&;mwu2vw9{-%oZ!%BYi$Iba0zP=>`1!l&)dd-QGB8^v6k(nif10Q9R@#m z&b;7d_&=Qjr?ady(2Ff9w?KQJzJ8?0Ax+r<8ZDd_a% zy&vZOD7WvhO;K(xebWbA>BJRX?qvv#@mw+am5E+?cU{12^fR^^CG5g3hc||sM-g1J z2*oUou{dxy;_%;qDPAO0NWo135@xMePd|?W9a)-x9Xa zbgN3>P!q-OWFDy290uu60qN6^$02=4**|Ypw8%*q5NXShiq5ul0HTB{2AfB6ck;Q- zF5=4BJ!3p#u;4MvoHi^2lG)7)tEi9HM$`lx#F5^P^8i>}oy(_2z17yJ!qJRph?b%gSb15JuSo zUp~EI5YpZ)I-eX)U{USaB1jIh=XUuj!B@hUEnA~+N69l8+s=&~470MWJ$o&*O&B6y z5wfaFacJoh2y_oJAFeRq~qk6n3Ip zaiv}YD#i)kZppato8WW@SY5~qnU)-6&D;Tkhxn>+FHGSM1ppl68j20|QVx<3@*cN^ zE?i=qFOre3Q^`kyjQi*^-xeENwhsmcv5!QVAF)Ua!WN+*P?u@`!KjlhWtD+EE?^IL zk1*>=PNLT3FlfY(Lz);WS6XaaJbsaY=u_#RzEg5t<5DaZPGgmaWRZr$xe)zfAa4`s zk&Z;?t7Q4cpNM`k@85n+U~C8rZ;H75``zmHfi-Zq0%6Y^RCaL|Huuq!_Fk-pVoK09 zn6Te}M&}7)(ej5_ml|C#Zo6#j`b(E z6n^CrW3J_Uay5OfxWJ)n(a9RcF8ImfmFcG9?1vO*M1L(wZh2>!E?O)VV5~KnR8Wny zyDKXQwM0+&N*Fk;@d4bV3FXOoFGCZ?_s9?JDh{EsR+olZWFUJJoneaQ&=(IXvCf{9 zs!WDNY?A%rn`Q8iWFumaVcS@Q>0-oNxb*?yv3e*Xpks^|DZ&8vScf`*=8mb@C~msR z%fsdt-DZ-A{HP+u&ZcwCF@oS#J9(4SD)07@+bLYz~{c?^V|vfmSb zZvr=tk?krN;0##zVEjB3mIguxKx5!YBQOxtZ(mE*@|KB0)|^R!Wlu!*0ZVqz_CT=K z#$DDSBbXV(UZ|g}HJ-Nkhe&n+&j@57`rdMu2T?^bv_$@4cp?n8fBfLSyW&K=RuBrB zdZ@Ued4}Gf8Mk8GN2W8;6fG(@#pFszi4K?eWm}ZTHO$xWqef%o%CUk_^&S?2{gOo{ zMT-5|@-z*^x+T5;f{#OBQ6;tnT;NvcorWGR~`%}O>(kJ?VPXJjsx`$TB6 z{^U>5c}0%YAZ1Ay1;?E)sKwi}viu`<*UXCd!Ul0kslo!xrXuV@!c zO|tZPmbQp@Cqls%M)6>_Faw?E3^HoeaA%Ix+N{e)I|>pTNoK|DtS(&bE3#bxZ9B2J z^C>Y;z9idNXjWTG)794L?z(d}*?N6Le;FVH0fHSiRt+6&zag!YWqVGjmuj~p39lcUMq4;E?Wx%aYVqp+gzJYXr1cuJ`{V!L{IP>n&LuvHwnsd%`9+kxu05w{yeY3c-pE*C5e zz-Zauzwf|7a{m^$T!Ppq^eex>r3r}5Yujmv^(%yhe9HNg5|TUX?ffZ85e^zHvOlaq zkY-b}De>~9C>r;knlERG0>ZpD*t|;MciY7x>X1WD)U~1h-lL3K6m9Eej@qjYWLl=3@RH#m7*K2HiSGL7W@SEOPnO~AFK6+?wUvk5E)28 z#MW$rf;f+W`^1kjs3-ySU-BIyJVKK&A8F*1gH;y&)5l4aKu}am!W*!NRjU*gcr=A!T{E_aim7gaczEY0@nuTTdZU(lKpI#gRIcD&AW&)K~bb*j=-{D?tFpuXJp)B9kK*{oU_)M z8p;zpRf5D?>#T~(b{U({Jj+H>bU-7!pEnM+)VG*2gU~sc0Cf=6)x)6dpblN9lxk>H z4>=h08c3f|ce3dx6ts7?)R#pBl1)0#E1W|M5qEwFPQlWFEgczoR#2^B#b+*& z&9OrP06s#8Z(F5ERk(u>!i0WK-XIh2y68Oc8*CX*Kk+>{?51z*x*g?od< zsa2r1YEUZR2F+@zDQjWxaA9F}%+8_yI@I%O4V&}e6QW-_-|t2aBY3#8yyDU=(CbLo zjmnGW=4K@D2%T5Gdz#ro2N;Vs{i>dksyl+q?-Y;^!gQf1!Y8T{K}-6!Fk{ES+_w`j z=RuPk2diV=vzANg7?ddO%C9{ZQ}2Ge*YPONnS81duzq#g=%mr9Z%kB9N$`QV#xRc) z{PsD;_-i3Z4eUB%`rXAu*`R1x6wmFzU;MCXLQr*>f9jy79ueb6fJdK+Y!4N^NXYkK>fkaK}t|sE#T+_fAN>4+{-XGDj%6xk&Q%77S)5{3OeMhT6Bt!G8ZS;en z!=PKjWA|6>_Tk_!-$lH(1e)NM!Koe`z7mOG8JFqQvZZkVi+_h{Vw0hIDdJ}y zkva4j9+TfrqS)@4?2%*5)?y|v;>~iqWLy;taJgIs`ERP(3Q+=;7tfwJJ`P~0RqM5f zfn;J`SD)0v1T#`!xkV8qXgJ8(z`)RzQXt~#X?f$)X1osA3!FNpV5gNk%F{a_4H_f~kHR=KMNVhG#sVp=G&!_MB;Y^I7b9kat5EhSn+wL;8hfm#g?2Z>^Ct`>ii0hs{wf*F61cRc`}FuA08+-@5mV1coy>h__# zz#u%i_D5OUdupj&xgS)OJtQ+o#`D0s1N-(3Y$c)sQK&@Q0#l~fU#DP`9F`j>pPMz# zW5V)Rm^RK)OjRQ}!oUYi%pAW@83v)S$i<*1CuW>F7(H>6BHyn8%<%cLW${{&PQpdk zewl0XH%;sTZiW&K_7j*CzDJT=A6A$SqI=s>mM@axV5cEhLGEZkrmsAY43KjKP(1rE zZRvt_$z%8lh!?d08Y?#43YQLM7T&Z$+_i2{X%A;5vzG*Ex9>ktIbEwa7dBAxkDJj3 zb%G5Ji)k<-7_K^OPhy&#TV!QFe6fB`<;V;)9P>R}TY^jtqO+ROA32PWovSW_3DPgN z!gU!c;ie5hBD%4*T(+aQ;kyXVq_N)Z$eu^L0+*>^v>n3w`s+3ImD=jgtEYvUy|06W_o- zy3)@7z!9F!7S{ZS9Gh*D!p1jVxZNJ`_3Qxgw41$998-bH>?)(w-GMRs4zrb*W4U+q zBx9UDE~zzX@1-n(>zPfgOqe)V=Z!p!>q;iMif=^aa< z(t}~dPYlEcHlNnJ0wtebBxI74Pr#pvmDYR3{~~g~+aY@&bs!zeiGYXV<+^cxVPpRJ zP;W>jB`)!v8z(C14-_F6t2jaMdc1?|bOI^#?}$B741=qj;JYVT@B_6WbjdHwzn^>@ z;}8EX&kZAd0n8 z62_%nChAp>$~rFF(#9t8?s-YLGRUQuZS!+e0T2jb)(9okAb?t4p~mvN@sf^#(eK-7N}^6qK_aqM-7d-%g9I|(!yN(rf@cRfIb6nO#qDQxCSCh$`zIHJd@^PRu;Ofb zTIls5&!El_LK@eg>nUu9Yo_Uv;3k32Zr|ru25iP`2iB)W{~=t6X%d}wTs zB4rEob#&x3-pR|5UeX{z`e?WrvgIIRDWuDFe~a);QAVnqaPRot#}S=Mu7GsSg1wF@ zgXm*?FbT8pKEjWfbl_kg&RWg!1&F<7uGyS%138-2)z8?HrW&(I9osWy+DxDs@C~v7_8cvLXZ>=)cw$8r52zfSBI~ypGtg z&?vBU{G4XyVvdg7+(hL8Ksh-&8zA{s_&s)@5~Tw+x}^!6UzcIf98g8mWqU2`STBMBqchh_Jwi}xS6vtL~-YA#6ys+wT3#HI>%EhO^( zQEALQuMAKtgfXEtC(gR9Krwwc_GehOL_3Lg34KD}*%vDqY|cgcgKeGgCX_z~wBo52 zxolho%B<+7M;Ec@=B5!f5;5b>C#f-v@-N9)p&{G}&TQ71BVq`&M$`gIXlP!aT8c~% zMVC$`?$KgUYBuw{(U4Bfqg3+frUv7_l+DMP)<)DY_zt41W~mjoKS?}oS#ap?5v+}= zu386^B(ZQZ865uVDV??3n88r9rP}hPpOca*7e-W{O~2EHm?cRoya|yw@n^jDco3jo zW25ujvU8$)I#*lkBFFF=D{%-L#N@uYJ_c-k$ZZga8D9{3F$;KfLG`UP*5Dyl`}yu! z-^x$8l0?!eOGZ-m0VB2y2)#l75h?|=4Q?R1{>1V!X|pVZpEdPwRlR#gY*YD(Zr)f( zertf2t9Lo1B=G<-ao;O}TARM(%QPLIxfcPrHQZPM-B%27f%_5jMlUrPrsp}8*Q;~{ zr)Cp3M<)#ruoaj^RlRDqQR95|%5 zEmcRc?dh|gfvAH^t4xl68&ufi4>QvHu054`S^T)1yLb@+bsardU0bhb&x2CWaRdkT z8v^KtCUUNe3nmm=xkT!v1dpN`lE@ z1CIaV@Q$~%vD<*iD`)*9G`qS`t4k`N(tL%IxG9O}5JE=%hzkeWvC&DI6_kWIjpHwt zqA|*S4sszc)FUpU5JA(Q$EinXx8SYcRzXKY-siVDG#a5Xfi#3?qX16ojPnI4&zQ#n zINFW*$X-*KTt^s_Aw9rLYVLNNhffx=)oOiND81i^7)C^t&-055(S*1o@j>t@Px&cu z<)E$@9fOyTOr>TaMe0F-3wV(V5*a)lA&g_uQW+#3_vRwYy>te>;b(z&NLDEbA`tVIQmhS z61bZ$!Rc76KlCPnXb!|^Nm2SKePx$|ia0-4{Nw01_Hp3$+c)WCy}D6vqVmb1W@j8p z`EdAQcR@bn9Xp~*LYXSiDwv+daf<$GfP5p4%9;{r$=~h~+)d73=%nBUvd?fmW<7Kq zUD1;8mL$G4*E|h|W2U-6YdF7=UqLVMGbrf-y^JtkTIr;yLruKBxPe(CQ)pZ(;NXG% z-)ece@tUOqKxv`(5at!A$i74xm$+Y*hwiT~AoyZwrUe*;CyPf4#1N+eXCJK19I3cOIeh5~M79b&4)#?z7W^x#!#@cXcoq@=75ypA7MhJN zxRk83IB`on)m*AVC6u|^`lL!xbHplD6Rf;~j7eA`sMS!)#5n%;8dx;sV1>ICJ-2}3 zdAwmy=?<8!@T?^a0C3dVyVUH$mk$15$8hveOp&qE>In!Pv|&3n31UAryQ{K);^6JV zrtsxFUd-E6UQpS8@OCxnaLnx7dc?J2din88JOsf^xHPg<%FN_-E6wQ)oRCthCDg*f zs-U6AkOa9G-rY`F@DR1DRu?2ETtp#vRzQn`@B zHtc^XvWQfw&X%LC8}fvo20TH#}Fp2LEN@N{icyyB)5+D*VsjgjIwh z;E>zIO`uOIf*f%h=)eoknw%m~w|p9Tx~At|fE8S3qkNQeK&H%CDimuZvu-_GhC8iR z{s3SzHU|?y?F?pSGEgQ#4K!A8nrK+7L_NmJ;~IMiYw$uQf|Jt+hQu|6+{@Jlx3YXR zBi}@Z;@AgBZc}15`ehk_8{_9YO_ppn*Gp1R*CV#D!N2qTVvox{J*QU`%QWmtYkI1(OUJ0yAl3 z$Dua{z9}=(I@^1pOM*JKw5ZwD+WI;Ud(yryGh*Amp>Nfe z2PKys?c`i@#(A)0XkKYMv1A|fJ17_y+v-SSz{znu*~}6nrCYh>p=#}8bwtwAHR7gTTWOfR<}5 z@Ucemoe7I6da4hb)+_;p)dHme@7$CM(t~486B(8IF8?8-!tu`_N|Yy)pJJgde&K=y ze>07nici`T1M3{8aJ1%uI}MH6aVwvza56dX7_?`(g3i&C@GwR1ogs+cQGnP5 zwAX10jV*kmq_psrQO@X{Y7!fW{}MV`_$ETi@k;Ygl_V8@+e=0I8WAF*0U}&n*t8d6 z_ce-8ZQr{hOxf26$HEYNsN5wtVf0=$e_H~TOQ+ufR6+}8cWM+7$LgaErjbf{5mQCu zDyp#D8-{qoy}6Cu)(`UJ5+G?sF_L~=cJxuc6OIqJ^4z<_1%sAW6jS9kqoki3c*UeIjHzwFQ|e zzv?lxMtZI7R9%!9F5;>C*0fdig;|l6I~gD)Dl2Jn;{9MeW51F5U2GKCXj!AVnRPL_HbHymlQgZWxw_L3~zwAmvNki&J zG4+1}k1s*nqOalo=UAuKVe7D5F!>LVhy3HNt`Nk($kVNjUTRiDUrnqUn72s7lz zFju9HEq#u{F=BE_!@Ceyj-k%KIzfy|LSEp+qN;`F=~P=9Ow#y}dzbq~`mSPWFb}px z(aIe@R;@GNhS){S@e{sp#I8`7qR7K;8bpG{80|_8K}(_!lbFBN7V9dH6Jjn3W?6#( z{k4ri5;GxTR4f!T=N{AO)N8;GrrPQmX#OQ_jPG>FL)U*CMxC-&tJ!k>LI0StK@*ju zY!y_+FxS8d9^l247&0EVX$@Nr&pH^z>u`jCH^wS#t&$R;2EPK^a~w>+jY0FaRBoI_ z!jX;Glc1@78o=LDEiXF6ZX>MqW*EOi)<^+<^Zjs0mQpPa=A^KxK9Zm`fXpc5`Ed!< z#)QT<*}$0!LWfIH7P>yL=U^j+kzb7D5W@RQOyhdb}+b6s{_^D$bA|AEWD&4o9#6g;7KDHHLfdR7zKgp|FhNO>hIGu;n`r>J% ziBw!Q05wT=8Xhe)N2~m7+&>ea@XfJQ1x6A0_|8Qu5Dm6_jbn-m1Y!op{P!am9~n)# z$m%jZpgHTlf$1))DbW)vs2?}lAGYOfBPyH~dH}B?W76T++u8s&2YmtZsMe*tY-P7v zf9c{Lu8=wEV5v%TKnwT@Z#QiMM2C_9ESSQ@-l=D@2?i}#|HVc;JP~?$K%q$Ny$qb# zWyDIsIs&vv=BR*y+DLe^(8Sswk}OcoE_0i)+d4gV0J-$CuC7%d=H4zK`^f3a+&Hj7 z3+^}Y1cecg^!_ZAp3AP*6-+XSOl;%yC-JnXGZ8%$6|Fz z=yZ|uSZ}Cwqi#z~qP{}swv)p$k)IN$bzExYbt+&B!4JxunfTf=tjGeFnps;ST!6IO z%Rm5_AdFRwB{(a!6@JY@1nU+aMe{U~angI&<7kH=5wC*VvARUpBr>FMYQ!nQ5`dhz zh;fOh66$PWvJ1GmWC`$|j{53Lhgw+3y9r}BHw(Ue;6@uOioz!+=8$-p4ydH8v>EX&Q)~23i4ni??%D+N3 zLe7Nm>5z-m=0GvZ=D-UT!b)`bLUg<}okiiPx~|uT-?w`lgp*b9IE_3OnIdNcbA^7| zO!B$ov~iU?ZPbBL3081Z?$omjaoVU?yA3eW0df;OV*=s;If>WzK1{+qHsbW)&J=Kt z;cAI=q?|($mP5H%;G}i72Ckw{^Ai{m^d|%ke(>se$^s2KYa4L| z{DKNmXiLcBBOG(T}G#9%L6 zWAbdUVYTal6NrFkd0zq+=4C=c3aF)Wc#lx8!f+q5EdZyejr3&4-21aF8JiNlaRSi0 zZ=nhJ&Uk^N@L^)|e-Vf%aYc8yL-`J}--D3fA=(i4sWc>L$z-)~swy7x?Auhmz>!j0 zKpt$+A$L}2yNvc3(E$`0qDtA=Bh1DoqvG=jX^fQAUjv` zVq8g;>XOqMQa>SS*Dko97RasQOSl>CZmPWg)~}W7pD&7a>pQQTdCB9h8RP$b4gd3; zvG4fyUp)PD_!pmNjy;J#M*qhg#_he+S)+TX+vzkLhfxy>H>EwXzPjG%K4I)NulR+( z`|-#52fcm2=jp${c=W5r#`t`5()Zuv6YYDdH%R!fSG{H^%BWyy&04 z65GJ%8WB5tAK41NYi66ZO+rZ~ZNuSeC^*#}bjc`%0G^LL4%}-tK zz68DTc~;WnfA~i45jF&a3!uMssK~3Ga-Fa4yWyu^^Z2nbK9!{N>}lS4AACFjeND+@ z%x?I|qd$x7<&*Y**K@r8p2=G{X1V#_@}b+F`RBMzd~QhQf7gxPzd=a34nK1A55Mj| ze#O`rpBs}7m!6w<2)KIyH!?dPsQbxlKK_pH!CCT2q3$)e_z0{EIw{86azy8HE_SH|F4yDVe|YRC-i+S( zd{Z*bci-kc5_WN7;HBxEQm)_6zWjsl`LEZHjq!Ox((e!68TVVRx4*r8<|p3@c;%DM z^5>_#H@O0w>QR>GE7$Lb-~YL19t0ldlj7nZeX;i&9g-$&P+Yu)8~1Hr`22T&H$aO| z3SKwO_$Zn=g1XIeGyj$AANlCVfyw!#x9rbf>U~-=#&R8g^#A*wulo>yfKR#=U-NSB zaL`sTQ$)E@{`xz<`1rel82H?rfW=M!hmYcl-dMei&S+Jd9vlD$wDPQLgvbe(`N* zo{paR+>-QuXxV!&+L)8%&f8h}t$FEZzxAQt18L#&v}B-PSoMJ<)8;g!=js-q{N1;H z%dP(f_mj^=((&)Cd&fO=WwKu9g`JG6(rB;{a-%-GQua_?U((q_g)0{ry4=BFSm@Jx#mfa{w=_g&l3~q@BF9_ zv<2kwgZIAu+6;(+Ps%aB6Er=N9nOb+d*}7X{`g;Eo_tbV@QSzPox^D%PP;VOf|jr> zE_m*5zw&23jNbXABb@m0fg@1xL87j5`~45Exc`p#gH_~{@=Gi4^bsg|m+S4rPyDTa z_b<^CpY-&W-{rkMP@ZbP^&=nnH($Wg`J_;H6cVzZUe5;W9p4&4{I31af5LYGwD~+W zfx0*TTOY{5yF9P7{}2B8_q+f%oKK3$U-^r@y(UZtXhlhK^erF!p%=X!-SZhwCjJ+{ zG;D}Dl%8+b#i6V`WqSJ9U;p$zpmRRyW%`Tv`CunmaW^dnTn==;dgXUt^(ov^KB?-X z_CfDFu-dcG<}Y=TGNfGJ?^yed*Srlo#OFE5F1__b-nZ}`%+q&1m|*d#Z<^YGGJ;P! zz#INwA0S7*3Exp}1+TsFY2W-w04JYkCo6c_M}2@krl9=2o&EXO-f#=L=JSlC``3TW zyFUd5=}fB$H>^xZQ%MM2dcw#4#_4p*2mJkSd)Iw4pX@HxN~#qWfAV8DJceoWN%_iu z`Ul>BzV#rQ5aX=@0 z(tY`FpY}f8=Xp}ow3Iu+gV#On_lw!hy?^B$=Nn$G&wuxXfBvdN*k?W|dHb!?U>jy>j+p4~tGybp3L6qYYH z@ejS}6W4qLwt`QJ?Oyiz zO5i71lI%YB)Z3cx#JTZFN&2rp&WCXYc*x;VlB|6Hz2E+kb6^Ykq}cgazS8?X3}gHP z{EEdryxh+G|8IZ$U)FJUd{S!lo!5G|ebj0T=8?Bt^P~Uy_i&ngQpx+S>+}AhQ#K@h zK3C?C#((28eq~bdUV4&`kyAtsZYp`A@4e~u&$tn%$tT5n=bjRG{bJ-`q$>fW%yRqw zchCAS-MqFyLzT*_dS{r0{88d}sbKIyhT zVahwtnQG=?EPJ<~_TAU4y%D|gNi`Th7kajRm?{ZeU-69VkN*t1tF1X%@r+M zvJHLV?%!Pe9J=L`Qju4~mZpLv4J}(iqEC72*Q`E^hlVF5s_(tu`;4ogl{>L7ed*Kx z&;JGFz$YajPoME#kCaw>fB)wnd+KY^6QA__|Kg?ITaF42!Bwj4`Ty}fj=OFlw@k#9>&2RHD!qo-!gjT7x zj`aF%wV0K>bGxoTaMQD(G31jT? zdC!S2O1W;o_Aej%)As>Y@JT1Uk$JbhK||$we(O&?v)zJt#wVp9kJh~BTw>VbX&!$0 z6PCUoQ|6Nb$O~WPo%7hXzyrOg`>O0|WFYXQck+o{@6vBidF*lLtLJ{>ZtMV`RIYBE z^m)m$8PS)j)?ZoeV@CSYf*N#uhm>hYvcew?5 z`eSeVk8k`faIJh&W#dy{=iT+Ke`}VIH?2SVp#!)Td{Qmfo&U^-fQASe$dOxnvYxd% za|oA28u7A3lY(d z4fQB4Qtv z;co%@e|-0U|4b8L$tRWDe)By(N_x^{_sIB_TgCNX{rQK#h?~VH1^w^+H{L(dV4~VR z2_Mw5^z1bs{}+$`Fu;jVDp`FDnoZ?U1!Y82(?GD{g3bavxm?dpOkn1f&bt=mM3U?k391I{~m|N zXLo`O@BFCu*0TlRqfn~i4B{NP86^Sa=pz3YUgYdXVq@SlYX2Y1GqcYuo;gUwQUVeFqfl+y3Ywxa4 z13U6b^;diT*gHPFidgf8?vGBs+`gQ8%ezjlVo&&_u(J3`@0%#9TyI~vZMw4z#)nTj z(`!HFz2#f5HLCx(wfFt(V?f?~(tGmQXT9(Ho2cK1tor3iPNUpP z9{-n5{0p#ZV|-H1Xzd0c!8O)fP|H>hf9hAN*mOSW6+Z&EIKARMxUk%OKlO~S?EW?I z2A>pI{wj1l+eI;*b{j!v$nIUXI(QkIWskA*mB>wFBi~m literal 0 HcmV?d00001