How paparumskiy/plast_bot works
This is a small Telegram bot: it polls for updates, handles /start and text messages, deletes messages containing configured profanity, and replies to other text using a simple greeting rule. A separate SQLAlchemy user model is present, but the sampled code does not connect it to the bot; database/basic.py contains only empty settings. Relationships shown are limited to those visible in main.py.
Main entry points: main.py Message handling
Components 7
Bot runtime
- Polling application
main.py - Start command
main.py - Message handling
main.py - Text response rules
main.py
User data
- User ORM model
models/users.py
Other components
- Telegram user
- Telegram platform
Connections 8
- Telegram user → Telegram platform: sends messages
- Polling application → Telegram platform: polls updates
main.py - Polling application → Start command: registers command
main.py - Polling application → Message handling: registers text handler
main.py - Telegram platform → Start command: dispatches updates
- Telegram platform → Message handling: dispatches updates
- Message handling → Text response rules: gets response
main.py - Message handling → Telegram platform: replies or deletes
main.py