Skip to content

Add Telegram /goal command#175

Merged
MagMueller merged 1 commit into
mainfrom
codex/add-telegram-goal-command
May 14, 2026
Merged

Add Telegram /goal command#175
MagMueller merged 1 commit into
mainfrom
codex/add-telegram-goal-command

Conversation

@MagMueller
Copy link
Copy Markdown
Contributor

@MagMueller MagMueller commented May 14, 2026

Summary

  • Add /goal <goal> to Telegram command registration and help text.
  • Save created goals into the private goals file and Mini App goals DB.
  • Create a Telegram goal topic when possible and start the Agency generator prompt so cards appear in Telegram and the Mini App.

Tests

  • /opt/bux/venv/bin/python -m py_compile agent/telegram_bot.py
  • /opt/bux/venv/bin/python -m unittest agent/test_telegram_bot.py
  • git diff --check

Manual

  • Started a real goal for improving the Agency Tinder UI/card quality through the new helper path.

Summary by cubic

Adds an owner-only Telegram /goal command to create and track Agency goals from chat. It saves the goal, opens a topic in groups, and starts the generator so cards appear in Telegram and the Mini App.

  • New Features
    • Adds /goal <goal> command and help text; shows usage if missing; owner-only.
    • In groups, creates a new forum topic for the goal and records it in the Mini App (stores tg_chat_id/tg_thread_id).
    • Saves the goal to a private goals file (configurable via BUX_GOALS_FILE) and to miniapp.db (goals table).
    • Starts the Agency generator with a goal-aware prompt (reads goals file, avoids repeats, generates 10 high-signal cards); sends a success or fallback message.

Written for commit 4953b6f. Summary will update on new commits.

@MagMueller MagMueller force-pushed the codex/add-telegram-goal-command branch from feba736 to 4953b6f Compare May 14, 2026 19:02
@MagMueller MagMueller merged commit 63452b5 into main May 14, 2026
6 checks passed
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

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