IDN-GDrive-Bot
IDN-GDrive-Bot copied to clipboard
A Telegram bot to upload files from Telegram or Direct links to Google Drive.
Google Drive Uploader Telegram Bot
A Telegram bot to upload files from Telegram or Direct links to Google Drive.
Features
- [X] Telegram files support.
- [X] Direct Links support.
- [X] Custom Upload Folder.
- [X] TeamDrive Support.
- [X] Clone/Copy Google Drive Files.
- [X] Delete Google Drive Files.
- [X] Empty Google Drive trash.
- [X] youtube-dl support.
Deploying
Deploy on Heroku
Installation
- Install required modules.
apt install -y git python3 ffmpeg
- Clone this git repository.
git clone https://github.com/IDN-C-X/IDN-GDrive-Bot
- Change Directory
cd IDN-GDrive-Bot
- Install requirements with pip3
pip3 install -r requirements.txt
Configuration
There are two Ways for configuring this bot.
- Add values to Environment Variables. And add a
ENVvar to Anything to enable it. - Add values in config.py. And make sure that no
ENVenvironment variables existing.
Configuration Values
BOT_TOKEN- Get it by contacting to BotFatherAPP_ID- Get it by creating app on my.telegram.orgAPI_HASH- Get it by creating app on my.telegram.orgSUDO_USERS- List of Telegram User ID of sudo users, seperated by space.SUPPORT_CHAT_LINK- Telegram invite link of support chat.DATABASE_URL- Postgres database url.DOWNLOAD_DIRECTORY- Custom path for downloads. Must end with a forward/slash. (Default to./downloads/)
Deploy
python3 -m gdrive
Credits
- Dan for creating PyroGram
- Spechide for gDriveDB.py
- Shivam Jha for Clone Feature from python-aria-mirror-bot