pyrofork: Add reply_to_chat_id parameter to copy_message method

Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
wulan17 2024-11-29 14:20:08 +07:00
parent c9bbeec525
commit bba87d6e52
No known key found for this signature in database
GPG key ID: 318CD6CD3A6AC0A5
2 changed files with 16 additions and 0 deletions

View file

@ -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/<username>* (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,

View file

@ -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/<username>* (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,