This bot uploads telegram files to a third-party server.
Usage: Send any file or bot. Then select the third-party server you want to upload to.
Supported clouds
anonfiles.com
file.io
gofile.io
Transfer.sh
mixdrop.co
Installation
Clone
git clone https://github.com/AbhijithNT/TelegramFiletoCloud.git
cd TelegramFiletoCloud
Install Requirements
pip3 install -U -r requirements.txt
Edit Sample_config.py and replace it with your bot details like this
classConfig:
BOT_USE=False# True is private useBOT_TOKEN=''# from @botfatherAPP_ID=1234567# from https://my.telegram.org/appsAPI_HASH=''# from https://my.telegram.org/appsAUTH_USERS= [] # Private users id
Gofile is a free and anonymous file-sharing platform that respects its users (no cookies, no intrusive ads). You can store and share data of all types (files, images, music, videos, etc...).
If you can please add an env var for telegram message editing limit..like
UPDATE = 60
so progress will be updated only on each minute. else we are getting FLOOD ALERT error on telegram. so if we have an option to add as an env, it will be a better option for users.
Telegram says: [400 MESSAGE_NOT_MODIFIED] - The message was not modified because you tried to edit it using the same content (caused by "messages.EditMessage")
pyrogram.errors.exceptions.bad_request_400.ButtonDataInvalid: Telegram says: [400 BUTTON_DATA_INVALID] - The button callback data contains invalid data or exceeds 64 bytes (caused by "messages.SendMessage")
It would be nice to have the config of the upload target inside the Config file.
But keeping the target is manually selected as current, so it will not break things.
pyrogram.errors.exceptions.bad_request_400.ButtonDataInvalid: Telegram says: [400 BUTTON_DATA_INVALID] - The button callback data contains invalid data or exceeds 64 bytes (caused by "messages.SendMessage")