Skip to content

Commit

Permalink
deploy: 917dfb1
Browse files Browse the repository at this point in the history
  • Loading branch information
sys-001 committed Aug 18, 2023
1 parent 7d2a82e commit 5ac9e9d
Show file tree
Hide file tree
Showing 5 changed files with 340 additions and 15 deletions.
58 changes: 53 additions & 5 deletions schemas/botapi.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "6.7.0",
"version": "6.8.0",
"types": [
{
"name": "Update",
Expand Down Expand Up @@ -389,6 +389,14 @@
"optional": true,
"description": "Optional. Custom emoji identifier of emoji status of the other party in a private chat. Returned only in getChat."
},
{
"name": "emoji_status_expiration_date",
"types": [
"int"
],
"optional": true,
"description": "Optional. Expiration date of the emoji status of the other party in a private chat, if any. Returned only in getChat."
},
{
"name": "bio",
"types": [
Expand Down Expand Up @@ -767,6 +775,14 @@
"optional": true,
"description": "Optional. Message is a sticker, information about the sticker"
},
{
"name": "story",
"types": [
"Story"
],
"optional": true,
"description": "Optional. Message is a forwarded story"
},
{
"name": "video",
"types": [
Expand Down Expand Up @@ -1465,6 +1481,12 @@
],
"extended_by": []
},
{
"name": "Story",
"description": "This object represents a message about a forwarded story in the chat. Currently holds no information.",
"fields": [],
"extended_by": []
},
{
"name": "Video",
"description": "This object represents a video file.",
Expand Down Expand Up @@ -1751,21 +1773,29 @@
"optional": false,
"description": "Unique poll identifier"
},
{
"name": "voter_chat",
"types": [
"Chat"
],
"optional": true,
"description": "Optional. The chat that changed the answer to the poll, if the voter is anonymous"
},
{
"name": "user",
"types": [
"User"
],
"optional": false,
"description": "The user, who changed the answer to the poll"
"optional": true,
"description": "Optional. The user that changed the answer to the poll, if the voter isn't anonymous"
},
{
"name": "option_ids",
"types": [
"Array<int>"
],
"optional": false,
"description": "0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote."
"description": "0-based identifiers of chosen answer options. May be empty if the vote was retracted."
}
],
"extended_by": []
Expand Down Expand Up @@ -2662,7 +2692,7 @@
"string"
],
"optional": true,
"description": "Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted.Note: This offers an easy way for users to start using your bot in inline mode when they are currently in a private chat with it. Especially useful when combined with switch_pm… actions - in this case the user will be automatically returned to the chat they switched from, skipping the chat selection screen."
"description": "Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted."
},
{
"name": "switch_inline_query_current_chat",
Expand Down Expand Up @@ -11513,6 +11543,24 @@
"bool"
]
},
{
"name": "unpinAllGeneralForumTopicMessages",
"description": "Use this method to clear the list of pinned messages in a General forum topic. The bot must be an administrator in the chat for this to work and must have the can_pin_messages administrator right in the supergroup. Returns True on success.",
"fields": [
{
"name": "chat_id",
"types": [
"int",
"string"
],
"optional": false,
"description": "Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)"
}
],
"return_types": [
"bool"
]
},
{
"name": "answerCallbackQuery",
"description": "Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned.",
Expand Down
46 changes: 41 additions & 5 deletions schemas/botapi.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 6.7.0
version: 6.8.0
types:
-
name: Update
Expand Down Expand Up @@ -292,6 +292,12 @@ types:
- string
optional: true
description: 'Optional. Custom emoji identifier of emoji status of the other party in a private chat. Returned only in getChat.'
-
name: emoji_status_expiration_date
types:
- int
optional: true
description: 'Optional. Expiration date of the emoji status of the other party in a private chat, if any. Returned only in getChat.'
-
name: bio
types:
Expand Down Expand Up @@ -578,6 +584,12 @@ types:
- Sticker
optional: true
description: 'Optional. Message is a sticker, information about the sticker'
-
name: story
types:
- Story
optional: true
description: 'Optional. Message is a forwarded story'
-
name: video
types:
Expand Down Expand Up @@ -1100,6 +1112,11 @@ types:
optional: true
description: 'Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.'
extended_by: { }
-
name: Story
description: 'This object represents a message about a forwarded story in the chat. Currently holds no information.'
fields: { }
extended_by: { }
-
name: Video
description: 'This object represents a video file.'
Expand Down Expand Up @@ -1314,18 +1331,24 @@ types:
- string
optional: false
description: 'Unique poll identifier'
-
name: voter_chat
types:
- Chat
optional: true
description: 'Optional. The chat that changed the answer to the poll, if the voter is anonymous'
-
name: user
types:
- User
optional: false
description: 'The user, who changed the answer to the poll'
optional: true
description: "Optional. The user that changed the answer to the poll, if the voter isn't anonymous"
-
name: option_ids
types:
- Array<int>
optional: false
description: '0-based identifiers of answer options, chosen by the user. May be empty if the user retracted their vote.'
description: '0-based identifiers of chosen answer options. May be empty if the vote was retracted.'
extended_by: { }
-
name: Poll
Expand Down Expand Up @@ -1995,7 +2018,7 @@ types:
types:
- string
optional: true
description: "Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted.Note: This offers an easy way for users to start using your bot in inline mode when they are currently in a private chat with it. Especially useful when combined with switch_pm… actions - in this case the user will be automatically returned to the chat they switched from, skipping the chat selection screen."
description: "Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted."
-
name: switch_inline_query_current_chat
types:
Expand Down Expand Up @@ -8619,6 +8642,19 @@ methods:
description: 'Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)'
return_types:
- bool
-
name: unpinAllGeneralForumTopicMessages
description: 'Use this method to clear the list of pinned messages in a General forum topic. The bot must be an administrator in the chat for this to work and must have the can_pin_messages administrator right in the supergroup. Returns True on success.'
fields:
-
name: chat_id
types:
- int
- string
optional: false
description: 'Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)'
return_types:
- bool
-
name: answerCallbackQuery
description: 'Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned.'
Expand Down
134 changes: 132 additions & 2 deletions schemas/botapi_openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"info": {
"title": "Telegram Bot API",
"description": "Auto-generated OpenAPI schema by TGScraper.",
"version": "6.7.0"
"version": "6.8.0"
},
"servers": [
{
Expand Down Expand Up @@ -343,6 +343,9 @@
"emoji_status_custom_emoji_id": {
"type": "string"
},
"emoji_status_expiration_date": {
"type": "integer"
},
"bio": {
"type": "string"
},
Expand Down Expand Up @@ -506,6 +509,9 @@
"sticker": {
"$ref": "#/components/schemas/Sticker"
},
"story": {
"$ref": "#/components/schemas/Story"
},
"video": {
"$ref": "#/components/schemas/Video"
},
Expand Down Expand Up @@ -832,6 +838,10 @@
},
"type": "object"
},
"Story": {
"description": "This object represents a message about a forwarded story in the chat. Currently holds no information.",
"type": "object"
},
"Video": {
"description": "This object represents a video file.",
"required": [
Expand Down Expand Up @@ -989,13 +999,15 @@
"description": "This object represents an answer of a user in a non-anonymous poll.",
"required": [
"poll_id",
"user",
"option_ids"
],
"properties": {
"poll_id": {
"type": "string"
},
"voter_chat": {
"$ref": "#/components/schemas/Chat"
},
"user": {
"$ref": "#/components/schemas/User"
},
Expand Down Expand Up @@ -15706,6 +15718,124 @@
}
}
},
"/unpinAllGeneralForumTopicMessages": {
"description": "Use this method to clear the list of pinned messages in a General forum topic. The bot must be an administrator in the chat for this to work and must have the can_pin_messages administrator right in the supergroup. Returns True on success.",
"post": {
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"chat_id"
],
"properties": {
"chat_id": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
}
}
}
},
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"required": [
"chat_id"
],
"properties": {
"chat_id": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
}
}
}
},
"multipart/form-data": {
"schema": {
"type": "object",
"required": [
"chat_id"
],
"properties": {
"chat_id": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
}
}
}
}
}
},
"responses": {
"200": {
"description": "Request was successful, the result is returned.",
"content": {
"application/json": {
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/Success"
},
{
"type": "object",
"properties": {
"result": {
"type": "boolean"
}
}
}
]
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"409": {
"$ref": "#/components/responses/Conflict"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"5XX": {
"$ref": "#/components/responses/ServerError"
},
"default": {
"$ref": "#/components/responses/UnknownError"
}
}
}
},
"/answerCallbackQuery": {
"description": "Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, True is returned.",
"post": {
Expand Down
Loading

0 comments on commit 5ac9e9d

Please sign in to comment.