Add bot commands setup, inline keyboards, and project dependencies

This commit is contained in:
2026-07-02 19:15:49 +03:00
parent c4dfe92004
commit 0b5f4ec2d3
14 changed files with 706 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
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 Frankenstein Bot"),
BotCommand(command="help", description="Show help information"),
BotCommand(command="about", description="About the bot"),
BotCommand(command="admin", description="Admin panel placeholder"),
]
await bot.set_my_commands(commands, scope=BotCommandScopeDefault())