mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 04:35:24 +00:00
Add delete_messages method
This commit is contained in:
parent
e3850ce75a
commit
d0feb8fb15
@ -492,3 +492,13 @@ class Client:
|
||||
**Markdown.parse(text)
|
||||
)
|
||||
)
|
||||
|
||||
def delete_messages(self,
|
||||
message_ids: list,
|
||||
revoke: bool = None):
|
||||
return self.send(
|
||||
functions.messages.DeleteMessages(
|
||||
id=message_ids,
|
||||
revoke=revoke or None
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user