Insert a personalized message in your chatbox

Insert a personalized message in your chatbox

Written by Remi Delhaye
Last update: Tuesday, Dec 24, 2024

You can easily insert a message in a conversation programmatically, wether you are already talking to your contact or not.

Example

var MS = _polaria.MessageSample;
var Message = _polaria.Message;

var message = new Message(MS.bot, "Suddenly, pineapples.");
_polaria.sendMessage(message);

The first argument to the Message constructor is a properties preset.

Javascript API

12 articles in this category.
Written by Remi Delhaye.