Fix OpenClaw callback command path from NL dispatch regression
All checks were successful
CD Pipeline / deploy (push) Successful in 4m17s

This commit is contained in:
OoO
2026-05-02 15:59:54 +08:00
parent 76304602b1
commit 673982d83b
4 changed files with 198 additions and 46 deletions

View File

@@ -636,10 +636,12 @@ class TrendTelegramBot:
if data.startswith('cmd:'):
from routes.openclaw_bot_routes import handle_cmd
from routes import openclaw_bot_routes as openclaw
parts = data[4:].split(':', 1)
await query.message.reply_chat_action(action='typing')
handle_cmd(parts[0], parts[1] if len(parts) > 1 else '', chat_id, reply_to)
with openclaw._run_with_callback_cmd_context():
handle_cmd(parts[0], parts[1] if len(parts) > 1 else '', chat_id, reply_to)
return
except Exception as e: