From 493c03a2c919169bee5d53b94c4db39ea1a5cc17 Mon Sep 17 00:00:00 2001 From: sys-001 Date: Thu, 9 Dec 2021 01:11:50 +0000 Subject: [PATCH] deploy: 99529a30c5ffaa503df3ddbac66dfaab7ab455f8 --- schemas/botapi.json | 10 +--------- schemas/botapi.yaml | 8 +------- schemas/botapi_openapi.json | 11 +---------- schemas/botapi_openapi.yaml | 8 +------- schemas/botapi_postman.json | 8 +------- 5 files changed, 5 insertions(+), 40 deletions(-) diff --git a/schemas/botapi.json b/schemas/botapi.json index d2d63ec..0653ed4 100644 --- a/schemas/botapi.json +++ b/schemas/botapi.json @@ -9239,7 +9239,7 @@ }, { "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.", + "description": "Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. 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", @@ -9257,14 +9257,6 @@ ], "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": [ diff --git a/schemas/botapi.yaml b/schemas/botapi.yaml index 5fff8fb..78f452d 100644 --- a/schemas/botapi.yaml +++ b/schemas/botapi.yaml @@ -6913,7 +6913,7 @@ methods: - 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.' + description: 'Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won''t be able to send messages on behalf of any of their channels. 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 @@ -6928,12 +6928,6 @@ methods: - 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 - diff --git a/schemas/botapi_openapi.json b/schemas/botapi_openapi.json index d89d810..ffbbbab 100644 --- a/schemas/botapi_openapi.json +++ b/schemas/botapi_openapi.json @@ -10549,7 +10549,7 @@ } }, "/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.", + "description": "Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. 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, @@ -10574,9 +10574,6 @@ }, "sender_chat_id": { "type": "integer" - }, - "until_date": { - "type": "integer" } } } @@ -10601,9 +10598,6 @@ }, "sender_chat_id": { "type": "integer" - }, - "until_date": { - "type": "integer" } } } @@ -10628,9 +10622,6 @@ }, "sender_chat_id": { "type": "integer" - }, - "until_date": { - "type": "integer" } } } diff --git a/schemas/botapi_openapi.yaml b/schemas/botapi_openapi.yaml index 30a2940..c942b43 100644 --- a/schemas/botapi_openapi.yaml +++ b/schemas/botapi_openapi.yaml @@ -6875,7 +6875,7 @@ paths: 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.' + description: 'Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won''t be able to send messages on behalf of any of their channels. 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 @@ -6895,8 +6895,6 @@ paths: type: string sender_chat_id: type: integer - until_date: - type: integer application/x-www-form-urlencoded: schema: type: object @@ -6912,8 +6910,6 @@ paths: type: string sender_chat_id: type: integer - until_date: - type: integer multipart/form-data: schema: type: object @@ -6929,8 +6925,6 @@ paths: type: string sender_chat_id: type: integer - until_date: - type: integer responses: 200: description: 'Request was successful, the result is returned.' diff --git a/schemas/botapi_postman.json b/schemas/botapi_postman.json index 00bec54..80ff0b7 100644 --- a/schemas/botapi_postman.json +++ b/schemas/botapi_postman.json @@ -2171,12 +2171,6 @@ "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" } ] }, @@ -2193,7 +2187,7 @@ "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." + "description": "Use this method to ban a channel chat in a supergroup or a channel. Until the chat is unbanned, the owner of the banned chat won't be able to send messages on behalf of any of their channels. 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." } }, {