update forwarde messages function

This commit is contained in:
Shrimadhav U K 2021-09-01 08:06:54 +05:30 committed by GitHub
parent 2182e7f6f1
commit 076507bacb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 <telethon.tl.custom.message.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))