From 076507bacb859e53413705d6778fcc734d6fe76c Mon Sep 17 00:00:00 2001 From: Shrimadhav U K Date: Wed, 1 Sep 2021 08:06:54 +0530 Subject: [PATCH] update forwarde messages function --- telethon/client/messages.py | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/telethon/client/messages.py b/telethon/client/messages.py index 01011b58..cdc7c4a1 100644 --- a/telethon/client/messages.py +++ b/telethon/client/messages.py @@ -897,7 +897,9 @@ class MessageMethods: with_my_score: bool = None, silent: bool = None, as_album: bool = None, - schedule: 'hints.DateLike' = None + schedule: 'hints.DateLike' = None, + drop_author: bool = None, + drop_media_caption: bool = None ) -> 'typing.Sequence[types.Message]': """ Forwards the given messages to the specified entity. @@ -941,6 +943,13 @@ class MessageMethods: instead they will be scheduled to be automatically sent at a later time. + drop_author (`bool`, optional): + Whether forwarded message should contain the forwarded from header. + + drop_media_caption (`bool`, optional): + Whether forwarded message should contain the original message caption. + This flag no longer has any effect. + Returns The list of forwarded `Message `, or a single one if a list wasn't provided as input. @@ -1009,7 +1018,9 @@ class MessageMethods: silent=silent, background=background, with_my_score=with_my_score, - schedule_date=schedule + schedule_date=schedule, + drop_author=drop_author, + drop_media_caption=drop_media_caption ) result = await self(req) sent.extend(self._get_response_message(req, result, entity))