Giter Club home page Giter Club logo

tele-aria2's Introduction

tele-aria2

Logo

NPM Version Docker Image Size GitHub Actions TypeScript Style Guide deps

The newly rewritten project has a few advantages over the old one:

  1. Fully touch based, more easy to use, no command required to use this bot.
  2. Real time notification, it's now using Aria2's Websocket protocol to communicate.
  3. Better cli interface and config file support.

Setup

  1. Create your own bot and get its access token by using @BotFather.
  2. Get your unique user ID - https://stackoverflow.com/a/32777943/4480674.
  3. (Optional) Telegram blocked in your region/country? be sure to have a HTTP proxy up and running.
  4. $ npm install tele-aria2 -g.
  5. $ tele-aria2 --help to see how to get started.

3 ways to pass parameters

You can pass parameters to tele-aria2 in 3 ways:

  1. cli
  2. environment variable
  3. configuration file

Option priorities also follow this order, so cli has the highest priority.

Aria2 server Aria2 key Telegram bot key Telegram user id Proxy Max items in range(default 20)
cli option --aria2-server --aria2-key --bot-key --user-id --proxy --max-index
environment variable option ta.aria2-server ta.aria2-key ta.bot-key ta.user-id https_proxy ta.max-index
configuration file option aria2-server aria2-key bot-key user-id proxy max-index

configuration file example

{
  "aria2-server": "ws://192.168.1.154:6800/jsonrpc",
  "aria2-key": "xxx",
  "proxy": "http://127.0.0.1:7890",
  "bot-key": "123456789:xxx",
  "user-id": "123456",
  "max-index": 10
}

Need to add more users? no problem, just add user-id like this: "user-id": "123,456,789".

Usage

Once your bot is up and running, go back to Telegram and click Start:

start

As you can see, all the action menus are instantly available to use, no command required!

How can I add a new task?

It's really simple, you just send any HTTP/FTP/SFTP/Magnet url to chat, it will recognize and add it to Aria2 server!

start

But I want to download from a torrent file

No worries, just send your torrent file to chat!

start

Docker

Run this bot as a Docker container, multi-architecture supported:

$ docker run -it \
  -v ~/.tele-aria2.json:/tele-aria2/config.json \
  --net=host \
  houcoder/tele-aria2

Keep in mind, the --net=host option is required if you have proxy set in your config file.

tele-aria2's People

Contributors

aipeach avatar dependabot[bot] avatar houcoder avatar

Watchers

 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.