kalanakt / All-Url-Uploader

A simple telegram Bot, Upload Media File| video To telegram using the direct download link. (youtube, Mediafire, google drive, mega drive, etc)
https://urluploader.vercel.app
MIT License
390 stars 962 forks source link

Total length error[ bug reports ] #138

Open Damontools32 opened 6 months ago

Damontools32 commented 6 months ago

I got this error when I want bot to download link Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/pyrogram/dispatcher.py", line 240, in handler_worker await handler.callback(self.client, *args) File "/content/All-Url-Uploader/All-Url-Uploader/All-Url-Uploader/plugins/callbacks.py", line 41, in button await ddl_call_back(bot, update) File "/content/All-Url-Uploader/All-Url-Uploader/All-Url-Uploader/plugins/dl_button.py", line 85, in ddl_call_back await download_coroutine( File "/content/All-Url-Uploader/All-Url-Uploader/All-Url-Uploader/plugins/dl_button.py", line 243, in download_coroutine total_length = int(response.headers["Content-Length"]) KeyError: 'Content-Length

kalanakt commented 6 months ago

hi @Damontools32 , what kind of url you used ?