Skip to content

Commit

Permalink
fix: avatar photo download
Browse files Browse the repository at this point in the history
  • Loading branch information
krau committed Dec 8, 2024
1 parent d2bf12a commit 06374cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kmua/callbacks/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ async def start(update: Update, context: ContextTypes.DEFAULT_TYPE):
context.bot.id, context
)
dao.commit()
photo = db_bot_user.avatar_big_id or db_bot_user.avatar_big_blob
photo = db_bot_user.avatar_big_id
if not photo:
photo = common.get_big_avatar_bytes(context.bot.id, context)
sent_message = await update.effective_message.reply_photo(
photo=photo,
caption="Nya~",
Expand Down

0 comments on commit 06374cb

Please sign in to comment.