Sign inSign up

p3terx/tele-aria2

By p3terx

•Updated about 6 years ago

A Telegram bot for controlling your Aria2 server.

Image
14

100K+

p3terx/tele-aria2 repository overview

English | 中文⁠

⁠tele-aria2

A Telegram bot for controlling your Aria2 server.

⁠Ready

Assume that Aria2 server has already been deployed. If not, you can use Aria2 Pro⁠ (Docker) to deploy.

  1. Create your own bot and get its HTTP access token by using @BotFather⁠.

  2. Get your unique user ID⁠.

  3. (Optional) For mainland China users, be sure to have a HTTP proxy up and running.

⁠Deploy

⁠Configuration File
{
  "aria2-server": "ws://10.0.0.2:6800/jsonrpc",
  "aria2-key": "P3TERX_2020",
  "proxy": "http://127.0.0.1:7890",
  "bot-key": "123456789:xyz",
  "user-id": "123456",
  "max-index": 10
}

TIPS: If you need to add more users, just add user-id like this: "user-id": "123,456,789".

  • Suppose the configuration file is saved in ~/.tele-aria2-conf.json,Run container:
docker run -d \
    --name tele-aria2 \
    --restart unless-stopped \
    --log-opt max-size=1m \
    --network host \
    -v ~/.tele-aria2-conf.json:/config.json \
    p3terx/tele-aria2:0.2.2
⁠CLI

In addition, you can use the CLI method, which does not require a configuration file:

docker run -d \
    --name tele-aria2 \
    --restart unless-stopped \
    --log-opt max-size=1m \
    --network host \
p3terx/tele-aria2:0.2.2 \
    --aria2-server "ws://10.0.0.2:6800/jsonrpc" \
    --aria2-key "P3TERX_2020" \
    --proxy "http://127.0.0.1:7890" \
    --bot-key "123456789:xyz" \
    --user-id "123456" \
    --max-index 10

⁠Usage

Send any HTTP/FTP/SFTP/Magnet url or torrent file to chat, it will recognize and add it to Aria2 server.

⁠More details

https://github.com/HouCoder/tele-aria2⁠

Tag summary

Content type

Image

Digest

Size

38.2 MB

Last updated

about 6 years ago

docker pull p3terx/tele-aria2