mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-30 01:39:47 +03:00
update forwarde messages function
This commit is contained in:
parent
2182e7f6f1
commit
076507bacb
|
@ -897,7 +897,9 @@ class MessageMethods:
|
||||||
with_my_score: bool = None,
|
with_my_score: bool = None,
|
||||||
silent: bool = None,
|
silent: bool = None,
|
||||||
as_album: 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]':
|
) -> 'typing.Sequence[types.Message]':
|
||||||
"""
|
"""
|
||||||
Forwards the given messages to the specified entity.
|
Forwards the given messages to the specified entity.
|
||||||
|
@ -941,6 +943,13 @@ class MessageMethods:
|
||||||
instead they will be scheduled to be automatically sent
|
instead they will be scheduled to be automatically sent
|
||||||
at a later time.
|
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
|
Returns
|
||||||
The list of forwarded `Message <telethon.tl.custom.message.Message>`,
|
The list of forwarded `Message <telethon.tl.custom.message.Message>`,
|
||||||
or a single one if a list wasn't provided as input.
|
or a single one if a list wasn't provided as input.
|
||||||
|
@ -1009,7 +1018,9 @@ class MessageMethods:
|
||||||
silent=silent,
|
silent=silent,
|
||||||
background=background,
|
background=background,
|
||||||
with_my_score=with_my_score,
|
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)
|
result = await self(req)
|
||||||
sent.extend(self._get_response_message(req, result, entity))
|
sent.extend(self._get_response_message(req, result, entity))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user