🤖 Telegram Helper
This repository includes a helper that starts the existing Telegram remote-control bridge without going through the TUI pairing flow.
What Changed in This Wrapper Repo
The helper entry point at ../telegram-remote-bridge.mjs is now checkout-relative instead of hardcoded to one local path.
Optional overrides:
GROK_SANDBOX_ROOTGROK_SANDBOX_REPO_DIRGROK_SANDBOX_LOG_PATHGROK_SANDBOX_PAIR_PATH
Prerequisites
~/.grok/user-settings.jsonmust contain a validapiKey- the same file must contain
telegram.botToken - the pinned
./grok-clisubmodule must be initialized ./grok-cli/distmust exist
Start the Helper
From the repository root:
powershell
bun .\telegram-remote-bridge.mjsConfirm startup:
powershell
Get-Content .\telegram-remote-bridge.log -Tail 20You should see lifecycle lines such as:
text
[... ] bot_ready username=@<your_bot> id=<bot_id>
[... ] telegram_bridge_startedPair Your Telegram Account
- Open your bot in Telegram.
- Send
/pair. - Copy the 6-character code returned by the bot.
- Write the code into
telegram-pair-code.txt.
powershell
Set-Content -Path .\telegram-pair-code.txt -Value '09FB08' -Encoding UTF8If pairing succeeds, the log will contain pair_approved.
Notes
- Keep the helper process running while using Telegram.
- Pairing and log artifacts are intentionally git-ignored.
- The bot can edit files inside the checked-out
grok-clisubmodule. - Public docs intentionally use placeholders for live bot identifiers and user IDs.