/google-drive-telegram-bot

A Google Drive Telegram Bot for managing, cloning files, uploading files on Google Drive

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Bot de Telegram Uploader de Google Drive

** Un bot de Telegram para cargar archivos desde Telegram o enlaces directos a Google Drive. **

  • Encuéntrelo en Telegram como [Google Drive Uploader]

Características

  • Soporte de archivos de Telegram.
  • Soporte de enlaces directos.
  • Carpeta de carga personalizada.
  • Soporte TeamDrive.
  • Clonar / Copiar archivos de Google Drive.
  • Eliminar archivos de Google Drive.
  • Vaciar la papelera de Google Drive.
  • Soporte de [X] youtube-dl.

Que hacer

  • [] Maneja más excepciones.
  • [] Soporte LOGGER.
  • [] Soporte de cuenta de servicio.
  • [] Comando de actualización.

Deploying

Deploy on Heroku

Deploy

Installation

  • Install required modules.
apt install -y git python3 ffmpeg
  • Clone this git repository.
git clone https://github.com/viperadnan-git/google-drive-telegram-bot
  • Change Directory
cd google-drive-telegram-bot
  • 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.
  • 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 bot

Credits

Copyright & License