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
|
||||
"""
|
||||
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
|
||||
|
||||
if not hasattr(middleware, 'update_types'):
|
||||
|
Loading…
Reference in New Issue
Block a user