public class TextMessageBuilder extends MessageBaseBuilder
quickReplies| Modifier and Type | Method and Description |
|---|---|
TextMessageBuilder |
addQuickLocationReply(String locationMessage)
Adds a Location
QuickReply to the current object. |
TextMessageBuilder |
addQuickReply(QuickReply reply)
Adds a
QuickReply to the current object. |
TextMessageBuilder |
addQuickReply(String title,
String payload)
Adds a
QuickReply to the current object. |
TextMessageBuilder |
addQuickReply(String title,
String payload,
String imageUrl)
Adds a
QuickReply to the current object. |
FbBotMillResponse |
build(MessageEnvelope envelope)
Builds the
FbBotMillResponse that the bot should return. |
String |
toString() |
getRecipienteventKind, getAudioMessage, getFileMessage, getImageMessage, getLocationMessage, getVideoMessage, safeGetMessage, safeGetPostbackPayload, safeGetQuickReplyPayload, safeGetRecipient, safeGetRecipientId, safeGetSender, safeGetSenderId, validatepublic TextMessageBuilder addQuickReply(String title, String payload)
QuickReply to the current object.title - the quick reply button label. It can't be empty.payload - the payload sent back when the button is pressed. It can't be
empty.public TextMessageBuilder addQuickReply(String title, String payload, String imageUrl)
QuickReply to the current object.title - the quick reply button label. It can't be empty.payload - the payload sent back when the button is pressed. It can't be
empty.imageUrl - the image to show on the quick reply.public TextMessageBuilder addQuickReply(QuickReply reply)
QuickReply to the current object.reply - a quick reply object.public TextMessageBuilder addQuickLocationReply(String locationMessage)
QuickReply to the current object.locationMessage - the location textpublic FbBotMillResponse build(MessageEnvelope envelope)
FbBotMillResponse that the bot should return. Returns a response containing a plain text message.envelope - a MessageEnvelope object representing the incoming
message.FbBotMillResponse of this bot.public String toString()
toString in class MessageBaseBuilderCopyright © 2017 BotMill. All rights reserved.