Template
mirror of
https://github.com/djimboy/djimbo_template_aio3.git
synced 2026-08-26 06:57:44 +00:00
Update
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user