Simple telegram bot to upload and download files on telegram messenger
This bot is made to be simple and has only 3 commands:
- Shows bot welcome message through
/start
command - Send any document, audio, video, photo to bot and it will upload it to
transfer.sh
and sends you the download link - Send it a link to a file on the internet and it will download and send it to you on telegram
Use the bash commands below to install and run the bot:
git clone https://github.com/IlyaKhalafi/UploadBot
cd UploadBot
pip3 install -r requirements.txt
# <Create config.py appropriately>
python3 main.py
- Python 3.6 or higher
- Pyrogram
- TgCrypto (Optional for Speedup)
- uvloop (Optional for Speedup)
APP_ID
Your API ID from my.telegram.orgAPI_HASH
Your API Hash from my.telegram.orgBOT_TOKEN
Your bot token from @BotFatherMAX_FILE_SIZE
Maximum file size to upload in bytes, default is 200 MBREPL_URL
If you are running this bot on repl.it, you need to set this to your repl.it URL so bot will ping itself to keep it alive. Also using uptimerobot.com is highly recommended.