Починить простой бот в телеграме

Цена договорная
30 августа 2023, 17:32 • 15 откликов • 132 просмотра
На 7 день жизни на сервере бот простой протух. Ищу кто поставит точный диагноз и вылечит. Диагностика


Api телеграма не пускает


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/root/web_bot.py", line 15, in <module>
bot.polling(none_stop=True)
File "/usr/local/lib/python3.9/site-packages/telebot/__init__.py", line 1043, in polling
self.__threaded_polling(non_stop=non_stop, interval=interval, timeout=timeout, long_polling_timeout=long_polling_timeout,
File "/usr/local/lib/python3.9/site-packages/telebot/__init__.py", line 1118, in __threaded_polling
raise e
File "/usr/local/lib/python3.9/site-packages/telebot/__init__.py", line 1073, in __threaded_polling
polling_thread.raise_exceptions()
File "/usr/local/lib/python3.9/site-packages/telebot/util.py", line 108, in raise_exceptions
raise self.exception_info
File "/usr/local/lib/python3.9/site-packages/telebot/util.py", line 90, in run
task(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/telebot/__init__.py", line 649, in __retrieve_updates
updates = self.get_updates(offset=(self.last_update_id + 1),
File "/usr/local/lib/python3.9/site-packages/telebot/__init__.py", line 623, in get_updates
json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates, long_polling_timeout)
File "/usr/local/lib/python3.9/site-packages/telebot/apihelper.py", line 321, in get_updates
return _make_request(token, method_url, params=payload)
File "/usr/local/lib/python3.9/site-packages/telebot/apihelper.py", line 156, in _make_request
result = _get_req_session().request(
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 532, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.telegram.org', port=443): Read timed out. (read timeout=25)

кажется там и правда у токена срок жизни заканчивается
Отзывы
 
1 год назад