1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Added warning for non_stop=False

This commit is contained in:
coder2020official 2022-10-08 22:35:22 +04:00
parent 0ca8007633
commit 2d7170feee

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)