Skip to content

Commit

Permalink
pyrofork: Add reply_to_chat_id parameter to copy_message method
Browse files Browse the repository at this point in the history
Signed-off-by: wulan17 <[email protected]>
  • Loading branch information
wulan17 committed Nov 29, 2024
1 parent 895dcd7 commit c9b778a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyrogram/methods/messages/copy_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ async def copy_message(
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,
Expand Down Expand Up @@ -100,6 +101,11 @@ async def copy_message(
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/<username>* (str).
schedule_date (:py:obj:`~datetime.datetime`, *optional*):
Date when the message will be automatically sent.
Expand Down Expand Up @@ -137,6 +143,7 @@ async def copy_message(
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,
Expand Down
9 changes: 9 additions & 0 deletions pyrogram/types/messages_and_media/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -4584,6 +4584,7 @@ async def copy(
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,
Expand Down Expand Up @@ -4653,6 +4654,11 @@ async def copy(
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/<username>* (str).
schedule_date (:py:obj:`~datetime.datetime`, *optional*):
Date when the message will be automatically sent.
Expand Down Expand Up @@ -4695,6 +4701,7 @@ async def copy(
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,
Expand All @@ -4709,6 +4716,7 @@ async def copy(
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,
Expand Down Expand Up @@ -4804,6 +4812,7 @@ async def copy(
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,
Expand Down

0 comments on commit c9b778a

Please sign in to comment.