(Currently) 🤖 A distributed cross-platform Telegram Bot that can control your Aria2 server, control server files and also upload to OneDrive / Google Drive.
(Currently) 🤖 A distributed cross-platform Telegram Bot that can control your Aria2 server, control server files and also upload to OneDrive / Google Drive.
The following is only a vision of what this program will look like when it is completed, the functions described so far are not fully implemented, please refer to the following Functions realized for details of implementation
This project is mainly to use small hard disk server for offline downloading, for large BitTorrent files to be downloaded in sections according to the size of the hard disk, each time downloading a part, then uploading the network disk, delete and then download the other parts, until all the files are downloaded.
At the same time, communication via the bot protocol facilitates use on machines that cannot intranet penetration, and simplifies the usual use of download programs for added convenience.For links, sending a message directly to the Bot will directly identify and download them. It can actually delete files from the download folder, which is not possible with web panels such as AriaNG, and is very convenient as a tool for managing downloads and notifying timely completion of downloads. You can move files, and for users who mount their hard drives via rclone you can copy and paste directly through this program, without having to open an ssh connection to the VPS for cp
operations, which is also very convenient.
Only the checked content is currently implemented
HTTPS_Proxy
is the proxy address.config.json
at the root of the program that you want to execute.For a more detailed tutorial, please see: Step by Step Guide for DownloadBot
{
"input": {
"aria2": {
"aria2-server": "ws://127.0.0.1:6800/jsonrpc",
"aria2-key": "123456"
}
},
"output": {
"telegram": {
"bot-key": "",
"user-id": ""
}
},
"max-index": 10,
"sign": "Main Aria2",
"language": "en",
"downloadFolder": "/root/download",
"moveFolder": "/root/upload",
"server": {
"isServer": true,
"isMasterServer": true,
"serverHost": "127.0.0.1",
"serverPort": 23369
},
"log": {
"logPath": "",
"errPath": "",
"level": "info"
}
}
input : Input method, currently only supports aria2
enable-rpc=true
in aria2.conf
. If not necessary, please try to set the local aria2 address, in order to maximize the use of this programrpc-secret
in aria2.conf
output : Output method, currently only supports telegram
,
. If you want to set the users whose user-id
are 123465789, 987654321 and 963852741 as administrators, you need to set them as follows:{
//···
"user-id": "123456789",
//···
}
max-index:Maximum display quantity of download information, 10 pieces are recommended (to be improved in the future)
sign: Identification of this Bot, If multiple servers are required to connect to the same Bot, the specific server can be determined through this item.
language: Language of Bot output
downloadFolder: Aria2 download file save address.If you do not use this parameter, enter ""
moveFolder: The folder to which you want to move the files for the downloadFolder
. If you do not use this parameter, enter ""
server: Server configuration
true
(When set to false
, it means that this machine is a client)true
(now must be set to true
)log: Log configuration
""
(now invalid)""
(now invalid)debug
, info
, warn
, error
, fatal
, panic
are supported, the default is info
Languages | Tag |
---|---|
English | en |
Simplified Chinese | zh-CN |
Traditional Chinese | zh-TW |
When you fill in the above language tag in config.json
, the program will automatically download the language pack
If you don't know your user-id
, you can leave this field blank and enter /myid
after running the Bot, and the Bot will return your user-id
If you want to support this project, you can donate to the following address, thank you very much!