Control Local Claude Code & Codex From Telegram — Private Chats & Group Chats
TagTag bridges your local CLI agents to Telegram using Bot API Long Polling (getUpdates), requiring only a BotFather token and zero public infrastructure. It supports text and photo replies, persistent offset cursor tracking, multi-Bot group chats, and sanitized error paths so your bot token is never leaked in logs.
Multi-Bot group chats
Add multiple Bots to a Telegram group (disable Group Privacy in BotFather if a Bot needs wider context, or keep privacy on for explicit @mentions). Each Bot maintains isolated state per chat and respects owner-only guards on /model, /stop, and /schedule.
@MacClaudeBot Run go test ./infra/connectors/... and send me only failing cases
/status
Setup & config
Generate manifest →- 1. Create a Bot via @BotFather
Message @BotFather with /newbot, pick a name and username, and copy the HTTP API token.
- 2. Bind Owner ID for Safe Mobile Control
Send /help in a DM to inspect your scoped platform ID, then add it to owner_ids so only you can invoke /model, /stop, or /trace raw.
- 3. Test Cursor & Connectivity With --dry-run
Run tagtag connector poll --dry-run telegram:personal to verify getUpdates without mutating your saved offset.
{
"id": "telegram:personal",
"type": "telegram",
"enabled": true,
"bot_id": "mobile-dev",
"access": "send",
"env_keys": ["TELEGRAM_BOT_TOKEN"],
"config": {}
}Connector recipes
RSS + X + Reddit + YouTube Daily Brief on Your Phone
Combine TagTag’s zero-dependency web/social connectors with Telegram so your Bot filters noise locally and delivers one short numbered brief each morning.
Verified pitfalls
Caught in TagTag live testing (BUG-01): all Telegram transport errors now pass through full-path redaction replacing tokens with [REDACTED].
TagTag preserves positive previous offsets on empty polls and advances candidate cursors to max(N, update_id+1) even when updates are filtered out.
FAQ
Does Telegram support draft-only mode in TagTag?
Telegram’s Bot API has no server-side draft endpoint, so AccessGuardSink explicitly rejects draft sends with an error rather than silently sending a message—zero accidental sends.