Init commit

This commit is contained in:
Jemacivan
2022-02-16 17:13:44 +02:00
commit 8060b933a5
42 changed files with 1281 additions and 0 deletions

View File

@@ -0,0 +1 @@
from . import main

11
handlers/errors/main.py Normal file
View File

@@ -0,0 +1,11 @@
import logging
from aiogram.utils.exceptions import BotBlocked
from load import dp
@dp.errors_handler()
async def errors_handler(update, exception):
if isinstance(exception, BotBlocked):
logging.info("Bot blocked")
return True