-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add drop_author parameter in methods/.../forward_messages.py, types.Message.reactions edited #1235
base: master
Are you sure you want to change the base?
Conversation
@@ -32,7 +32,8 @@ async def forward_messages( | |||
message_ids: Union[int, Iterable[int]], | |||
disable_notification: bool = None, | |||
schedule_date: datetime = None, | |||
protect_content: bool = None | |||
protect_content: bool = None, | |||
drop_author: bool = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
function parameter
if True - author will be hidden
@@ -62,6 +63,9 @@ async def forward_messages( | |||
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docstring for new param
@@ -87,7 +91,8 @@ async def forward_messages( | |||
silent=disable_notification or None, | |||
random_id=[self.rnd_id() for _ in message_ids], | |||
schedule_date=utils.datetime_to_timestamp(schedule_date), | |||
noforwards=protect_content | |||
noforwards=protect_content, | |||
drop_author=drop_author |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pass parameter to raw.functions.messages.ForwardMessages
self.reactions = reactions | ||
self._reactions = reactions | ||
|
||
@property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@delivrance could you merge it? I also tested it and it works without any issue |
Issue #1211
My manual tests
Expect: Default forwarding
Expect: Same behavior
Expect: Forward without author account