mirror of
https://fastgit.cc/github.com/openclaw/openclaw
synced 2026-04-30 22:12:32 +08:00
* fix: use process-scoped cache for Telegram command sync to fix missing menu after restart Fixes openclaw#66714, openclaw#66682 Root cause: The command hash cache was persisted to disk across gateway restarts. When the hash matched (commands unchanged), setMyCommands was skipped entirely. But Telegram bot commands can be cleared by external factors, so the cached state becomes stale after restart. Fix: Replace file-based hash cache with a process-scoped Map. This preserves the rapid-restart rate-limit protection within a single process, but ensures commands are always re-registered after a gateway restart. * fix(telegram): drop stale async command cache calls * fix: keep Telegram command sync process-local (#66730) (thanks @nightq) --------- Co-authored-by: nightq <zengwei@nightq.cn> Co-authored-by: Ayaan Zaidi <hi@obviy.us>