← Catalog

@roshnicdave/telecode

Drive Pi from Telegram: phone messages become Pi turns, and Pi replies back.

Package

Install

Install with PiG

pig install npm:@roshnicdave/telecode

Install with Pi

pi install npm:@roshnicdave/telecode
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

README

Written by the package's publisher, shown as published in version 2.0.0 (README.md). PiG does not review it.

telecode

Drive Pi from Telegram. Send a message from your phone, Pi answers it, and the reply lands back on your phone.

Install

pi install npm:@roshnicdave/telecode
# or from git:
pi install git:github.com/roshnicdave/telecode

Configure

export TELEGRAM_BOT_TOKEN="1234567890:AA-your-token"
export TELEGRAM_ALLOWED_IDS="8010764520"   # optional: your Telegram user id

Start Pi, then message your bot. It arrives as a normal Pi turn ([Telegram] ...), and Pi replies with the telegram_send tool.

If TELEGRAM_BOT_TOKEN is not set, telecode reads it from ~/.pi/agent/.telegram_token.

Only one Pi instance polls Telegram at a time; other terminals keep working and take over automatically if the polling one closes.