Skip to content

Commit

Permalink
PyroFork: Add protect_content and drop_author parameters to forward b…
Browse files Browse the repository at this point in the history
…ound method

Signed-off-by: wulan17 <wulan17@nusantararom.org>
  • Loading branch information
wulan17 committed May 21, 2023
1 parent 84a41e9 commit a175b33
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions pyrogram/types/messages_and_media/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -3098,7 +3098,9 @@ async def forward(
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`.
Expand Down Expand Up @@ -3133,6 +3135,12 @@ async def forward(
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.
Expand All @@ -3145,7 +3153,9 @@ async def forward(
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(
Expand Down

0 comments on commit a175b33

Please sign in to comment.