added default commands functionality
This commit is contained in:
5
app.py
5
app.py
@@ -3,8 +3,13 @@ from aiogram import executor
|
||||
from loader import dp
|
||||
import middlewares, filters, handlers
|
||||
from utils.notify_admins import on_startup_notify
|
||||
from utils.set_bot_commands import set_default_commands
|
||||
|
||||
|
||||
async def on_startup(dispatcher):
|
||||
# Устанавливаем дефолтные команды
|
||||
await set_default_commands(dispatcher)
|
||||
|
||||
# Уведомляет про запуск
|
||||
await on_startup_notify(dispatcher)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user