1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00
This commit is contained in:
_run 2021-12-08 15:15:57 +05:00
parent 311eec6888
commit bb19687854
2 changed files with 0 additions and 4 deletions

View File

@ -1680,8 +1680,6 @@ class TeleBot:
:params:
: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 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 apihelper.ban_chat_sender_chat(self.token, chat_id, sender_chat_id)

View File

@ -2222,8 +2222,6 @@ class AsyncTeleBot:
:params:
: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 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 await asyncio_helper.ban_chat_sender_chat(self.token, chat_id, sender_chat_id)