From c98bfc7875554d43c701b1232b4298ab6dfb2ba4 Mon Sep 17 00:00:00 2001 From: yasir Date: Tue, 14 Feb 2023 12:29:17 +0700 Subject: [PATCH] Add reply in qr --- misskaty/plugins/misc_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misskaty/plugins/misc_tools.py b/misskaty/plugins/misc_tools.py index 87391383..685fe2bf 100644 --- a/misskaty/plugins/misc_tools.py +++ b/misskaty/plugins/misc_tools.py @@ -69,7 +69,7 @@ async def readqr(c, m): @app.on_message(filters.command("createqr", COMMAND_HANDLER)) async def makeqr(c, m): - if len(m.command) == 1 or (m.reply_to_message and not m.reply_to_message.text): + if len(m.command) == 1 and (m.reply_to_message and not m.reply_to_message.text): return await m.reply("Please add text after command to convert text -> QR Code.") teks = m.text.split(None, 1)[1] if m.reply_to_message else m.reply_to_message.text url = f"https://api.qrserver.com/v1/create-qr-code/?data={quote(teks)}&size=300x300"