Giter Club home page Giter Club logo

gdupload_bot2's Introduction

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
  • FB-dl Supported
  • Anonfiles Supported
  • LK21 Supported
  • Solidfiles Supported
  • Mediafire Supported
  • Zippy 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/kjeymax/GDUPLOAD_BOT2
  • Change Directory
cd GDUPLOAD_BOT2
  • 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

gdupload_bot2's People

Contributors

kjeymax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gdupload_bot2's Issues

Checking Link never ends after setfolder

hi;
im experiencing another issue today, after /setfolder <DriveLink> it says Checking Link and it never ends, i ran the same command again and it says the same.

Pyrogram issue on ubuntu 22.04

Anything is ok, I'm using .env but I got this error.
All requirements are installed without any problem or issue

python3 -m bot
2023-04-29 20:16:31,917 - main - INFO - Starting Bot !
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/root/GD/bot/main.py", line 35, in
app.run()
File "/usr/local/lib/python3.10/dist-packages/pyrogram/methods/utilities/run.p y", line 61, in run
self.start()
File "/usr/local/lib/python3.10/dist-packages/pyrogram/sync.py", line 51, in a sync_to_sync_wrap
return loop.run_until_complete(coroutine)
File "/usr/lib/python3.10/asyncio/base_events.py", line 646, in run_until_comp lete
return future.result()
File "/usr/local/lib/python3.10/dist-packages/pyrogram/methods/utilities/start .py", line 53, in start
is_authorized = await self.connect()
File "/usr/local/lib/python3.10/dist-packages/pyrogram/methods/auth/connect.py ", line 38, in connect
self.load_config()
File "/usr/local/lib/python3.10/dist-packages/pyrogram/client.py", line 613, i n load_config
raise AttributeError("No API Key found. More info: https://docs.pyrogram.org /intro/setup")
AttributeError: No API Key found. More info: https://docs.pyrogram.org/intro/set up

Works but copy gdrive doesnt work in proper order

hi;
I managed to deploy on railway, and bot is working fine, copied a huge folder having many subfolders but problem is that it doesn't copy in proper order. What it does is copy all folders and subfolders and put them in Destination Folder separately, While it should copy in proper hierarchy.

Can you fix this?

Telegram Files Problem

I found that some telegram files can't be download thru this bot
before this I am using the version published on July 2021. and everything was okay
but then I use the latest November 2021 version, problem happen, can't download n upload some file to GDrive.. same type which is "mp4"

seems like problem on pyrogram. here I attach some logs
Screenshot (31)

Authentication code error

While giving authentication
IMG_20220704_150625_325
This thing is coming
Id (You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy for keeping apps secure.) Is redirect_uri: urn:ietf:wg:oauth:2.0:oob

HOw to deploy on railway?

bro kindly add steps or video tutorial regarding how to deploy to railway and if there is another platform other than heroku, add that guide too.
thanks

folder copy issue

When clonening. folders itss getting Seprated..subfolders get outside from main folder

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.