Skip to content

Dashboard Telegram channel config not persisted to .env #227

@ntamero

Description

@ntamero

Bug Description

When configuring Telegram in the Dashboard (Channels > Telegram), entering the bot token and saving does not persist the TELEGRAM_BOT_TOKEN to ~/.openfang/.env. The [channels.telegram] section in config.toml also remains empty.

Steps to Reproduce

  1. Fresh install OpenFang v0.3.2
  2. Open dashboard, go to Channels > Telegram
  3. Enter a valid Telegram bot token
  4. Save/apply the configuration
  5. Check ~/.openfang/.envTELEGRAM_BOT_TOKEN is missing
  6. Check config.toml[channels.telegram] is empty

Expected Behavior

The bot token should be saved to .env as TELEGRAM_BOT_TOKEN and [channels.telegram] should be populated with at least enabled = true.

Actual Behavior

Token is not saved anywhere. Telegram channel remains disconnected after restart.

Environment

  • OpenFang v0.3.2
  • Ubuntu 24.04

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