Added warning for non_stop=False

This commit is contained in:
coder2020official 2022-10-08 22:35:22 +04:00
parent 0ca8007633
commit 2d7170feee
1 changed files with 4 additions and 0 deletions

View File

@ -390,6 +390,10 @@ class AsyncTeleBot:
"""
if not non_stop:
# show warning
logger.warning("Important: Set non_stop=True for production so that polling won't crash during errors.")
self._user = await self.get_me()
logger.info('Starting your bot with username: [@%s]', self.user.username)