Skip to content
On this page

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.

ToDo

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

Deploying

Deploy on Heroku

Deploy

Installation

  • Install required modules.
sh
apt install -y git python3 ffmpeg
  • Clone this git repository.
sh
git clone https://github.com/viperadnan-git/google-drive-telegram-bot
  • Change Directory
sh
cd google-drive-telegram-bot
  • Install requirements with pip3
sh
pip3 install -r requirements.txt

Configuration

There are two Ways for configuring this bot.

  1. Add values to Environment Variables. And add a ENV var to Anything to enable it.
  2. Add values in config.py. And make sure that no ENV environment variables existing.

Configuration Values

  • 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/)

Deploy

sh
python3 -m bot

Credits

Google Drive Uploader Telegram Bot has loaded