The service will check all new messages from the selected chats and forward important message to you.
- Set up
.env
or system environment - Install
requirements.txt
- Run
main.py
and login to your account once - Run
show_chats.py
and get id for important chats - Fill chat ids and query phrases in
db.py
- Edit
dosc/tg_notifies.service
for your user and copy to systemd, enable and start
Configuration:
- Define the recipient for forwarded messages.
- Specify the chats to monitor.
- Specify queries to search within messages.
Functionality:
- Upon initialization, the bot will scan and process all unread messages in the selected chats.
- It continuously monitors and processes incoming messages.
- After processing, messages are marked as read.
- If a message matches a predefined query, the bot forwards it to the specified recipient with a notification of the match.
- Processing unreaded messages
- Simultaneous sending of info message and forwarding (mutex)
- Forward all photos
- Flexible query combinations for different chats (queries for a specific chat)
- Storing queries and target chats in database
- Web-GUI for chat selecting and queries settings
- Caching messages for duplicates detecting (from different chats etc.)
- Resistance to the disappearance of the Internet
- Emprove search engine by Word2Vec