mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-18 09:31:42 +00:00
When no accountId was provided, resolveTelegramAccount and resolveTelegramToken resolved the implicit default account first. Any leftover TELEGRAM_BOT_TOKEN or top-level channels.telegram.botToken then shadowed the configured channels.telegram.defaultAccount and default-agent binding, so gateway sends, heartbeats, and message actions went out through the wrong bot and typically failed with chat not found in groups the stale bot never joined. Message actions could also fail with a missing-token error when only the named default account had a token. Resolve the configured default account id up front in both optional-account entry points, matching the nextcloud-talk resolver and createTelegramActionGate.
22 KiB
22 KiB