mirror of
https://github.com/Sysbot-org/tgscraper.git
synced 2025-01-06 00:45:48 +01:00
deploy: 917dfb1cc8
This commit is contained in:
parent
7d2a82e847
commit
5ac9e9d060
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "6.7.0",
|
||||
"version": "6.8.0",
|
||||
"types": [
|
||||
{
|
||||
"name": "Update",
|
||||
@ -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": [
|
||||
@ -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": [
|
||||
@ -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.",
|
||||
@ -1751,13 +1773,21 @@
|
||||
"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",
|
||||
@ -1765,7 +1795,7 @@
|
||||
"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": []
|
||||
@ -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",
|
||||
@ -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.",
|
||||
|
@ -1,4 +1,4 @@
|
||||
version: 6.7.0
|
||||
version: 6.8.0
|
||||
types:
|
||||
-
|
||||
name: Update
|
||||
@ -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:
|
||||
@ -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:
|
||||
@ -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.'
|
||||
@ -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
|
||||
@ -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:
|
||||
@ -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.'
|
||||
|
@ -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": [
|
||||
{
|
||||
@ -343,6 +343,9 @@
|
||||
"emoji_status_custom_emoji_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"emoji_status_expiration_date": {
|
||||
"type": "integer"
|
||||
},
|
||||
"bio": {
|
||||
"type": "string"
|
||||
},
|
||||
@ -506,6 +509,9 @@
|
||||
"sticker": {
|
||||
"$ref": "#/components/schemas/Sticker"
|
||||
},
|
||||
"story": {
|
||||
"$ref": "#/components/schemas/Story"
|
||||
},
|
||||
"video": {
|
||||
"$ref": "#/components/schemas/Video"
|
||||
},
|
||||
@ -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": [
|
||||
@ -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"
|
||||
},
|
||||
@ -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": {
|
||||
|
@ -2,7 +2,7 @@ openapi: 3.0.0
|
||||
info:
|
||||
title: 'Telegram Bot API'
|
||||
description: 'Auto-generated OpenAPI schema by TGScraper.'
|
||||
version: 6.7.0
|
||||
version: 6.8.0
|
||||
servers:
|
||||
-
|
||||
url: 'https://api.telegram.org/bot{token}'
|
||||
@ -226,6 +226,8 @@ components:
|
||||
type: string
|
||||
emoji_status_custom_emoji_id:
|
||||
type: string
|
||||
emoji_status_expiration_date:
|
||||
type: integer
|
||||
bio:
|
||||
type: string
|
||||
has_private_forwards:
|
||||
@ -339,6 +341,8 @@ components:
|
||||
$ref: '#/components/schemas/PhotoSize'
|
||||
sticker:
|
||||
$ref: '#/components/schemas/Sticker'
|
||||
story:
|
||||
$ref: '#/components/schemas/Story'
|
||||
video:
|
||||
$ref: '#/components/schemas/Video'
|
||||
video_note:
|
||||
@ -561,6 +565,9 @@ components:
|
||||
file_size:
|
||||
type: integer
|
||||
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:
|
||||
@ -671,11 +678,12 @@ components:
|
||||
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'
|
||||
option_ids:
|
||||
@ -10153,6 +10161,78 @@ paths:
|
||||
$ref: '#/components/responses/ServerError'
|
||||
default:
|
||||
$ref: '#/components/responses/UnknownError'
|
||||
/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:
|
||||
|
@ -3,7 +3,7 @@
|
||||
"name": "Telegram Bot API",
|
||||
"description": "Auto-generated Postman collection by TGScraper.",
|
||||
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
|
||||
"version": "6.7.0"
|
||||
"version": "6.8.0"
|
||||
},
|
||||
"variable": {
|
||||
"key": "token",
|
||||
@ -3553,6 +3553,37 @@
|
||||
"description": "Use this method to unhide the 'General' topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the can_manage_topics administrator rights. Returns True on success."
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "unpinAllGeneralForumTopicMessages",
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"body": {
|
||||
"mode": "formdata",
|
||||
"formdata": [
|
||||
{
|
||||
"key": "chat_id",
|
||||
"disabled": false,
|
||||
"description": "Required. Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"url": {
|
||||
"raw": "https://api.telegram.org/bot{{token}}/unpinAllGeneralForumTopicMessages",
|
||||
"protocol": "https",
|
||||
"host": [
|
||||
"api",
|
||||
"telegram",
|
||||
"org"
|
||||
],
|
||||
"path": [
|
||||
"bot{{token}}",
|
||||
"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."
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "answerCallbackQuery",
|
||||
"request": {
|
||||
|
Loading…
Reference in New Issue
Block a user