use of co.aurasphere.botmill.fb.model.outcoming.message.TextMessage in project fb-botmill by BotMill.
the class TextMessageBuilder method build.
/**
* {@inheritDoc} Returns a response containing a plain text message.
*/
public FbBotMillResponse build(MessageEnvelope envelope) {
User recipient = getRecipient(envelope);
Message message = new TextMessage(messageText);
message.setQuickReplies(quickReplies);
return new FbBotMillMessageResponse(recipient, message);
}
Aggregations