Closed ABIRHOSSAIN10 closed 4 months ago
bad internet, use non_stop=True in your polling function
It's not bad internet. Almost all of the time the issue is with Telegram's servers. I run my bots off of a server with 10 gigabit enterprise networking and this happens to me from time to time. The issue is that Async Telebot logs request timeouts as an unhandled exception.
bad internet, use non_stop=True in your polling function
2024-07-02 06:40:35,530 (asyncio_helper.py:101 MainThre
ad) ERROR - TeleBot: "Aiohttp ClientError: ClientConnectorError"
Traceback (most recent call last):
File "/home/mai10/tg-bot-v2.py", line 888, in
Same error still it not running. I am trying to host ny bot in pythonanywhere.
When i Don't use AsyncTeleBot it works fine but. When i use this it show me this.even i Try the examples of this github. And still give me the error maybe this module have a problem
It show you this error ALWAYS or SOMETIME?
Probably asynctelebot won't work on pythonanywhere. I should try it out, but I already had such reports. Not only with this library
It show you this error ALWAYS or SOMETIME?
Always when i run the bot
Probably asynctelebot won't work on pythonanywhere. I should try it out, but I already had such reports. Not only with this library
But pyrogram Works on pythonanywhere
Maybe AsyncTeleBot have some problem in there library. I love the module but. After seeing this maybe i have to shift to pyrogram. Because i need to work with asynchronous.
it's took 10 days to build the bot.now i am frustrated. I have to change my full code.
I will investigate it at some point
But still not doing anything
https://github.com/eternnoir/pyTelegramBotAPI/blob/master/examples/chat_member_example.py Check examle paying attention at
allowed_updates=util.update_types
I don't think we will support pythonanywhere for async. Seems like it blocks some aiohttp requests.
packages/telebot/async_telebot.py", line 1906, in get_m e result = await asyncio_helper.get_me(self.token) File "/home/mai/.local/lib/python3.10/site- packages/telebot/asyncio_helper.py", line 154, in get_m e return await _process_request(token, method_url) File "/home/mai/.local/lib/python3.10/site- packages/telebot/asyncio_helper.py", line 105, in _proc ess_request raise RequestTimeout("Request timeout. Request: met hod={0} url={1} params={2} files={3} request_timeout={4 }".format(method, url, params, files, request_timeout, current_try)) telebot.asynciohelper.RequestTimeout: Request timeout. Request: method=get url=getMe params=<aiohttp.formdata .FormData object at 0x7f6e5a472560> files=None request timeout=300