14 lines
480 B
Python
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'])
|