diff --git a/telebot/async_telebot.py b/telebot/async_telebot.py index 0aa1097..c824260 100644 --- a/telebot/async_telebot.py +++ b/telebot/async_telebot.py @@ -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)