This commit is contained in:
dj
2025-10-10 07:04:08 +03:00
parent 9a48d6f60f
commit c9099dac69
26 changed files with 738 additions and 405 deletions
+5 -5
View File
@@ -4,22 +4,22 @@ from aiogram.types import BotCommand, BotCommandScopeChat, BotCommandScopeDefaul
from tgbot.data.config import get_admins
# Команды для юзеров
# Commands for users
user_commands = [
BotCommand(command="start", description="♻️ Restart bot"),
BotCommand(command="inline", description="🌀 Get Inline keyboard"),
BotCommand(command="menu", description="🌀 Get keyboards"),
]
# Команды для админов
# Commands for admins
admin_commands = [
BotCommand(command="start", description="♻️ Restart bot"),
BotCommand(command="inline", description="🌀 Get Inline keyboard"),
BotCommand(command="menu", description="🌀 Get keyboards"),
BotCommand(command="log", description="🖨 Get Logs"),
BotCommand(command="db", description="📦 Get Database"),
]
# Установка команд
# Set commands
async def set_commands(bot: Bot):
await bot.set_my_commands(user_commands, scope=BotCommandScopeDefault())