echo-bot is a programme which repeated your messages.
- Command
/helpwill show you a help message. - Command
/repeatwill allow you to change how many timesecho-botwill repeat your messages.
-
Clone this repository.
-
You have to get your telegram bot token. You can get it in BotFather Telegram bot.
-
You have to inform your token to
echo-bot. For this, you need to create filetoken.cfgand take advantage oftoken-template.cfg. You have to replace substring<token>with your token. -
To run
echo-botyou need to use Stack. Use commandstack run
for run echo-bot.
Start configurations bot is in configurations.cfg.
-
bot_type contains where the bot will work. The value of field
typemust be"telegram"or"console". If the value is"telegram"then the bot will run in your telegram bot. If the value is"console"then the bot will run in the console. -
bot_messages contains default messages for
/helpand/repeatcommand as well as a default value for the repetition count. -
log contains a minimal level log. The value of field
min_levelmust be'error','warning','info'or'debug'.