HowdyAI的Botkit能否监听附件内容?
Can HowdyAI's Botkit listen for attachment contents?
正在尝试使用 BotKit to have a custom integration react to a 3rd party integration. The 3rd party integration only communicates via replies as attachments。
有没有办法让我的自定义集成 'hear' 附件?如果它已经存在,我无法在文档中找到它。
答案出现在comments on the issue。
本质上:
controller.on('bot_message', function(bot, message) {
console.log('message.attachments: ' + message.attachments);
var attachment = message.attachments[0];
console.log('attachments.title: ' + attachment.title);
console.log('attachments.text: ' + attachment.text);
});
正在尝试使用 BotKit to have a custom integration react to a 3rd party integration. The 3rd party integration only communicates via replies as attachments。
有没有办法让我的自定义集成 'hear' 附件?如果它已经存在,我无法在文档中找到它。
答案出现在comments on the issue。
本质上:
controller.on('bot_message', function(bot, message) {
console.log('message.attachments: ' + message.attachments);
var attachment = message.attachments[0];
console.log('attachments.title: ' + attachment.title);
console.log('attachments.text: ' + attachment.text);
});