Files
2026-07-02 20:51:08 +03:00

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())