Update parser and new feature
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import logging
|
||||
from aiogram.utils.exceptions import BotBlocked
|
||||
from aiogram.utils.exceptions import BotBlocked, MessageNotModified
|
||||
|
||||
from load import dp
|
||||
|
||||
@@ -8,4 +8,5 @@ from load import dp
|
||||
async def errors_handler(update, exception):
|
||||
if isinstance(exception, BotBlocked):
|
||||
logging.info("Bot blocked")
|
||||
return True
|
||||
return True
|
||||
if isinstance(exception, MessageNotModified): return True
|
Reference in New Issue
Block a user