Skip to content

Commit

Permalink
Fix forward_messages return value
Browse files Browse the repository at this point in the history
  • Loading branch information
Badiboy authored Jan 2, 2024
1 parent 56fbcaf commit 778a02c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telebot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1879,8 +1879,8 @@ def forward_messages(self, chat_id: Union[str, int], from_chat_id: Union[str, in
disable_notification = self.disable_notification if (disable_notification is None) else disable_notification
protect_content = self.protect_content if (protect_content is None) else protect_content

return types.MessageID.de_json(
apihelper.forward_messages(self.token, chat_id, from_chat_id, message_ids, disable_notification, protect_content, message_thread_id))
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))]

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,
Expand Down

0 comments on commit 778a02c

Please sign in to comment.