TROPTIONSFTH Trading
← Investor home

TROPTIONS · Operator

Telegram — NeedAI Ada

Primary bot @NeedAI_Ada_bot — mobile command surface for baas-api, agent orchestrator, and USDC relay stubs. Revenue replies are PROJECTION — not realized bank revenue.

Connect tonight — checklist

  • Primary bot: NeedAI Ada (@NeedAI_Ada_bot) — token in host .env as TELEGRAM_BOT_TOKEN only (never commit)
  • Start baas-api on :8097 (not :4029 dashboard)
  • pm2 start ecosystem.config.js --only telegram-bot --update-env
  • In Telegram: /start then /pools — expect PIPELINE/PROJECTION labeled replies
  • Set NEXT_PUBLIC_TELEGRAM_BOT_USERNAME=NeedAI_Ada_bot at build for Open Telegram CTA

Status: PIPELINE until TELEGRAM_BOT_TOKEN is on the host and pm2 shows telegram-bot online.

BotFather setup

  1. Open @BotFather in Telegram.
  2. Use existing bot @NeedAI_Ada_bot (NeedAI Ada) or /newbot for a new bot.
  3. Copy the token into host .env as TELEGRAM_BOT_TOKEN — never commit to git.
  4. Optional: set NEXT_PUBLIC_TELEGRAM_BOT_USERNAME when building this site for the Open Telegram button.
  5. Start stack: see Command Center activation steps.

Environment variables

Templates: config/multi-gateway.env.template, services/telegram-bot/.env.template

VariableRequiredWhereSource
TELEGRAM_BOT_TOKENYesHost .env only — never commit@BotFather → /newbot
PORTNoDefault 8443ecosystem.config.js
BAAS_API_URLNoDefault http://127.0.0.1:8097fiat-rails/baas-api
AGENT_ORCHESTRATOR_URLNoDefault http://127.0.0.1:4100agents/orchestrator
USDC_RELAY_URLNoDefault http://127.0.0.1:4040services/usdc-base-relay
NEXT_PUBLIC_TELEGRAM_BOT_USERNAMENoInvestor site build only (public deep link)NeedAI Ada — NeedAI_Ada_bot (no @ in env)

TELEGRAM_BOT_TOKEN is documented on this page only for operator setup. It must not appear in the repository or GitHub Pages build output.

Commands

Implementation: services/telegram-bot/bot.js (port 8443)

CommandActionLabelUpstream
/startWelcome + command listPIPELINE
/trade [SYMBOL]Dry-run agent trade cycle via orchestrator :4100PROJECTIONagents/orchestrator
/revenueBilling revenue stub from baas-api :8097PROJECTIONfiat-rails/baas-api
/poolsBatch pool job statusPIPELINEfiat-rails/baas-api
/agent [id]Register agent stub on BaaSPIPELINEfiat-rails/baas-api
/deposit [amt]USDC relay deposit stub :4040PIPELINEservices/usdc-base-relay
/withdraw [amt]USDC relay withdraw stubPIPELINEservices/usdc-base-relay
/setprice SYM PRICEBaaS global price stub (admin)PIPELINEfiat-rails/baas-api
Capability overview: What you can do NOW lists PROVEN crypto steps vs PIPELINE fiat (partner MSB + BIC + nostro).
Site ↔ Telegram: Command Center links here and to t.me bot. Deep link HTML: telegram-deep-link.html (redirect when username is configured at deploy).