mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
PyroFork: Add protect_content and drop_author parameters to forward bound method
Signed-off-by: wulan17 <wulan17@nusantararom.org>
This commit is contained in:
parent
42f974321f
commit
654076edd4
1 changed files with 12 additions and 2 deletions
|
|
@ -3206,7 +3206,9 @@ class Message(Object, Update):
|
|||
chat_id: Union[int, str],
|
||||
message_thread_id: int = None,
|
||||
disable_notification: bool = None,
|
||||
schedule_date: datetime = None
|
||||
schedule_date: datetime = None,
|
||||
protect_content: bool = None,
|
||||
drop_author: bool = None
|
||||
) -> Union["types.Message", List["types.Message"]]:
|
||||
"""Bound method *forward* of :obj:`~pyrogram.types.Message`.
|
||||
|
||||
|
|
@ -3241,6 +3243,12 @@ class Message(Object, Update):
|
|||
schedule_date (:py:obj:`~datetime.datetime`, *optional*):
|
||||
Date when the message will be automatically sent.
|
||||
|
||||
protect_content (``bool``, *optional*):
|
||||
Protects the contents of the sent message from forwarding and saving.
|
||||
|
||||
drop_author (``bool``, *optional*):
|
||||
Forwards messages without quoting the original author
|
||||
|
||||
Returns:
|
||||
On success, the forwarded Message is returned.
|
||||
|
||||
|
|
@ -3253,7 +3261,9 @@ class Message(Object, Update):
|
|||
message_ids=self.id,
|
||||
message_thread_id=message_thread_id,
|
||||
disable_notification=disable_notification,
|
||||
schedule_date=schedule_date
|
||||
schedule_date=schedule_date,
|
||||
protect_content=protect_content,
|
||||
drop_author=drop_author
|
||||
)
|
||||
|
||||
async def copy(
|
||||
|
|
|
|||
Loading…
Reference in a new issue