• Stars
    star
    623
  • Rank 72,088 (Top 2 %)
  • Language
    Python
  • License
    GNU General Publi...
  • Created about 4 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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.

ToDo

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

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

More Repositories

1

telegram-message-forwarder-bot

A telegram bot to forward messages automatically when they arrived.
Python
333
star
2

force-subscribe-telegram-bot

A Telegram bot to force members to join a specific channel before sending messages in a group.
Python
195
star
3

video-encoder-bot

A Telegram bot to encode videos files via ffmpeg.
Python
102
star
4

rss-feed-telegram-bot

Post Messages to Channels or Groups through RSS Feed.
Python
96
star
5

gdtot-bypasser

A web scraper to convert GDToT links to Google Drive and direct download links
HTML
59
star
6

tiiny

Shorten your long URLs in just a click.
EJS
42
star
7

doodstream-web

An SSR video streaming frontend which uses doodstream.com as a backend.
TypeScript
41
star
8

telegram-forwarder-bot

Forward Telegram messages between chats using pure Telegram Bot API and Webhooks
TypeScript
40
star
9

wallpaper-api

An api which can use different sites to scrape images and serve them through API
HTML
33
star
10

pasting

Publishing tool made in nodejs using deta.
EJS
27
star
11

lemonic-telegram-bot

A telegram bot for searching, streaming and downloading music from various platforms (uses Lemonic API)
TypeScript
17
star
12

telegram-bots

Some useful Telegram Bots
Python
14
star
13

emailer-py

Emailer API built using FastAPI and smtplib
Python
14
star
14

second-password

An authenticator that implements two-step verification service using the Time-base OTP algorithm
HTML
11
star
15

bdsm-typer

Auto typing tool to paste texts on software where pasting text is not allowed. Made for desktop.
Python
5
star
16

gdnan

A Google Drive API wrapper for python3
Python
5
star
17

pyplay

A serverless python playground made via react and skulpt
JavaScript
5
star
18

telegram-filestream

API to stream publically available Telegram files
HTML
4
star
19

SwitchBot

Home automation API using ESP and WebSockets
Python
4
star
20

viperadnan-git.github.io

My personal website just like a portfolio !
HTML
4
star
21

blockdoc

BLockchain based EVault created using Smart Contracts for SIH2023
JavaScript
4
star
22

scoutrss

A library for watching RSS feeds and notifying when new entries are available
Python
2
star
23

sonicbit-python-sdk

An unofficial Python SDK for SonicBit which uses the internal API to interact with the application.
Python
2
star
24

emotion-detection

Python
1
star
25

URL-Shortner

A minimalist URL Shortner written in python3
CSS
1
star
26

meeting-adda

A website for Tea Cafe.
HTML
1
star
27

TJ-Tasks-2022-AdnanAhmad

Blogging website like medium.com for sharing your ideas.
JavaScript
1
star
28

linklair

Maximize online reach. Showcase links, connect with audience. Advanced analytics and integrations.
JavaScript
1
star
29

mongodump-rclone

Backup a MongoDB database using mongodump and upload it to a remote storage using rclone. It is intended to be used as a cron job.
Shell
1
star
30

dotmagic

A Python library for accessing environment variables using dot notation.
Python
1
star