Running this python script in a bash console:
import asyncio
from telebot.async_telebot import AsyncTeleBot
bot = AsyncTeleBot(SECRET_TOKEN)
asyncio.run(bot.infinity_polling())
This error message is printed to the console repeatedly every 2 seconds, regardless of the timeout parameter.
(async_telebot.py:321 MainThread) ERROR - TeleBot: "Request timeout. Request: method=get url=getUpdates params=<aiohttp.formdata.FormData object at 0x7f0c35d9b7f0> files=None request_timeout=20"
The same script works well when run locally, or if I used TeleBot instead of AsyncTeleBot (I need it to be asyncronous)
I have tried the following, but still facing the same issue
- setting timeout and request_timeout parameters
- using bot.polling(non_stop=True)
- updating pyTelegramBotAPI
Would appreciate any assistance in resolving this issue!