Skip to content

feat: add Telegram and WhatsApp to OpenClaw setup picker #2555

@louisgv

Description

@louisgv

Summary

Add Telegram and WhatsApp as setup options in the OpenClaw interactive setup screen.

Background

This feature was originally developed in PR #2523, which was closed due to merge conflicts and divergence from main. The core feature needs to be reimplemented in a fresh PR based on current main.

Requirements

Telegram Setup

  • Add checkbox option: "Telegram (connect via bot token from @Botfather)"
  • Prompt user for bot token
  • Inject token via openclaw config (securely, without command injection)
  • Support env var override: SPAWN_TELEGRAM_BOT_TOKEN

WhatsApp Setup

  • Add checkbox option: "WhatsApp (scan QR code via web dashboard after launch)"
  • Display reminder about web dashboard QR scanning
  • Support interactive QR scan before TUI launch

Setup Screen Example

◆ Setup options
│ ◻ GitHub CLI
│ ◻ Reuse saved OpenRouter key
│ ◻ Chrome browser (~400 MB — enables web tools)
│ ◻ Telegram (connect via bot token from @BotFather)
│ ◻ WhatsApp (scan QR code via web dashboard after launch)

Security Requirements

  • MUST NOT use command-line interpolation for bot tokens (prevents command injection)
  • Use JSON config file upload or env var passing
  • Follow existing shellQuote() conventions for any shell execution
  • Add test coverage for token handling

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions