Skip to content

A TELEGRAM BOT TO UPLOAD FILES AND LINKS TO THE USERS GOOGLE DRIVE ACCOUNT OR TEAM DRIVE THAT IS DEPLOYABLE VIA HEROKU.

License

Notifications You must be signed in to change notification settings

noobsohail/TG-GDRIVEBOT

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Drive Uploader Telegram Bot

A Telegram bot to upload files from Telegram or Direct links to Google Drive.

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
  • Docker Supported

How To Deploy Video Tutorial:

Deploying

Deploy on Heroku

Deploy

Deploy on Railway

Deploy To Railway

Deploy on Qovery

Deploy to Qovery

Installation

  • Install required modules.
apt install -y git python3 ffmpeg
  • Clone this git repository.
git clone https://github.com/thesilentdevka/TG-GDRIVEBOT
  • Change Directory
cd TG-GDRIVEBOT
  • Install requirements with pip3
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.
  • DATABASE_URL - Postgres database url.
  • DOWNLOAD_DIRECTORY - Custom path for downloads. Must end with a forward / slash. (Default to ./downloads/)

Deploy

python3 -m bot

COMMANDS FOR THE BOT TO BE USED-

- start - useless command
- help - How to use me
- auth - Authorizing GDrive Account
- setfolder - Set Custom Upload Folder
- copy - Copy GDrive Files
- revoke - Revoke GDrive Account
- del - Delete GDrive Files

Credits

Copyright & License

About

A TELEGRAM BOT TO UPLOAD FILES AND LINKS TO THE USERS GOOGLE DRIVE ACCOUNT OR TEAM DRIVE THAT IS DEPLOYABLE VIA HEROKU.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.5%
  • Dockerfile 0.5%