I am using botkit by howdy to call the api for the postMessage method. This gives me an error invalid_array_argwhen I pass the binding property. Something is wrong with the way it gets POSTED
bot.api.chat.postMessage(
{
channel : '#general',
text : 'hi',
parse : true,
username: '@' + bot.identity.name,
as_user : true,
icon_url: listOfMessages.logoUrl,
attachments: [{"pretext": "pre-hello", "text": "text-world"}]
}, function (err,res) {
if(err) console.log(err);
console.log(res);
}
);
source
share