fix: use tuples for PTB set_my_commands (not dicts)
This commit is contained in:
+2
-2
@@ -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:
|
async def setup_global_commands(app: Application) -> None:
|
||||||
"""Call this from main() after building the app to register bot commands."""
|
"""Call this from main() after building the app to register bot commands."""
|
||||||
await app.bot.set_my_commands([
|
await app.bot.set_my_commands([
|
||||||
{"command": "start", "description": "Open main menu"},
|
("start", "Open main menu"),
|
||||||
{"command": "admin", "description": "Admin panel (admins only)"},
|
("admin", "Admin panel (admins only)"),
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user