telebot.apihelper.ApiException: A request to the Telegram API was unsuccessful. The server returned HTTP 400 Bad Request. Response body:
[b'{"ok":false,"error_code":400,"description":"Bad Request: there is no document in the request"}']
"
2020-07-23 19:59:04,340 (__init__.py:443 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. The server returned HTTP 400 Bad Request. Response body:
[b'{"ok":false,"error_code":400,"description":"Bad Request: there is no document in the request"}']"
2020-07-23 19:59:06,346 (__init__.py:443 MainThread) ERROR - TeleBot: "A request to the Telegram API was unsuccessful. The server returned HTTP 400 Bad Request. Response body:
[b'{"ok":false,"error_code":400,"description":"Bad Request: there is no document in the request"}']"
ERROR:TeleBot:A request to the Telegram API was unsuccessful. The server returned HTTP 400 Bad Request. Response body:
[b'{"ok":false,"error_code":400,"description":"Bad Request: there is no document in the request"}']
Не могу сказать точно, но что-то не так с файлом. Погуглив нашел неподтвержденную инфу, что возможно имя какое-то кривое, хотя в доке ничего такого не написано, так что хезе. Ну крч скачивай значит файл сам всё-таки :D. Лучше сначала пытайся отправить по юрл, а если ошибка, то скачивать
П.с.: А может все проще, а не в файле дело, просто я тупой🥴