This bot automatically reacts to messages in your Telegram group, allowing you to customize reactions for specific word (even user mention) Contributions for new features are welcome!
- Add @AutoReactionRoBot to your Telegram group.
- The bot is now ready to use. Enjoy!
The bot supports the following commands:
/start
: Displays a welcome message and provides a link to the support chat./stats
: Shows statistics about the bot, including total users, groups, and reactions./create Word {reaction}
: Sets an automatic reaction for a word- Alias:
cr
- Usage:
- Non-Reply:
/create @Username {reaction}
- Reply:
/create {reaction}
- Non-Reply:
- Alias:
/edit @Username {newReaction}
: Updates the automatic reaction for a word.- Alias:
ed
- Usage:
/edit @Username {newReaction}
(leave blank for settings panel)
- Alias:
/reactions
: Lists all available reactions./view
: Displays the automatic reactions set for the group./help
: Displays the help menu./delete
: Deletes the reaction for a word.- Alias:
del
- Alias:
To use the /create
command, ensure the following:
- The command is issued in a group or supergroup chat.
- The reaction is a valid emoji from the predefined list in
src/core/setUp.validEmojis
- The word does not already have an automatic reaction set
- Clone the repository:
git clone https://github.com/BrainlessDip/Auto-ReactionBot.git
- Navigate to the cloned directory and install Python dependencies:
Ensure Python is installed.
pip install -r requirements.txt
- Create a
.env
file (a sample is provided in the source code). - Run the bot:
python3 main.py
If Database.db
does not exist or needs to be recreated, use the following command to import the schema:
sqlite3 Database.db < db.schema
For more details, check this Stack Overflow post.
It scans the message for matching words and reacts to the first one found
If it's a reply and no matching words are found, it looks for a word directed at any username (words starting with @
, reply reactions enabled)
- Public Support Group: AutoReactionSupport