From 3ea7d42cae94a7aa497a8b3b5c06d305b771573f Mon Sep 17 00:00:00 2001 From: Jose Lago Date: Wed, 17 Jun 2026 11:53:53 +0200 Subject: [PATCH] fix: use tuples for PTB set_my_commands (not dicts) --- worker/src/bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker/src/bot.py b/worker/src/bot.py index a7fe794..ab74b5d 100644 --- a/worker/src/bot.py +++ b/worker/src/bot.py @@ -225,8 +225,8 @@ async def _refresh_kw_card(bot, chat_id: int, message_id: int, kw_id_full: str): async def setup_global_commands(app: Application) -> None: """Call this from main() after building the app to register bot commands.""" await app.bot.set_my_commands([ - {"command": "start", "description": "Open main menu"}, - {"command": "admin", "description": "Admin panel (admins only)"}, + ("start", "Open main menu"), + ("admin", "Admin panel (admins only)"), ])