Add startup handler

This commit is contained in:
BarsTiger
2023-10-07 22:33:26 +03:00
parent cdf83d2be1
commit e25b61a8ea
17 changed files with 79 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
from aiogram import Router, Bot
from rich import print
router = Router()
@router.startup()
async def startup(bot: Bot):
print(f'[green]Started as[/] @{(await bot.me()).username}')