Git Product home page Git Product logo

tele_uploader's Introduction

tele_uploader

Telegram bot able to upload large file, also on Dropbox!

Installation

tele_uploader requires PHP >= 5.6.0 and Composer to run.

Dependencies installation

To be able to run tele_uploader, you must install all the dependencies listed in composer.json; to do that, type:

$ composer install

This process can take a while...

Configuration

After all dependencies are satisfied, you can start to configure the environment variables.

For convenience, I've listed them inside the env.sh file so that the only thing you have to do is open it and fill with your keys.

Keys meaning

We have just four keys:

  • BOT_TOKEN: the unique token generated by @BotFather
  • DB_ID: the unique dropbox app key
  • DB_SECRET: the unique dropbox app secret
  • DB_TOKEN: the unique dropbox app instance token
  • NAVIGATION_ROOT: the path of the directory where the bot should start look into when you want to upload a local file

For the Dropbox keys, you have to create a new Dropbox application here.

In the following picture, I'll show you where to find each key. pic_db

Run!

Now we're ready to execute the bot!

Let's import the environment variable, with:

$ source env.sh

and then...run!

$ php bot.php

Commands

When you send to the bot a direct download link or a media message, it will download it in it's personal directory. After that, you can use the following commands:

  • /telegram: will upload the file to your Telegram chat
  • /dropbox: will upload the file to the Dropbox registered application directory

These actions can be also used with the command /upload, that offer to you the ability to navigate your file system to choose what to upload.

Credits

A special thanks to Daniil Gentili aka danog that created MadelineProto.

tele_uploader's People

Contributors

ilteoood avatar hackwithashwin avatar

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.