Fix an unresolved reference

This commit is contained in:
Dan 2019-05-03 22:55:00 +02:00
parent ec258312dd
commit a6198921c3

View File

@ -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