From 867e4f761f6bea542b3579aa91d8ec26afc003e4 Mon Sep 17 00:00:00 2001 From: yasirarism <55983182+yasirarism@users.noreply.github.com> Date: Sat, 18 Feb 2023 19:00:02 +0700 Subject: [PATCH] Update misc_tools.py --- misskaty/plugins/misc_tools.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/misskaty/plugins/misc_tools.py b/misskaty/plugins/misc_tools.py index c56673e5..58c1828d 100644 --- a/misskaty/plugins/misc_tools.py +++ b/misskaty/plugins/misc_tools.py @@ -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))