n8n-nodes-wechat-work
Version:
33 lines • 1.1 kB
JavaScript
;
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 GroupChatGetOperate = {
name: '获取群聊会话',
value: 'appGroupChat:get',
description: '获取一个已有的群聊会话',
options: [
{
displayName: '*群聊ID',
name: 'chatid',
default: '',
description: '群聊的唯一标志',
type: 'string',
required: true,
},
],
async call(index) {
const chatid = this.getNodeParameter('chatid', index);
return WechatWorkRequestUtils_1.default.request.call(this, {
method: 'GET',
url: `/cgi-bin/appchat/get`,
qs: {
chatid,
},
});
},
};
exports.default = GroupChatGetOperate;
//# sourceMappingURL=GroupChatGetOperate.js.map