Closed CarlosBueno99 closed 6 months ago
What do you mean under "doesn't work"?
it exits the program as if it ran as expected... but none of the updates are handled and none of the messages are replied on the Telegram conversation.
maybe there is a reason for that.
I checked. Set "threaded" to False and it will work.
bot = telebot.TeleBot("xxx", threaded=False)
Please answer these questions before submitting your issue. Thanks!
What version of pyTelegramBotAPI are you using? % pip freeze | grep pyTelegramBotAPI pyTelegramBotAPI==4.16.1
What OS are you using? macOS 14.3.1 on MacBook Air m2
What version of python are you using? 3.12.2
Here's an example of my test script:
Here's the output when I run that file:
Everything works fine if I use bot.infinity_polling() instead.