This commit is contained in:
2025-06-08 20:55:08 +09:00
parent f7e0d17829
commit 7a75f79413
139 changed files with 10619 additions and 2340 deletions

View File

@@ -0,0 +1,13 @@
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'])