You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+22-8Lines changed: 22 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Overview
4
4
5
-
Indonesian Telegram bot for group profile enforcement (photo + username), captcha verification, and anti-spam protection. Built with python-telegram-bot v20+, SQLModel, Pydantic, and Logfire.
5
+
Indonesian Telegram bot for multi-group profile enforcement (photo + username), captcha verification, and anti-spam protection. Built with python-telegram-bot v20+, SQLModel, Pydantic, and Logfire.
When `groups.json` is present, per-group settings override the `.env` defaults. Each group can have its own warning thresholds, captcha settings, probation rules, and rules link.
145
+
146
+
**Backward compatibility**: If no `groups.json` is configured (i.e., `GROUPS_CONFIG_PATH` is not set), the bot falls back to single-group mode using `GROUP_ID`, `WARNING_TOPIC_ID`, and other settings from `.env`.
147
+
104
148
## Installation
105
149
106
150
```bash
@@ -150,12 +194,12 @@ uv run pytest -v
150
194
### Test Coverage
151
195
152
196
The project maintains comprehensive test coverage:
153
-
-**Coverage**: 99% (1,216 statements)
154
-
-**Tests**: 404 total
155
-
-**Pass Rate**: 100% (404/404 passed)
197
+
-**Coverage**: 99% (1,396 statements)
198
+
-**Tests**: 442 total
199
+
-**Pass Rate**: 100% (442/442 passed)
156
200
-**All modules**: 100% coverage including JobQueue scheduler integration, captcha verification, and anti-spam enforcement
0 commit comments