mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #1748 from coder2020official/master
Added warning for non_stop=False
This commit is contained in:
commit
c561cf3076
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user