Rust program to execute commands remotely through Telegram Bot API.
-
Install Rust: https://rustup.rs/
-
Create a bot in Telegram: https://core.telegram.org/bots#how-do-i-create-a-bot
-
Edit the following lines in
src/main.rs
and replace with your bottoken
and youruserid
:
static TOKEN: &str = "YOUR-BOT-TOKEN";
static BOT_ID: &str = "rust-bot-dev";
static PREFIX: &str = ".";
static MASTER: u64 = YOUR-TELEGRAM-USER-ID;
- Compile targeting Linux or Windows (
compile.sh
):
-
cargo rustc --release --target x86_64-unknown-linux-gnu
-
cargo rustc --release --target x86_64-pc-windows-gnu -- -C link-args=-mwindows
- Frankenstein (Telegram API Client in Rust, credits to @ayrat555): https://github.com/ayrat555/frankenstein/
- tokio.rs
- sysinfo
For educational and ethical purposes. Expect bugs, crashes and ugly Rust code.