This commit is contained in:
sys-001 2021-12-09 01:11:50 +00:00
parent 9b9b0c47fe
commit 493c03a2c9
5 changed files with 5 additions and 40 deletions

View File

@ -9239,7 +9239,7 @@
}, },
{ {
"name": "banChatSenderChat", "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": [ "fields": [
{ {
"name": "chat_id", "name": "chat_id",
@ -9257,14 +9257,6 @@
], ],
"optional": false, "optional": false,
"description": "Unique identifier of the target sender chat" "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": [ "return_types": [

View File

@ -6913,7 +6913,7 @@ methods:
- bool - bool
- -
name: banChatSenderChat 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: fields:
- -
name: chat_id name: chat_id
@ -6928,12 +6928,6 @@ methods:
- int - int
optional: false optional: false
description: 'Unique identifier of the target sender chat' 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: return_types:
- bool - bool
- -

View File

@ -10549,7 +10549,7 @@
} }
}, },
"/banChatSenderChat": { "/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": { "post": {
"requestBody": { "requestBody": {
"required": true, "required": true,
@ -10574,9 +10574,6 @@
}, },
"sender_chat_id": { "sender_chat_id": {
"type": "integer" "type": "integer"
},
"until_date": {
"type": "integer"
} }
} }
} }
@ -10601,9 +10598,6 @@
}, },
"sender_chat_id": { "sender_chat_id": {
"type": "integer" "type": "integer"
},
"until_date": {
"type": "integer"
} }
} }
} }
@ -10628,9 +10622,6 @@
}, },
"sender_chat_id": { "sender_chat_id": {
"type": "integer" "type": "integer"
},
"until_date": {
"type": "integer"
} }
} }
} }

View File

@ -6875,7 +6875,7 @@ paths:
default: default:
$ref: '#/components/responses/UnknownError' $ref: '#/components/responses/UnknownError'
/banChatSenderChat: /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: post:
requestBody: requestBody:
required: true required: true
@ -6895,8 +6895,6 @@ paths:
type: string type: string
sender_chat_id: sender_chat_id:
type: integer type: integer
until_date:
type: integer
application/x-www-form-urlencoded: application/x-www-form-urlencoded:
schema: schema:
type: object type: object
@ -6912,8 +6910,6 @@ paths:
type: string type: string
sender_chat_id: sender_chat_id:
type: integer type: integer
until_date:
type: integer
multipart/form-data: multipart/form-data:
schema: schema:
type: object type: object
@ -6929,8 +6925,6 @@ paths:
type: string type: string
sender_chat_id: sender_chat_id:
type: integer type: integer
until_date:
type: integer
responses: responses:
200: 200:
description: 'Request was successful, the result is returned.' description: 'Request was successful, the result is returned.'

View File

@ -2171,12 +2171,6 @@
"disabled": false, "disabled": false,
"description": "Required. Unique identifier of the target sender chat", "description": "Required. Unique identifier of the target sender chat",
"type": "text" "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" "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."
} }
}, },
{ {