Fix OpenClaw callback command path from NL dispatch regression
All checks were successful
CD Pipeline / deploy (push) Successful in 4m17s
All checks were successful
CD Pipeline / deploy (push) Successful in 4m17s
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user