Skip to content

feat: add Telegram control bot with chat-scoped search ownership - #6

Merged
vgvr0 merged 4 commits into
masterfrom
feature/telegram-control-bot
Sep 24, 2026
Merged

vgvr0 merged 4 commits into
masterfrom
feature/telegram-control-bot

Conversation

@vgvr0

@vgvr0 vgvr0 commented Sep 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add persistent Telegram chat ownership with isolated search management by chat_id.
  • Add deterministic Telegram control commands, including partial /search_update.
  • Reuse existing search/tracking services and route owned notifications to the Telegram owner chat.
  • Add long-polling bot transport, CLI entrypoint, Prometheus metrics, docs, tests, and optional Docker Compose profile.

Commands

/start, /help, /searches, /search_add, /search_show, /search_enable, /search_disable, /search_update, /search_delete, /search_run

Persistence

  • Alembic revision: 0026_telegram_control_bot
  • telegram_chats with unique chat_id
  • telegram_search_owners with unique chat/search association and cascading foreign keys

Validation

  • Full tests: 420 passed, 13 skipped
  • PostgreSQL 16: migration to 0026 and Telegram-specific tests passed
  • Ruff: passed
  • Ruff format: passed
  • mypy src: passed
  • git diff --check: passed
  • docker compose config: passed

Notes

  • LLM integration is intentionally not included.
  • Webhooks are intentionally not included.
  • Please review before merging; do not merge automatically.

@vgvr0
vgvr0 merged commit 60ab1f1 into master Sep 24, 2026
2 checks passed
@vgvr0
vgvr0 deleted the feature/telegram-control-bot branch September 24, 2026 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant