mirror of
https://github.com/TeamPGM/PagerMaid_Plugins_Pyro.git
synced 2024-11-25 18:15:26 +00:00
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:
parent
ed6f3752b2
commit
e46997e78c
@ -26,7 +26,7 @@ async def gen_qr(client: Client, message: Message):
|
|||||||
if not Config.SILENT:
|
if not Config.SILENT:
|
||||||
await message.edit(lang('genqr_process'))
|
await message.edit(lang('genqr_process'))
|
||||||
try:
|
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(
|
await client.send_document(
|
||||||
message.chat.id,
|
message.chat.id,
|
||||||
document="qr.webp",
|
document="qr.webp",
|
||||||
|
Loading…
Reference in New Issue
Block a user