qr Set utf-8 as the default encoding (#120)

Co-authored-by: omg-xtao <100690902+omg-xtao@users.noreply.github.com>
This commit is contained in:
Godlike 2023-01-15 01:47:54 -05:00 committed by GitHub
parent ed6f3752b2
commit e46997e78c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ async def gen_qr(client: Client, message: Message):
if not Config.SILENT:
await message.edit(lang('genqr_process'))
try:
create(text, error="L", mode="binary").png("qr.webp", scale=6)
create(text, error="L", encoding="utf-8", mode="binary").png("qr.webp", scale=6)
await client.send_document(
message.chat.id,
document="qr.webp",