This bot is designed to automatically send a message whenever a user's message matches predefined messages from a configuration file. Note that this bot is available exclusively for Telegram Premium users.
- Automated Messages: Sends a message when a user's message matches the predefined messages in the configuration.
- Configuration-Based: Easily customizable messages and trigger messages through a configuration file.
- Premium Only: Ensures that the bot interacts only with Telegram Premium users.
- Docker and docker-compose installed
- Telegram Bot API Token (you can get this by creating a bot on BotFather)
- Premium Telegram account for testing and usage
-
Create a
configs/config.yaml
file in the root directory with the structure fromconfigs/config.yaml
. -
Replace all values with your desired values.
Run the bot:
docker compose build && docker compose up -d
Once the bot is running, it will automatically monitor messages from users. If a message matches any of the trigger messages specified in the configuration file, the bot will send the predefined message.
If your config.yaml
contains:
bot:
token: ""
debug: true
conditions:
- reply: "Привет 👋"
income_messages:
- привет
- hello
- здарова
- добрый день
- добрый вечер
- хай
- прив
- алло
- приветствую
- hi
- хаю хай
- здравия желаю
ignore_messages_from:
- 11
When a user sends a message saying "hello", the bot will respond with "Привет 👋".
Enjoy 🎉