mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17:44:50 +00:00
Fix
This commit is contained in:
parent
3cecb9a328
commit
97ae2e8033
1 changed files with 2 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ import asyncio
|
|||
import traceback
|
||||
from datetime import datetime
|
||||
from logging import getLogger
|
||||
from urllib.parse import quote
|
||||
|
||||
import aiohttp
|
||||
from bs4 import BeautifulSoup
|
||||
|
|
@ -71,7 +72,7 @@ async def makeqr(c, m):
|
|||
if len(m.command) == 1:
|
||||
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={teks}&size=300x300"
|
||||
url = f"https://api.qrserver.com/v1/create-qr-code/?data={quote(teks)}&size=300x300"
|
||||
await m.reply_photo(url)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue