From a6198921c3ec66fc53b6921b991b9739071679ac Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Fri, 3 May 2019 22:55:00 +0200 Subject: [PATCH] Fix an unresolved reference --- pyrogram/client/methods/messages/delete_messages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyrogram/client/methods/messages/delete_messages.py b/pyrogram/client/methods/messages/delete_messages.py index 9dc4cf39..9eb42867 100644 --- a/pyrogram/client/methods/messages/delete_messages.py +++ b/pyrogram/client/methods/messages/delete_messages.py @@ -57,14 +57,14 @@ class DeleteMessages(BaseClient): message_ids = list(message_ids) if not isinstance(message_ids, int) else [message_ids] if isinstance(peer, types.InputPeerChannel): - await self.send( + r = await self.send( functions.channels.DeleteMessages( channel=peer, id=message_ids ) ) else: - await self.send( + r = await self.send( functions.messages.DeleteMessages( id=message_ids, revoke=revoke or None