expense-bot/app.py

20 lines
514 B
Python
Raw Normal View History

2022-04-01 21:02:03 +02:00
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)
if __name__ == '__main__':
executor.start_polling(dp, on_startup=on_startup)