Merge pull request #1748 from coder2020official/master

Added warning for non_stop=False
This commit is contained in:
Badiboy 2022-10-08 23:24:58 +03:00 committed by GitHub
commit c561cf3076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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("Setting non_stop to False will stop polling on API and system exceptions.")
self._user = await self.get_me()
logger.info('Starting your bot with username: [@%s]', self.user.username)