mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Fix 0a2216a22bf89b8f3482462109270b6e9c048e04 #2
+ message_id arg of unpin_chat_message() passing to the helper - removed passing arg to unpin_all_chat_messages()
This commit is contained in:
parent
00c9351f83
commit
b9898bbdda
@ -1249,7 +1249,7 @@ class TeleBot:
|
|||||||
:param message_id: Int: Identifier of a message to unpin
|
:param message_id: Int: Identifier of a message to unpin
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
return apihelper.unpin_chat_message(self.token, chat_id)
|
return apihelper.unpin_chat_message(self.token, chat_id, message_id)
|
||||||
|
|
||||||
def unpin_all_chat_messages(self, chat_id):
|
def unpin_all_chat_messages(self, chat_id):
|
||||||
"""
|
"""
|
||||||
@ -1260,7 +1260,7 @@ class TeleBot:
|
|||||||
(in the format @channelusername)
|
(in the format @channelusername)
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
return apihelper.unpin_all_chat_messages(self.token, chat_id, message_id)
|
return apihelper.unpin_all_chat_messages(self.token, chat_id)
|
||||||
|
|
||||||
def edit_message_text(self, text, chat_id=None, message_id=None, inline_message_id=None, parse_mode=None,
|
def edit_message_text(self, text, chat_id=None, message_id=None, inline_message_id=None, parse_mode=None,
|
||||||
disable_web_page_preview=None, reply_markup=None):
|
disable_web_page_preview=None, reply_markup=None):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user