Skip to content

Commit

Permalink
Merge pull request #2387 from gautamajay52/master
Browse files Browse the repository at this point in the history
Fix: Correct order of parameters in forward_messages
  • Loading branch information
Badiboy authored Aug 20, 2024
2 parents 225e646 + 85c4719 commit ee74899
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 ee74899

Please sign in to comment.