python code with telebot library ignores bot.polling
briley last edited by
After the code is launched, there are two prints and no mistakes, but the second print should have stopped, because the code was supposed to stop.
The token is right, the telebot(3.0.0) library has been installed, the interval has also been altered, the tokens are directly transferred, and the botts have been launched through the console.
Here's the code:
import telebot import config
bot = telebot.TeleBot(config.TOKEN)
def lalala (massage):
bot.polling(none_stop=True) should be recorded in the cycle while
while True: try: bot.polling(none_stop=True) except Exception as e: time.sleep(15)