From 727b5e9137d146a5c567fad3dbda62d62013e34e Mon Sep 17 00:00:00 2001 From: krau <71133316+krau@users.noreply.github.com> Date: Sun, 8 Dec 2024 22:15:14 +0800 Subject: [PATCH] fix: update avatar retrieval to use async function --- kmua/callbacks/start.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmua/callbacks/start.py b/kmua/callbacks/start.py index c3efc8b..03ebd0b 100644 --- a/kmua/callbacks/start.py +++ b/kmua/callbacks/start.py @@ -53,7 +53,7 @@ async def start(update: Update, context: ContextTypes.DEFAULT_TYPE): dao.commit() photo = db_bot_user.avatar_big_id if not photo: - photo = common.get_big_avatar_bytes(context.bot.id, context) + photo = await common.get_big_avatar_bytes(context.bot.id, context) sent_message = await update.effective_message.reply_photo( photo=photo, caption="Nya~",