From 0ace17bdb5928327d493cf0045165b390b1ce6f5 Mon Sep 17 00:00:00 2001 From: Badiboy Date: Wed, 3 Jan 2024 00:48:34 +0300 Subject: [PATCH] Fix the fix forward_messages return value --- telebot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 8b0a5d1fc..5b2598d18 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -1880,7 +1880,7 @@ def forward_messages(self, chat_id: Union[str, int], from_chat_id: Union[str, in protect_content = self.protect_content if (protect_content is None) else protect_content return [types.MessageID.de_json(message_id) for message_id in - apihelper.forward_messages(self.token, chat_id, from_chat_id, message_ids, disable_notification, protect_content, message_thread_id))] + apihelper.forward_messages(self.token, chat_id, from_chat_id, message_ids, disable_notification, protect_content, message_thread_id)] def copy_messages(self, chat_id: Union[str, int], from_chat_id: Union[str, int], message_ids: List[int], disable_notification: Optional[bool] = None, message_thread_id: Optional[int] = None,