1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00
* message_id made optional as API declares
This commit is contained in:
Alexander
2020-11-29 15:12:14 +03:00
parent 0a2216a22b
commit 00c9351f83
2 changed files with 2 additions and 2 deletions

View File

@@ -830,7 +830,7 @@ def pin_chat_message(token, chat_id, message_id, disable_notification=None):
return _make_request(token, method_url, params=payload, method='post')
def unpin_chat_message(token, chat_id, message_id):
def unpin_chat_message(token, chat_id, message_id=None):
method_url = 'unpinChatMessage'
payload = {'chat_id': chat_id, 'message_id': message_id}
return _make_request(token, method_url, params=payload, method='post')