From b9898bbdda1ca783046acc9c976f63a56059cb82 Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 29 Nov 2020 15:21:59 +0300 Subject: [PATCH] Fix 0a2216a22bf89b8f3482462109270b6e9c048e04 #2 + message_id arg of unpin_chat_message() passing to the helper - removed passing arg to unpin_all_chat_messages() --- telebot/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 4f59e04..03b6c6c 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -1249,7 +1249,7 @@ class TeleBot: :param message_id: Int: Identifier of a message to unpin :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): """ @@ -1260,7 +1260,7 @@ class TeleBot: (in the format @channelusername) :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, disable_web_page_preview=None, reply_markup=None):