openclaw/docs
Arne Moor 69608fd305 feat: add telegram provider with CLI integration
Add Telegram as a third messaging provider alongside web and twilio.

Core Features:
- Interactive login flow with phone/SMS/2FA authentication
- Send text and media messages (images, videos, audio, documents)
- Monitor incoming messages with auto-reply support
- Session management at ~/.clawdis/telegram/session/
- Full CLI integration (login, logout, status, send, relay commands)

Implementation Details:
- Uses telegram npm package for MTProto API access
- Supports both URL and local file media sending
- Cross-platform path handling (Windows/Unix)
- Optional Twilio env vars (supports Telegram-only usage)
- Minimal provider abstraction pattern
- Comprehensive test coverage (440 tests passing)

Changes:
- Add Telegram module (client, login, monitor, inbound, outbound, session)
- Add provider factory and base interfaces
- Wire Telegram functions into CLI deps
- Update env validation to make Twilio fields optional
- Add telegram to all CLI commands (login, logout, status, send, relay)
- Add null checks in Twilio code for optional env fields
- Fix send command to properly load session and connect
- Add local file support with cross-platform path handling
- Update login message to show correct ~/.clawdis path
- Add comprehensive tests and documentation

Basic Usage:
  warelay login --provider telegram
  warelay send --provider telegram --to "@user" --message "Hi"
  warelay send --provider telegram --to "@user" --media "/path/to/file.jpg"
  warelay relay --provider telegram

All tests pass (63 files, 440 tests). Zero TypeScript errors.
2025-12-05 18:59:38 +01:00
..
architecture feat: add telegram provider with CLI integration 2025-12-05 18:59:38 +01:00
refactor branding: default to clawdis paths and launchd label 2025-12-04 18:01:30 +00:00
agent-send.md CLI: add agent command for direct agent runs 2025-12-04 17:54:20 +00:00
agent.md perf(pi): reuse tau rpc for command auto-replies 2025-12-02 20:09:51 +00:00
agents.md 🦞 Rebrand to CLAWDIS - add docs, update README 2025-12-03 15:45:43 +00:00
audio.md docs: document media caps and tidy web tests 2025-11-25 23:43:57 +01:00
clawd.md Docs: document thinking levels 2025-12-03 08:45:30 +00:00
CNAME Create CNAME 2025-12-03 16:44:03 +01:00
configuration.md 🦞 Rebrand to CLAWDIS - add docs, update README 2025-12-03 15:45:43 +00:00
group-messages.md feat(web): prime group sessions with member roster 2025-12-03 15:45:43 +00:00
heartbeat.md Docs: document thinking levels 2025-12-03 08:45:30 +00:00
images.md docs: document mime-first media handling 2025-11-28 08:07:53 +01:00
index.md docs: document agent CLI and changelog 2025-12-04 17:55:38 +00:00
lore.md 🦞 Rebrand to CLAWDIS - add docs, update README 2025-12-03 15:45:43 +00:00
queue.md feat: serialize command auto-replies with queue 2025-11-25 04:40:49 +01:00
RELEASING.md Docs: clarify release body should not repeat title 2025-11-25 17:11:24 +01:00
security.md 🦞 Rebrand to CLAWDIS - add docs, update README 2025-12-03 15:45:43 +00:00
telegram.md feat: add telegram provider with CLI integration 2025-12-05 18:59:38 +01:00
thinking.md Verbose: include tool arg metadata in prefixes 2025-12-03 09:57:41 +00:00
tmux.md CLI: rename heartbeat tmux helper and log file path 2025-11-26 18:00:23 +01:00
troubleshooting.md 🦞 Rebrand to CLAWDIS - add docs, update README 2025-12-03 15:45:43 +00:00
whatsapp-clawd.jpg Add WhatsApp screenshot to claude-config.md 2025-11-27 18:43:24 +01:00