I have been working on a project to develop a chatbot for jabber, and it successfully sends messages to individual users like this:
bot.say(message = {
text: 'hi',
user: '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="621711071022060d0f030b0c4c010d0f">[email protected]</a>'
})
However, I'm encountering an issue when trying to send messages to a chat room. Do I need a specific JID for the chat room, and if so, where can I find it? The following code snippet is what I've attempted, but it fails:
bot.say(message = {
text: 'hi',
channel: '<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="24564b4b496a45494164404b49">[email protected]</a>'
})
This chatbot has been developed using botkit in JavaScript.