Skip to content

Commit

Permalink
enh: add commands menu
Browse files Browse the repository at this point in the history
  • Loading branch information
notdodo committed Sep 26, 2024
1 parent eb76d37 commit 8422f3e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/erfiume/tgbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,13 @@ async def bot(event: dict[str, Any], _context: LambdaContext) -> None:
"""Run entry point for the bot"""
application = Application.builder().token(await fetch_bot_token()).build()

await application.bot.set_my_commands(
commands=[
("/start", "Inizia ad interagire con il bot"),
("/stazioni", "Visualizza la lista delle stazioni disponibili"),
("/info", "Ottieni informazioni riguardanti il bot"),
]
)
application.add_handler(CommandHandler("start", start))
application.add_handler(CommandHandler("cesena", cesena))
application.add_handler(CommandHandler("stazioni", list_stations))
Expand Down

0 comments on commit 8422f3e

Please sign in to comment.