Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oVoIndia/GDrive-Bot
https://github.com/oVoIndia/GDrive-Bot
gdrive gdrive-bot telegram-bot
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/oVoIndia/GDrive-Bot
- Owner: oVoIndia
- License: gpl-3.0
- Created: 2021-08-16T05:19:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T07:15:24.000Z (almost 2 years ago)
- Last Synced: 2024-07-18T12:03:25.087Z (4 months ago)
- Topics: gdrive, gdrive-bot, telegram-bot
- Language: Python
- Homepage: https://tx.me/HxGDriveRobot
- Size: 43.9 KB
- Stars: 8
- Watchers: 0
- Forks: 20
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Google Drive Uploader Telegram Bot
**A Telegram bot to upload files from Telegram or Direct links to Google Drive.**
- Find it on Telegram as [Google Drive Uploader](https://t.me/HxGDriveRobot)## 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.
- [X] LOGGER support.
- [X] Update | Restart | Log commands
## ToDo
- [ ] Handle more exceptions.
- [ ] Service account support.
- ~~[ ] Update command.~~## Deploying
### Deploy on [Heroku ](https://heroku.com)
[![oVoIndia](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)### Installation
- Install required modules.
```sh
apt install -y git python3 ffmpeg
```
- Clone this git repository.
```sh
git clone https://github.com/oVoIndia/GDrive-Bot
```
- Change Directory
```sh
cd GDrive-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](./bot/config.py). And make sure that no `ENV` environment variables existing.### Configuration Values
- `BOT_TOKEN` - Get it by contacting to [BotFather](https://t.me/botfather)
- `APP_ID` - Get it by creating app on [my.telegram.org](https://my.telegram.org/apps)
- `API_HASH` - Get it by creating app on [my.telegram.org](https://my.telegram.org/apps)
- `SUDO_USERS` - List of Telegram User ID of sudo users, seperated by space.
- `SUPPORT_CHAT` - 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
- [Dan](https://github.com/delivrance) for creating [PyroGram](https://pyrogram.org)
- [Spechide](https://github.com/Spechide) for [gDriveDB.py](./bot/helpers/sql_helper/gDriveDB.py)
- [Shivam Jha](https://github.com/lzzy12) for [Clone Feature](./bot/helpers/gdrive_utils/gDrive.py) from [python-aria-mirror-bot](https://github.com/lzzy12/python-aria-mirror-bot)## Copyright & License
- Copyright (©) 2021 by [oVoIndia](https://github.com/oVoIndia)
- Licensed under the terms of the [GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007](./LICENSE)