1
0
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:
_run 2022-07-16 20:12:38 +05:00 committed by GitHub
parent 9f7b113e2f
commit e379708af6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'):