Search in sources :

Example 1 with TextMessage

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);
}
Also used : User(co.aurasphere.botmill.fb.model.base.User) FbBotMillMessageResponse(co.aurasphere.botmill.fb.model.outcoming.message.FbBotMillMessageResponse) Message(co.aurasphere.botmill.fb.model.outcoming.message.Message) TextMessage(co.aurasphere.botmill.fb.model.outcoming.message.TextMessage) TextMessage(co.aurasphere.botmill.fb.model.outcoming.message.TextMessage)

Aggregations

User (co.aurasphere.botmill.fb.model.base.User)1 FbBotMillMessageResponse (co.aurasphere.botmill.fb.model.outcoming.message.FbBotMillMessageResponse)1 Message (co.aurasphere.botmill.fb.model.outcoming.message.Message)1 TextMessage (co.aurasphere.botmill.fb.model.outcoming.message.TextMessage)1