mirror of
https://github.com/Sysbot-org/tgscraper.git
synced 2024-09-01 12:05:09 +02:00
deploy: 9d0cdff59b
This commit is contained in:
parent
b4484663b5
commit
ed594e537f
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -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": "7.2.0"
|
"version": "7.3.0"
|
||||||
},
|
},
|
||||||
"servers": [
|
"servers": [
|
||||||
{
|
{
|
||||||
@ -357,6 +357,46 @@
|
|||||||
"is_forum": {
|
"is_forum": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": true
|
"default": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"ChatFullInfo": {
|
||||||
|
"description": "This object contains full information about a chat.",
|
||||||
|
"required": [
|
||||||
|
"id",
|
||||||
|
"type",
|
||||||
|
"accent_color_id",
|
||||||
|
"max_reaction_count"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"id": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"title": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"username": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"first_name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"last_name": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"is_forum": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": true
|
||||||
|
},
|
||||||
|
"accent_color_id": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"max_reaction_count": {
|
||||||
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"photo": {
|
"photo": {
|
||||||
"$ref": "#/components/schemas/ChatPhoto"
|
"$ref": "#/components/schemas/ChatPhoto"
|
||||||
@ -388,9 +428,6 @@
|
|||||||
"$ref": "#/components/schemas/ReactionType"
|
"$ref": "#/components/schemas/ReactionType"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"accent_color_id": {
|
|
||||||
"type": "integer"
|
|
||||||
},
|
|
||||||
"background_custom_emoji_id": {
|
"background_custom_emoji_id": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
@ -705,6 +742,9 @@
|
|||||||
"boost_added": {
|
"boost_added": {
|
||||||
"$ref": "#/components/schemas/ChatBoostAdded"
|
"$ref": "#/components/schemas/ChatBoostAdded"
|
||||||
},
|
},
|
||||||
|
"chat_background_set": {
|
||||||
|
"$ref": "#/components/schemas/ChatBackground"
|
||||||
|
},
|
||||||
"forum_topic_created": {
|
"forum_topic_created": {
|
||||||
"$ref": "#/components/schemas/ForumTopicCreated"
|
"$ref": "#/components/schemas/ForumTopicCreated"
|
||||||
},
|
},
|
||||||
@ -1382,12 +1422,39 @@
|
|||||||
"text": {
|
"text": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"text_entities": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/MessageEntity"
|
||||||
|
}
|
||||||
|
},
|
||||||
"voter_count": {
|
"voter_count": {
|
||||||
"type": "integer"
|
"type": "integer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"InputPollOption": {
|
||||||
|
"description": "This object contains information about one answer option in a poll to send.",
|
||||||
|
"required": [
|
||||||
|
"text"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"text": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"text_parse_mode": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"text_entities": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/MessageEntity"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"PollAnswer": {
|
"PollAnswer": {
|
||||||
"description": "This object represents an answer of a user in a non-anonymous poll.",
|
"description": "This object represents an answer of a user in a non-anonymous poll.",
|
||||||
"required": [
|
"required": [
|
||||||
@ -1432,6 +1499,12 @@
|
|||||||
"question": {
|
"question": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"question_entities": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/MessageEntity"
|
||||||
|
}
|
||||||
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
@ -1594,6 +1667,204 @@
|
|||||||
},
|
},
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"BackgroundFill": {
|
||||||
|
"description": "This object describes the way a background is filled based on the selected colors. Currently, it can be one of",
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/BackgroundFillSolid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/BackgroundFillGradient"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/BackgroundFillFreeformGradient"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"BackgroundFillSolid": {
|
||||||
|
"description": "The background is filled using the selected color.",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"color"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"color": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"BackgroundFillGradient": {
|
||||||
|
"description": "The background is a gradient fill.",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"top_color",
|
||||||
|
"bottom_color",
|
||||||
|
"rotation_angle"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"top_color": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"bottom_color": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"rotation_angle": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"BackgroundFillFreeformGradient": {
|
||||||
|
"description": "The background is a freeform gradient that rotates after every message in the chat.",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"colors"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"colors": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"BackgroundType": {
|
||||||
|
"description": "This object describes the type of a background. Currently, it can be one of",
|
||||||
|
"anyOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/BackgroundTypeFill"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/BackgroundTypeWallpaper"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/BackgroundTypePattern"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/BackgroundTypeChatTheme"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"BackgroundTypeFill": {
|
||||||
|
"description": "The background is automatically filled based on the selected colors.",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"fill",
|
||||||
|
"dark_theme_dimming"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"fill": {
|
||||||
|
"$ref": "#/components/schemas/BackgroundFill"
|
||||||
|
},
|
||||||
|
"dark_theme_dimming": {
|
||||||
|
"type": "integer"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"BackgroundTypeWallpaper": {
|
||||||
|
"description": "The background is a wallpaper in the JPEG format.",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"document",
|
||||||
|
"dark_theme_dimming"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"document": {
|
||||||
|
"$ref": "#/components/schemas/Document"
|
||||||
|
},
|
||||||
|
"dark_theme_dimming": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"is_blurred": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": true
|
||||||
|
},
|
||||||
|
"is_moving": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"BackgroundTypePattern": {
|
||||||
|
"description": "The background is a PNG or TGV (gzipped subset of SVG with MIME type “application/x-tgwallpattern”) pattern to be combined with the background fill chosen by the user.",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"document",
|
||||||
|
"fill",
|
||||||
|
"intensity"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"document": {
|
||||||
|
"$ref": "#/components/schemas/Document"
|
||||||
|
},
|
||||||
|
"fill": {
|
||||||
|
"$ref": "#/components/schemas/BackgroundFill"
|
||||||
|
},
|
||||||
|
"intensity": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
|
"is_inverted": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": true
|
||||||
|
},
|
||||||
|
"is_moving": {
|
||||||
|
"type": "boolean",
|
||||||
|
"default": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"BackgroundTypeChatTheme": {
|
||||||
|
"description": "The background is taken directly from a built-in chat theme.",
|
||||||
|
"required": [
|
||||||
|
"type",
|
||||||
|
"theme_name"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"theme_name": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
|
"ChatBackground": {
|
||||||
|
"description": "This object represents a chat background.",
|
||||||
|
"required": [
|
||||||
|
"type"
|
||||||
|
],
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"$ref": "#/components/schemas/BackgroundType"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
"ForumTopicCreated": {
|
"ForumTopicCreated": {
|
||||||
"description": "This object represents a service message about a new forum topic created in the chat.",
|
"description": "This object represents a service message about a new forum topic created in the chat.",
|
||||||
"required": [
|
"required": [
|
||||||
@ -1642,7 +1913,7 @@
|
|||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"SharedUser": {
|
"SharedUser": {
|
||||||
"description": "This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUser button.",
|
"description": "This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUsers button.",
|
||||||
"required": [
|
"required": [
|
||||||
"user_id"
|
"user_id"
|
||||||
],
|
],
|
||||||
@ -1967,7 +2238,7 @@
|
|||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"ReplyKeyboardMarkup": {
|
"ReplyKeyboardMarkup": {
|
||||||
"description": "This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).",
|
"description": "This object represents a custom keyboard with reply options (see Introduction to bots for details and examples). Not supported in channels and for messages sent on behalf of a Telegram Business account.",
|
||||||
"required": [
|
"required": [
|
||||||
"keyboard"
|
"keyboard"
|
||||||
],
|
],
|
||||||
@ -2061,7 +2332,7 @@
|
|||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"KeyboardButtonRequestChat": {
|
"KeyboardButtonRequestChat": {
|
||||||
"description": "This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the сhat if appropriate More about requesting chats »",
|
"description": "This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the chat if appropriate. More about requesting chats ».",
|
||||||
"required": [
|
"required": [
|
||||||
"request_id",
|
"request_id",
|
||||||
"chat_is_channel"
|
"chat_is_channel"
|
||||||
@ -2113,7 +2384,7 @@
|
|||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"ReplyKeyboardRemove": {
|
"ReplyKeyboardRemove": {
|
||||||
"description": "Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup).",
|
"description": "Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup). Not supported in channels and for messages sent on behalf of a Telegram Business account.",
|
||||||
"required": [
|
"required": [
|
||||||
"remove_keyboard"
|
"remove_keyboard"
|
||||||
],
|
],
|
||||||
@ -2260,7 +2531,7 @@
|
|||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"ForceReply": {
|
"ForceReply": {
|
||||||
"description": "Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode.",
|
"description": "Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode. Not supported in channels and for messages sent on behalf of a Telegram Business account.",
|
||||||
"required": [
|
"required": [
|
||||||
"force_reply"
|
"force_reply"
|
||||||
],
|
],
|
||||||
@ -2434,6 +2705,9 @@
|
|||||||
"invite_link": {
|
"invite_link": {
|
||||||
"$ref": "#/components/schemas/ChatInviteLink"
|
"$ref": "#/components/schemas/ChatInviteLink"
|
||||||
},
|
},
|
||||||
|
"via_join_request": {
|
||||||
|
"type": "boolean"
|
||||||
|
},
|
||||||
"via_chat_folder_invite_link": {
|
"via_chat_folder_invite_link": {
|
||||||
"type": "boolean"
|
"type": "boolean"
|
||||||
}
|
}
|
||||||
@ -2776,7 +3050,7 @@
|
|||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"Birthdate": {
|
"Birthdate": {
|
||||||
"description": "",
|
"description": "Describes the birthdate of a user.",
|
||||||
"required": [
|
"required": [
|
||||||
"day",
|
"day",
|
||||||
"month"
|
"month"
|
||||||
@ -2795,7 +3069,7 @@
|
|||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"BusinessIntro": {
|
"BusinessIntro": {
|
||||||
"description": "",
|
"description": "Contains information about the start page settings of a Telegram Business account.",
|
||||||
"properties": {
|
"properties": {
|
||||||
"title": {
|
"title": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@ -2810,7 +3084,7 @@
|
|||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"BusinessLocation": {
|
"BusinessLocation": {
|
||||||
"description": "",
|
"description": "Contains information about the location of a Telegram Business account.",
|
||||||
"required": [
|
"required": [
|
||||||
"address"
|
"address"
|
||||||
],
|
],
|
||||||
@ -2825,7 +3099,7 @@
|
|||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"BusinessOpeningHoursInterval": {
|
"BusinessOpeningHoursInterval": {
|
||||||
"description": "",
|
"description": "Describes an interval of time during which a business is open.",
|
||||||
"required": [
|
"required": [
|
||||||
"opening_minute",
|
"opening_minute",
|
||||||
"closing_minute"
|
"closing_minute"
|
||||||
@ -2841,7 +3115,7 @@
|
|||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
"BusinessOpeningHours": {
|
"BusinessOpeningHours": {
|
||||||
"description": "",
|
"description": "Describes the opening hours of a business.",
|
||||||
"required": [
|
"required": [
|
||||||
"time_zone_name",
|
"time_zone_name",
|
||||||
"opening_hours"
|
"opening_hours"
|
||||||
@ -9327,7 +9601,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/sendVoice": {
|
"/sendVoice": {
|
||||||
"description": "Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.",
|
"description": "Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in .M4A format (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.",
|
||||||
"post": {
|
"post": {
|
||||||
"requestBody": {
|
"requestBody": {
|
||||||
"required": true,
|
"required": true,
|
||||||
@ -10981,10 +11255,19 @@
|
|||||||
"question": {
|
"question": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"question_parse_mode": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"question_entities": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/MessageEntity"
|
||||||
|
}
|
||||||
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"$ref": "#/components/schemas/InputPollOption"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"is_anonymous": {
|
"is_anonymous": {
|
||||||
@ -11078,10 +11361,19 @@
|
|||||||
"question": {
|
"question": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"question_parse_mode": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"question_entities": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/MessageEntity"
|
||||||
|
}
|
||||||
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"$ref": "#/components/schemas/InputPollOption"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"is_anonymous": {
|
"is_anonymous": {
|
||||||
@ -11175,10 +11467,19 @@
|
|||||||
"question": {
|
"question": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"question_parse_mode": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"question_entities": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"$ref": "#/components/schemas/MessageEntity"
|
||||||
|
}
|
||||||
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"$ref": "#/components/schemas/InputPollOption"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"is_anonymous": {
|
"is_anonymous": {
|
||||||
@ -15133,7 +15434,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/getChat": {
|
"/getChat": {
|
||||||
"description": "Use this method to get up to date information about the chat. Returns a Chat object on success.",
|
"description": "Use this method to get up-to-date information about the chat. Returns a ChatFullInfo object on success.",
|
||||||
"post": {
|
"post": {
|
||||||
"requestBody": {
|
"requestBody": {
|
||||||
"required": true,
|
"required": true,
|
||||||
@ -15214,7 +15515,7 @@
|
|||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"result": {
|
"result": {
|
||||||
"$ref": "#/components/schemas/Chat"
|
"$ref": "#/components/schemas/ChatFullInfo"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -19652,6 +19953,9 @@
|
|||||||
"longitude": {
|
"longitude": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
|
"live_period": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
"horizontal_accuracy": {
|
"horizontal_accuracy": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
@ -19697,6 +20001,9 @@
|
|||||||
"longitude": {
|
"longitude": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
|
"live_period": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
"horizontal_accuracy": {
|
"horizontal_accuracy": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
@ -19742,6 +20049,9 @@
|
|||||||
"longitude": {
|
"longitude": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
|
"live_period": {
|
||||||
|
"type": "integer"
|
||||||
|
},
|
||||||
"horizontal_accuracy": {
|
"horizontal_accuracy": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
},
|
||||||
|
@ -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: 7.2.0
|
version: 7.3.0
|
||||||
servers:
|
servers:
|
||||||
-
|
-
|
||||||
url: 'https://api.telegram.org/bot{token}'
|
url: 'https://api.telegram.org/bot{token}'
|
||||||
@ -236,6 +236,34 @@ components:
|
|||||||
is_forum:
|
is_forum:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
type: object
|
||||||
|
ChatFullInfo:
|
||||||
|
description: 'This object contains full information about a chat.'
|
||||||
|
required:
|
||||||
|
- id
|
||||||
|
- type
|
||||||
|
- accent_color_id
|
||||||
|
- max_reaction_count
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: integer
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
|
username:
|
||||||
|
type: string
|
||||||
|
first_name:
|
||||||
|
type: string
|
||||||
|
last_name:
|
||||||
|
type: string
|
||||||
|
is_forum:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
accent_color_id:
|
||||||
|
type: integer
|
||||||
|
max_reaction_count:
|
||||||
|
type: integer
|
||||||
photo:
|
photo:
|
||||||
$ref: '#/components/schemas/ChatPhoto'
|
$ref: '#/components/schemas/ChatPhoto'
|
||||||
active_usernames:
|
active_usernames:
|
||||||
@ -256,8 +284,6 @@ components:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
$ref: '#/components/schemas/ReactionType'
|
$ref: '#/components/schemas/ReactionType'
|
||||||
accent_color_id:
|
|
||||||
type: integer
|
|
||||||
background_custom_emoji_id:
|
background_custom_emoji_id:
|
||||||
type: string
|
type: string
|
||||||
profile_accent_color_id:
|
profile_accent_color_id:
|
||||||
@ -474,6 +500,8 @@ components:
|
|||||||
$ref: '#/components/schemas/ProximityAlertTriggered'
|
$ref: '#/components/schemas/ProximityAlertTriggered'
|
||||||
boost_added:
|
boost_added:
|
||||||
$ref: '#/components/schemas/ChatBoostAdded'
|
$ref: '#/components/schemas/ChatBoostAdded'
|
||||||
|
chat_background_set:
|
||||||
|
$ref: '#/components/schemas/ChatBackground'
|
||||||
forum_topic_created:
|
forum_topic_created:
|
||||||
$ref: '#/components/schemas/ForumTopicCreated'
|
$ref: '#/components/schemas/ForumTopicCreated'
|
||||||
forum_topic_edited:
|
forum_topic_edited:
|
||||||
@ -937,9 +965,27 @@ components:
|
|||||||
properties:
|
properties:
|
||||||
text:
|
text:
|
||||||
type: string
|
type: string
|
||||||
|
text_entities:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/MessageEntity'
|
||||||
voter_count:
|
voter_count:
|
||||||
type: integer
|
type: integer
|
||||||
type: object
|
type: object
|
||||||
|
InputPollOption:
|
||||||
|
description: 'This object contains information about one answer option in a poll to send.'
|
||||||
|
required:
|
||||||
|
- text
|
||||||
|
properties:
|
||||||
|
text:
|
||||||
|
type: string
|
||||||
|
text_parse_mode:
|
||||||
|
type: string
|
||||||
|
text_entities:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/MessageEntity'
|
||||||
|
type: object
|
||||||
PollAnswer:
|
PollAnswer:
|
||||||
description: 'This object represents an answer of a user in a non-anonymous poll.'
|
description: 'This object represents an answer of a user in a non-anonymous poll.'
|
||||||
required:
|
required:
|
||||||
@ -973,6 +1019,10 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
question:
|
question:
|
||||||
type: string
|
type: string
|
||||||
|
question_entities:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/MessageEntity'
|
||||||
options:
|
options:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
@ -1082,6 +1132,143 @@ components:
|
|||||||
boost_count:
|
boost_count:
|
||||||
type: integer
|
type: integer
|
||||||
type: object
|
type: object
|
||||||
|
BackgroundFill:
|
||||||
|
description: 'This object describes the way a background is filled based on the selected colors. Currently, it can be one of'
|
||||||
|
anyOf:
|
||||||
|
-
|
||||||
|
$ref: '#/components/schemas/BackgroundFillSolid'
|
||||||
|
-
|
||||||
|
$ref: '#/components/schemas/BackgroundFillGradient'
|
||||||
|
-
|
||||||
|
$ref: '#/components/schemas/BackgroundFillFreeformGradient'
|
||||||
|
BackgroundFillSolid:
|
||||||
|
description: 'The background is filled using the selected color.'
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- color
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
color:
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
BackgroundFillGradient:
|
||||||
|
description: 'The background is a gradient fill.'
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- top_color
|
||||||
|
- bottom_color
|
||||||
|
- rotation_angle
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
top_color:
|
||||||
|
type: integer
|
||||||
|
bottom_color:
|
||||||
|
type: integer
|
||||||
|
rotation_angle:
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
BackgroundFillFreeformGradient:
|
||||||
|
description: 'The background is a freeform gradient that rotates after every message in the chat.'
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- colors
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
colors:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
BackgroundType:
|
||||||
|
description: 'This object describes the type of a background. Currently, it can be one of'
|
||||||
|
anyOf:
|
||||||
|
-
|
||||||
|
$ref: '#/components/schemas/BackgroundTypeFill'
|
||||||
|
-
|
||||||
|
$ref: '#/components/schemas/BackgroundTypeWallpaper'
|
||||||
|
-
|
||||||
|
$ref: '#/components/schemas/BackgroundTypePattern'
|
||||||
|
-
|
||||||
|
$ref: '#/components/schemas/BackgroundTypeChatTheme'
|
||||||
|
BackgroundTypeFill:
|
||||||
|
description: 'The background is automatically filled based on the selected colors.'
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- fill
|
||||||
|
- dark_theme_dimming
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
fill:
|
||||||
|
$ref: '#/components/schemas/BackgroundFill'
|
||||||
|
dark_theme_dimming:
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
|
BackgroundTypeWallpaper:
|
||||||
|
description: 'The background is a wallpaper in the JPEG format.'
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- document
|
||||||
|
- dark_theme_dimming
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
document:
|
||||||
|
$ref: '#/components/schemas/Document'
|
||||||
|
dark_theme_dimming:
|
||||||
|
type: integer
|
||||||
|
is_blurred:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
is_moving:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
type: object
|
||||||
|
BackgroundTypePattern:
|
||||||
|
description: 'The background is a PNG or TGV (gzipped subset of SVG with MIME type “application/x-tgwallpattern”) pattern to be combined with the background fill chosen by the user.'
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- document
|
||||||
|
- fill
|
||||||
|
- intensity
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
document:
|
||||||
|
$ref: '#/components/schemas/Document'
|
||||||
|
fill:
|
||||||
|
$ref: '#/components/schemas/BackgroundFill'
|
||||||
|
intensity:
|
||||||
|
type: integer
|
||||||
|
is_inverted:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
is_moving:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
type: object
|
||||||
|
BackgroundTypeChatTheme:
|
||||||
|
description: 'The background is taken directly from a built-in chat theme.'
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
- theme_name
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
theme_name:
|
||||||
|
type: string
|
||||||
|
type: object
|
||||||
|
ChatBackground:
|
||||||
|
description: 'This object represents a chat background.'
|
||||||
|
required:
|
||||||
|
- type
|
||||||
|
properties:
|
||||||
|
type:
|
||||||
|
$ref: '#/components/schemas/BackgroundType'
|
||||||
|
type: object
|
||||||
ForumTopicCreated:
|
ForumTopicCreated:
|
||||||
description: 'This object represents a service message about a new forum topic created in the chat.'
|
description: 'This object represents a service message about a new forum topic created in the chat.'
|
||||||
required:
|
required:
|
||||||
@ -1116,7 +1303,7 @@ components:
|
|||||||
description: 'This object represents a service message about General forum topic unhidden in the chat. Currently holds no information.'
|
description: 'This object represents a service message about General forum topic unhidden in the chat. Currently holds no information.'
|
||||||
type: object
|
type: object
|
||||||
SharedUser:
|
SharedUser:
|
||||||
description: 'This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUser button.'
|
description: 'This object contains information about a user that was shared with the bot using a KeyboardButtonRequestUsers button.'
|
||||||
required:
|
required:
|
||||||
- user_id
|
- user_id
|
||||||
properties:
|
properties:
|
||||||
@ -1338,7 +1525,7 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
ReplyKeyboardMarkup:
|
ReplyKeyboardMarkup:
|
||||||
description: 'This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).'
|
description: 'This object represents a custom keyboard with reply options (see Introduction to bots for details and examples). Not supported in channels and for messages sent on behalf of a Telegram Business account.'
|
||||||
required:
|
required:
|
||||||
- keyboard
|
- keyboard
|
||||||
properties:
|
properties:
|
||||||
@ -1401,7 +1588,7 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
KeyboardButtonRequestChat:
|
KeyboardButtonRequestChat:
|
||||||
description: 'This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the сhat if appropriate More about requesting chats »'
|
description: 'This object defines the criteria used to request a suitable chat. Information about the selected chat will be shared with the bot when the corresponding button is pressed. The bot will be granted requested rights in the chat if appropriate. More about requesting chats ».'
|
||||||
required:
|
required:
|
||||||
- request_id
|
- request_id
|
||||||
- chat_is_channel
|
- chat_is_channel
|
||||||
@ -1436,7 +1623,7 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
ReplyKeyboardRemove:
|
ReplyKeyboardRemove:
|
||||||
description: 'Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup).'
|
description: 'Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup). Not supported in channels and for messages sent on behalf of a Telegram Business account.'
|
||||||
required:
|
required:
|
||||||
- remove_keyboard
|
- remove_keyboard
|
||||||
properties:
|
properties:
|
||||||
@ -1535,7 +1722,7 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
ForceReply:
|
ForceReply:
|
||||||
description: "Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode."
|
description: "Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot's message and tapped 'Reply'). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mode. Not supported in channels and for messages sent on behalf of a Telegram Business account."
|
||||||
required:
|
required:
|
||||||
- force_reply
|
- force_reply
|
||||||
properties:
|
properties:
|
||||||
@ -1659,6 +1846,8 @@ components:
|
|||||||
$ref: '#/components/schemas/ChatMember'
|
$ref: '#/components/schemas/ChatMember'
|
||||||
invite_link:
|
invite_link:
|
||||||
$ref: '#/components/schemas/ChatInviteLink'
|
$ref: '#/components/schemas/ChatInviteLink'
|
||||||
|
via_join_request:
|
||||||
|
type: boolean
|
||||||
via_chat_folder_invite_link:
|
via_chat_folder_invite_link:
|
||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
@ -1899,7 +2088,7 @@ components:
|
|||||||
type: boolean
|
type: boolean
|
||||||
type: object
|
type: object
|
||||||
Birthdate:
|
Birthdate:
|
||||||
description: ''
|
description: 'Describes the birthdate of a user.'
|
||||||
required:
|
required:
|
||||||
- day
|
- day
|
||||||
- month
|
- month
|
||||||
@ -1912,7 +2101,7 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
type: object
|
type: object
|
||||||
BusinessIntro:
|
BusinessIntro:
|
||||||
description: ''
|
description: 'Contains information about the start page settings of a Telegram Business account.'
|
||||||
properties:
|
properties:
|
||||||
title:
|
title:
|
||||||
type: string
|
type: string
|
||||||
@ -1922,7 +2111,7 @@ components:
|
|||||||
$ref: '#/components/schemas/Sticker'
|
$ref: '#/components/schemas/Sticker'
|
||||||
type: object
|
type: object
|
||||||
BusinessLocation:
|
BusinessLocation:
|
||||||
description: ''
|
description: 'Contains information about the location of a Telegram Business account.'
|
||||||
required:
|
required:
|
||||||
- address
|
- address
|
||||||
properties:
|
properties:
|
||||||
@ -1932,7 +2121,7 @@ components:
|
|||||||
$ref: '#/components/schemas/Location'
|
$ref: '#/components/schemas/Location'
|
||||||
type: object
|
type: object
|
||||||
BusinessOpeningHoursInterval:
|
BusinessOpeningHoursInterval:
|
||||||
description: ''
|
description: 'Describes an interval of time during which a business is open.'
|
||||||
required:
|
required:
|
||||||
- opening_minute
|
- opening_minute
|
||||||
- closing_minute
|
- closing_minute
|
||||||
@ -1943,7 +2132,7 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
type: object
|
type: object
|
||||||
BusinessOpeningHours:
|
BusinessOpeningHours:
|
||||||
description: ''
|
description: 'Describes the opening hours of a business.'
|
||||||
required:
|
required:
|
||||||
- time_zone_name
|
- time_zone_name
|
||||||
- opening_hours
|
- opening_hours
|
||||||
@ -6218,7 +6407,7 @@ paths:
|
|||||||
default:
|
default:
|
||||||
$ref: '#/components/responses/UnknownError'
|
$ref: '#/components/responses/UnknownError'
|
||||||
/sendVoice:
|
/sendVoice:
|
||||||
description: 'Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.'
|
description: 'Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in .M4A format (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future.'
|
||||||
post:
|
post:
|
||||||
requestBody:
|
requestBody:
|
||||||
required: true
|
required: true
|
||||||
@ -7276,10 +7465,16 @@ paths:
|
|||||||
type: integer
|
type: integer
|
||||||
question:
|
question:
|
||||||
type: string
|
type: string
|
||||||
|
question_parse_mode:
|
||||||
|
type: string
|
||||||
|
question_entities:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/MessageEntity'
|
||||||
options:
|
options:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
$ref: '#/components/schemas/InputPollOption'
|
||||||
is_anonymous:
|
is_anonymous:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
@ -7340,10 +7535,16 @@ paths:
|
|||||||
type: integer
|
type: integer
|
||||||
question:
|
question:
|
||||||
type: string
|
type: string
|
||||||
|
question_parse_mode:
|
||||||
|
type: string
|
||||||
|
question_entities:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/MessageEntity'
|
||||||
options:
|
options:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
$ref: '#/components/schemas/InputPollOption'
|
||||||
is_anonymous:
|
is_anonymous:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
@ -7404,10 +7605,16 @@ paths:
|
|||||||
type: integer
|
type: integer
|
||||||
question:
|
question:
|
||||||
type: string
|
type: string
|
||||||
|
question_parse_mode:
|
||||||
|
type: string
|
||||||
|
question_entities:
|
||||||
|
type: array
|
||||||
|
items:
|
||||||
|
$ref: '#/components/schemas/MessageEntity'
|
||||||
options:
|
options:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
$ref: '#/components/schemas/InputPollOption'
|
||||||
is_anonymous:
|
is_anonymous:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
@ -9880,7 +10087,7 @@ paths:
|
|||||||
default:
|
default:
|
||||||
$ref: '#/components/responses/UnknownError'
|
$ref: '#/components/responses/UnknownError'
|
||||||
/getChat:
|
/getChat:
|
||||||
description: 'Use this method to get up to date information about the chat. Returns a Chat object on success.'
|
description: 'Use this method to get up-to-date information about the chat. Returns a ChatFullInfo object on success.'
|
||||||
post:
|
post:
|
||||||
requestBody:
|
requestBody:
|
||||||
required: true
|
required: true
|
||||||
@ -9934,7 +10141,7 @@ paths:
|
|||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
result:
|
result:
|
||||||
$ref: '#/components/schemas/Chat'
|
$ref: '#/components/schemas/ChatFullInfo'
|
||||||
400:
|
400:
|
||||||
$ref: '#/components/responses/BadRequest'
|
$ref: '#/components/responses/BadRequest'
|
||||||
401:
|
401:
|
||||||
@ -12682,6 +12889,8 @@ paths:
|
|||||||
type: number
|
type: number
|
||||||
longitude:
|
longitude:
|
||||||
type: number
|
type: number
|
||||||
|
live_period:
|
||||||
|
type: integer
|
||||||
horizontal_accuracy:
|
horizontal_accuracy:
|
||||||
type: number
|
type: number
|
||||||
heading:
|
heading:
|
||||||
@ -12711,6 +12920,8 @@ paths:
|
|||||||
type: number
|
type: number
|
||||||
longitude:
|
longitude:
|
||||||
type: number
|
type: number
|
||||||
|
live_period:
|
||||||
|
type: integer
|
||||||
horizontal_accuracy:
|
horizontal_accuracy:
|
||||||
type: number
|
type: number
|
||||||
heading:
|
heading:
|
||||||
@ -12740,6 +12951,8 @@ paths:
|
|||||||
type: number
|
type: number
|
||||||
longitude:
|
longitude:
|
||||||
type: number
|
type: number
|
||||||
|
live_period:
|
||||||
|
type: integer
|
||||||
horizontal_accuracy:
|
horizontal_accuracy:
|
||||||
type: number
|
type: number
|
||||||
heading:
|
heading:
|
||||||
|
@ -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": "7.2.0"
|
"version": "7.3.0"
|
||||||
},
|
},
|
||||||
"variable": {
|
"variable": {
|
||||||
"key": "token",
|
"key": "token",
|
||||||
@ -327,7 +327,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
|
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -540,7 +540,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.",
|
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -704,7 +704,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
|
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -819,7 +819,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
|
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -922,7 +922,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
|
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -1049,7 +1049,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
|
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -1170,7 +1170,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
|
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -1267,7 +1267,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
|
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -1285,7 +1285,7 @@
|
|||||||
"sendVoice"
|
"sendVoice"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future."
|
"description": "Use this method to send audio files, if you want Telegram clients to display the file as a playable voice message. For this to work, your audio must be in an .OGG file encoded with OPUS, or in .MP3 format, or in .M4A format (other formats may be sent as Audio or Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size, this limit may be changed in the future."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1358,7 +1358,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
|
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -1492,7 +1492,7 @@
|
|||||||
{
|
{
|
||||||
"key": "live_period",
|
"key": "live_period",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Period in seconds for which the location will be updated (see Live Locations, should be between 60 and 86400.",
|
"description": "Optional. Period in seconds during which the location will be updated (see Live Locations, should be between 60 and 86400, or 0x7FFFFFFF for live locations that can be edited indefinitely.",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1528,7 +1528,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
|
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -1643,7 +1643,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
|
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -1734,7 +1734,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
|
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -1786,10 +1786,22 @@
|
|||||||
"description": "Required. Poll question, 1-300 characters",
|
"description": "Required. Poll question, 1-300 characters",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"key": "question_parse_mode",
|
||||||
|
"disabled": true,
|
||||||
|
"description": "Optional. Mode for parsing entities in the question. See formatting options for more details. Currently, only custom emoji entities are allowed",
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"key": "question_entities",
|
||||||
|
"disabled": true,
|
||||||
|
"description": "Optional. A JSON-serialized list of special entities that appear in the poll question. It can be specified instead of question_parse_mode",
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"key": "options",
|
"key": "options",
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
"description": "Required. A JSON-serialized list of answer options, 2-10 strings 1-100 characters each",
|
"description": "Required. A JSON-serialized list of 2-10 answer options",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1833,7 +1845,7 @@
|
|||||||
{
|
{
|
||||||
"key": "explanation_entities",
|
"key": "explanation_entities",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. A JSON-serialized list of special entities that appear in the poll explanation, which can be specified instead of parse_mode",
|
"description": "Optional. A JSON-serialized list of special entities that appear in the poll explanation. It can be specified instead of explanation_parse_mode",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1875,7 +1887,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
|
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -1949,7 +1961,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account",
|
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -2366,7 +2378,7 @@
|
|||||||
{
|
{
|
||||||
"key": "can_edit_stories",
|
"key": "can_edit_stories",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Pass True if the administrator can edit stories posted by other users",
|
"description": "Optional. Pass True if the administrator can edit stories posted by other users, post stories to the chat page, pin chat stories, and access the chat's story archive",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -3147,7 +3159,7 @@
|
|||||||
"getChat"
|
"getChat"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"description": "Use this method to get up to date information about the chat. Returns a Chat object on success."
|
"description": "Use this method to get up-to-date information about the chat. Returns a ChatFullInfo object on success."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -4595,6 +4607,12 @@
|
|||||||
"description": "Required. Longitude of new location",
|
"description": "Required. Longitude of new location",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"key": "live_period",
|
||||||
|
"disabled": true,
|
||||||
|
"description": "Optional. New period in seconds during which the location can be updated, starting from the message send date. If 0x7FFFFFFF is specified, then the location can be updated forever. Otherwise, the new value must not exceed the current live_period by more than a day, and the live location expiration date must remain within the next 90 days. If not specified, then live_period remains unchanged",
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"key": "horizontal_accuracy",
|
"key": "horizontal_accuracy",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
@ -4910,7 +4928,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. Not supported for messages sent on behalf of a business account.",
|
"description": "Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove a reply keyboard or to force a reply from the user",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -6134,7 +6152,7 @@
|
|||||||
{
|
{
|
||||||
"key": "reply_markup",
|
"key": "reply_markup",
|
||||||
"disabled": true,
|
"disabled": true,
|
||||||
"description": "Optional. A JSON-serialized object for an inline keyboard. If empty, one 'Play game_title' button will be shown. If not empty, the first button must launch the game. Not supported for messages sent on behalf of a business account.",
|
"description": "Optional. A JSON-serialized object for an inline keyboard. If empty, one 'Play game_title' button will be shown. If not empty, the first button must launch the game.",
|
||||||
"type": "text"
|
"type": "text"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user