1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Documentation Bug fixed

This commit is contained in:
_run
2021-12-08 14:00:39 +05:00
parent 5a03ab62d0
commit 555257a3fe
4 changed files with 6 additions and 12 deletions

View File

@ -969,11 +969,9 @@ def set_chat_administrator_custom_title(token, chat_id, user_id, custom_title):
return _make_request(token, method_url, params=payload, method='post')
def ban_chat_sender_chat(token, chat_id, sender_chat_id, until_date=None):
def ban_chat_sender_chat(token, chat_id, sender_chat_id):
method_url = 'banChatSenderChat'
payload = {'chat_id': chat_id, 'sender_chat_id': sender_chat_id}
if until_date:
payload['until_date'] = until_date
return _make_request(token, method_url, params=payload, method='post')