From 38a32639b7c78d0d1606318655386d336841afa8 Mon Sep 17 00:00:00 2001 From: yasir Date: Tue, 14 Feb 2023 12:19:42 +0700 Subject: [PATCH] Rapihin dikir --- misskaty/plugins/misc_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misskaty/plugins/misc_tools.py b/misskaty/plugins/misc_tools.py index a0535944..3064fcc9 100644 --- a/misskaty/plugins/misc_tools.py +++ b/misskaty/plugins/misc_tools.py @@ -64,7 +64,7 @@ async def readqr(c, m): os.remove(foto) if res := r.json()[0]['symbol'][0]['data'] is None: return await kirimPesan(m, res) - await kirimPesan(m, r.json()[0]['symbol'][0]['data']) + await kirimPesan(m, f"QR Code Reader by @{c.me.username}: {r.json()[0]['symbol'][0]['data']}", quote=True) @app.on_message(filters.command("createqr", COMMAND_HANDLER)) @@ -73,7 +73,7 @@ async def makeqr(c, m): return await m.reply("Please add text after command to convert text -> QR Code.") teks = m.text.split(None, 1)[1] url = f"https://api.qrserver.com/v1/create-qr-code/?data={quote(teks)}&size=300x300" - await m.reply_photo(url) + await m.reply_photo(url, caption=f"QR Code Maker by @{c.me.username}", quote=True) @app.on_message(filters.command(["sof"], COMMAND_HANDLER))