@roshnicdave/telecode
Drive Pi from Telegram: phone messages become Pi turns, and Pi replies back.
Package details
Install @roshnicdave/telecode from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@roshnicdave/telecode- Package
@roshnicdave/telecode- Version
2.0.0- Published
- Oct 25, 2026
- Downloads
- 1,439/mo · 321/wk
- Author
- roshnicdave
- License
- MIT
- Types
- package
- Size
- 6.1 KB
- Dependencies
- 1 dependency · 2 peers
Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
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.