Игорь Маркин,
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Da\AppData\Local\Programs\Python\Python310\lib\site-packages\telebot\__init__.py", line 611, in infinity_polling
self.polling(none_stop=True, timeout=timeout, long_polling_timeout=long_polling_timeout,
File "C:\Users\Da\AppData\Local\Programs\Python\Python310\lib\site-packages\telebot\__init__.py", line 658, in polling
self.__threaded_polling(non_stop, interval, timeout, long_polling_timeout, allowed_updates)
File "C:\Users\Da\AppData\Local\Programs\Python\Python310\lib\site-packages\telebot\__init__.py", line 720, in __threaded_polling
raise e
File "C:\Users\Da\AppData\Local\Programs\Python\Python310\lib\site-packages\telebot\__init__.py", line 680, in __threaded_polling
self.worker_pool.raise_exceptions()
File "C:\Users\Da\AppData\Local\Programs\Python\Python310\lib\site-packages\telebot\util.py", line 135, in raise_exceptions
raise self.exception_info
File "C:\Users\Da\AppData\Local\Programs\Python\Python310\lib\site-packages\telebot\util.py", line 87, in run
task(*args, **kwargs)
File "c:\Users\Da\Desktop\YouTube\yt_telegram.py", line 33, in echo_all
bot.send_video(message.chat.id, video)
File "C:\Users\Da\AppData\Local\Programs\Python\Python310\lib\site-packages\telebot\__init__.py", line 1306, in send_video
apihelper.send_video(
File "C:\Users\Da\AppData\Local\Programs\Python\Python310\lib\site-packages\telebot\apihelper.py", line 699, in send_video
return _make_request(token, method_url, params=payload, files=files, method='post')
File "C:\Users\Da\AppData\Local\Programs\Python\Python310\lib\site-packages\telebot\apihelper.py", line 152, in _make_request
result = _get_req_session().request(
File "C:\Users\Da\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\Da\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "C:\Users\Da\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 501, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', TimeoutError('The write operation timed out'))"