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:
parent
0ca8007633
commit
2d7170feee
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user