mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update __init__.py
This commit is contained in:
parent
9f7b113e2f
commit
e379708af6
@ -2977,7 +2977,7 @@ class TeleBot:
|
|||||||
:return: None
|
:return: None
|
||||||
"""
|
"""
|
||||||
if not self.use_class_middlewares:
|
if not self.use_class_middlewares:
|
||||||
logger.warning('Class-based middlewares are not enabled. Pass use_class_middlewares=True to enable it.')
|
logger.error('Class-based middlewares are not enabled. Pass use_class_middlewares=True to enable it.')
|
||||||
return
|
return
|
||||||
|
|
||||||
if not hasattr(middleware, 'update_types'):
|
if not hasattr(middleware, 'update_types'):
|
||||||
|
Loading…
Reference in New Issue
Block a user