Can we use Chatbot.onMessage() event to send same message to another rainbow id
Can we use Chatbot.onMessage() event to send same message to another rainbow id?
I integrated chatbot in web application, Now I need to send chatbot response to additional one rainbow user. Is there any ways to send IM in that sample_mesage.js file.
-
Official comment
Hi Sathya,
I suppose you are using the Chatbot project available under github ( https://github.com/Rainbow-CPaaS/Rainbow-Chatbot ).
If you knows the user identififer ( Jid ) of the second user, you are able to call the nodeSDK.im.sendMessageToJid or nodeSDK.im.sendMessageToBubbleJid methods, to send the response to the additional rainbow user.
Take a look into https://hub.openrainbow.com/#/documentation/doc/sdk/node/api/im NodeJS IM documentation for parameters details.
Regards
Vincent
Comment actions
Please sign in to leave a comment.
Comments
1 comment