From bba87d6e52c5e4c2c4b6462087fd3e88dbea5a3a Mon Sep 17 00:00:00 2001 From: wulan17 Date: Fri, 29 Nov 2024 14:20:08 +0700 Subject: [PATCH] pyrofork: Add reply_to_chat_id parameter to copy_message method Signed-off-by: wulan17 --- pyrogram/methods/messages/copy_message.py | 7 +++++++ pyrogram/types/messages_and_media/message.py | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/pyrogram/methods/messages/copy_message.py b/pyrogram/methods/messages/copy_message.py index b8109a50..cfcb7f1f 100644 --- a/pyrogram/methods/messages/copy_message.py +++ b/pyrogram/methods/messages/copy_message.py @@ -40,6 +40,7 @@ class CopyMessage: disable_notification: bool = None, message_thread_id: int = None, reply_to_message_id: int = None, + reply_to_chat_id: int = None, schedule_date: datetime = None, protect_content: bool = None, allow_paid_broadcast: bool = None, @@ -100,6 +101,11 @@ class CopyMessage: reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. + reply_to_chat_id (``int``, *optional*): + Unique identifier for the origin chat. + for reply to message from another chat. + You can also use chat public link in form of *t.me/* (str). + schedule_date (:py:obj:`~datetime.datetime`, *optional*): Date when the message will be automatically sent. @@ -137,6 +143,7 @@ class CopyMessage: disable_notification=disable_notification, message_thread_id=message_thread_id, reply_to_message_id=reply_to_message_id, + reply_to_chat_id=reply_to_chat_id, schedule_date=schedule_date, protect_content=protect_content, allow_paid_broadcast=allow_paid_broadcast, diff --git a/pyrogram/types/messages_and_media/message.py b/pyrogram/types/messages_and_media/message.py index eaf1845a..4fbd57ef 100644 --- a/pyrogram/types/messages_and_media/message.py +++ b/pyrogram/types/messages_and_media/message.py @@ -4584,6 +4584,7 @@ class Message(Object, Update): quote_text: str = None, quote_entities: List["types.MessageEntity"] = None, reply_to_message_id: int = None, + reply_to_chat_id: int = None, schedule_date: datetime = None, protect_content: bool = None, allow_paid_broadcast: bool = None, @@ -4653,6 +4654,11 @@ class Message(Object, Update): reply_to_message_id (``int``, *optional*): If the message is a reply, ID of the original message. + reply_to_chat_id (``int``, *optional*): + Unique identifier for the origin chat. + for reply to message from another chat. + You can also use chat public link in form of *t.me/* (str). + schedule_date (:py:obj:`~datetime.datetime`, *optional*): Date when the message will be automatically sent. @@ -4695,6 +4701,7 @@ class Message(Object, Update): disable_notification=disable_notification, message_thread_id=message_thread_id, reply_to_message_id=reply_to_message_id, + reply_to_chat_id=reply_to_chat_id, quote_text=quote_text, quote_entities=quote_entities, schedule_date=schedule_date, @@ -4709,6 +4716,7 @@ class Message(Object, Update): disable_notification=disable_notification, message_thread_id=message_thread_id, reply_to_message_id=reply_to_message_id, + reply_to_chat_id=reply_to_chat_id, schedule_date=schedule_date, has_spoiler=has_spoiler, protect_content=protect_content, @@ -4804,6 +4812,7 @@ class Message(Object, Update): disable_notification=disable_notification, message_thread_id=message_thread_id, reply_to_message_id=reply_to_message_id, + reply_to_chat_id=reply_to_chat_id, quote_text=quote_text, quote_entities=quote_entities, schedule_date=schedule_date,