A toy telegram mars bot. "Mars" means a message (here only image) appears once again. So this bot can mention you when an image appears twice or more.
Support running on linux and windows.
- Install Mars-Bot-rs:
- Download the archive in Release
- extract and run:
./mars-bot -t <TOKEN> - add this bot to telegram public group you want to use.
advanced:
- run in linux server background, use
systemd-run ./mars-bot -t <TOKEN>. ./mars-bot -hto see all commands../mars-bot eto export a default config file. You can edit the config file and restart it.RUST_LOG=trace ./mars-botto see more detailed output.- you can also set token in config file:
token = xxxor in env:export TELOXIDE_PROXY=xxx - default storage position (db + config):
~/.local/mars-bot
There are 2 backend that can be used in Mars-Bot-rs:
- Sled (Default)
- Sqlite
If you want to use other backends, you need to compile Mars-Bot-rs manually.
git clone https://github.com/lxl66566/Mars-Bot-rs.git
cargo +nightly install --path Mars-Bot-rs --features sqlite