Delete .env-example#16
Open
Yaimsputnik5 wants to merge 1 commit into
Open
Conversation
Deleted the .env-example as the UI Rewrite update switches to a config.json model.
bryanseah234
added a commit
to bryanseah234/telegramhunter
that referenced
this pull request
May 30, 2026
DB / Schema - #1: CREATE audit_logs + keepalive_log tables via Supabase API (were missing in prod) - 0x6rss#9: Promote 158 stuck pending creds w/ chat_id+topic_id to active Infrastructure - #2: Beat schedule moved from /tmp (ephemeral) to named volume beat_schedule - #10: Redis maxmemory=256mb + allkeys-lru (live config + persisted in compose command) - 0x6rss#20: Healthchecks added to worker-scrape, worker-scanners, worker-validators, beat Business Logic / Correctness - 0x6rss#3: broadcast_pending batch 100→500, rate sleep 5s→1.5s (23k backlog drains in ~48min) - 0x6rss#4: _get_monitor_group_ids() sync httpx.get → asyncio.to_thread; scrape guard uses await - #5: permanent_errors operator precedence — explicit parens on OR/AND mix - #8: self_heal decontamination uses _resolve_monitor_group_ids_async() not raw string - Also fixes NameError: ids_to_reset → contaminated_ids in re-enrich loop - 0x6rss#13: self_heal cursor pagination (batch 500→200, Redis cursor key self_heal:cursor) - 0x6rss#12: audit_active_topics cursor pagination (Redis cursor key audit:topics:cursor) - 0x6rss#14: Matkap Strategy 4 now kicks victim bot after forwarding (OPSEC cleanup) - Added UserAgentService.kick_bot_from_group() via Telethon EditBannedRequest Reliability - 0x6rss#15: broadcast_pending lock TTL renew via background thread (RENEW_EVERY=90s) Replaces fixed 240s TTL that expired on 500-msg batches (750s > 240s) Observability - #7: MetricsCollector.flush_to_redis() + get_all_metrics() merges Redis+memory - Wired into system_heartbeat task so counters survive restarts Security / OPSEC - 0x6rss#16: bot_listener log_update() skips hub group messages (noise + content leak) - 0x6rss#17: CORS never wildcard — explicit allowlist always; EXTRA_CORS_ORIGINS env escape hatch - 0x6rss#18: token dedup Redis key uses full 64-char SHA-256 (was truncated to 16 chars) - 0x6rss#19: broadcaster rotation pool is bot-only; MTProto reserved for admin ops - Real phone numbers no longer visible in group member list as message senders Skipped - 0x6rss#6: circuit breakers per-process → out of scope (Redis redesign required)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deleted the .env-example as the UI Rewrite update switches to a config.json model.