This is simply bot for sending back user message. It's bot support 2 client: telegram and console
git clone git@github.com:sodiqit/echo_bot.git echo_bot
To launch app create config.yaml
see ./config.example.yaml
and use cargo run
command.
If you config.yaml file is in a different location from the root dir - you can pass relative path via env args
:
cargo run -- directory/config.yaml
Run tests:
cargo test
/help
- print message from config(help_msg)./repeat
- print message from config(repeat_msg) with current value repeat number. If mode set toconsole
. User must type integer(must be greater then 0). If mode set totelegram
- user can choice number from inline keyboard in chat with bot.
For only console
mode user can use /exit
command to disable bot.
telegram
mode support plain text and video messages.
log_level, help message, repeat message, default repeat number can be configurable. See ./config.example.yaml
For telegram mode bot_token must be exist!