mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 07:24:51 +00:00
Fix an unresolved reference
This commit is contained in:
parent
ec258312dd
commit
a6198921c3
1 changed files with 2 additions and 2 deletions
|
|
@ -57,14 +57,14 @@ class DeleteMessages(BaseClient):
|
||||||
message_ids = list(message_ids) if not isinstance(message_ids, int) else [message_ids]
|
message_ids = list(message_ids) if not isinstance(message_ids, int) else [message_ids]
|
||||||
|
|
||||||
if isinstance(peer, types.InputPeerChannel):
|
if isinstance(peer, types.InputPeerChannel):
|
||||||
await self.send(
|
r = await self.send(
|
||||||
functions.channels.DeleteMessages(
|
functions.channels.DeleteMessages(
|
||||||
channel=peer,
|
channel=peer,
|
||||||
id=message_ids
|
id=message_ids
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
await self.send(
|
r = await self.send(
|
||||||
functions.messages.DeleteMessages(
|
functions.messages.DeleteMessages(
|
||||||
id=message_ids,
|
id=message_ids,
|
||||||
revoke=revoke or None
|
revoke=revoke or None
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue