A simple url uploader bot with permenent thumbnail support
Scrapped some code from @SpEcHIDe's AnyDLBot Repository
Made with Python3
My Features:
๐ All Supported Video Formats of
๐ Upload as file from any HTTP link
Either you could locally host or deploy on Heroku
Deploy on Heroku :
- Fork This Repo
- Click on Deploy Easily
Press the below button to Fast deploy on Heroku
then goto the variables tab for more info on setting up environmental variables.
Host it on VPS Locally :
git clone https://github.com/Satyamurthi/AMR-Url_Uploader
cd AMR-Url_Uploader
virtualenv -p python3 VENV
. ./VENV/bin/activate
pip install -r requirements.txt
cp sample_config.py config.py
--- EDIT config.py values appropriately ---
python bot.py
and to stop the whole bot, do CTRL+C
Setting up things
If you're on Heroku, just add these in the Environmental Variables
or if you're Locally hosting, create a file named .env
in the root directory and add all the variables there.
An example of .env
file:
API_ID=12345
API_HASH=esx576f8738x883f3sfzx83
BOT_TOKEN=55838383:yourtbottokenhere
LOG_CHANNEL=-100
AUTH_USERS=your_user_id
git clone https://github.com/FayasNoushad/URL-Uploader
cd URL-Uploader
pip3 install -r requirements.txt
# <Create Variables appropriately>
python3 bot.py
Vars and Details :
API_ID
: Goto my.telegram.org to obtain this.
API_HASH
: Goto my.telegram.org to obtain this.
BOT_TOKEN
: Get the bot token from @BotFather
LOG_CHANNEL
: Create a new channel (private/public), add @missrose_bot as admin to the channel and type /id. Now copy paste the ID into this field.
AUTH_USERS
: Your Telegram User ID
Option Vars
UPDATES_CHANNEL
: Put a Public Channel Username, so every user have to Join that channel to use the bot. Must add bot to channel as Admin to work properly.
TIME_LIMIT
: For time to next process in second
DEF_WATER_MARK_FILE
: Name you want (Ex:- @All_Movie_Rockers)
DEF_THUMB_NAIL_VID_S
: Link of the photo
SCREENSHOTS
`SCREENSHOTS`
*If `True` - Screenshot will be uploaded
*If `False` - Screenshot will not be uploaded
How to Use :
BIN_CHANNEL
as an Admin
/start
: To check if the bot is alive or not.
To get an instant stream link, just forward any media to the bot and boom, its fast af.
Bot also Supported with Channels. Just add bot Channel as Admin. If any new file comes in Channel it will edit it with Get Download Link Button.