Skip to content

Commit 85c4719

Browse files
committed
Fix: Correct order of parameters in forward_messages
1 parent 225e646 commit 85c4719

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

telebot/async_telebot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3439,7 +3439,7 @@ async def forward_messages(self, chat_id: Union[str, int], from_chat_id: Union[s
34393439

34403440
disable_notification = self.disable_notification if (disable_notification is None) else disable_notification
34413441
protect_content = self.protect_content if (protect_content is None) else protect_content
3442-
result = await asyncio_helper.forward_messages(self.token, chat_id, from_chat_id, message_ids, disable_notification, protect_content, message_thread_id)
3442+
result = await asyncio_helper.forward_messages(self.token, chat_id, from_chat_id, message_ids, disable_notification, message_thread_id, protect_content)
34433443
return [types.MessageID.de_json(message_id) for message_id in result]
34443444

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

0 commit comments

Comments
 (0)