UNPKG

n8n-nodes-wechat-work

Version:
34 lines 1.17 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const WechatWorkRequestUtils_1 = __importDefault(require("../../../help/utils/WechatWorkRequestUtils")); const MessageRecallOperate = { name: '撤回消息', value: 'message:recall', description: '撤回24小时内通过发送应用消息接口推送的消息', options: [ { displayName: '*消息ID', name: 'msgid', default: '', description: '从应用发送消息接口处获得的消息ID', type: 'string', required: true, }, ], async call(index) { const msgid = this.getNodeParameter('msgid', index); const data = { msgid, }; return WechatWorkRequestUtils_1.default.request.call(this, { method: 'POST', url: `/cgi-bin/message/recall`, body: data, }); }, }; exports.default = MessageRecallOperate; //# sourceMappingURL=MessageRecallOperate.js.map