Sadeep Sachintha commited on
Commit ·
93d598b
1
Parent(s): 1ef378c
Update Telegram autocomplete command list registration on startup
Browse files
main.py
CHANGED
|
@@ -118,14 +118,10 @@ async def lifespan(app: FastAPI):
|
|
| 118 |
# Register Bot Menu Commands
|
| 119 |
try:
|
| 120 |
commands = [
|
| 121 |
-
types.BotCommand(command="start", description="Start FlyRates &
|
| 122 |
-
types.BotCommand(command="current", description="
|
| 123 |
-
types.BotCommand(command="
|
| 124 |
-
types.BotCommand(command="
|
| 125 |
-
types.BotCommand(command="mysubs", description="View & manage active subscriptions/alerts"),
|
| 126 |
-
types.BotCommand(command="unsubscribe", description="Remove active subscription"),
|
| 127 |
-
types.BotCommand(command="delthreshold", description="Remove active threshold alert"),
|
| 128 |
-
types.BotCommand(command="help", description="Show detailed guide and examples")
|
| 129 |
]
|
| 130 |
await bot.set_my_commands(commands)
|
| 131 |
logger.info("Bot commands registered successfully.")
|
|
|
|
| 118 |
# Register Bot Menu Commands
|
| 119 |
try:
|
| 120 |
commands = [
|
| 121 |
+
types.BotCommand(command="start", description="Start FlyRates & subscribe to daily rates"),
|
| 122 |
+
types.BotCommand(command="current", description="Fetch live LKR exchange rates list instantly"),
|
| 123 |
+
types.BotCommand(command="unsubscribe", description="Opt-out of daily LKR rates broadcast"),
|
| 124 |
+
types.BotCommand(command="help", description="Show help guide and commands reference")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
]
|
| 126 |
await bot.set_my_commands(commands)
|
| 127 |
logger.info("Bot commands registered successfully.")
|