13 lines
367 B
Python
13 lines
367 B
Python
from aiogram import Bot
|
|
from aiogram.types import BotCommand, BotCommandScopeDefault
|
|
|
|
|
|
async def set_bot_commands(bot: Bot):
|
|
"""
|
|
Sets default commands in the Telegram client's command menu.
|
|
"""
|
|
commands = [
|
|
BotCommand(command="start", description="Start the bot"),
|
|
]
|
|
await bot.set_my_commands(commands, scope=BotCommandScopeDefault())
|