Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stringmanolo/telegram-cli-bot
A Node.js/Quickjs compatible cli bot to control devices from telegram. Run shell commands, javascript, c, c++ and python easily using device cli software.
https://github.com/stringmanolo/telegram-cli-bot
cli javascript linux linux-shell nodejs quickjs rat telegram-bot termux termux-hacking
Last synced: about 2 months ago
JSON representation
A Node.js/Quickjs compatible cli bot to control devices from telegram. Run shell commands, javascript, c, c++ and python easily using device cli software.
- Host: GitHub
- URL: https://github.com/stringmanolo/telegram-cli-bot
- Owner: StringManolo
- Created: 2021-01-18T19:47:12.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-22T21:28:00.000Z (almost 3 years ago)
- Last Synced: 2024-05-01T14:31:49.145Z (9 months ago)
- Topics: cli, javascript, linux, linux-shell, nodejs, quickjs, rat, telegram-bot, termux, termux-hacking
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Telegram-CLI-Bot
A Quickjs/Node.js console bot to control devices from telegram.## Notice
This project is more complete. Is a full rewrite:
https://github.com/StringManolo/nbmxbsf
### Download
git clone https://github.com/StringManolo/Telegram-CLI-Bot.git### Install Termux
pkg install quickjs && cd Telegram-CLI-Bot && qjs tgbot.js### Run
```
usage: qjs/node tgbot [options]
-t --token Telegram Bot Api Token. https://t.me/BotFather
-s --save Save the token internally to start the bot in the future without manually provide the token each time.
-l --load Use the saved token to start the bot.
-h --help This message.
-p --password Password to log from Telegram.
-v --verbose Show basic feedback to the command line interface.
-w --wait Bot delay in seconds. (Can process multiple messages at once, so you don't need a really low number to don't fallback).
```
### examples quickjs
qjs tgbot.js -t 192829292:iqidkwiexampleunvalidtokeniwjwusjwis -s -v -p miPasswordToLogin
qjs tgbot.js -l -v -p miPasswordToLogin
qjsc -o tgbot tgbot.js && cp tgbot ~/../usr/bin/
tgbot -l -w 8 -v -p miPasswordToLogin### examples node
node tgbot.js -t 192829292:iqidkwiexampleunvalidtokeniwjwusjwis -s -v -p miPasswordToLogin
node tgbot.js -l -v -w 8 -p miPasswordToLogin
### telegram chat commands
```
/help
/login/run
/js
/c++
/python
/wait
/shutdown
```To log in, first write /login and then write the password in a new message.