Add delete_messages method

This commit is contained in:
Dan 2017-12-07 02:31:05 +01:00
parent e3850ce75a
commit d0feb8fb15

View File

@ -492,3 +492,13 @@ class Client:
**Markdown.parse(text) **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
)
)