Add drop_author param to forward_messages (#4329)

This commit is contained in:
John Bezustally 2024-03-18 10:30:38 +03:00 committed by GitHub
parent 7ceb2e0b25
commit 4d34243b98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -929,7 +929,8 @@ 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,
) -> 'typing.Sequence[types.Message]': ) -> 'typing.Sequence[types.Message]':
""" """
Forwards the given messages to the specified entity. Forwards the given messages to the specified entity.
@ -1041,7 +1042,8 @@ 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
) )
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))