Refactor bot and integrate services
This commit is contained in:
8
services/notify.py
Normal file
8
services/notify.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from aiogram import Bot
|
||||
|
||||
|
||||
async def notify(bot: Bot, chat_id: int, text: str):
|
||||
try:
|
||||
await bot.send_message(chat_id, text)
|
||||
except Exception:
|
||||
pass
|
||||
Reference in New Issue
Block a user