# A Telegram Bot Written In Python | Google Drive Uploader Bot

**URL:** <https://onehack.st/t/a-telegram-bot-written-in-python-google-drive-uploader-bot/163222>\
**Category:** Tools & Scripts\
**Tags:** tools, social-media\
**Created:** [November 20, 2020, 11:14am UTC](https://onehack.st/t/a-telegram-bot-written-in-python-google-drive-uploader-bot/163222 "2020-11-20T11:14:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Astrid](https://onehack.st/user_avatar/onehack.st/astrid/32/174869_2.png) [@Astrid](https://onehack.st/u/Astrid)\
**Post date:** [November 20, 2020, 11:14am UTC](https://onehack.st/t/a-telegram-bot-written-in-python-google-drive-uploader-bot/163222/1 "2020-11-20T11:14:33Z")

</div>

[![made-with-python](https://camo.githubusercontent.com/f9010d0d18143896d2e496fe0e0c89056acab8229dbdf169f1d3a4759567fe63/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d616465253230776974682d507974686f6e2d3166343235662e737667)](https://www.python.org/) [![Open Source Love svg1](https://camo.githubusercontent.com/97d4586afa582b2dcec2fa8ed7c84d02977a21c2dd1578ade6d48ed82296eb10/68747470733a2f2f6261646765732e66726170736f66742e636f6d2f6f732f76312f6f70656e2d736f757263652e7376673f763d313033)](https://github.com/ellerbrock/open-source-badges/)

# Google Drive Uploader Bot

`It Was my first Python Project And behind this Whole credit goes To ` [CyberBoySumanjay](https://github.com/cyberboysumanjay)

### Inspired By Sumanjay Bot 😃 [Google Drive Uploader](https://telegram.dog/driveuploadbot)

Here Is Live Version Of Bot [Gdriveupme\_bot](http://telegram.dog/gdriveupme_bot)

# Update (30 May 2020)

- Teamdrive Support added

`Teamdrive is not for users You have to hardcode it ,` `Wait for V2 bot This Bot don't have active development I will add User Specfic Teamdrive option`

# How can You Add Teamdrive

- Replace `TEAMDRIVE_FOLDER_ID` and `TEAMDRIVE_ID` in [creds.py](https://github.com/aryanvikash/Google-Drive-Uploader/blob/master/creds.py)

### What Is this ?

```auto
  A Telegram Bot Written In Python 

```

### what can it do ?

```auto
It Can Upload Your Direct and Supported links into Google Drive.

```

### Install Module

```auto
  sudo pip3 install -r requirements.txt

```

### Run This bot

```auto
python3 bot.py

```

### How Can We use It

- First authorise Bot Using `/auth` command Generate a Key and send it To bot .
- Now You can Send Supported Link To Bot.

### Avalible Commands

- `/start` = Start Message
- `/auth` = Authorise You
- `/revoke` = Delete Your Saved credential
- `/help` = help Text

## Supported Links :

- Direct Link
- Mega.nz Link
- openload link (not avalibe anymore)
- Dropbox Link

## Requirements

- [Google Drive api Credential](https://console.cloud.google.com/apis/credentials) (Others type) `Required`
- Telegram Bot Token (Using BotFather) `Required`
- Openload ftp login and Key `optional`
- Mega Email and Password `Optional`

`If You wanna Change Openload Api and Mega Email Password You Can Change it From Given Path`

- Mega =\> Plugins \> TEXT.py
- Openload =\> Plugins \> dlopenload.py

## Setup Your Own Bot

```auto
1. Create Your [Google Drive api Credential](https://console.cloud.google.com/apis/credentials) (other type) and Download Its json

2. Paste it In Bot Root Directroy and Rename it "client_secrets.json"

3. Replace Your Bot Token in [creds.py file](./creds.py)

4. Your Bot is Ready to Host. 

```

### You Can Use Heroku To host It.

`Make sure You have Changed Your Bot Token and google client api Before Hosting It`

### My Hidden Thanks To ❤

- [CyberBoySumanjay](https://github.com/cyberboysumanjay)
- [SpEcHiDe](https://github.com/SpEcHiDe)
- [Atulkadian](https://github.com/atulkadian)

# TODO

- Rename file while uploading
- Adding Telegram File Support [slow Download ☹]
- Add Youtube-dl
- Fix openload support
- Adding zippyshare , Mediafire , cloud mail , Yandex disk ,Sourceforge {these are already written In PPE plugin you can use these from there}
- Google Drive Direct Link Generator

### Licence

- GPLv3

[https://github.com/aryanvikash/Google-Drive-Uploader](https://github.com/aryanvikash/Google-Drive-Uploader)

## Full Tutorial:

[![](https://i.ytimg.com/vi/rBCavzCYjRc/hqdefault.jpg "How to Create a Telegram Google Drive Upload Bot") ](https://www.youtube.com/watch?v=rBCavzCYjRc)

---

<div class="post-metadata">

**Author:** ![Waga](https://onehack.st/user_avatar/onehack.st/waga/32/27787_2.png) [@Waga](https://onehack.st/u/Waga)\
**Post date:** [November 20, 2020, 1:50pm UTC](https://onehack.st/t/a-telegram-bot-written-in-python-google-drive-uploader-bot/163222/2 "2020-11-20T13:50:22Z")

</div>

Nice share bro.

Thanks for sharing the EduTechTainMent YouTube video guide on hosting Google drive upload bot on heroku.

Cheers!!!

> **… And Over Every Possessor of Knowledge, There is (Some) One (Else) More Knowledgeable.**

---

<div class="post-metadata">

**Author:** ![special\_lectures](https://onehack.st/user_avatar/onehack.st/special_lectures/32/41257_2.png) [@special\_lectures](https://onehack.st/u/special_lectures)\
**Post date:** [November 20, 2020, 2:34pm UTC](https://onehack.st/t/a-telegram-bot-written-in-python-google-drive-uploader-bot/163222/3 "2020-11-20T14:34:34Z")

</div>

Good work bro!
