Skip to content

Commit

Permalink
Fix: Correct order of parameters in forward_messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamajay52 committed Aug 20, 2024
1 parent 225e646 commit 85c4719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telebot/async_telebot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3439,7 +3439,7 @@ async def forward_messages(self, chat_id: Union[str, int], from_chat_id: Union[s

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
result = await asyncio_helper.forward_messages(self.token, chat_id, from_chat_id, message_ids, disable_notification, protect_content, message_thread_id)
result = await asyncio_helper.forward_messages(self.token, chat_id, from_chat_id, message_ids, disable_notification, message_thread_id, protect_content)
return [types.MessageID.de_json(message_id) for message_id in result]

async def copy_messages(self, chat_id: Union[str, int], from_chat_id: Union[str, int], message_ids: List[int],
Expand Down

0 comments on commit 85c4719

Please sign in to comment.