This commit is contained in:
blank X 2020-10-17 13:08:17 +07:00
parent a2bd2dbfc8
commit 31d8640281
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ async def purge(client, message):
reply = message.reply_to_message reply = message.reply_to_message
if command.isnumeric(): if command.isnumeric():
async for i in client.search_messages(message.chat.id, limit=int(command), offset=1, from_user=selfpurge): async for i in client.search_messages(message.chat.id, limit=int(command), offset=1, from_user=selfpurge):
ids.add(i,message_id) ids.add(i.message_id)
elif not getattr(reply, 'empty', True): elif not getattr(reply, 'empty', True):
async for i in client.search_messages(message.chat.id, offset=1, from_user=selfpurge): async for i in client.search_messages(message.chat.id, offset=1, from_user=selfpurge):
ids.add(i.message_id) ids.add(i.message_id)