This commit is contained in:
sys-001 2024-02-16 14:22:30 +00:00
parent fd071f07ca
commit 78cde86580
5 changed files with 477 additions and 275 deletions

View File

@ -1,5 +1,5 @@
{
"version": "7.0.0",
"version": "7.1.0",
"types": [
{
"name": "Update",
@ -11,7 +11,7 @@
"int"
],
"optional": false,
"description": "The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially."
"description": "The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This identifier becomes especially handy if you're using webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially."
},
{
"name": "message",
@ -27,7 +27,7 @@
"Message"
],
"optional": true,
"description": "Optional. New version of a message that is known to the bot and was edited"
"description": "Optional. New version of a message that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot."
},
{
"name": "channel_post",
@ -43,7 +43,7 @@
"Message"
],
"optional": true,
"description": "Optional. New version of a channel post that is known to the bot and was edited"
"description": "Optional. New version of a channel post that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot."
},
{
"name": "message_reaction",
@ -59,7 +59,7 @@
"MessageReactionCountUpdated"
],
"optional": true,
"description": "Optional. Reactions to a message with anonymous reactions were changed. The bot must be an administrator in the chat and must explicitly specify \"message_reaction_count\" in the list of allowed_updates to receive these updates."
"description": "Optional. Reactions to a message with anonymous reactions were changed. The bot must be an administrator in the chat and must explicitly specify \"message_reaction_count\" in the list of allowed_updates to receive these updates. The updates are grouped and can be sent with delay up to a few minutes."
},
{
"name": "inline_query",
@ -107,7 +107,7 @@
"Poll"
],
"optional": true,
"description": "Optional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot"
"description": "Optional. New poll state. Bots receive only updates about manually stopped polls and polls, which are sent by the bot"
},
{
"name": "poll_answer",
@ -551,7 +551,15 @@
"int"
],
"optional": true,
"description": "Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user; in seconds. Returned only in getChat."
"description": "Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds. Returned only in getChat."
},
{
"name": "unrestrict_boost_count",
"types": [
"int"
],
"optional": true,
"description": "Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions. Returned only in getChat."
},
{
"name": "message_auto_delete_time",
@ -614,6 +622,14 @@
"description": "Optional. True, if the bot can change the group sticker set. Returned only in getChat.",
"default": true
},
{
"name": "custom_emoji_sticker_set_name",
"types": [
"string"
],
"optional": true,
"description": "Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group. Returned only in getChat."
},
{
"name": "linked_chat_id",
"types": [
@ -669,6 +685,14 @@
"optional": true,
"description": "Optional. Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat."
},
{
"name": "sender_boost_count",
"types": [
"int"
],
"optional": true,
"description": "Optional. If the sender of the message boosted the chat, the number of boosts added by the user"
},
{
"name": "date",
"types": [
@ -735,6 +759,14 @@
"optional": true,
"description": "Optional. For replies that quote part of the original message, the quoted part of the message"
},
{
"name": "reply_to_story",
"types": [
"Story"
],
"optional": true,
"description": "Optional. For replies to a story, the original story"
},
{
"name": "via_bot",
"types": [
@ -1109,6 +1141,14 @@
"optional": true,
"description": "Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location."
},
{
"name": "boost_added",
"types": [
"ChatBoostAdded"
],
"optional": true,
"description": "Optional. Service message: user boosted the chat"
},
{
"name": "forum_topic_created",
"types": [
@ -2075,8 +2115,25 @@
},
{
"name": "Story",
"description": "This object represents a message about a forwarded story in the chat. Currently holds no information.",
"fields": [],
"description": "This object represents a story.",
"fields": [
{
"name": "chat",
"types": [
"Chat"
],
"optional": false,
"description": "Chat that posted the story"
},
{
"name": "id",
"types": [
"int"
],
"optional": false,
"description": "Unique identifier for the story in the chat"
}
],
"extended_by": []
},
{
@ -2690,6 +2747,21 @@
],
"extended_by": []
},
{
"name": "ChatBoostAdded",
"description": "This object represents a service message about a user boosting a chat.",
"fields": [
{
"name": "boost_count",
"types": [
"int"
],
"optional": false,
"description": "Number of boosts added by the user"
}
],
"extended_by": []
},
{
"name": "ForumTopicCreated",
"description": "This object represents a service message about a new forum topic created in the chat.",
@ -2993,7 +3065,7 @@
"int"
],
"optional": false,
"description": "Identifier of the messsage with the giveaway in the chat"
"description": "Identifier of the message with the giveaway in the chat"
},
{
"name": "winners_selection_date",
@ -3129,7 +3201,7 @@
"bool"
],
"optional": true,
"description": "Optional. True, if the media in the link preview is suppposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview"
"description": "Optional. True, if the media in the link preview is supposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview"
},
{
"name": "prefer_large_media",
@ -3137,7 +3209,7 @@
"bool"
],
"optional": true,
"description": "Optional. True, if the media in the link preview is suppposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview"
"description": "Optional. True, if the media in the link preview is supposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview"
},
{
"name": "show_above_text",
@ -3280,7 +3352,7 @@
"bool"
],
"optional": true,
"description": "Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard."
"description": "Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard."
}
],
"extended_by": []
@ -3493,7 +3565,7 @@
"bool"
],
"optional": true,
"description": "Optional. Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet."
"description": "Optional. Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet."
}
],
"extended_by": []
@ -3531,7 +3603,7 @@
"string"
],
"optional": true,
"description": "Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id=<user_id> can be used to mention a user by their ID without using a username, if this is allowed by their privacy settings."
"description": "Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id=<user_id> can be used to mention a user by their identifier without using a username, if this is allowed by their privacy settings."
},
{
"name": "callback_data",
@ -3776,7 +3848,7 @@
"bool"
],
"optional": true,
"description": "Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message."
"description": "Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message."
}
],
"extended_by": []
@ -3917,7 +3989,7 @@
"bool"
],
"optional": false,
"description": "True, if the administrator can access the chat event log, boost list in channels, see channel members, report spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege"
"description": "True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege."
},
{
"name": "can_delete_messages",
@ -3967,6 +4039,30 @@
"optional": false,
"description": "True, if the user is allowed to invite new users to the chat"
},
{
"name": "can_post_stories",
"types": [
"bool"
],
"optional": false,
"description": "True, if the administrator can post stories to the chat"
},
{
"name": "can_edit_stories",
"types": [
"bool"
],
"optional": false,
"description": "True, if the administrator can edit stories posted by other users"
},
{
"name": "can_delete_stories",
"types": [
"bool"
],
"optional": false,
"description": "True, if the administrator can delete stories posted by other users"
},
{
"name": "can_post_messages",
"types": [
@ -3991,30 +4087,6 @@
"optional": true,
"description": "Optional. True, if the user is allowed to pin messages; groups and supergroups only"
},
{
"name": "can_post_stories",
"types": [
"bool"
],
"optional": true,
"description": "Optional. True, if the administrator can post stories in the channel; channels only"
},
{
"name": "can_edit_stories",
"types": [
"bool"
],
"optional": true,
"description": "Optional. True, if the administrator can edit stories posted by other users; channels only"
},
{
"name": "can_delete_stories",
"types": [
"bool"
],
"optional": true,
"description": "Optional. True, if the administrator can delete stories posted by other users; channels only"
},
{
"name": "can_manage_topics",
"types": [
@ -4183,7 +4255,7 @@
"bool"
],
"optional": false,
"description": "True, if the administrator can access the chat event log, boost list in channels, see channel members, report spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege"
"description": "True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege."
},
{
"name": "can_delete_messages",
@ -4233,6 +4305,30 @@
"optional": false,
"description": "True, if the user is allowed to invite new users to the chat"
},
{
"name": "can_post_stories",
"types": [
"bool"
],
"optional": false,
"description": "True, if the administrator can post stories to the chat"
},
{
"name": "can_edit_stories",
"types": [
"bool"
],
"optional": false,
"description": "True, if the administrator can edit stories posted by other users"
},
{
"name": "can_delete_stories",
"types": [
"bool"
],
"optional": false,
"description": "True, if the administrator can delete stories posted by other users"
},
{
"name": "can_post_messages",
"types": [
@ -4257,30 +4353,6 @@
"optional": true,
"description": "Optional. True, if the user is allowed to pin messages; groups and supergroups only"
},
{
"name": "can_post_stories",
"types": [
"bool"
],
"optional": true,
"description": "Optional. True, if the administrator can post stories in the channel; channels only"
},
{
"name": "can_edit_stories",
"types": [
"bool"
],
"optional": true,
"description": "Optional. True, if the administrator can edit stories posted by other users; channels only"
},
{
"name": "can_delete_stories",
"types": [
"bool"
],
"optional": true,
"description": "Optional. True, if the administrator can delete stories posted by other users; channels only"
},
{
"name": "can_manage_topics",
"types": [
@ -5400,7 +5472,7 @@
"ChatBoost"
],
"optional": false,
"description": "Infomation about the chat boost"
"description": "Information about the chat boost"
}
],
"extended_by": []
@ -11629,7 +11701,7 @@
},
{
"name": "setMessageReaction",
"description": "Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. In albums, bots must react to the first message. Returns True on success.",
"description": "Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Returns True on success.",
"fields": [
{
"name": "chat_id",
@ -11646,7 +11718,7 @@
"int"
],
"optional": false,
"description": "Identifier of the target message"
"description": "Identifier of the target message. If the message belongs to a media group, the reaction is set to the first non-deleted message in the group instead."
},
{
"name": "reaction",
@ -11881,7 +11953,7 @@
"bool"
],
"optional": true,
"description": "Pass True if the administrator can access the chat event log, boost list in channels, see channel members, report spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege"
"description": "Pass True if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege."
},
{
"name": "can_delete_messages",
@ -11931,6 +12003,30 @@
"optional": true,
"description": "Pass True if the administrator can invite new users to the chat"
},
{
"name": "can_post_stories",
"types": [
"bool"
],
"optional": true,
"description": "Pass True if the administrator can post stories to the chat"
},
{
"name": "can_edit_stories",
"types": [
"bool"
],
"optional": true,
"description": "Pass True if the administrator can edit stories posted by other users"
},
{
"name": "can_delete_stories",
"types": [
"bool"
],
"optional": true,
"description": "Pass True if the administrator can delete stories posted by other users"
},
{
"name": "can_post_messages",
"types": [
@ -11955,30 +12051,6 @@
"optional": true,
"description": "Pass True if the administrator can pin messages, supergroups only"
},
{
"name": "can_post_stories",
"types": [
"bool"
],
"optional": true,
"description": "Pass True if the administrator can post stories in the channel; channels only"
},
{
"name": "can_edit_stories",
"types": [
"bool"
],
"optional": true,
"description": "Pass True if the administrator can edit stories posted by other users; channels only"
},
{
"name": "can_delete_stories",
"types": [
"bool"
],
"optional": true,
"description": "Pass True if the administrator can delete stories posted by other users; channels only"
},
{
"name": "can_manage_topics",
"types": [

View File

@ -1,4 +1,4 @@
version: 7.0.0
version: 7.1.0
types:
-
name: Update
@ -9,7 +9,7 @@ types:
types:
- int
optional: false
description: "The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially."
description: "The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This identifier becomes especially handy if you're using webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially."
-
name: message
types:
@ -21,7 +21,7 @@ types:
types:
- Message
optional: true
description: 'Optional. New version of a message that is known to the bot and was edited'
description: 'Optional. New version of a message that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot.'
-
name: channel_post
types:
@ -33,7 +33,7 @@ types:
types:
- Message
optional: true
description: 'Optional. New version of a channel post that is known to the bot and was edited'
description: 'Optional. New version of a channel post that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot.'
-
name: message_reaction
types:
@ -45,7 +45,7 @@ types:
types:
- MessageReactionCountUpdated
optional: true
description: 'Optional. Reactions to a message with anonymous reactions were changed. The bot must be an administrator in the chat and must explicitly specify "message_reaction_count" in the list of allowed_updates to receive these updates.'
description: 'Optional. Reactions to a message with anonymous reactions were changed. The bot must be an administrator in the chat and must explicitly specify "message_reaction_count" in the list of allowed_updates to receive these updates. The updates are grouped and can be sent with delay up to a few minutes.'
-
name: inline_query
types:
@ -81,7 +81,7 @@ types:
types:
- Poll
optional: true
description: 'Optional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot'
description: 'Optional. New poll state. Bots receive only updates about manually stopped polls and polls, which are sent by the bot'
-
name: poll_answer
types:
@ -415,7 +415,13 @@ types:
types:
- int
optional: true
description: 'Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unpriviledged user; in seconds. Returned only in getChat.'
description: 'Optional. For supergroups, the minimum allowed delay between consecutive messages sent by each unprivileged user; in seconds. Returned only in getChat.'
-
name: unrestrict_boost_count
types:
- int
optional: true
description: 'Optional. For supergroups, the minimum number of boosts that a non-administrator user needs to add in order to ignore slow mode and chat permissions. Returned only in getChat.'
-
name: message_auto_delete_time
types:
@ -463,6 +469,12 @@ types:
optional: true
description: 'Optional. True, if the bot can change the group sticker set. Returned only in getChat.'
default: true
-
name: custom_emoji_sticker_set_name
types:
- string
optional: true
description: "Optional. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group. Returned only in getChat."
-
name: linked_chat_id
types:
@ -504,6 +516,12 @@ types:
- Chat
optional: true
description: 'Optional. Sender of the message, sent on behalf of a chat. For example, the channel itself for channel posts, the supergroup itself for messages from anonymous group administrators, the linked channel for messages automatically forwarded to the discussion group. For backward compatibility, the field from contains a fake sender user in non-channel chats, if the message was sent on behalf of a chat.'
-
name: sender_boost_count
types:
- int
optional: true
description: 'Optional. If the sender of the message boosted the chat, the number of boosts added by the user'
-
name: date
types:
@ -554,6 +572,12 @@ types:
- TextQuote
optional: true
description: 'Optional. For replies that quote part of the original message, the quoted part of the message'
-
name: reply_to_story
types:
- Story
optional: true
description: 'Optional. For replies to a story, the original story'
-
name: via_bot
types:
@ -836,6 +860,12 @@ types:
- ProximityAlertTriggered
optional: true
description: "Optional. Service message. A user in the chat triggered another user's proximity alert while sharing Live Location."
-
name: boost_added
types:
- ChatBoostAdded
optional: true
description: 'Optional. Service message: user boosted the chat'
-
name: forum_topic_created
types:
@ -1558,8 +1588,20 @@ types:
extended_by: { }
-
name: Story
description: 'This object represents a message about a forwarded story in the chat. Currently holds no information.'
fields: { }
description: 'This object represents a story.'
fields:
-
name: chat
types:
- Chat
optional: false
description: 'Chat that posted the story'
-
name: id
types:
- int
optional: false
description: 'Unique identifier for the story in the chat'
extended_by: { }
-
name: Video
@ -2016,6 +2058,17 @@ types:
optional: false
description: 'New auto-delete time for messages in the chat; in seconds'
extended_by: { }
-
name: ChatBoostAdded
description: 'This object represents a service message about a user boosting a chat.'
fields:
-
name: boost_count
types:
- int
optional: false
description: 'Number of boosts added by the user'
extended_by: { }
-
name: ForumTopicCreated
description: 'This object represents a service message about a new forum topic created in the chat.'
@ -2246,7 +2299,7 @@ types:
types:
- int
optional: false
description: 'Identifier of the messsage with the giveaway in the chat'
description: 'Identifier of the message with the giveaway in the chat'
-
name: winners_selection_date
types:
@ -2348,13 +2401,13 @@ types:
types:
- bool
optional: true
description: "Optional. True, if the media in the link preview is suppposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview"
description: "Optional. True, if the media in the link preview is supposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview"
-
name: prefer_large_media
types:
- bool
optional: true
description: "Optional. True, if the media in the link preview is suppposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview"
description: "Optional. True, if the media in the link preview is supposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview"
-
name: show_above_text
types:
@ -2461,7 +2514,7 @@ types:
types:
- bool
optional: true
description: "Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard."
description: "Optional. Use this parameter if you want to show the keyboard to specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.Example: A user requests to change the bot's language, bot replies to the request with a keyboard to select the new language. Other users in the group don't see the keyboard."
extended_by: { }
-
name: KeyboardButton
@ -2620,7 +2673,7 @@ types:
types:
- bool
optional: true
description: "Optional. Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message.Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet."
description: "Optional. Use this parameter if you want to remove the keyboard for specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message.Example: A user votes in a poll, bot returns confirmation message in reply to the vote and removes the keyboard for that user, while still showing the keyboard with poll options to users who haven't voted yet."
extended_by: { }
-
name: InlineKeyboardMarkup
@ -2648,7 +2701,7 @@ types:
types:
- string
optional: true
description: 'Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id=<user_id> can be used to mention a user by their ID without using a username, if this is allowed by their privacy settings.'
description: 'Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id=<user_id> can be used to mention a user by their identifier without using a username, if this is allowed by their privacy settings.'
-
name: callback_data
types:
@ -2831,7 +2884,7 @@ types:
types:
- bool
optional: true
description: "Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply (has reply_to_message_id), sender of the original message."
description: "Optional. Use this parameter if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot's message is a reply to a message in the same chat and forum topic, sender of the original message."
extended_by: { }
-
name: ChatPhoto
@ -2936,7 +2989,7 @@ types:
types:
- bool
optional: false
description: 'True, if the administrator can access the chat event log, boost list in channels, see channel members, report spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege'
description: 'True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege.'
-
name: can_delete_messages
types:
@ -2973,6 +3026,24 @@ types:
- bool
optional: false
description: 'True, if the user is allowed to invite new users to the chat'
-
name: can_post_stories
types:
- bool
optional: false
description: 'True, if the administrator can post stories to the chat'
-
name: can_edit_stories
types:
- bool
optional: false
description: 'True, if the administrator can edit stories posted by other users'
-
name: can_delete_stories
types:
- bool
optional: false
description: 'True, if the administrator can delete stories posted by other users'
-
name: can_post_messages
types:
@ -2991,24 +3062,6 @@ types:
- bool
optional: true
description: 'Optional. True, if the user is allowed to pin messages; groups and supergroups only'
-
name: can_post_stories
types:
- bool
optional: true
description: 'Optional. True, if the administrator can post stories in the channel; channels only'
-
name: can_edit_stories
types:
- bool
optional: true
description: 'Optional. True, if the administrator can edit stories posted by other users; channels only'
-
name: can_delete_stories
types:
- bool
optional: true
description: 'Optional. True, if the administrator can delete stories posted by other users; channels only'
-
name: can_manage_topics
types:
@ -3136,7 +3189,7 @@ types:
types:
- bool
optional: false
description: 'True, if the administrator can access the chat event log, boost list in channels, see channel members, report spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege'
description: 'True, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege.'
-
name: can_delete_messages
types:
@ -3173,6 +3226,24 @@ types:
- bool
optional: false
description: 'True, if the user is allowed to invite new users to the chat'
-
name: can_post_stories
types:
- bool
optional: false
description: 'True, if the administrator can post stories to the chat'
-
name: can_edit_stories
types:
- bool
optional: false
description: 'True, if the administrator can edit stories posted by other users'
-
name: can_delete_stories
types:
- bool
optional: false
description: 'True, if the administrator can delete stories posted by other users'
-
name: can_post_messages
types:
@ -3191,24 +3262,6 @@ types:
- bool
optional: true
description: 'Optional. True, if the user is allowed to pin messages; groups and supergroups only'
-
name: can_post_stories
types:
- bool
optional: true
description: 'Optional. True, if the administrator can post stories in the channel; channels only'
-
name: can_edit_stories
types:
- bool
optional: true
description: 'Optional. True, if the administrator can edit stories posted by other users; channels only'
-
name: can_delete_stories
types:
- bool
optional: true
description: 'Optional. True, if the administrator can delete stories posted by other users; channels only'
-
name: can_manage_topics
types:
@ -4047,7 +4100,7 @@ types:
types:
- ChatBoost
optional: false
description: 'Infomation about the chat boost'
description: 'Information about the chat boost'
extended_by: { }
-
name: ChatBoostRemoved
@ -8726,7 +8779,7 @@ methods:
- bool
-
name: setMessageReaction
description: "Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. In albums, bots must react to the first message. Returns True on success."
description: "Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Returns True on success."
fields:
-
name: chat_id
@ -8740,7 +8793,7 @@ methods:
types:
- int
optional: false
description: 'Identifier of the target message'
description: 'Identifier of the target message. If the message belongs to a media group, the reaction is set to the first non-deleted message in the group instead.'
-
name: reaction
types:
@ -8913,7 +8966,7 @@ methods:
types:
- bool
optional: true
description: 'Pass True if the administrator can access the chat event log, boost list in channels, see channel members, report spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege'
description: 'Pass True if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege.'
-
name: can_delete_messages
types:
@ -8950,6 +9003,24 @@ methods:
- bool
optional: true
description: 'Pass True if the administrator can invite new users to the chat'
-
name: can_post_stories
types:
- bool
optional: true
description: 'Pass True if the administrator can post stories to the chat'
-
name: can_edit_stories
types:
- bool
optional: true
description: 'Pass True if the administrator can edit stories posted by other users'
-
name: can_delete_stories
types:
- bool
optional: true
description: 'Pass True if the administrator can delete stories posted by other users'
-
name: can_post_messages
types:
@ -8968,24 +9039,6 @@ methods:
- bool
optional: true
description: 'Pass True if the administrator can pin messages, supergroups only'
-
name: can_post_stories
types:
- bool
optional: true
description: 'Pass True if the administrator can post stories in the channel; channels only'
-
name: can_edit_stories
types:
- bool
optional: true
description: 'Pass True if the administrator can edit stories posted by other users; channels only'
-
name: can_delete_stories
types:
- bool
optional: true
description: 'Pass True if the administrator can delete stories posted by other users; channels only'
-
name: can_manage_topics
types:

View File

@ -3,7 +3,7 @@
"info": {
"title": "Telegram Bot API",
"description": "Auto-generated OpenAPI schema by TGScraper.",
"version": "7.0.0"
"version": "7.1.0"
},
"servers": [
{
@ -410,6 +410,9 @@
"slow_mode_delay": {
"type": "integer"
},
"unrestrict_boost_count": {
"type": "integer"
},
"message_auto_delete_time": {
"type": "integer"
},
@ -436,6 +439,9 @@
"type": "boolean",
"default": true
},
"custom_emoji_sticker_set_name": {
"type": "string"
},
"linked_chat_id": {
"type": "integer"
},
@ -465,6 +471,9 @@
"sender_chat": {
"$ref": "#/components/schemas/Chat"
},
"sender_boost_count": {
"type": "integer"
},
"date": {
"type": "integer"
},
@ -491,6 +500,9 @@
"quote": {
"$ref": "#/components/schemas/TextQuote"
},
"reply_to_story": {
"$ref": "#/components/schemas/Story"
},
"via_bot": {
"$ref": "#/components/schemas/User"
},
@ -650,6 +662,9 @@
"proximity_alert_triggered": {
"$ref": "#/components/schemas/ProximityAlertTriggered"
},
"boost_added": {
"$ref": "#/components/schemas/ChatBoostAdded"
},
"forum_topic_created": {
"$ref": "#/components/schemas/ForumTopicCreated"
},
@ -1165,7 +1180,19 @@
"type": "object"
},
"Story": {
"description": "This object represents a message about a forwarded story in the chat. Currently holds no information.",
"description": "This object represents a story.",
"required": [
"chat",
"id"
],
"properties": {
"chat": {
"$ref": "#/components/schemas/Chat"
},
"id": {
"type": "integer"
}
},
"type": "object"
},
"Video": {
@ -1515,6 +1542,18 @@
},
"type": "object"
},
"ChatBoostAdded": {
"description": "This object represents a service message about a user boosting a chat.",
"required": [
"boost_count"
],
"properties": {
"boost_count": {
"type": "integer"
}
},
"type": "object"
},
"ForumTopicCreated": {
"description": "This object represents a service message about a new forum topic created in the chat.",
"required": [
@ -2216,7 +2255,10 @@
"can_restrict_members",
"can_promote_members",
"can_change_info",
"can_invite_users"
"can_invite_users",
"can_post_stories",
"can_edit_stories",
"can_delete_stories"
],
"properties": {
"is_anonymous": {
@ -2243,15 +2285,6 @@
"can_invite_users": {
"type": "boolean"
},
"can_post_messages": {
"type": "boolean"
},
"can_edit_messages": {
"type": "boolean"
},
"can_pin_messages": {
"type": "boolean"
},
"can_post_stories": {
"type": "boolean"
},
@ -2261,6 +2294,15 @@
"can_delete_stories": {
"type": "boolean"
},
"can_post_messages": {
"type": "boolean"
},
"can_edit_messages": {
"type": "boolean"
},
"can_pin_messages": {
"type": "boolean"
},
"can_manage_topics": {
"type": "boolean"
}
@ -2360,7 +2402,10 @@
"can_restrict_members",
"can_promote_members",
"can_change_info",
"can_invite_users"
"can_invite_users",
"can_post_stories",
"can_edit_stories",
"can_delete_stories"
],
"properties": {
"status": {
@ -2396,15 +2441,6 @@
"can_invite_users": {
"type": "boolean"
},
"can_post_messages": {
"type": "boolean"
},
"can_edit_messages": {
"type": "boolean"
},
"can_pin_messages": {
"type": "boolean"
},
"can_post_stories": {
"type": "boolean"
},
@ -2414,6 +2450,15 @@
"can_delete_stories": {
"type": "boolean"
},
"can_post_messages": {
"type": "boolean"
},
"can_edit_messages": {
"type": "boolean"
},
"can_pin_messages": {
"type": "boolean"
},
"can_manage_topics": {
"type": "boolean"
},
@ -11261,7 +11306,7 @@
}
},
"/setMessageReaction": {
"description": "Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. In albums, bots must react to the first message. Returns True on success.",
"description": "Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Returns True on success.",
"post": {
"requestBody": {
"required": true,
@ -12130,15 +12175,6 @@
"can_invite_users": {
"type": "boolean"
},
"can_post_messages": {
"type": "boolean"
},
"can_edit_messages": {
"type": "boolean"
},
"can_pin_messages": {
"type": "boolean"
},
"can_post_stories": {
"type": "boolean"
},
@ -12148,6 +12184,15 @@
"can_delete_stories": {
"type": "boolean"
},
"can_post_messages": {
"type": "boolean"
},
"can_edit_messages": {
"type": "boolean"
},
"can_pin_messages": {
"type": "boolean"
},
"can_manage_topics": {
"type": "boolean"
}
@ -12199,15 +12244,6 @@
"can_invite_users": {
"type": "boolean"
},
"can_post_messages": {
"type": "boolean"
},
"can_edit_messages": {
"type": "boolean"
},
"can_pin_messages": {
"type": "boolean"
},
"can_post_stories": {
"type": "boolean"
},
@ -12217,6 +12253,15 @@
"can_delete_stories": {
"type": "boolean"
},
"can_post_messages": {
"type": "boolean"
},
"can_edit_messages": {
"type": "boolean"
},
"can_pin_messages": {
"type": "boolean"
},
"can_manage_topics": {
"type": "boolean"
}
@ -12268,15 +12313,6 @@
"can_invite_users": {
"type": "boolean"
},
"can_post_messages": {
"type": "boolean"
},
"can_edit_messages": {
"type": "boolean"
},
"can_pin_messages": {
"type": "boolean"
},
"can_post_stories": {
"type": "boolean"
},
@ -12286,6 +12322,15 @@
"can_delete_stories": {
"type": "boolean"
},
"can_post_messages": {
"type": "boolean"
},
"can_edit_messages": {
"type": "boolean"
},
"can_pin_messages": {
"type": "boolean"
},
"can_manage_topics": {
"type": "boolean"
}

View File

@ -2,7 +2,7 @@ openapi: 3.0.0
info:
title: 'Telegram Bot API'
description: 'Auto-generated OpenAPI schema by TGScraper.'
version: 7.0.0
version: 7.1.0
servers:
-
url: 'https://api.telegram.org/bot{token}'
@ -272,6 +272,8 @@ components:
$ref: '#/components/schemas/ChatPermissions'
slow_mode_delay:
type: integer
unrestrict_boost_count:
type: integer
message_auto_delete_time:
type: integer
has_aggressive_anti_spam_enabled:
@ -291,6 +293,8 @@ components:
can_set_sticker_set:
type: boolean
default: true
custom_emoji_sticker_set_name:
type: string
linked_chat_id:
type: integer
location:
@ -311,6 +315,8 @@ components:
$ref: '#/components/schemas/User'
sender_chat:
$ref: '#/components/schemas/Chat'
sender_boost_count:
type: integer
date:
type: integer
chat:
@ -329,6 +335,8 @@ components:
$ref: '#/components/schemas/ExternalReplyInfo'
quote:
$ref: '#/components/schemas/TextQuote'
reply_to_story:
$ref: '#/components/schemas/Story'
via_bot:
$ref: '#/components/schemas/User'
edit_date:
@ -437,6 +445,8 @@ components:
$ref: '#/components/schemas/PassportData'
proximity_alert_triggered:
$ref: '#/components/schemas/ProximityAlertTriggered'
boost_added:
$ref: '#/components/schemas/ChatBoostAdded'
forum_topic_created:
$ref: '#/components/schemas/ForumTopicCreated'
forum_topic_edited:
@ -787,7 +797,15 @@ components:
type: integer
type: object
Story:
description: 'This object represents a message about a forwarded story in the chat. Currently holds no information.'
description: 'This object represents a story.'
required:
- chat
- id
properties:
chat:
$ref: '#/components/schemas/Chat'
id:
type: integer
type: object
Video:
description: 'This object represents a video file.'
@ -1029,6 +1047,14 @@ components:
message_auto_delete_time:
type: integer
type: object
ChatBoostAdded:
description: 'This object represents a service message about a user boosting a chat.'
required:
- boost_count
properties:
boost_count:
type: integer
type: object
ForumTopicCreated:
description: 'This object represents a service message about a new forum topic created in the chat.'
required:
@ -1512,6 +1538,9 @@ components:
- can_promote_members
- can_change_info
- can_invite_users
- can_post_stories
- can_edit_stories
- can_delete_stories
properties:
is_anonymous:
type: boolean
@ -1529,18 +1558,18 @@ components:
type: boolean
can_invite_users:
type: boolean
can_post_messages:
type: boolean
can_edit_messages:
type: boolean
can_pin_messages:
type: boolean
can_post_stories:
type: boolean
can_edit_stories:
type: boolean
can_delete_stories:
type: boolean
can_post_messages:
type: boolean
can_edit_messages:
type: boolean
can_pin_messages:
type: boolean
can_manage_topics:
type: boolean
type: object
@ -1613,6 +1642,9 @@ components:
- can_promote_members
- can_change_info
- can_invite_users
- can_post_stories
- can_edit_stories
- can_delete_stories
properties:
status:
type: string
@ -1636,18 +1668,18 @@ components:
type: boolean
can_invite_users:
type: boolean
can_post_messages:
type: boolean
can_edit_messages:
type: boolean
can_pin_messages:
type: boolean
can_post_stories:
type: boolean
can_edit_stories:
type: boolean
can_delete_stories:
type: boolean
can_post_messages:
type: boolean
can_edit_messages:
type: boolean
can_pin_messages:
type: boolean
can_manage_topics:
type: boolean
custom_title:
@ -7437,7 +7469,7 @@ paths:
default:
$ref: '#/components/responses/UnknownError'
/setMessageReaction:
description: "Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. In albums, bots must react to the first message. Returns True on success."
description: "Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Returns True on success."
post:
requestBody:
required: true
@ -7989,18 +8021,18 @@ paths:
type: boolean
can_invite_users:
type: boolean
can_post_messages:
type: boolean
can_edit_messages:
type: boolean
can_pin_messages:
type: boolean
can_post_stories:
type: boolean
can_edit_stories:
type: boolean
can_delete_stories:
type: boolean
can_post_messages:
type: boolean
can_edit_messages:
type: boolean
can_pin_messages:
type: boolean
can_manage_topics:
type: boolean
application/x-www-form-urlencoded:
@ -8034,18 +8066,18 @@ paths:
type: boolean
can_invite_users:
type: boolean
can_post_messages:
type: boolean
can_edit_messages:
type: boolean
can_pin_messages:
type: boolean
can_post_stories:
type: boolean
can_edit_stories:
type: boolean
can_delete_stories:
type: boolean
can_post_messages:
type: boolean
can_edit_messages:
type: boolean
can_pin_messages:
type: boolean
can_manage_topics:
type: boolean
multipart/form-data:
@ -8079,18 +8111,18 @@ paths:
type: boolean
can_invite_users:
type: boolean
can_post_messages:
type: boolean
can_edit_messages:
type: boolean
can_pin_messages:
type: boolean
can_post_stories:
type: boolean
can_edit_stories:
type: boolean
can_delete_stories:
type: boolean
can_post_messages:
type: boolean
can_edit_messages:
type: boolean
can_pin_messages:
type: boolean
can_manage_topics:
type: boolean
responses:

View File

@ -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": "7.0.0"
"version": "7.1.0"
},
"variable": {
"key": "token",
@ -1945,7 +1945,7 @@
{
"key": "message_id",
"disabled": false,
"description": "Required. Identifier of the target message",
"description": "Required. Identifier of the target message. If the message belongs to a media group, the reaction is set to the first non-deleted message in the group instead.",
"type": "text"
},
{
@ -1975,7 +1975,7 @@
"setMessageReaction"
]
},
"description": "Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. In albums, bots must react to the first message. Returns True on success."
"description": "Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. Returns True on success."
}
},
{
@ -2228,7 +2228,7 @@
{
"key": "can_manage_chat",
"disabled": true,
"description": "Optional. Pass True if the administrator can access the chat event log, boost list in channels, see channel members, report spam messages, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege",
"description": "Optional. Pass True if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages and ignore slow mode. Implied by any other administrator privilege.",
"type": "text"
},
{
@ -2267,6 +2267,24 @@
"description": "Optional. Pass True if the administrator can invite new users to the chat",
"type": "text"
},
{
"key": "can_post_stories",
"disabled": true,
"description": "Optional. Pass True if the administrator can post stories to the chat",
"type": "text"
},
{
"key": "can_edit_stories",
"disabled": true,
"description": "Optional. Pass True if the administrator can edit stories posted by other users",
"type": "text"
},
{
"key": "can_delete_stories",
"disabled": true,
"description": "Optional. Pass True if the administrator can delete stories posted by other users",
"type": "text"
},
{
"key": "can_post_messages",
"disabled": true,
@ -2285,24 +2303,6 @@
"description": "Optional. Pass True if the administrator can pin messages, supergroups only",
"type": "text"
},
{
"key": "can_post_stories",
"disabled": true,
"description": "Optional. Pass True if the administrator can post stories in the channel; channels only",
"type": "text"
},
{
"key": "can_edit_stories",
"disabled": true,
"description": "Optional. Pass True if the administrator can edit stories posted by other users; channels only",
"type": "text"
},
{
"key": "can_delete_stories",
"disabled": true,
"description": "Optional. Pass True if the administrator can delete stories posted by other users; channels only",
"type": "text"
},
{
"key": "can_manage_topics",
"disabled": true,