/gdrive-bot-Docker

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Features

  • Telegram files support.
  • Direct Links support.
  • Custom Upload Folder.
  • TeamDrive Support.
  • Clone/Copy Google Drive Files.
  • Delete Google Drive Files.
  • Empty Google Drive trash.
  • youtube-dl support.

ToDo

  • Handle more exceptions.
  • LOGGER support.
  • Service account support.
  • Update command.

Installations Docker

  • docker-compose up --build -d.
## Deployment Own VPS
### Installation
- Install required modules.
```sh
apt install -y git python3 ffmpeg
  • Clone this git repository.
git clone https://github.com/ivanarya007/gdrive-bot.git
  • Change Directory
cd gdrive-bot
  • Install requirements with pip3
pip3 install -r requirements.txt
python3 -m bot

Configuration

Add Environment Variables Values .env Directory gdrive-bot Folder

  • BOT_TOKEN - Get it by contacting to BotFather
  • APP_ID - Get it by creating app on my.telegram.org
  • API_HASH - Get it by creating app on my.telegram.org
  • SUDO_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/)
  • G_DRIVE_CLIENT_ID - G_DRIVE_CLIENT_ID
  • G_DRIVE_CLIENT_SECRET - G_DRIVE_CLIENT_SECRET

Run Command

python3 -m bot