mirror of
https://github.com/Sysbot-org/tgscraper.git
synced 2024-11-10 13:39:26 +01:00
deploy: 99529a30c5
This commit is contained in:
parent
33e5487660
commit
9b9b0c47fe
@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "5.4.0",
|
||||
"version": "5.5.0",
|
||||
"types": [
|
||||
{
|
||||
"name": "Update",
|
||||
@ -346,6 +346,14 @@
|
||||
"optional": true,
|
||||
"description": "Optional. Bio of the other party in a private chat. Returned only in getChat."
|
||||
},
|
||||
{
|
||||
"name": "has_private_forwards",
|
||||
"types": [
|
||||
"bool"
|
||||
],
|
||||
"optional": true,
|
||||
"description": "Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id> links only in chats with the user. Returned only in getChat."
|
||||
},
|
||||
{
|
||||
"name": "description",
|
||||
"types": [
|
||||
@ -394,6 +402,14 @@
|
||||
"optional": true,
|
||||
"description": "Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat."
|
||||
},
|
||||
{
|
||||
"name": "has_protected_content",
|
||||
"types": [
|
||||
"bool"
|
||||
],
|
||||
"optional": true,
|
||||
"description": "Optional. True, if messages from the chat can't be forwarded to other chats. Returned only in getChat."
|
||||
},
|
||||
{
|
||||
"name": "sticker_set_name",
|
||||
"types": [
|
||||
@ -521,6 +537,14 @@
|
||||
"optional": true,
|
||||
"description": "Optional. For forwarded messages, date the original message was sent in Unix time"
|
||||
},
|
||||
{
|
||||
"name": "is_automatic_forward",
|
||||
"types": [
|
||||
"bool"
|
||||
],
|
||||
"optional": true,
|
||||
"description": "Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group"
|
||||
},
|
||||
{
|
||||
"name": "reply_to_message",
|
||||
"types": [
|
||||
@ -545,6 +569,14 @@
|
||||
"optional": true,
|
||||
"description": "Optional. Date the message was last edited in Unix time"
|
||||
},
|
||||
{
|
||||
"name": "has_protected_content",
|
||||
"types": [
|
||||
"bool"
|
||||
],
|
||||
"optional": true,
|
||||
"description": "Optional. True, if the message can't be forwarded"
|
||||
},
|
||||
{
|
||||
"name": "media_group_id",
|
||||
"types": [
|
||||
@ -2064,7 +2096,7 @@
|
||||
"string"
|
||||
],
|
||||
"optional": true,
|
||||
"description": "Optional. HTTP or tg:// url to be opened when button is pressed"
|
||||
"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."
|
||||
},
|
||||
{
|
||||
"name": "login_url",
|
||||
@ -2112,7 +2144,7 @@
|
||||
"bool"
|
||||
],
|
||||
"optional": true,
|
||||
"description": "Optional. Specify True, to send a Pay button.NOTE: This type of button must always be the first button in the first row."
|
||||
"description": "Optional. Specify True, to send a Pay button.NOTE: This type of button must always be the first button in the first row and can only be used in invoice messages."
|
||||
}
|
||||
],
|
||||
"extended_by": []
|
||||
@ -9205,6 +9237,66 @@
|
||||
"bool"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "banChatSenderChat",
|
||||
"description": "Use this method to ban a channel chat in a supergroup or a channel. The owner of the chat will not be able to send messages and join live streams on behalf of the chat, unless it is unbanned first. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success.",
|
||||
"fields": [
|
||||
{
|
||||
"name": "chat_id",
|
||||
"types": [
|
||||
"int",
|
||||
"string"
|
||||
],
|
||||
"optional": false,
|
||||
"description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)"
|
||||
},
|
||||
{
|
||||
"name": "sender_chat_id",
|
||||
"types": [
|
||||
"int"
|
||||
],
|
||||
"optional": false,
|
||||
"description": "Unique identifier of the target sender chat"
|
||||
},
|
||||
{
|
||||
"name": "until_date",
|
||||
"types": [
|
||||
"int"
|
||||
],
|
||||
"optional": true,
|
||||
"description": "Date when the sender chat will be unbanned, unix time. If the chat is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever."
|
||||
}
|
||||
],
|
||||
"return_types": [
|
||||
"bool"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "unbanChatSenderChat",
|
||||
"description": "Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success.",
|
||||
"fields": [
|
||||
{
|
||||
"name": "chat_id",
|
||||
"types": [
|
||||
"int",
|
||||
"string"
|
||||
],
|
||||
"optional": false,
|
||||
"description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername)"
|
||||
},
|
||||
{
|
||||
"name": "sender_chat_id",
|
||||
"types": [
|
||||
"int"
|
||||
],
|
||||
"optional": false,
|
||||
"description": "Unique identifier of the target sender chat"
|
||||
}
|
||||
],
|
||||
"return_types": [
|
||||
"bool"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "setChatPermissions",
|
||||
"description": "Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members administrator rights. Returns True on success.",
|
||||
|
@ -1,4 +1,4 @@
|
||||
version: 5.4.0
|
||||
version: 5.5.0
|
||||
types:
|
||||
-
|
||||
name: Update
|
||||
@ -259,6 +259,12 @@ types:
|
||||
- string
|
||||
optional: true
|
||||
description: 'Optional. Bio of the other party in a private chat. Returned only in getChat.'
|
||||
-
|
||||
name: has_private_forwards
|
||||
types:
|
||||
- bool
|
||||
optional: true
|
||||
description: 'Optional. True, if privacy settings of the other party in the private chat allows to use tg://user?id=<user_id> links only in chats with the user. Returned only in getChat.'
|
||||
-
|
||||
name: description
|
||||
types:
|
||||
@ -295,6 +301,12 @@ types:
|
||||
- int
|
||||
optional: true
|
||||
description: 'Optional. The time after which all messages sent to the chat will be automatically deleted; in seconds. Returned only in getChat.'
|
||||
-
|
||||
name: has_protected_content
|
||||
types:
|
||||
- bool
|
||||
optional: true
|
||||
description: 'Optional. True, if messages from the chat can''t be forwarded to other chats. Returned only in getChat.'
|
||||
-
|
||||
name: sticker_set_name
|
||||
types:
|
||||
@ -390,6 +402,12 @@ types:
|
||||
- int
|
||||
optional: true
|
||||
description: 'Optional. For forwarded messages, date the original message was sent in Unix time'
|
||||
-
|
||||
name: is_automatic_forward
|
||||
types:
|
||||
- bool
|
||||
optional: true
|
||||
description: 'Optional. True, if the message is a channel post that was automatically forwarded to the connected discussion group'
|
||||
-
|
||||
name: reply_to_message
|
||||
types:
|
||||
@ -408,6 +426,12 @@ types:
|
||||
- int
|
||||
optional: true
|
||||
description: 'Optional. Date the message was last edited in Unix time'
|
||||
-
|
||||
name: has_protected_content
|
||||
types:
|
||||
- bool
|
||||
optional: true
|
||||
description: 'Optional. True, if the message can''t be forwarded'
|
||||
-
|
||||
name: media_group_id
|
||||
types:
|
||||
@ -1541,7 +1565,7 @@ types:
|
||||
types:
|
||||
- string
|
||||
optional: true
|
||||
description: 'Optional. HTTP or tg:// url to be opened when button is pressed'
|
||||
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.'
|
||||
-
|
||||
name: login_url
|
||||
types:
|
||||
@ -1577,7 +1601,7 @@ types:
|
||||
types:
|
||||
- bool
|
||||
optional: true
|
||||
description: 'Optional. Specify True, to send a Pay button.NOTE: This type of button must always be the first button in the first row.'
|
||||
description: 'Optional. Specify True, to send a Pay button.NOTE: This type of button must always be the first button in the first row and can only be used in invoice messages.'
|
||||
extended_by: { }
|
||||
-
|
||||
name: LoginUrl
|
||||
@ -6887,6 +6911,50 @@ methods:
|
||||
description: 'New custom title for the administrator; 0-16 characters, emoji are not allowed'
|
||||
return_types:
|
||||
- bool
|
||||
-
|
||||
name: banChatSenderChat
|
||||
description: 'Use this method to ban a channel chat in a supergroup or a channel. The owner of the chat will not be able to send messages and join live streams on behalf of the chat, unless it is unbanned first. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success.'
|
||||
fields:
|
||||
-
|
||||
name: chat_id
|
||||
types:
|
||||
- int
|
||||
- string
|
||||
optional: false
|
||||
description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)'
|
||||
-
|
||||
name: sender_chat_id
|
||||
types:
|
||||
- int
|
||||
optional: false
|
||||
description: 'Unique identifier of the target sender chat'
|
||||
-
|
||||
name: until_date
|
||||
types:
|
||||
- int
|
||||
optional: true
|
||||
description: 'Date when the sender chat will be unbanned, unix time. If the chat is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever.'
|
||||
return_types:
|
||||
- bool
|
||||
-
|
||||
name: unbanChatSenderChat
|
||||
description: 'Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success.'
|
||||
fields:
|
||||
-
|
||||
name: chat_id
|
||||
types:
|
||||
- int
|
||||
- string
|
||||
optional: false
|
||||
description: 'Unique identifier for the target chat or username of the target channel (in the format @channelusername)'
|
||||
-
|
||||
name: sender_chat_id
|
||||
types:
|
||||
- int
|
||||
optional: false
|
||||
description: 'Unique identifier of the target sender chat'
|
||||
return_types:
|
||||
- bool
|
||||
-
|
||||
name: setChatPermissions
|
||||
description: 'Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members administrator rights. Returns True on success.'
|
||||
|
@ -3,7 +3,7 @@
|
||||
"info": {
|
||||
"title": "Telegram Bot API",
|
||||
"description": "Auto-generated OpenAPI schema by TGScraper.",
|
||||
"version": "5.4.0"
|
||||
"version": "5.5.0"
|
||||
},
|
||||
"servers": [
|
||||
{
|
||||
@ -322,6 +322,9 @@
|
||||
"bio": {
|
||||
"type": "string"
|
||||
},
|
||||
"has_private_forwards": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
@ -340,6 +343,9 @@
|
||||
"message_auto_delete_time": {
|
||||
"type": "integer"
|
||||
},
|
||||
"has_protected_content": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"sticker_set_name": {
|
||||
"type": "string"
|
||||
},
|
||||
@ -396,6 +402,9 @@
|
||||
"forward_date": {
|
||||
"type": "integer"
|
||||
},
|
||||
"is_automatic_forward": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"reply_to_message": {
|
||||
"$ref": "#/components/schemas/Message"
|
||||
},
|
||||
@ -405,6 +414,9 @@
|
||||
"edit_date": {
|
||||
"type": "integer"
|
||||
},
|
||||
"has_protected_content": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"media_group_id": {
|
||||
"type": "string"
|
||||
},
|
||||
@ -10536,6 +10548,275 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/banChatSenderChat": {
|
||||
"description": "Use this method to ban a channel chat in a supergroup or a channel. The owner of the chat will not be able to send messages and join live streams on behalf of the chat, unless it is unbanned first. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success.",
|
||||
"post": {
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"chat_id",
|
||||
"sender_chat_id"
|
||||
],
|
||||
"properties": {
|
||||
"chat_id": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sender_chat_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"until_date": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"application/x-www-form-urlencoded": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"chat_id",
|
||||
"sender_chat_id"
|
||||
],
|
||||
"properties": {
|
||||
"chat_id": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sender_chat_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"until_date": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"multipart/form-data": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"chat_id",
|
||||
"sender_chat_id"
|
||||
],
|
||||
"properties": {
|
||||
"chat_id": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sender_chat_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"until_date": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/unbanChatSenderChat": {
|
||||
"description": "Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success.",
|
||||
"post": {
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"chat_id",
|
||||
"sender_chat_id"
|
||||
],
|
||||
"properties": {
|
||||
"chat_id": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sender_chat_id": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"application/x-www-form-urlencoded": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"chat_id",
|
||||
"sender_chat_id"
|
||||
],
|
||||
"properties": {
|
||||
"chat_id": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sender_chat_id": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"multipart/form-data": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"chat_id",
|
||||
"sender_chat_id"
|
||||
],
|
||||
"properties": {
|
||||
"chat_id": {
|
||||
"anyOf": [
|
||||
{
|
||||
"type": "integer"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sender_chat_id": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/setChatPermissions": {
|
||||
"description": "Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members administrator rights. Returns True on success.",
|
||||
"post": {
|
||||
|
@ -2,7 +2,7 @@ openapi: 3.0.0
|
||||
info:
|
||||
title: 'Telegram Bot API'
|
||||
description: 'Auto-generated OpenAPI schema by TGScraper.'
|
||||
version: 5.4.0
|
||||
version: 5.5.0
|
||||
servers:
|
||||
-
|
||||
url: 'https://api.telegram.org/bot{token}'
|
||||
@ -211,6 +211,8 @@ components:
|
||||
$ref: '#/components/schemas/ChatPhoto'
|
||||
bio:
|
||||
type: string
|
||||
has_private_forwards:
|
||||
type: boolean
|
||||
description:
|
||||
type: string
|
||||
invite_link:
|
||||
@ -223,6 +225,8 @@ components:
|
||||
type: integer
|
||||
message_auto_delete_time:
|
||||
type: integer
|
||||
has_protected_content:
|
||||
type: boolean
|
||||
sticker_set_name:
|
||||
type: string
|
||||
can_set_sticker_set:
|
||||
@ -261,12 +265,16 @@ components:
|
||||
type: string
|
||||
forward_date:
|
||||
type: integer
|
||||
is_automatic_forward:
|
||||
type: boolean
|
||||
reply_to_message:
|
||||
$ref: '#/components/schemas/Message'
|
||||
via_bot:
|
||||
$ref: '#/components/schemas/User'
|
||||
edit_date:
|
||||
type: integer
|
||||
has_protected_content:
|
||||
type: boolean
|
||||
media_group_id:
|
||||
type: string
|
||||
author_signature:
|
||||
@ -6866,6 +6874,174 @@ paths:
|
||||
$ref: '#/components/responses/ServerError'
|
||||
default:
|
||||
$ref: '#/components/responses/UnknownError'
|
||||
/banChatSenderChat:
|
||||
description: 'Use this method to ban a channel chat in a supergroup or a channel. The owner of the chat will not be able to send messages and join live streams on behalf of the chat, unless it is unbanned first. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success.'
|
||||
post:
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- chat_id
|
||||
- sender_chat_id
|
||||
properties:
|
||||
chat_id:
|
||||
anyOf:
|
||||
-
|
||||
type: integer
|
||||
-
|
||||
type: string
|
||||
sender_chat_id:
|
||||
type: integer
|
||||
until_date:
|
||||
type: integer
|
||||
application/x-www-form-urlencoded:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- chat_id
|
||||
- sender_chat_id
|
||||
properties:
|
||||
chat_id:
|
||||
anyOf:
|
||||
-
|
||||
type: integer
|
||||
-
|
||||
type: string
|
||||
sender_chat_id:
|
||||
type: integer
|
||||
until_date:
|
||||
type: integer
|
||||
multipart/form-data:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- chat_id
|
||||
- sender_chat_id
|
||||
properties:
|
||||
chat_id:
|
||||
anyOf:
|
||||
-
|
||||
type: integer
|
||||
-
|
||||
type: string
|
||||
sender_chat_id:
|
||||
type: integer
|
||||
until_date:
|
||||
type: integer
|
||||
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'
|
||||
/unbanChatSenderChat:
|
||||
description: 'Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success.'
|
||||
post:
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- chat_id
|
||||
- sender_chat_id
|
||||
properties:
|
||||
chat_id:
|
||||
anyOf:
|
||||
-
|
||||
type: integer
|
||||
-
|
||||
type: string
|
||||
sender_chat_id:
|
||||
type: integer
|
||||
application/x-www-form-urlencoded:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- chat_id
|
||||
- sender_chat_id
|
||||
properties:
|
||||
chat_id:
|
||||
anyOf:
|
||||
-
|
||||
type: integer
|
||||
-
|
||||
type: string
|
||||
sender_chat_id:
|
||||
type: integer
|
||||
multipart/form-data:
|
||||
schema:
|
||||
type: object
|
||||
required:
|
||||
- chat_id
|
||||
- sender_chat_id
|
||||
properties:
|
||||
chat_id:
|
||||
anyOf:
|
||||
-
|
||||
type: integer
|
||||
-
|
||||
type: string
|
||||
sender_chat_id:
|
||||
type: integer
|
||||
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'
|
||||
/setChatPermissions:
|
||||
description: 'Use this method to set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members administrator rights. Returns True on success.'
|
||||
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": "5.4.0"
|
||||
"version": "5.5.0"
|
||||
},
|
||||
"variable": {
|
||||
"key": "token",
|
||||
@ -2153,6 +2153,86 @@
|
||||
"description": "Use this method to set a custom title for an administrator in a supergroup promoted by the bot. Returns True on success."
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "banChatSenderChat",
|
||||
"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 channel (in the format @channelusername)",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "sender_chat_id",
|
||||
"disabled": false,
|
||||
"description": "Required. Unique identifier of the target sender chat",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "until_date",
|
||||
"disabled": true,
|
||||
"description": "Optional. Date when the sender chat will be unbanned, unix time. If the chat is banned for more than 366 days or less than 30 seconds from the current time they are considered to be banned forever.",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"url": {
|
||||
"raw": "https://api.telegram.org/bot{{token}}/banChatSenderChat",
|
||||
"protocol": "https",
|
||||
"host": [
|
||||
"api",
|
||||
"telegram",
|
||||
"org"
|
||||
],
|
||||
"path": [
|
||||
"bot{{token}}",
|
||||
"banChatSenderChat"
|
||||
]
|
||||
},
|
||||
"description": "Use this method to ban a channel chat in a supergroup or a channel. The owner of the chat will not be able to send messages and join live streams on behalf of the chat, unless it is unbanned first. The bot must be an administrator in the supergroup or channel for this to work and must have the appropriate administrator rights. Returns True on success."
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "unbanChatSenderChat",
|
||||
"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 channel (in the format @channelusername)",
|
||||
"type": "text"
|
||||
},
|
||||
{
|
||||
"key": "sender_chat_id",
|
||||
"disabled": false,
|
||||
"description": "Required. Unique identifier of the target sender chat",
|
||||
"type": "text"
|
||||
}
|
||||
]
|
||||
},
|
||||
"url": {
|
||||
"raw": "https://api.telegram.org/bot{{token}}/unbanChatSenderChat",
|
||||
"protocol": "https",
|
||||
"host": [
|
||||
"api",
|
||||
"telegram",
|
||||
"org"
|
||||
],
|
||||
"path": [
|
||||
"bot{{token}}",
|
||||
"unbanChatSenderChat"
|
||||
]
|
||||
},
|
||||
"description": "Use this method to unban a previously banned channel chat in a supergroup or channel. The bot must be an administrator for this to work and must have the appropriate administrator rights. Returns True on success."
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "setChatPermissions",
|
||||
"request": {
|
||||
|
Loading…
Reference in New Issue
Block a user