fix: 修復 Telegram Bot /menu 指令無響應及重複訊息問題
Some checks failed
CD Pipeline / deploy (push) Failing after 55s
Some checks failed
CD Pipeline / deploy (push) Failing after 55s
- telegram_bot_service: 新增 /menu 指令處理器,映射到 cmd_start - openclaw_bot_routes: 優化「今日業績資料尚未匯入」訊息邏輯 - 區分「資料載入異常」vs「確實未匯入」 - 避免在已有今日資料時仍顯示未匯入訊息 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1062,6 +1062,7 @@ class TrendTelegramBot:
|
||||
# 註冊處理器
|
||||
self.application.add_handler(CommandHandler("start", self.cmd_start))
|
||||
self.application.add_handler(CommandHandler("help", self.cmd_help))
|
||||
self.application.add_handler(CommandHandler("menu", self.cmd_start)) # /menu 指令映射到 cmd_start
|
||||
self.application.add_handler(CommandHandler("trend", self.cmd_trend))
|
||||
self.application.add_handler(CommandHandler("search", self.cmd_search))
|
||||
self.application.add_handler(CommandHandler("copy", self.cmd_copy))
|
||||
|
||||
Reference in New Issue
Block a user