public class AttachmentMessageBuilder extends MessageBaseBuilder
Message that contains an Attachment.quickReplies| Modifier and Type | Method and Description |
|---|---|
AttachmentMessageBuilder |
addQuickReply(QuickReply reply)
Adds a
QuickReply to the current object. |
AttachmentMessageBuilder |
addQuickReply(String title,
String payload)
Adds a
QuickReply to the current object. |
FbBotMillResponse |
build(MessageEnvelope envelope)
Builds the
FbBotMillResponse that the bot should return. |
String |
toString() |
getRecipienteventKind, getLocationMessage, safeGetMessage, safeGetPostbackPayload, safeGetQuickReplyPayload, safeGetRecipient, safeGetRecipientId, safeGetSender, safeGetSenderId, validatepublic AttachmentMessageBuilder 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 AttachmentMessageBuilder addQuickReply(QuickReply reply)
QuickReply to the current object.reply - a quick reply object.public FbBotMillResponse build(MessageEnvelope envelope)
FbBotMillResponse that the bot should return. Returns a response containing an Attachment.envelope - a MessageEnvelope object representing the incoming
message.FbBotMillResponse of this bot.public String toString()
toString in class MessageBaseBuilderCopyright © 2017 BotMill. All rights reserved.