Files
BOTKlining/handlers/admin.py
2025-06-08 20:55:08 +09:00

14 lines
480 B
Python

from aiogram import types, Dispatcher
from config import load_config
config = load_config()
async def admin_command(message: types.Message):
if message.from_user.id not in config['ADMINS']:
await message.reply("Вы не являетесь админом!")
return
await message.reply("Приветствую, повелитель!")
def register_handlers(dp: Dispatcher):
dp.register_message_handler(admin_command, commands=['admin'])