Add startup handler
This commit is contained in:
1 parent
cdf83d2be1
commit
e25b61a8ea
17 files changed
+79
-1
No files matched your search
@@ -0,0 +1 @@
|
||||
from .initializer import router
|
||||
@@ -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}')
|
||||
Reference in new issue
Block a user