deploy: 59ea4ab99727620feeda041429cb7669c41cc394

This commit is contained in:
sys-001 2022-12-31 16:49:12 +00:00
parent a50f0e3dd4
commit 8f390eeeb6
5 changed files with 1806 additions and 40 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "6.3.0", "version": "6.4.0",
"types": [ "types": [
{ {
"name": "Update", "name": "Update",
@ -481,6 +481,24 @@
"optional": true, "optional": true,
"description": "Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat." "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", "name": "has_protected_content",
"types": [ "types": [
@ -789,6 +807,15 @@
"optional": true, "optional": true,
"description": "Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption" "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", "name": "contact",
"types": [ "types": [
@ -961,6 +988,14 @@
"optional": true, "optional": true,
"description": "Optional. The domain name of the website on which the user has logged in. More about Telegram Login »" "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", "name": "passport_data",
"types": [ "types": [
@ -985,6 +1020,14 @@
"optional": true, "optional": true,
"description": "Optional. Service message: forum topic created" "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", "name": "forum_topic_closed",
"types": [ "types": [
@ -1001,6 +1044,22 @@
"optional": true, "optional": true,
"description": "Optional. Service message: forum topic reopened" "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", "name": "video_chat_scheduled",
"types": [ "types": [
@ -2030,12 +2089,53 @@
"fields": [], "fields": [],
"extended_by": [] "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", "name": "ForumTopicReopened",
"description": "This object represents a service message about a forum topic reopened in the chat. Currently holds no information.", "description": "This object represents a service message about a forum topic reopened in the chat. Currently holds no information.",
"fields": [], "fields": [],
"extended_by": [] "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", "name": "VideoChatScheduled",
"description": "This object represents a service message about a video chat scheduled in the chat.", "description": "This object represents a service message about a video chat scheduled in the chat.",
@ -2176,6 +2276,15 @@
"optional": false, "optional": false,
"description": "Array of button rows, each represented by an Array of KeyboardButton objects" "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", "name": "resize_keyboard",
"types": [ "types": [
@ -3703,6 +3812,14 @@
], ],
"optional": true, "optional": true,
"description": "Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode" "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": [] "extended_by": []
@ -3792,6 +3909,14 @@
], ],
"optional": true, "optional": true,
"description": "Optional. Pass True if the uploaded video is suitable for streaming" "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": [] "extended_by": []
@ -3873,6 +3998,14 @@
], ],
"optional": true, "optional": true,
"description": "Optional. Animation duration in seconds" "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": [] "extended_by": []
@ -8168,6 +8301,14 @@
"optional": true, "optional": true,
"description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" "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", "name": "disable_notification",
"types": [ "types": [
@ -8557,6 +8698,14 @@
"optional": true, "optional": true,
"description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" "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", "name": "supports_streaming",
"types": [ "types": [
@ -8700,6 +8849,14 @@
"optional": true, "optional": true,
"description": "A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode" "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", "name": "disable_notification",
"types": [ "types": [
@ -9763,6 +9920,14 @@
"optional": false, "optional": false,
"description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)" "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", "name": "action",
"types": [ "types": [
@ -10631,7 +10796,7 @@
}, },
{ {
"name": "getChatMember", "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": [ "fields": [
{ {
"name": "chat_id", "name": "chat_id",
@ -10734,7 +10899,7 @@
"int" "int"
], ],
"optional": true, "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", "name": "icon_custom_emoji_id",
@ -10775,16 +10940,16 @@
"types": [ "types": [
"string" "string"
], ],
"optional": false, "optional": true,
"description": "New topic name, 1-128 characters" "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", "name": "icon_custom_emoji_id",
"types": [ "types": [
"string" "string"
], ],
"optional": false, "optional": true,
"description": "New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers" "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": [ "return_types": [
@ -10895,6 +11060,104 @@
"bool" "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", "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.", "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.",

View File

@ -1,4 +1,4 @@
version: 6.3.0 version: 6.4.0
types: types:
- -
name: Update name: Update
@ -362,6 +362,20 @@ types:
- int - int
optional: true optional: true
description: 'Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat.' 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 name: has_protected_content
types: types:
@ -594,6 +608,13 @@ types:
- Array<MessageEntity> - Array<MessageEntity>
optional: true optional: true
description: 'Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption' 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 name: contact
types: types:
@ -724,6 +745,12 @@ types:
- string - string
optional: true optional: true
description: 'Optional. The domain name of the website on which the user has logged in. More about Telegram Login »' 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 name: passport_data
types: types:
@ -742,6 +769,12 @@ types:
- ForumTopicCreated - ForumTopicCreated
optional: true optional: true
description: 'Optional. Service message: forum topic created' 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 name: forum_topic_closed
types: types:
@ -754,6 +787,18 @@ types:
- ForumTopicReopened - ForumTopicReopened
optional: true optional: true
description: 'Optional. Service message: forum topic reopened' 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 name: video_chat_scheduled
types: 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.' description: 'This object represents a service message about a forum topic closed in the chat. Currently holds no information.'
fields: { } fields: { }
extended_by: { } 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 name: ForumTopicReopened
description: 'This object represents a service message about a forum topic reopened in the chat. Currently holds no information.' description: 'This object represents a service message about a forum topic reopened in the chat. Currently holds no information.'
fields: { } fields: { }
extended_by: { } 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 name: VideoChatScheduled
description: 'This object represents a service message about a video chat scheduled in the chat.' description: 'This object represents a service message about a video chat scheduled in the chat.'
@ -1630,6 +1707,13 @@ types:
- Array<Array<KeyboardButton>> - Array<Array<KeyboardButton>>
optional: false optional: false
description: 'Array of button rows, each represented by an Array of KeyboardButton objects' 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 name: resize_keyboard
types: types:
@ -2776,6 +2860,12 @@ types:
- Array<MessageEntity> - Array<MessageEntity>
optional: true optional: true
description: 'Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode' 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: { } extended_by: { }
- -
name: InputMediaVideo name: InputMediaVideo
@ -2843,6 +2933,12 @@ types:
- bool - bool
optional: true optional: true
description: 'Optional. Pass True if the uploaded video is suitable for streaming' 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: { } extended_by: { }
- -
name: InputMediaAnimation name: InputMediaAnimation
@ -2904,6 +3000,12 @@ types:
- int - int
optional: true optional: true
description: 'Optional. Animation duration in seconds' 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: { } extended_by: { }
- -
name: InputMediaAudio name: InputMediaAudio
@ -6127,6 +6229,12 @@ methods:
- Array<MessageEntity> - Array<MessageEntity>
optional: true optional: true
description: 'A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode' 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 name: disable_notification
types: types:
@ -6421,6 +6529,12 @@ methods:
- Array<MessageEntity> - Array<MessageEntity>
optional: true optional: true
description: 'A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode' 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 name: supports_streaming
types: types:
@ -6529,6 +6643,12 @@ methods:
- Array<MessageEntity> - Array<MessageEntity>
optional: true optional: true
description: 'A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode' 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 name: disable_notification
types: types:
@ -7329,6 +7449,12 @@ methods:
- string - string
optional: false optional: false
description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)' 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 name: action
types: types:
@ -7965,7 +8091,7 @@ methods:
- int - int
- -
name: getChatMember 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: fields:
- -
name: chat_id name: chat_id
@ -8042,7 +8168,7 @@ methods:
types: types:
- int - int
optional: true 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 name: icon_custom_emoji_id
types: types:
@ -8072,14 +8198,14 @@ methods:
name: name name: name
types: types:
- string - string
optional: false optional: true
description: 'New topic name, 1-128 characters' 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 name: icon_custom_emoji_id
types: types:
- string - string
optional: false optional: true
description: 'New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers' 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: return_types:
- bool - bool
- -
@ -8158,6 +8284,77 @@ methods:
description: 'Unique identifier for the target message thread of the forum topic' description: 'Unique identifier for the target message thread of the forum topic'
return_types: return_types:
- bool - 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 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.' 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.'

View File

@ -3,7 +3,7 @@
"info": { "info": {
"title": "Telegram Bot API", "title": "Telegram Bot API",
"description": "Auto-generated OpenAPI schema by TGScraper.", "description": "Auto-generated OpenAPI schema by TGScraper.",
"version": "6.3.0" "version": "6.4.0"
}, },
"servers": [ "servers": [
{ {
@ -380,6 +380,14 @@
"message_auto_delete_time": { "message_auto_delete_time": {
"type": "integer" "type": "integer"
}, },
"has_aggressive_anti_spam_enabled": {
"type": "boolean",
"default": true
},
"has_hidden_members": {
"type": "boolean",
"default": true
},
"has_protected_content": { "has_protected_content": {
"type": "boolean", "type": "boolean",
"default": true "default": true
@ -516,6 +524,10 @@
"$ref": "#/components/schemas/MessageEntity" "$ref": "#/components/schemas/MessageEntity"
} }
}, },
"has_media_spoiler": {
"type": "boolean",
"default": true
},
"contact": { "contact": {
"$ref": "#/components/schemas/Contact" "$ref": "#/components/schemas/Contact"
}, },
@ -589,6 +601,9 @@
"connected_website": { "connected_website": {
"type": "string" "type": "string"
}, },
"write_access_allowed": {
"$ref": "#/components/schemas/WriteAccessAllowed"
},
"passport_data": { "passport_data": {
"$ref": "#/components/schemas/PassportData" "$ref": "#/components/schemas/PassportData"
}, },
@ -598,12 +613,21 @@
"forum_topic_created": { "forum_topic_created": {
"$ref": "#/components/schemas/ForumTopicCreated" "$ref": "#/components/schemas/ForumTopicCreated"
}, },
"forum_topic_edited": {
"$ref": "#/components/schemas/ForumTopicEdited"
},
"forum_topic_closed": { "forum_topic_closed": {
"$ref": "#/components/schemas/ForumTopicClosed" "$ref": "#/components/schemas/ForumTopicClosed"
}, },
"forum_topic_reopened": { "forum_topic_reopened": {
"$ref": "#/components/schemas/ForumTopicReopened" "$ref": "#/components/schemas/ForumTopicReopened"
}, },
"general_forum_topic_hidden": {
"$ref": "#/components/schemas/GeneralForumTopicHidden"
},
"general_forum_topic_unhidden": {
"$ref": "#/components/schemas/GeneralForumTopicUnhidden"
},
"video_chat_scheduled": { "video_chat_scheduled": {
"$ref": "#/components/schemas/VideoChatScheduled" "$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.", "description": "This object represents a service message about a forum topic closed in the chat. Currently holds no information.",
"type": "object" "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": { "ForumTopicReopened": {
"description": "This object represents a service message about a forum topic reopened in the chat. Currently holds no information.", "description": "This object represents a service message about a forum topic reopened in the chat. Currently holds no information.",
"type": "object" "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": { "VideoChatScheduled": {
"description": "This object represents a service message about a video chat scheduled in the chat.", "description": "This object represents a service message about a video chat scheduled in the chat.",
"required": [ "required": [
@ -1288,6 +1336,9 @@
} }
} }
}, },
"is_persistent": {
"type": "boolean"
},
"resize_keyboard": { "resize_keyboard": {
"type": "boolean" "type": "boolean"
}, },
@ -2236,6 +2287,9 @@
"items": { "items": {
"$ref": "#/components/schemas/MessageEntity" "$ref": "#/components/schemas/MessageEntity"
} }
},
"has_spoiler": {
"type": "boolean"
} }
}, },
"type": "object" "type": "object"
@ -2287,6 +2341,9 @@
}, },
"supports_streaming": { "supports_streaming": {
"type": "boolean" "type": "boolean"
},
"has_spoiler": {
"type": "boolean"
} }
}, },
"type": "object" "type": "object"
@ -2335,6 +2392,9 @@
}, },
"duration": { "duration": {
"type": "integer" "type": "integer"
},
"has_spoiler": {
"type": "boolean"
} }
}, },
"type": "object" "type": "object"
@ -5948,6 +6008,9 @@
"$ref": "#/components/schemas/MessageEntity" "$ref": "#/components/schemas/MessageEntity"
} }
}, },
"has_spoiler": {
"type": "boolean"
},
"disable_notification": { "disable_notification": {
"type": "boolean" "type": "boolean"
}, },
@ -6022,6 +6085,9 @@
"$ref": "#/components/schemas/MessageEntity" "$ref": "#/components/schemas/MessageEntity"
} }
}, },
"has_spoiler": {
"type": "boolean"
},
"disable_notification": { "disable_notification": {
"type": "boolean" "type": "boolean"
}, },
@ -6096,6 +6162,9 @@
"$ref": "#/components/schemas/MessageEntity" "$ref": "#/components/schemas/MessageEntity"
} }
}, },
"has_spoiler": {
"type": "boolean"
},
"disable_notification": { "disable_notification": {
"type": "boolean" "type": "boolean"
}, },
@ -6903,6 +6972,9 @@
"$ref": "#/components/schemas/MessageEntity" "$ref": "#/components/schemas/MessageEntity"
} }
}, },
"has_spoiler": {
"type": "boolean"
},
"supports_streaming": { "supports_streaming": {
"type": "boolean" "type": "boolean"
}, },
@ -6999,6 +7071,9 @@
"$ref": "#/components/schemas/MessageEntity" "$ref": "#/components/schemas/MessageEntity"
} }
}, },
"has_spoiler": {
"type": "boolean"
},
"supports_streaming": { "supports_streaming": {
"type": "boolean" "type": "boolean"
}, },
@ -7095,6 +7170,9 @@
"$ref": "#/components/schemas/MessageEntity" "$ref": "#/components/schemas/MessageEntity"
} }
}, },
"has_spoiler": {
"type": "boolean"
},
"supports_streaming": { "supports_streaming": {
"type": "boolean" "type": "boolean"
}, },
@ -7249,6 +7327,9 @@
"$ref": "#/components/schemas/MessageEntity" "$ref": "#/components/schemas/MessageEntity"
} }
}, },
"has_spoiler": {
"type": "boolean"
},
"disable_notification": { "disable_notification": {
"type": "boolean" "type": "boolean"
}, },
@ -7342,6 +7423,9 @@
"$ref": "#/components/schemas/MessageEntity" "$ref": "#/components/schemas/MessageEntity"
} }
}, },
"has_spoiler": {
"type": "boolean"
},
"disable_notification": { "disable_notification": {
"type": "boolean" "type": "boolean"
}, },
@ -7435,6 +7519,9 @@
"$ref": "#/components/schemas/MessageEntity" "$ref": "#/components/schemas/MessageEntity"
} }
}, },
"has_spoiler": {
"type": "boolean"
},
"disable_notification": { "disable_notification": {
"type": "boolean" "type": "boolean"
}, },
@ -10082,6 +10169,9 @@
} }
] ]
}, },
"message_thread_id": {
"type": "integer"
},
"action": { "action": {
"type": "string" "type": "string"
} }
@ -10106,6 +10196,9 @@
} }
] ]
}, },
"message_thread_id": {
"type": "integer"
},
"action": { "action": {
"type": "string" "type": "string"
} }
@ -10130,6 +10223,9 @@
} }
] ]
}, },
"message_thread_id": {
"type": "integer"
},
"action": { "action": {
"type": "string" "type": "string"
} }
@ -13804,7 +13900,7 @@
} }
}, },
"/getChatMember": { "/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": { "post": {
"requestBody": { "requestBody": {
"required": true, "required": true,
@ -14415,9 +14511,7 @@
"type": "object", "type": "object",
"required": [ "required": [
"chat_id", "chat_id",
"message_thread_id", "message_thread_id"
"name",
"icon_custom_emoji_id"
], ],
"properties": { "properties": {
"chat_id": { "chat_id": {
@ -14447,9 +14541,7 @@
"type": "object", "type": "object",
"required": [ "required": [
"chat_id", "chat_id",
"message_thread_id", "message_thread_id"
"name",
"icon_custom_emoji_id"
], ],
"properties": { "properties": {
"chat_id": { "chat_id": {
@ -14479,9 +14571,7 @@
"type": "object", "type": "object",
"required": [ "required": [
"chat_id", "chat_id",
"message_thread_id", "message_thread_id"
"name",
"icon_custom_emoji_id"
], ],
"properties": { "properties": {
"chat_id": { "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": { "/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.", "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": { "post": {

View File

@ -2,7 +2,7 @@ openapi: 3.0.0
info: info:
title: 'Telegram Bot API' title: 'Telegram Bot API'
description: 'Auto-generated OpenAPI schema by TGScraper.' description: 'Auto-generated OpenAPI schema by TGScraper.'
version: 6.3.0 version: 6.4.0
servers: servers:
- -
url: 'https://api.telegram.org/bot{token}' url: 'https://api.telegram.org/bot{token}'
@ -252,6 +252,12 @@ components:
type: integer type: integer
message_auto_delete_time: message_auto_delete_time:
type: integer type: integer
has_aggressive_anti_spam_enabled:
type: boolean
default: true
has_hidden_members:
type: boolean
default: true
has_protected_content: has_protected_content:
type: boolean type: boolean
default: true default: true
@ -345,6 +351,9 @@ components:
type: array type: array
items: items:
$ref: '#/components/schemas/MessageEntity' $ref: '#/components/schemas/MessageEntity'
has_media_spoiler:
type: boolean
default: true
contact: contact:
$ref: '#/components/schemas/Contact' $ref: '#/components/schemas/Contact'
dice: dice:
@ -395,16 +404,24 @@ components:
$ref: '#/components/schemas/SuccessfulPayment' $ref: '#/components/schemas/SuccessfulPayment'
connected_website: connected_website:
type: string type: string
write_access_allowed:
$ref: '#/components/schemas/WriteAccessAllowed'
passport_data: passport_data:
$ref: '#/components/schemas/PassportData' $ref: '#/components/schemas/PassportData'
proximity_alert_triggered: proximity_alert_triggered:
$ref: '#/components/schemas/ProximityAlertTriggered' $ref: '#/components/schemas/ProximityAlertTriggered'
forum_topic_created: forum_topic_created:
$ref: '#/components/schemas/ForumTopicCreated' $ref: '#/components/schemas/ForumTopicCreated'
forum_topic_edited:
$ref: '#/components/schemas/ForumTopicEdited'
forum_topic_closed: forum_topic_closed:
$ref: '#/components/schemas/ForumTopicClosed' $ref: '#/components/schemas/ForumTopicClosed'
forum_topic_reopened: forum_topic_reopened:
$ref: '#/components/schemas/ForumTopicReopened' $ref: '#/components/schemas/ForumTopicReopened'
general_forum_topic_hidden:
$ref: '#/components/schemas/GeneralForumTopicHidden'
general_forum_topic_unhidden:
$ref: '#/components/schemas/GeneralForumTopicUnhidden'
video_chat_scheduled: video_chat_scheduled:
$ref: '#/components/schemas/VideoChatScheduled' $ref: '#/components/schemas/VideoChatScheduled'
video_chat_started: video_chat_started:
@ -795,9 +812,26 @@ components:
ForumTopicClosed: ForumTopicClosed:
description: 'This object represents a service message about a forum topic closed in the chat. Currently holds no information.' description: 'This object represents a service message about a forum topic closed in the chat. Currently holds no information.'
type: object 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: ForumTopicReopened:
description: 'This object represents a service message about a forum topic reopened in the chat. Currently holds no information.' description: 'This object represents a service message about a forum topic reopened in the chat. Currently holds no information.'
type: object 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: VideoChatScheduled:
description: 'This object represents a service message about a video chat scheduled in the chat.' description: 'This object represents a service message about a video chat scheduled in the chat.'
required: required:
@ -876,6 +910,8 @@ components:
type: array type: array
items: items:
$ref: '#/components/schemas/KeyboardButton' $ref: '#/components/schemas/KeyboardButton'
is_persistent:
type: boolean
resize_keyboard: resize_keyboard:
type: boolean type: boolean
one_time_keyboard: one_time_keyboard:
@ -1530,6 +1566,8 @@ components:
type: array type: array
items: items:
$ref: '#/components/schemas/MessageEntity' $ref: '#/components/schemas/MessageEntity'
has_spoiler:
type: boolean
type: object type: object
InputMediaVideo: InputMediaVideo:
description: 'Represents a video to be sent.' description: 'Represents a video to be sent.'
@ -1564,6 +1602,8 @@ components:
type: integer type: integer
supports_streaming: supports_streaming:
type: boolean type: boolean
has_spoiler:
type: boolean
type: object type: object
InputMediaAnimation: InputMediaAnimation:
description: 'Represents an animation file (GIF or H.264/MPEG-4 AVC video without sound) to be sent.' 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 type: integer
duration: duration:
type: integer type: integer
has_spoiler:
type: boolean
type: object type: object
InputMediaAudio: InputMediaAudio:
description: 'Represents an audio file to be treated as music to be sent.' description: 'Represents an audio file to be treated as music to be sent.'
@ -4013,6 +4055,8 @@ paths:
type: array type: array
items: items:
$ref: '#/components/schemas/MessageEntity' $ref: '#/components/schemas/MessageEntity'
has_spoiler:
type: boolean
disable_notification: disable_notification:
type: boolean type: boolean
protect_content: protect_content:
@ -4060,6 +4104,8 @@ paths:
type: array type: array
items: items:
$ref: '#/components/schemas/MessageEntity' $ref: '#/components/schemas/MessageEntity'
has_spoiler:
type: boolean
disable_notification: disable_notification:
type: boolean type: boolean
protect_content: protect_content:
@ -4107,6 +4153,8 @@ paths:
type: array type: array
items: items:
$ref: '#/components/schemas/MessageEntity' $ref: '#/components/schemas/MessageEntity'
has_spoiler:
type: boolean
disable_notification: disable_notification:
type: boolean type: boolean
protect_content: protect_content:
@ -4616,6 +4664,8 @@ paths:
type: array type: array
items: items:
$ref: '#/components/schemas/MessageEntity' $ref: '#/components/schemas/MessageEntity'
has_spoiler:
type: boolean
supports_streaming: supports_streaming:
type: boolean type: boolean
disable_notification: disable_notification:
@ -4677,6 +4727,8 @@ paths:
type: array type: array
items: items:
$ref: '#/components/schemas/MessageEntity' $ref: '#/components/schemas/MessageEntity'
has_spoiler:
type: boolean
supports_streaming: supports_streaming:
type: boolean type: boolean
disable_notification: disable_notification:
@ -4738,6 +4790,8 @@ paths:
type: array type: array
items: items:
$ref: '#/components/schemas/MessageEntity' $ref: '#/components/schemas/MessageEntity'
has_spoiler:
type: boolean
supports_streaming: supports_streaming:
type: boolean type: boolean
disable_notification: disable_notification:
@ -4835,6 +4889,8 @@ paths:
type: array type: array
items: items:
$ref: '#/components/schemas/MessageEntity' $ref: '#/components/schemas/MessageEntity'
has_spoiler:
type: boolean
disable_notification: disable_notification:
type: boolean type: boolean
protect_content: protect_content:
@ -4894,6 +4950,8 @@ paths:
type: array type: array
items: items:
$ref: '#/components/schemas/MessageEntity' $ref: '#/components/schemas/MessageEntity'
has_spoiler:
type: boolean
disable_notification: disable_notification:
type: boolean type: boolean
protect_content: protect_content:
@ -4953,6 +5011,8 @@ paths:
type: array type: array
items: items:
$ref: '#/components/schemas/MessageEntity' $ref: '#/components/schemas/MessageEntity'
has_spoiler:
type: boolean
disable_notification: disable_notification:
type: boolean type: boolean
protect_content: protect_content:
@ -6640,6 +6700,8 @@ paths:
type: integer type: integer
- -
type: string type: string
message_thread_id:
type: integer
action: action:
type: string type: string
application/x-www-form-urlencoded: application/x-www-form-urlencoded:
@ -6655,6 +6717,8 @@ paths:
type: integer type: integer
- -
type: string type: string
message_thread_id:
type: integer
action: action:
type: string type: string
multipart/form-data: multipart/form-data:
@ -6670,6 +6734,8 @@ paths:
type: integer type: integer
- -
type: string type: string
message_thread_id:
type: integer
action: action:
type: string type: string
responses: responses:
@ -8955,7 +9021,7 @@ paths:
default: default:
$ref: '#/components/responses/UnknownError' $ref: '#/components/responses/UnknownError'
/getChatMember: /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: post:
requestBody: requestBody:
required: true required: true
@ -9339,8 +9405,6 @@ paths:
required: required:
- chat_id - chat_id
- message_thread_id - message_thread_id
- name
- icon_custom_emoji_id
properties: properties:
chat_id: chat_id:
anyOf: anyOf:
@ -9360,8 +9424,6 @@ paths:
required: required:
- chat_id - chat_id
- message_thread_id - message_thread_id
- name
- icon_custom_emoji_id
properties: properties:
chat_id: chat_id:
anyOf: anyOf:
@ -9381,8 +9443,6 @@ paths:
required: required:
- chat_id - chat_id
- message_thread_id - message_thread_id
- name
- icon_custom_emoji_id
properties: properties:
chat_id: chat_id:
anyOf: anyOf:
@ -9750,6 +9810,375 @@ paths:
$ref: '#/components/responses/ServerError' $ref: '#/components/responses/ServerError'
default: default:
$ref: '#/components/responses/UnknownError' $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: /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.' 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: post:

View File

@ -3,7 +3,7 @@
"name": "Telegram Bot API", "name": "Telegram Bot API",
"description": "Auto-generated Postman collection by TGScraper.", "description": "Auto-generated Postman collection by TGScraper.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"version": "6.3.0" "version": "6.4.0"
}, },
"variable": { "variable": {
"key": "token", "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", "description": "Optional. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode",
"type": "text" "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", "key": "disable_notification",
"disabled": true, "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", "description": "Optional. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode",
"type": "text" "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", "key": "supports_streaming",
"disabled": true, "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", "description": "Optional. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode",
"type": "text" "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", "key": "disable_notification",
"disabled": true, "disabled": true,
@ -1971,6 +1989,12 @@
"description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)", "description": "Required. Unique identifier for the target chat or username of the target channel (in the format @channelusername)",
"type": "text" "type": "text"
}, },
{
"key": "message_thread_id",
"disabled": true,
"description": "Optional. Unique identifier for the target message thread; supergroups only",
"type": "text"
},
{ {
"key": "action", "key": "action",
"disabled": false, "disabled": false,
@ -3143,7 +3167,7 @@
"getChatMember" "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", "key": "icon_color",
"disabled": true, "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" "type": "text"
}, },
{ {
@ -3308,14 +3332,14 @@
}, },
{ {
"key": "name", "key": "name",
"disabled": false, "disabled": true,
"description": "Required. New topic name, 1-128 characters", "description": "Optional. New topic name, 0-128 characters. If not specified or empty, the current name of the topic will be kept",
"type": "text" "type": "text"
}, },
{ {
"key": "icon_custom_emoji_id", "key": "icon_custom_emoji_id",
"disabled": false, "disabled": true,
"description": "Required. New unique identifier of the custom emoji shown as the topic icon. Use getForumTopicIconStickers to get all allowed custom emoji identifiers", "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" "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." "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", "name": "answerCallbackQuery",
"request": { "request": {