From 8f390eeeb6a0e9463b5f94ffe509dbadb28edace Mon Sep 17 00:00:00 2001 From: sys-001 Date: Sat, 31 Dec 2022 16:49:12 +0000 Subject: [PATCH] deploy: 59ea4ab99727620feeda041429cb7669c41cc394 --- schemas/botapi.json | 277 +++++++++++++- schemas/botapi.yaml | 211 ++++++++++- schemas/botapi_openapi.json | 714 +++++++++++++++++++++++++++++++++++- schemas/botapi_openapi.yaml | 445 +++++++++++++++++++++- schemas/botapi_postman.json | 199 +++++++++- 5 files changed, 1806 insertions(+), 40 deletions(-) diff --git a/schemas/botapi.json b/schemas/botapi.json index da0fa1e..e792bb3 100644 --- a/schemas/botapi.json +++ b/schemas/botapi.json @@ -1,5 +1,5 @@ { - "version": "6.3.0", + "version": "6.4.0", "types": [ { "name": "Update", @@ -481,6 +481,24 @@ "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_aggressive_anti_spam_enabled", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators. Returned only in getChat.", + "default": true + }, + { + "name": "has_hidden_members", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if non-administrators can only get the list of bots and administrators in the chat. Returned only in getChat.", + "default": true + }, { "name": "has_protected_content", "types": [ @@ -789,6 +807,15 @@ "optional": true, "description": "Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption" }, + { + "name": "has_media_spoiler", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. True, if the message media is covered by a spoiler animation", + "default": true + }, { "name": "contact", "types": [ @@ -961,6 +988,14 @@ "optional": true, "description": "Optional. The domain name of the website on which the user has logged in. More about Telegram Login »" }, + { + "name": "write_access_allowed", + "types": [ + "WriteAccessAllowed" + ], + "optional": true, + "description": "Optional. Service message: the user allowed the bot added to the attachment menu to write messages" + }, { "name": "passport_data", "types": [ @@ -985,6 +1020,14 @@ "optional": true, "description": "Optional. Service message: forum topic created" }, + { + "name": "forum_topic_edited", + "types": [ + "ForumTopicEdited" + ], + "optional": true, + "description": "Optional. Service message: forum topic edited" + }, { "name": "forum_topic_closed", "types": [ @@ -1001,6 +1044,22 @@ "optional": true, "description": "Optional. Service message: forum topic reopened" }, + { + "name": "general_forum_topic_hidden", + "types": [ + "GeneralForumTopicHidden" + ], + "optional": true, + "description": "Optional. Service message: the 'General' forum topic hidden" + }, + { + "name": "general_forum_topic_unhidden", + "types": [ + "GeneralForumTopicUnhidden" + ], + "optional": true, + "description": "Optional. Service message: the 'General' forum topic unhidden" + }, { "name": "video_chat_scheduled", "types": [ @@ -2030,12 +2089,53 @@ "fields": [], "extended_by": [] }, + { + "name": "ForumTopicEdited", + "description": "This object represents a service message about an edited forum topic.", + "fields": [ + { + "name": "name", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. New name of the topic, if it was edited" + }, + { + "name": "icon_custom_emoji_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. New identifier of the custom emoji shown as the topic icon, if it was edited; an empty string if the icon was removed" + } + ], + "extended_by": [] + }, { "name": "ForumTopicReopened", "description": "This object represents a service message about a forum topic reopened in the chat. Currently holds no information.", "fields": [], "extended_by": [] }, + { + "name": "GeneralForumTopicHidden", + "description": "This object represents a service message about General forum topic hidden in the chat. Currently holds no information.", + "fields": [], + "extended_by": [] + }, + { + "name": "GeneralForumTopicUnhidden", + "description": "This object represents a service message about General forum topic unhidden in the chat. Currently holds no information.", + "fields": [], + "extended_by": [] + }, + { + "name": "WriteAccessAllowed", + "description": "This object represents a service message about a user allowing a bot added to the attachment menu to write messages. Currently holds no information.", + "fields": [], + "extended_by": [] + }, { "name": "VideoChatScheduled", "description": "This object represents a service message about a video chat scheduled in the chat.", @@ -2176,6 +2276,15 @@ "optional": false, "description": "Array of button rows, each represented by an Array of KeyboardButton objects" }, + { + "name": "is_persistent", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.", + "default": false + }, { "name": "resize_keyboard", "types": [ @@ -3703,6 +3812,14 @@ ], "optional": true, "description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" + }, + { + "name": "has_spoiler", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Pass True if the photo needs to be covered with a spoiler animation" } ], "extended_by": [] @@ -3792,6 +3909,14 @@ ], "optional": true, "description": "Optional. Pass True if the uploaded video is suitable for streaming" + }, + { + "name": "has_spoiler", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Pass True if the video needs to be covered with a spoiler animation" } ], "extended_by": [] @@ -3873,6 +3998,14 @@ ], "optional": true, "description": "Optional. Animation duration in seconds" + }, + { + "name": "has_spoiler", + "types": [ + "bool" + ], + "optional": true, + "description": "Optional. Pass True if the animation needs to be covered with a spoiler animation" } ], "extended_by": [] @@ -8168,6 +8301,14 @@ "optional": true, "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" }, + { + "name": "has_spoiler", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the photo needs to be covered with a spoiler animation" + }, { "name": "disable_notification", "types": [ @@ -8557,6 +8698,14 @@ "optional": true, "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" }, + { + "name": "has_spoiler", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the video needs to be covered with a spoiler animation" + }, { "name": "supports_streaming", "types": [ @@ -8700,6 +8849,14 @@ "optional": true, "description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" }, + { + "name": "has_spoiler", + "types": [ + "bool" + ], + "optional": true, + "description": "Pass True if the animation needs to be covered with a spoiler animation" + }, { "name": "disable_notification", "types": [ @@ -9763,6 +9920,14 @@ "optional": false, "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" }, + { + "name": "message_thread_id", + "types": [ + "int" + ], + "optional": true, + "description": "Unique identifier for the target message thread; supergroups only" + }, { "name": "action", "types": [ @@ -10631,7 +10796,7 @@ }, { "name": "getChatMember", - "description": "Use this method to get information about a member of a chat. Returns a ChatMember object on success.", + "description": "Use this method to get information about a member of a chat. The method is guaranteed to work only if the bot is an administrator in the chat. Returns a ChatMember object on success.", "fields": [ { "name": "chat_id", @@ -10734,7 +10899,7 @@ "int" ], "optional": true, - "description": "Color of the topic icon in RGB format. Currently, must be one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F" + "description": "Color of the topic icon in RGB format. Currently, must be one of 7322096 (0x6FB9F0), 16766590 (0xFFD67E), 13338331 (0xCB86DB), 9367192 (0x8EEE98), 16749490 (0xFF93B2), or 16478047 (0xFB6F5F)" }, { "name": "icon_custom_emoji_id", @@ -10775,16 +10940,16 @@ "types": [ "string" ], - "optional": false, - "description": "New topic name, 1-128 characters" + "optional": true, + "description": "New topic name, 0-128 characters. If not specified or empty, the current name of the topic will be kept" }, { "name": "icon_custom_emoji_id", "types": [ "string" ], - "optional": false, - "description": "New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers" + "optional": true, + "description": "New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers. Pass an empty string to remove the icon. If not specified, the current icon will be kept" } ], "return_types": [ @@ -10895,6 +11060,104 @@ "bool" ] }, + { + "name": "editGeneralForumTopic", + "description": "Use this method to edit the name of the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have can_manage_topics 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": "name", + "types": [ + "string" + ], + "optional": false, + "description": "New topic name, 1-128 characters" + } + ], + "return_types": [ + "bool" + ] + }, + { + "name": "closeGeneralForumTopic", + "description": "Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns True on success.", + "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": "reopenGeneralForumTopic", + "description": "Use this method to reopen a closed 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. The topic will be automatically unhidden if it was hidden. Returns True on success.", + "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": "hideGeneralForumTopic", + "description": "Use this method to hide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. The topic will be automatically closed if it was open. Returns True on success.", + "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": "unhideGeneralForumTopic", + "description": "Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns True on success.", + "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.", diff --git a/schemas/botapi.yaml b/schemas/botapi.yaml index 87017e0..76fba8f 100644 --- a/schemas/botapi.yaml +++ b/schemas/botapi.yaml @@ -1,4 +1,4 @@ -version: 6.3.0 +version: 6.4.0 types: - name: Update @@ -362,6 +362,20 @@ 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_aggressive_anti_spam_enabled + types: + - bool + optional: true + description: 'Optional. True, if aggressive anti-spam checks are enabled in the supergroup. The field is only available to chat administrators. Returned only in getChat.' + default: true + - + name: has_hidden_members + types: + - bool + optional: true + description: 'Optional. True, if non-administrators can only get the list of bots and administrators in the chat. Returned only in getChat.' + default: true - name: has_protected_content types: @@ -594,6 +608,13 @@ 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: has_media_spoiler + types: + - bool + optional: true + description: 'Optional. True, if the message media is covered by a spoiler animation' + default: true - name: contact types: @@ -724,6 +745,12 @@ types: - string optional: true description: 'Optional. The domain name of the website on which the user has logged in. More about Telegram Login »' + - + name: write_access_allowed + types: + - WriteAccessAllowed + optional: true + description: 'Optional. Service message: the user allowed the bot added to the attachment menu to write messages' - name: passport_data types: @@ -742,6 +769,12 @@ types: - ForumTopicCreated optional: true description: 'Optional. Service message: forum topic created' + - + name: forum_topic_edited + types: + - ForumTopicEdited + optional: true + description: 'Optional. Service message: forum topic edited' - name: forum_topic_closed types: @@ -754,6 +787,18 @@ types: - ForumTopicReopened optional: true description: 'Optional. Service message: forum topic reopened' + - + name: general_forum_topic_hidden + types: + - GeneralForumTopicHidden + optional: true + description: "Optional. Service message: the 'General' forum topic hidden" + - + name: general_forum_topic_unhidden + types: + - GeneralForumTopicUnhidden + optional: true + description: "Optional. Service message: the 'General' forum topic unhidden" - name: video_chat_scheduled types: @@ -1520,11 +1565,43 @@ types: description: 'This object represents a service message about a forum topic closed in the chat. Currently holds no information.' fields: { } extended_by: { } + - + name: ForumTopicEdited + description: 'This object represents a service message about an edited forum topic.' + fields: + - + name: name + types: + - string + optional: true + description: 'Optional. New name of the topic, if it was edited' + - + name: icon_custom_emoji_id + types: + - string + optional: true + description: 'Optional. New identifier of the custom emoji shown as the topic icon, if it was edited; an empty string if the icon was removed' + extended_by: { } - name: ForumTopicReopened description: 'This object represents a service message about a forum topic reopened in the chat. Currently holds no information.' fields: { } extended_by: { } + - + name: GeneralForumTopicHidden + description: 'This object represents a service message about General forum topic hidden in the chat. Currently holds no information.' + fields: { } + extended_by: { } + - + name: GeneralForumTopicUnhidden + description: 'This object represents a service message about General forum topic unhidden in the chat. Currently holds no information.' + fields: { } + extended_by: { } + - + name: WriteAccessAllowed + description: 'This object represents a service message about a user allowing a bot added to the attachment menu to write messages. Currently holds no information.' + fields: { } + extended_by: { } - name: VideoChatScheduled description: 'This object represents a service message about a video chat scheduled in the chat.' @@ -1630,6 +1707,13 @@ types: - Array> optional: false description: 'Array of button rows, each represented by an Array of KeyboardButton objects' + - + name: is_persistent + types: + - bool + optional: true + description: 'Optional. Requests clients to always show the keyboard when the regular keyboard is hidden. Defaults to false, in which case the custom keyboard can be hidden and opened with a keyboard icon.' + default: false - name: resize_keyboard types: @@ -2776,6 +2860,12 @@ types: - Array optional: true description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' + - + name: has_spoiler + types: + - bool + optional: true + description: 'Optional. Pass True if the photo needs to be covered with a spoiler animation' extended_by: { } - name: InputMediaVideo @@ -2843,6 +2933,12 @@ types: - bool optional: true description: 'Optional. Pass True if the uploaded video is suitable for streaming' + - + name: has_spoiler + types: + - bool + optional: true + description: 'Optional. Pass True if the video needs to be covered with a spoiler animation' extended_by: { } - name: InputMediaAnimation @@ -2904,6 +3000,12 @@ types: - int optional: true description: 'Optional. Animation duration in seconds' + - + name: has_spoiler + types: + - bool + optional: true + description: 'Optional. Pass True if the animation needs to be covered with a spoiler animation' extended_by: { } - name: InputMediaAudio @@ -6127,6 +6229,12 @@ methods: - 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: has_spoiler + types: + - bool + optional: true + description: 'Pass True if the photo needs to be covered with a spoiler animation' - name: disable_notification types: @@ -6421,6 +6529,12 @@ methods: - 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: has_spoiler + types: + - bool + optional: true + description: 'Pass True if the video needs to be covered with a spoiler animation' - name: supports_streaming types: @@ -6529,6 +6643,12 @@ methods: - 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: has_spoiler + types: + - bool + optional: true + description: 'Pass True if the animation needs to be covered with a spoiler animation' - name: disable_notification types: @@ -7329,6 +7449,12 @@ methods: - string optional: false description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' + - + name: message_thread_id + types: + - int + optional: true + description: 'Unique identifier for the target message thread; supergroups only' - name: action types: @@ -7965,7 +8091,7 @@ methods: - int - name: getChatMember - description: 'Use this method to get information about a member of a chat. Returns a ChatMember object on success.' + description: 'Use this method to get information about a member of a chat. The method is guaranteed to work only if the bot is an administrator in the chat. Returns a ChatMember object on success.' fields: - name: chat_id @@ -8042,7 +8168,7 @@ methods: types: - int optional: true - description: 'Color of the topic icon in RGB format. Currently, must be one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F' + description: 'Color of the topic icon in RGB format. Currently, must be one of 7322096 (0x6FB9F0), 16766590 (0xFFD67E), 13338331 (0xCB86DB), 9367192 (0x8EEE98), 16749490 (0xFF93B2), or 16478047 (0xFB6F5F)' - name: icon_custom_emoji_id types: @@ -8072,14 +8198,14 @@ methods: name: name types: - string - optional: false - description: 'New topic name, 1-128 characters' + optional: true + description: 'New topic name, 0-128 characters. If not specified or empty, the current name of the topic will be kept' - name: icon_custom_emoji_id types: - string - optional: false - description: 'New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers' + optional: true + description: 'New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers. Pass an empty string to remove the icon. If not specified, the current icon will be kept' return_types: - bool - @@ -8158,6 +8284,77 @@ methods: description: 'Unique identifier for the target message thread of the forum topic' return_types: - bool + - + name: editGeneralForumTopic + description: "Use this method to edit the name of the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have can_manage_topics 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: name + types: + - string + optional: false + description: 'New topic name, 1-128 characters' + return_types: + - bool + - + name: closeGeneralForumTopic + description: "Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns True on success." + 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: reopenGeneralForumTopic + description: "Use this method to reopen a closed 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. The topic will be automatically unhidden if it was hidden. Returns True on success." + 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: hideGeneralForumTopic + description: "Use this method to hide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. The topic will be automatically closed if it was open. Returns True on success." + 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: unhideGeneralForumTopic + description: "Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns True on success." + 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.' diff --git a/schemas/botapi_openapi.json b/schemas/botapi_openapi.json index 4263909..e5342ce 100644 --- a/schemas/botapi_openapi.json +++ b/schemas/botapi_openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Telegram Bot API", "description": "Auto-generated OpenAPI schema by TGScraper.", - "version": "6.3.0" + "version": "6.4.0" }, "servers": [ { @@ -380,6 +380,14 @@ "message_auto_delete_time": { "type": "integer" }, + "has_aggressive_anti_spam_enabled": { + "type": "boolean", + "default": true + }, + "has_hidden_members": { + "type": "boolean", + "default": true + }, "has_protected_content": { "type": "boolean", "default": true @@ -516,6 +524,10 @@ "$ref": "#/components/schemas/MessageEntity" } }, + "has_media_spoiler": { + "type": "boolean", + "default": true + }, "contact": { "$ref": "#/components/schemas/Contact" }, @@ -589,6 +601,9 @@ "connected_website": { "type": "string" }, + "write_access_allowed": { + "$ref": "#/components/schemas/WriteAccessAllowed" + }, "passport_data": { "$ref": "#/components/schemas/PassportData" }, @@ -598,12 +613,21 @@ "forum_topic_created": { "$ref": "#/components/schemas/ForumTopicCreated" }, + "forum_topic_edited": { + "$ref": "#/components/schemas/ForumTopicEdited" + }, "forum_topic_closed": { "$ref": "#/components/schemas/ForumTopicClosed" }, "forum_topic_reopened": { "$ref": "#/components/schemas/ForumTopicReopened" }, + "general_forum_topic_hidden": { + "$ref": "#/components/schemas/GeneralForumTopicHidden" + }, + "general_forum_topic_unhidden": { + "$ref": "#/components/schemas/GeneralForumTopicUnhidden" + }, "video_chat_scheduled": { "$ref": "#/components/schemas/VideoChatScheduled" }, @@ -1170,10 +1194,34 @@ "description": "This object represents a service message about a forum topic closed in the chat. Currently holds no information.", "type": "object" }, + "ForumTopicEdited": { + "description": "This object represents a service message about an edited forum topic.", + "properties": { + "name": { + "type": "string" + }, + "icon_custom_emoji_id": { + "type": "string" + } + }, + "type": "object" + }, "ForumTopicReopened": { "description": "This object represents a service message about a forum topic reopened in the chat. Currently holds no information.", "type": "object" }, + "GeneralForumTopicHidden": { + "description": "This object represents a service message about General forum topic hidden in the chat. Currently holds no information.", + "type": "object" + }, + "GeneralForumTopicUnhidden": { + "description": "This object represents a service message about General forum topic unhidden in the chat. Currently holds no information.", + "type": "object" + }, + "WriteAccessAllowed": { + "description": "This object represents a service message about a user allowing a bot added to the attachment menu to write messages. Currently holds no information.", + "type": "object" + }, "VideoChatScheduled": { "description": "This object represents a service message about a video chat scheduled in the chat.", "required": [ @@ -1288,6 +1336,9 @@ } } }, + "is_persistent": { + "type": "boolean" + }, "resize_keyboard": { "type": "boolean" }, @@ -2236,6 +2287,9 @@ "items": { "$ref": "#/components/schemas/MessageEntity" } + }, + "has_spoiler": { + "type": "boolean" } }, "type": "object" @@ -2287,6 +2341,9 @@ }, "supports_streaming": { "type": "boolean" + }, + "has_spoiler": { + "type": "boolean" } }, "type": "object" @@ -2335,6 +2392,9 @@ }, "duration": { "type": "integer" + }, + "has_spoiler": { + "type": "boolean" } }, "type": "object" @@ -5948,6 +6008,9 @@ "$ref": "#/components/schemas/MessageEntity" } }, + "has_spoiler": { + "type": "boolean" + }, "disable_notification": { "type": "boolean" }, @@ -6022,6 +6085,9 @@ "$ref": "#/components/schemas/MessageEntity" } }, + "has_spoiler": { + "type": "boolean" + }, "disable_notification": { "type": "boolean" }, @@ -6096,6 +6162,9 @@ "$ref": "#/components/schemas/MessageEntity" } }, + "has_spoiler": { + "type": "boolean" + }, "disable_notification": { "type": "boolean" }, @@ -6903,6 +6972,9 @@ "$ref": "#/components/schemas/MessageEntity" } }, + "has_spoiler": { + "type": "boolean" + }, "supports_streaming": { "type": "boolean" }, @@ -6999,6 +7071,9 @@ "$ref": "#/components/schemas/MessageEntity" } }, + "has_spoiler": { + "type": "boolean" + }, "supports_streaming": { "type": "boolean" }, @@ -7095,6 +7170,9 @@ "$ref": "#/components/schemas/MessageEntity" } }, + "has_spoiler": { + "type": "boolean" + }, "supports_streaming": { "type": "boolean" }, @@ -7249,6 +7327,9 @@ "$ref": "#/components/schemas/MessageEntity" } }, + "has_spoiler": { + "type": "boolean" + }, "disable_notification": { "type": "boolean" }, @@ -7342,6 +7423,9 @@ "$ref": "#/components/schemas/MessageEntity" } }, + "has_spoiler": { + "type": "boolean" + }, "disable_notification": { "type": "boolean" }, @@ -7435,6 +7519,9 @@ "$ref": "#/components/schemas/MessageEntity" } }, + "has_spoiler": { + "type": "boolean" + }, "disable_notification": { "type": "boolean" }, @@ -10082,6 +10169,9 @@ } ] }, + "message_thread_id": { + "type": "integer" + }, "action": { "type": "string" } @@ -10106,6 +10196,9 @@ } ] }, + "message_thread_id": { + "type": "integer" + }, "action": { "type": "string" } @@ -10130,6 +10223,9 @@ } ] }, + "message_thread_id": { + "type": "integer" + }, "action": { "type": "string" } @@ -13804,7 +13900,7 @@ } }, "/getChatMember": { - "description": "Use this method to get information about a member of a chat. Returns a ChatMember object on success.", + "description": "Use this method to get information about a member of a chat. The method is guaranteed to work only if the bot is an administrator in the chat. Returns a ChatMember object on success.", "post": { "requestBody": { "required": true, @@ -14415,9 +14511,7 @@ "type": "object", "required": [ "chat_id", - "message_thread_id", - "name", - "icon_custom_emoji_id" + "message_thread_id" ], "properties": { "chat_id": { @@ -14447,9 +14541,7 @@ "type": "object", "required": [ "chat_id", - "message_thread_id", - "name", - "icon_custom_emoji_id" + "message_thread_id" ], "properties": { "chat_id": { @@ -14479,9 +14571,7 @@ "type": "object", "required": [ "chat_id", - "message_thread_id", - "name", - "icon_custom_emoji_id" + "message_thread_id" ], "properties": { "chat_id": { @@ -15078,6 +15168,608 @@ } } }, + "/editGeneralForumTopic": { + "description": "Use this method to edit the name of the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have can_manage_topics administrator rights. Returns True on success.", + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "name" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "name": { + "type": "string" + } + } + } + }, + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "name" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "name": { + "type": "string" + } + } + } + }, + "multipart/form-data": { + "schema": { + "type": "object", + "required": [ + "chat_id", + "name" + ], + "properties": { + "chat_id": { + "anyOf": [ + { + "type": "integer" + }, + { + "type": "string" + } + ] + }, + "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" + } + } + } + }, + "/closeGeneralForumTopic": { + "description": "Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns True on success.", + "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" + } + } + } + }, + "/reopenGeneralForumTopic": { + "description": "Use this method to reopen a closed 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. The topic will be automatically unhidden if it was hidden. Returns True on success.", + "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" + } + } + } + }, + "/hideGeneralForumTopic": { + "description": "Use this method to hide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. The topic will be automatically closed if it was open. Returns True on success.", + "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" + } + } + } + }, + "/unhideGeneralForumTopic": { + "description": "Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns True on success.", + "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": { diff --git a/schemas/botapi_openapi.yaml b/schemas/botapi_openapi.yaml index 00198ae..7b7e9d3 100644 --- a/schemas/botapi_openapi.yaml +++ b/schemas/botapi_openapi.yaml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: title: 'Telegram Bot API' description: 'Auto-generated OpenAPI schema by TGScraper.' - version: 6.3.0 + version: 6.4.0 servers: - url: 'https://api.telegram.org/bot{token}' @@ -252,6 +252,12 @@ components: type: integer message_auto_delete_time: type: integer + has_aggressive_anti_spam_enabled: + type: boolean + default: true + has_hidden_members: + type: boolean + default: true has_protected_content: type: boolean default: true @@ -345,6 +351,9 @@ components: type: array items: $ref: '#/components/schemas/MessageEntity' + has_media_spoiler: + type: boolean + default: true contact: $ref: '#/components/schemas/Contact' dice: @@ -395,16 +404,24 @@ components: $ref: '#/components/schemas/SuccessfulPayment' connected_website: type: string + write_access_allowed: + $ref: '#/components/schemas/WriteAccessAllowed' passport_data: $ref: '#/components/schemas/PassportData' proximity_alert_triggered: $ref: '#/components/schemas/ProximityAlertTriggered' forum_topic_created: $ref: '#/components/schemas/ForumTopicCreated' + forum_topic_edited: + $ref: '#/components/schemas/ForumTopicEdited' forum_topic_closed: $ref: '#/components/schemas/ForumTopicClosed' forum_topic_reopened: $ref: '#/components/schemas/ForumTopicReopened' + general_forum_topic_hidden: + $ref: '#/components/schemas/GeneralForumTopicHidden' + general_forum_topic_unhidden: + $ref: '#/components/schemas/GeneralForumTopicUnhidden' video_chat_scheduled: $ref: '#/components/schemas/VideoChatScheduled' video_chat_started: @@ -795,9 +812,26 @@ components: ForumTopicClosed: description: 'This object represents a service message about a forum topic closed in the chat. Currently holds no information.' type: object + ForumTopicEdited: + description: 'This object represents a service message about an edited forum topic.' + properties: + name: + type: string + icon_custom_emoji_id: + type: string + type: object ForumTopicReopened: description: 'This object represents a service message about a forum topic reopened in the chat. Currently holds no information.' type: object + GeneralForumTopicHidden: + description: 'This object represents a service message about General forum topic hidden in the chat. Currently holds no information.' + type: object + GeneralForumTopicUnhidden: + description: 'This object represents a service message about General forum topic unhidden in the chat. Currently holds no information.' + type: object + WriteAccessAllowed: + description: 'This object represents a service message about a user allowing a bot added to the attachment menu to write messages. Currently holds no information.' + type: object VideoChatScheduled: description: 'This object represents a service message about a video chat scheduled in the chat.' required: @@ -876,6 +910,8 @@ components: type: array items: $ref: '#/components/schemas/KeyboardButton' + is_persistent: + type: boolean resize_keyboard: type: boolean one_time_keyboard: @@ -1530,6 +1566,8 @@ components: type: array items: $ref: '#/components/schemas/MessageEntity' + has_spoiler: + type: boolean type: object InputMediaVideo: description: 'Represents a video to be sent.' @@ -1564,6 +1602,8 @@ components: type: integer supports_streaming: type: boolean + has_spoiler: + type: boolean type: object InputMediaAnimation: description: 'Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.' @@ -1596,6 +1636,8 @@ components: type: integer duration: type: integer + has_spoiler: + type: boolean type: object InputMediaAudio: description: 'Represents an audio file to be treated as music to be sent.' @@ -4013,6 +4055,8 @@ paths: type: array items: $ref: '#/components/schemas/MessageEntity' + has_spoiler: + type: boolean disable_notification: type: boolean protect_content: @@ -4060,6 +4104,8 @@ paths: type: array items: $ref: '#/components/schemas/MessageEntity' + has_spoiler: + type: boolean disable_notification: type: boolean protect_content: @@ -4107,6 +4153,8 @@ paths: type: array items: $ref: '#/components/schemas/MessageEntity' + has_spoiler: + type: boolean disable_notification: type: boolean protect_content: @@ -4616,6 +4664,8 @@ paths: type: array items: $ref: '#/components/schemas/MessageEntity' + has_spoiler: + type: boolean supports_streaming: type: boolean disable_notification: @@ -4677,6 +4727,8 @@ paths: type: array items: $ref: '#/components/schemas/MessageEntity' + has_spoiler: + type: boolean supports_streaming: type: boolean disable_notification: @@ -4738,6 +4790,8 @@ paths: type: array items: $ref: '#/components/schemas/MessageEntity' + has_spoiler: + type: boolean supports_streaming: type: boolean disable_notification: @@ -4835,6 +4889,8 @@ paths: type: array items: $ref: '#/components/schemas/MessageEntity' + has_spoiler: + type: boolean disable_notification: type: boolean protect_content: @@ -4894,6 +4950,8 @@ paths: type: array items: $ref: '#/components/schemas/MessageEntity' + has_spoiler: + type: boolean disable_notification: type: boolean protect_content: @@ -4953,6 +5011,8 @@ paths: type: array items: $ref: '#/components/schemas/MessageEntity' + has_spoiler: + type: boolean disable_notification: type: boolean protect_content: @@ -6640,6 +6700,8 @@ paths: type: integer - type: string + message_thread_id: + type: integer action: type: string application/x-www-form-urlencoded: @@ -6655,6 +6717,8 @@ paths: type: integer - type: string + message_thread_id: + type: integer action: type: string multipart/form-data: @@ -6670,6 +6734,8 @@ paths: type: integer - type: string + message_thread_id: + type: integer action: type: string responses: @@ -8955,7 +9021,7 @@ paths: 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.' + description: 'Use this method to get information about a member of a chat. The method is guaranteed to work only if the bot is an administrator in the chat. Returns a ChatMember object on success.' post: requestBody: required: true @@ -9339,8 +9405,6 @@ paths: required: - chat_id - message_thread_id - - name - - icon_custom_emoji_id properties: chat_id: anyOf: @@ -9360,8 +9424,6 @@ paths: required: - chat_id - message_thread_id - - name - - icon_custom_emoji_id properties: chat_id: anyOf: @@ -9381,8 +9443,6 @@ paths: required: - chat_id - message_thread_id - - name - - icon_custom_emoji_id properties: chat_id: anyOf: @@ -9750,6 +9810,375 @@ paths: $ref: '#/components/responses/ServerError' default: $ref: '#/components/responses/UnknownError' + /editGeneralForumTopic: + description: "Use this method to edit the name of the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have can_manage_topics administrator rights. Returns True on success." + post: + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - chat_id + - name + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + name: + type: string + application/x-www-form-urlencoded: + schema: + type: object + required: + - chat_id + - name + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + name: + type: string + multipart/form-data: + schema: + type: object + required: + - chat_id + - name + properties: + chat_id: + anyOf: + - + type: integer + - + type: string + 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' + /closeGeneralForumTopic: + description: "Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns True on success." + 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' + /reopenGeneralForumTopic: + description: "Use this method to reopen a closed 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. The topic will be automatically unhidden if it was hidden. Returns True on success." + 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' + /hideGeneralForumTopic: + description: "Use this method to hide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. The topic will be automatically closed if it was open. Returns True on success." + 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' + /unhideGeneralForumTopic: + description: "Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns True on success." + 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: diff --git a/schemas/botapi_postman.json b/schemas/botapi_postman.json index ed12838..f0cf90c 100644 --- a/schemas/botapi_postman.json +++ b/schemas/botapi_postman.json @@ -3,7 +3,7 @@ "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.3.0" + "version": "6.4.0" }, "variable": { "key": "token", @@ -549,6 +549,12 @@ "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": "has_spoiler", + "disabled": true, + "description": "Optional. Pass True if the photo needs to be covered with a spoiler animation", + "type": "text" + }, { "key": "disable_notification", "disabled": true, @@ -882,6 +888,12 @@ "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": "has_spoiler", + "disabled": true, + "description": "Optional. Pass True if the video needs to be covered with a spoiler animation", + "type": "text" + }, { "key": "supports_streaming", "disabled": true, @@ -1003,6 +1015,12 @@ "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": "has_spoiler", + "disabled": true, + "description": "Optional. Pass True if the animation needs to be covered with a spoiler animation", + "type": "text" + }, { "key": "disable_notification", "disabled": true, @@ -1971,6 +1989,12 @@ "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "type": "text" }, + { + "key": "message_thread_id", + "disabled": true, + "description": "Optional. Unique identifier for the target message thread; supergroups only", + "type": "text" + }, { "key": "action", "disabled": false, @@ -3143,7 +3167,7 @@ "getChatMember" ] }, - "description": "Use this method to get information about a member of a chat. Returns a ChatMember object on success." + "description": "Use this method to get information about a member of a chat. The method is guaranteed to work only if the bot is an administrator in the chat. Returns a ChatMember object on success." } }, { @@ -3260,7 +3284,7 @@ { "key": "icon_color", "disabled": true, - "description": "Optional. Color of the topic icon in RGB format. Currently, must be one of 0x6FB9F0, 0xFFD67E, 0xCB86DB, 0x8EEE98, 0xFF93B2, or 0xFB6F5F", + "description": "Optional. Color of the topic icon in RGB format. Currently, must be one of 7322096 (0x6FB9F0), 16766590 (0xFFD67E), 13338331 (0xCB86DB), 9367192 (0x8EEE98), 16749490 (0xFF93B2), or 16478047 (0xFB6F5F)", "type": "text" }, { @@ -3308,14 +3332,14 @@ }, { "key": "name", - "disabled": false, - "description": "Required. New topic name, 1-128 characters", + "disabled": true, + "description": "Optional. New topic name, 0-128 characters. If not specified or empty, the current name of the topic will be kept", "type": "text" }, { "key": "icon_custom_emoji_id", - "disabled": false, - "description": "Required. New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers", + "disabled": true, + "description": "Optional. New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers. Pass an empty string to remove the icon. If not specified, the current icon will be kept", "type": "text" } ] @@ -3484,6 +3508,167 @@ "description": "Use this method to clear the list of pinned messages in a forum topic. The bot must be an administrator in the chat for this to work and must have the can_pin_messages administrator right in the supergroup. Returns True on success." } }, + { + "name": "editGeneralForumTopic", + "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": "name", + "disabled": false, + "description": "Required. New topic name, 1-128 characters", + "type": "text" + } + ] + }, + "url": { + "raw": "https://api.telegram.org/bot{{token}}/editGeneralForumTopic", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "editGeneralForumTopic" + ] + }, + "description": "Use this method to edit the name of the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have can_manage_topics administrator rights. Returns True on success." + } + }, + { + "name": "closeGeneralForumTopic", + "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}}/closeGeneralForumTopic", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "closeGeneralForumTopic" + ] + }, + "description": "Use this method to close an open 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns True on success." + } + }, + { + "name": "reopenGeneralForumTopic", + "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}}/reopenGeneralForumTopic", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "reopenGeneralForumTopic" + ] + }, + "description": "Use this method to reopen a closed 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. The topic will be automatically unhidden if it was hidden. Returns True on success." + } + }, + { + "name": "hideGeneralForumTopic", + "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}}/hideGeneralForumTopic", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "hideGeneralForumTopic" + ] + }, + "description": "Use this method to hide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. The topic will be automatically closed if it was open. Returns True on success." + } + }, + { + "name": "unhideGeneralForumTopic", + "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}}/unhideGeneralForumTopic", + "protocol": "https", + "host": [ + "api", + "telegram", + "org" + ], + "path": [ + "bot{{token}}", + "unhideGeneralForumTopic" + ] + }, + "description": "Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns True on success." + } + }, { "name": "answerCallbackQuery", "request": {