mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 09:50:24 +08:00
The create_and_start_bot endpoint was building a fresh BotConfig with
empty defaults (channels: {}) on every call, which caused _save_bot_config
to overwrite the on-disk config.yaml and wipe user-configured channels
(e.g. Telegram) on every server restart.
Fix: load the existing config from disk first and only fall back to
request payload defaults when no existing values are present.