Update misc_tools.py

This commit is contained in:
yasirarism 2023-02-18 19:00:02 +07:00 committed by GitHub
parent 566c4af29b
commit 867e4f761f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -241,8 +241,7 @@ async def topho(client, message):
message.reply_to_message.sticker.file_id,
f"tostick_{message.from_user.id}.jpg",
)
await message.reply_photo(photo=photo, caption=f"Sticker -> Image\n@{client.me.username}")
await asyncio.gather(*[message.reply_document(photo), message.reply_photo(photo, caption=f"Sticker -> Image\n@{client.me.username}")])
os.remove(photo)
except Exception as e:
await message.reply_text(str(e))