mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
fix
This commit is contained in:
parent
311eec6888
commit
bb19687854
@ -1680,8 +1680,6 @@ class TeleBot:
|
|||||||
:params:
|
:params:
|
||||||
:param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
|
:param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
|
||||||
:param sender_chat_id: Unique identifier of the target sender chat
|
:param sender_chat_id: Unique identifier of the target sender chat
|
||||||
:param until_date: 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: True on success.
|
:return: True on success.
|
||||||
"""
|
"""
|
||||||
return apihelper.ban_chat_sender_chat(self.token, chat_id, sender_chat_id)
|
return apihelper.ban_chat_sender_chat(self.token, chat_id, sender_chat_id)
|
||||||
|
@ -2222,8 +2222,6 @@ class AsyncTeleBot:
|
|||||||
:params:
|
:params:
|
||||||
:param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
|
:param chat_id: Unique identifier for the target chat or username of the target channel (in the format @channelusername)
|
||||||
:param sender_chat_id: Unique identifier of the target sender chat
|
:param sender_chat_id: Unique identifier of the target sender chat
|
||||||
:param until_date: 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: True on success.
|
:return: True on success.
|
||||||
"""
|
"""
|
||||||
return await asyncio_helper.ban_chat_sender_chat(self.token, chat_id, sender_chat_id)
|
return await asyncio_helper.ban_chat_sender_chat(self.token, chat_id, sender_chat_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user