fix: use tuples for PTB set_my_commands (not dicts)

This commit is contained in:
2026-06-17 11:53:53 +02:00
parent 709e0a65ed
commit 3ea7d42cae
+2 -2
View File
@@ -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)"),
])