Hello there, π½ I am a Telegram Bot that can download files using Aria2/Qbittorrent and upload them to your GDrive or Telegram. I can run only on Linux x86_64/amd64 system.
start - π½ Start the bot
mirror - π³ Mirror file using Aria2
qbmirror - 𧲠Mirror file using Qbittorrent
unzipmirror - ποΈ Mirror & unzip using Aria2
qbunzipmirror - 𫧠Mirror & unzip using Qbittorrent
leech - 𧩠Mirror & leech using Aria2
qbleech - π Mirror and leech using Qbittorrent
unzipleech - 𧬠Unzip and leech
status - π₯ Show the task
ngrok - π Show Ngrok URL
stats - βοΈ Show system info
log - π Get runtime log file
Create an env file in Github Gist or any other place but make sure to provide the direct download link of that file.
PICKLE_FILE_URL = ""
BOT_TOKEN = ""
TG_API_ID = ""
TG_API_HASH = ""
# To upload files in telegram
USER_SESSION_STRING = ""
# Authorized users to use the bot
USER_LIST = '[12345, 67890]'
# Drive/Folder ID to upload files
GDRIVE_FOLDER_ID = 'abcXYZ'
# For serving download directory with ngrok's built-in file server
NGROK_AUTH_TOKEN = ""
# For clearing tasks whose upload is completed
AUTO_DEL_TASK = False
docker build -t mybot:latest .
docker run -d --name=Mirror2GdriveBot \
-e CONFIG_FILE_URL="github gist link of config.env" \
--restart=unless-stopped \
-v $PWD:/usr/src/app `#optional: for data persistence` \
-p 8010:8090 -p 8020:6800 `#optional: for accessing qbit/aria` \
mybot:latest
- To generate token.pickle file. First place the credentials.json file in current directory and run.
docker run --rm -it -v $PWD:/mnt --net host --entrypoint python mybot:latest generate_token_pickle.py
- To get the user session string of your bot.
docker run --rm -it --entrypoint python mybot:latest session_generator.py