How chillbroz005/telegram-bot works
This is a Telegram group-moderation bot: it checks ordinary text for punctuation and recognized English words, removes messages that fail, and lets authorized users manage allow/deny lists and list managers. The single Python module also loads and saves that state. The excerpts are partial, so the graph shows only supported validation, permission, persistence, and handler relationships.
Main entry points: word_filter_bot.py Polling application
Components 14
Bot runtime
- Polling application
word_filter_bot.py - JSON state file
Message moderation
- Message moderation
word_filter_bot.py - Message validation
word_filter_bot.py - Punctuation check
word_filter_bot.py - Word and list check
word_filter_bot.py - Deobfuscation
word_filter_bot.py - SpellChecker
List management
- List commands
word_filter_bot.py - Role permissions
word_filter_bot.py - Lists and roles
word_filter_bot.py
Other components
- Group members
- Group admins
- Telegram API
Connections 17
- Group members → Telegram API: send messages
- Group admins → Telegram API: send commands
- Telegram API → Polling application: deliver updates
- Polling application → Message moderation: dispatch text
- Polling application → List commands: dispatch commands
- Message moderation → Message validation: validate text
- Message validation → Punctuation check: check punctuation
- Message validation → Word and list check: check words
- Word and list check → Deobfuscation: deobfuscate
- Word and list check → SpellChecker: check spelling
- Message moderation → Telegram API: delete and warn
- List commands → Role permissions: check access
- Role permissions → Lists and roles: check roles
- Role permissions → Telegram API: get chat member
- List commands → Lists and roles: edit or read
- List commands → JSON state file: save state
- Polling application → JSON state file: load state