v2.2.2 — multi-account, auto-approve, pinned permissions
Grok Telegram Bot v2.2.2
The 2.2.x multi-account + permissions batch, documented and hardened.
Highlights since v2.1.0
Multi-account (headless)
- Account switch & auto-rotate never open a browser. Flow: stop agent → replace
~/.grok/auth.json→ start with headlesscached_tokenonly. Browser methods likegrok.comare never selected. - Auto-rotate on give-up (toggle in
/accounts): one pass over saved accounts; first success wins. - Real emails from auth.json entry fields (modern tokens often omit email claims).
- Active account = live token hash — no stale “active” after an outside
grok login. /reauthusesgrok login --device-auth(device code in Telegram, no host browser).- Agent spawn uses
--no-leaderso auth.json swaps take effect.
Permissions
AUTO_APPROVE_PERMISSIONS=true(default) — auto-approve ACP prompts, preferring “allow for this session”.- Interactive mode (trust-all + auto-approve both off): Approve/Deny prompts are pinned until approve, deny, or timeout; status panel re-pinned after.
Tool visibility (2.1.0)
- Rich per-kind tool-call detail: search, read, edit diffs, write, delete, move, execute, fetch, web search, MCP — with ✅/❌ completion status.
Install / upgrade
npm install -g grok-telegram-bot@2.2.2
# or
npm install -g grok-telegram-bot@latest
grok-tg restart # if installed as a service