houcoder / tele-aria2 Goto Github PK
View Code? Open in Web Editor NEWA Telegram bot for controlling your aria2 server.
License: MIT License
A Telegram bot for controlling your aria2 server.
License: MIT License
It would be nice if there were options to turn off notifications for specific actions.
For e.g. adding/pausing a torrent triggers a notification that is not necessary since I'm actively aware of performing such operations.
Thank you
If restart tele-aria2 bot, eg. with system restart, it starts to download everything that was downloaded before.
Also in chat, bot sends me all messages history.
Looks like after restart, bot read the whole chat, found links/commands, etc., and start to process all of them
报错信息如下:
internal/fs/utils.js:230
throw err;
^
Error: EISDIR: illegal operation on a directory, read
at Object.readSync (fs.js:564:3)
at tryReadSync (fs.js:349:20)
at Object.readFileSync (fs.js:386:19)
at Object. (/usr/local/lib/node_modules/tele-aria2/dist/run.js:44:46)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
errno: -21,
syscall: 'read',
code: 'EISDIR'
}
虽然之后简单的几句和几个简单的词,但如果能加入中文会看来舒服点,如果没计划的话我自己改改就好,如果有需要,我可以帮忙翻译好"Telegram.ts"文本给你。
Hi, I'm trying to run the docker on my raspbian but I'm getting this error instead
internal/fs/utils.js:230
throw err;
^
Error: EISDIR: illegal operation on a directory, read
at Object.readSync (fs.js:564:3)
at tryReadSync (fs.js:349:20)
at Object.readFileSync (fs.js:386:19)
at Object.<anonymous> (/usr/local/lib/node_modules/tele-aria2/dist/run.js:44:46)
at Module._compile (internal/modules/cjs/loader.js:1138:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
at internal/main/run_main_module.js:17:47 {
errno: -21,
syscall: 'read',
code: 'EISDIR'
}
What could be the issue here?
is it possible it pass along flags for out put name, directory etc along with the links???
After restarting the bot, it starts to process all messages from the chat #29 and handle links, but if I try to add the new one I see
....
info: Received message from Aria2 server {"timestamp":"2021-07-18 13:29:47"}
info: Received message from Aria2 server {"timestamp":"2021-07-18 13:29:48"}
info: Sending message to Aria2 server {"timestamp":"2021-07-18 13:29:48"}
info: Received message from Aria2 server {"timestamp":"2021-07-18 13:29:48"}
(node:6295) UnhandledPromiseRejectionWarning: FetchError: request to https://api.telegram.org/bot..../sendMessage failed, reason: connect ETIMEDOUT 149.154.167.220:443
at ClientRequest. (/usr/local/lib/node_modules/tele-aria2/node_modules/node-fetch/lib/index.js:1461:11)
at ClientRequest.emit (events.js:198:13)
at TLSSocket.socketErrorListener (_http_client.js:401:9)
at TLSSocket.emit (events.js:198:13)
at emitErrorNT (internal/streams/destroy.js:91:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
(node:6295) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:6295) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
If restart bot, it download this file, but a new one will fail with the same error
我是一个新手。稍微学了一点点的创建的bot的东西。
希望您可以和我解释一下执行完main.py之后要怎么操作呢?
Add rclone support too to upload files to gdrive
need heroku & rclone support on this repo.need to upload files to cloud,so need rclone support
When I start the docker on my vps, it shows the error message below ```
Error: Telegraf: "reply" isn't available for "undefined::"
at TelegrafContext.assert (/usr/local/lib/node_modules/tele-aria2/node_modules/telegraf/context.js:172:13)
at TelegrafContext.reply (/usr/local/lib/node_modules/tele-aria2/node_modules/telegraf/context.js:314:10)
at /usr/local/lib/node_modules/tele-aria2/dist/Telegram.js:73:24
at execute (/usr/local/lib/node_modules/tele-aria2/node_modules/telegraf/composer.js:370:13)
at /usr/local/lib/node_modules/tele-aria2/node_modules/telegraf/composer.js:370:49
at /usr/local/lib/node_modules/tele-aria2/node_modules/telegraf/composer.js:135:56
at execute (/usr/local/lib/node_modules/tele-aria2/node_modules/telegraf/composer.js:370:13)
at /usr/local/lib/node_modules/tele-aria2/node_modules/telegraf/composer.js:355:14
at execute (/usr/local/lib/node_modules/tele-aria2/node_modules/telegraf/composer.js:370:13)
at /usr/local/lib/node_modules/tele-aria2/node_modules/telegraf/composer.js:355:14
Hi,
Can you add support for silent notifications on Telegram?
This, combined with #13, will be very helpful.
Thanks!
环境:openwrt,Docker
在openwrt中代理服务比docker启动稍晚一点,所以docker容器刚启动的时候是连不上tg服务器的,还要手动重启下容器才能重新连接
看到作者说打算重新发布一个,如果不能用的话就先等等不折腾了
Hi,
anyone can help me or abandoned ?
billou@billou-serveur:~$ tele-aria2 --bot-key ***
/usr/lib/node_modules/tele-aria2/dist/run.js:58
var userId = options.userId.split(',').map(Number);
^
TypeError: Cannot read property 'split' of undefined
at Object.<anonymous> (/usr/lib/node_modules/tele-aria2/dist/run.js:58:29)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47
Thanks
Hi,
I installed tele-aria2 using npm install tele-aria2 -g
and got help by tele-aria2 --help
without any issue. But when I try to configure it using the given commands, the below error pops up. Please Help me out!
I tried to configure using both:
tele-aria2 -b 12345:xxxxx -s http://192.168.1.250:6800 -u 123455
tele-aria2 --config /home/pi/Tele-aria2/tele.conf
But Both the methods shows the same error below.
/usr/local/lib/node_modules/tele-aria2/dist/Aria2.js:62
this.logger.warn(error.message);
^
TypeError: Cannot read property 'warn' of undefined
at WebSocket.Aria2.onWsError (/usr/local/lib/node_modules/tele-aria2/dist/Aria2.js:62:21)
at WebSocket.emit (events.js:198:13)
at abortHandshake (/usr/local/lib/node_modules/tele-aria2/node_modules/ws/lib/websocket.js:697:15)
at ClientRequest.req.on (/usr/local/lib/node_modules/tele-aria2/node_modules/ws/lib/websocket.js:579:7)
at ClientRequest.emit (events.js:198:13)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:565:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:111:17)
at Socket.socketOnData (_http_client.js:451:20)
at Socket.emit (events.js:198:13)
at addChunk (_stream_readable.js:288:12)
As i'm new to this, I am not sure how to get started. I have both telegram bot token and the unique user ID.
It would be great if I receive instruction on how to configure tele-aria2 and how to run it as well.
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.