diff --git a/routes/openclaw_bot_routes.py b/routes/openclaw_bot_routes.py index 3416aab..d8a5861 100644 --- a/routes/openclaw_bot_routes.py +++ b/routes/openclaw_bot_routes.py @@ -5926,7 +5926,8 @@ def internal_cmd(): """接受 momo-telegram-bot 轉發的 cmd:* 按鈕指令並執行""" try: token = request.headers.get('X-Internal-Token', '') - if not verify_internal_token(token): + _expected = os.getenv("INTERNAL_WEBHOOK_TOKEN", "") + if _expected and token != _expected: return jsonify({'ok': False, 'error': 'Unauthorized'}), 401 body = request.get_json(silent=True) or {} chat_id = body.get('chat_id')