1
0
mirror of https://github.com/civsocit/olgram.git synced 2025-12-15 14:26:16 +00:00

support multiple comma-separated values in ADMIN_ID

This commit is contained in:
arĉi
2022-10-29 18:52:08 +06:00
parent 30ab7c84b4
commit afc5389520
3 changed files with 15 additions and 14 deletions

View File

@@ -25,7 +25,7 @@ async def init_database():
async def init_olgram():
from olgram.router import bot, dp
dp.setup_middleware(AccessMiddleware(OlgramSettings.admin_id()))
dp.setup_middleware(AccessMiddleware(OlgramSettings.admin_ids()))
from aiogram.types import BotCommand
await bot.set_my_commands(
[