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
386 stars 959 forks source link

Heroku Stop Free Plan - After I am Using Render #73

Open lahirubandara123 opened 2 years ago

lahirubandara123 commented 2 years ago

As the Heroku free plan will be deactivated starting next month. Can this be set to run on Render? I tried to install on render. But it didn't work. Please make this playable on Render. It doesn't matter if it's another free service. Thank You :)

This error occurs after Select the video Option.

Sep 1 12:40:33 PM main - INFO - Bot Started :) Sep 1 12:43:38 PM Uploader.echo - INFO - { Sep 1 12:43:38 PM "_": "User", Sep 1 12:43:38 PM "id": 1144453985, Sep 1 12:43:38 PM "is_self": false, Sep 1 12:43:38 PM "is_contact": false, Sep 1 12:43:38 PM "is_mutual_contact": false, Sep 1 12:43:38 PM "is_deleted": false, Sep 1 12:43:38 PM "is_bot": false, Sep 1 12:43:38 PM "is_verified": false, Sep 1 12:43:38 PM "is_restricted": false, Sep 1 12:43:38 PM "is_scam": false, Sep 1 12:43:38 PM "is_fake": false, Sep 1 12:43:38 PM "is_support": false, Sep 1 12:43:38 PM "is_premium": false, Sep 1 12:43:38 PM "first_name": "නිකමා", Sep 1 12:43:38 PM "status": "UserStatus.RECENTLY", Sep 1 12:43:38 PM "username": "kama1", Sep 1 12:43:38 PM "language_code": "si-lk" Sep 1 12:43:38 PM } Sep 1 12:43:38 PM Uploader.echo - INFO - ['yt-dlp', '--no-warnings', '--allow-dynamic-mpd', '-j', 'https://gofile.io/d/xRFHlg'] Sep 1 12:43:44 PM Uploader.echo - INFO - Sep 1 12:43:51 PM Uploader.dl_button - INFO - https://gofile.io/d/xRFHlg Sep 1 12:43:51 PM Uploader.dl_button - INFO - xRFHlg.mp4 Sep 1 12:43:52 PM pyrogram.dispatcher - ERROR - 'Content-Length' Sep 1 12:43:52 PM Traceback (most recent call last): Sep 1 12:43:52 PM File "/usr/local/lib/python3.10/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker Sep 1 12:43:52 PM await handler.callback(self.client, *args) Sep 1 12:43:52 PM File "/Uploader/callbacks.py", line 65, in button Sep 1 12:43:52 PM await ddl_call_back(bot, update) Sep 1 12:43:52 PM File "/Uploader/dl_button.py", line 92, in ddl_call_back Sep 1 12:43:52 PM await download_coroutine(bot, session, youtube_dl_url, download_directory, update.message.chat.id, update.message.id, c_time) Sep 1 12:43:52 PM File "/Uploader/dl_button.py", line 154, in download_coroutine Sep 1 12:43:52 PM total_length = int(response.headers["Content-Length"]) Sep 1 12:43:52 PM KeyError: 'Content-Length'

This error occurs after giving a Google Drive link. The message to select the video type comes twice.

Sep 1 12:56:09 PM main - INFO - Bot Started :) Sep 1 12:56:56 PM Uploader.echo - INFO - { Sep 1 12:56:56 PM "_": "User", Sep 1 12:56:56 PM "id": 1144453985, Sep 1 12:56:56 PM "is_self": false, Sep 1 12:56:56 PM "is_contact": false, Sep 1 12:56:56 PM "is_mutual_contact": false, Sep 1 12:56:56 PM "is_deleted": false, Sep 1 12:56:56 PM "is_bot": false, Sep 1 12:56:56 PM "is_verified": false, Sep 1 12:56:56 PM "is_restricted": false, Sep 1 12:56:56 PM "is_scam": false, Sep 1 12:56:56 PM "is_fake": false, Sep 1 12:56:56 PM "is_support": false, Sep 1 12:56:56 PM "is_premium": false, Sep 1 12:56:56 PM "first_name": "නිකමා", Sep 1 12:56:56 PM "status": "UserStatus.RECENTLY", Sep 1 12:56:56 PM "username": "kama1", Sep 1 12:56:56 PM "language_code": "si-lk" Sep 1 12:56:56 PM } Sep 1 12:56:56 PM Uploader.echo - INFO - ['yt-dlp', '--no-warnings', '--allow-dynamic-mpd', '-j', 'https://drive.google.com/file/d/1GdJdcHwKZWAgn6vWSjrkyDOeb5rgvybt/view?usp=sharing'] Sep 1 12:57:03 PM Uploader.echo - INFO - Sep 1 12:57:31 PM pyrogram.dispatcher - ERROR - Telegram says: [400 MESSAGE_ID_INVALID] - The message id is invalid (caused by "messages.EditMessage") Sep 1 12:57:31 PM Traceback (most recent call last): Sep 1 12:57:31 PM File "/usr/local/lib/python3.10/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker Sep 1 12:57:31 PM await handler.callback(self.client, *args) Sep 1 12:57:31 PM File "/Uploader/callbacks.py", line 63, in button Sep 1 12:57:31 PM await youtube_dl_call_back(bot, update) Sep 1 12:57:31 PM File "/Uploader/button.py", line 110, in youtube_dl_call_back Sep 1 12:57:31 PM await update.message.edit_caption( Sep 1 12:57:31 PM File "/usr/local/lib/python3.10/site-packages/pyrogram/types/messages_and_media/message.py", line 2828, in edit_caption Sep 1 12:57:31 PM return await self._client.edit_message_caption( Sep 1 12:57:31 PM File "/usr/local/lib/python3.10/site-packages/pyrogram/methods/messages/edit_message_caption.py", line 67, in edit_message_caption Sep 1 12:57:31 PM return await self.edit_message_text( Sep 1 12:57:31 PM File "/usr/local/lib/python3.10/site-packages/pyrogram/methods/messages/edit_message_text.py", line 80, in edit_message_text Sep 1 12:57:31 PM r = await self.invoke( Sep 1 12:57:31 PM File "/usr/local/lib/python3.10/site-packages/pyrogram/methods/advanced/invoke.py", line 77, in invoke Sep 1 12:57:31 PM r = await self.session.invoke( Sep 1 12:57:31 PM File "/usr/local/lib/python3.10/site-packages/pyrogram/session/session.py", line 361, in invoke Sep 1 12:57:31 PM return await self.send(query, timeout=timeout) Sep 1 12:57:31 PM File "/usr/local/lib/python3.10/site-packages/pyrogram/session/session.py", line 331, in send Sep 1 12:57:31 PM RPCError.raise_it(result, type(data)) Sep 1 12:57:31 PM File "/usr/local/lib/python3.10/site-packages/pyrogram/errors/rpc_error.py", line 91, in raise_it Sep 1 12:57:31 PM raise getattr( Sep 1 12:57:31 PM pyrogram.errors.exceptions.bad_request_400.MessageIdInvalid: Telegram says: [400 MESSAGE_ID_INVALID] - The message id is invalid (caused by "messages.EditMessage")

kalanakt commented 2 years ago

I'll render.