invoke

public final static OutboundMessage invoke(String message, String postback)
public final static OutboundMessage invoke(String message)

Creates default instance of OutboundMessage for simple text messages.

Parameters

postback

Optional - see OutboundMessage.postback.


public final static OutboundMessage invoke(Iterable<ContentDescriptor> attachments, String message, String postback)
public final static OutboundMessage invoke(Iterable<ContentDescriptor> attachments, String message)
public final static OutboundMessage invoke(Iterable<ContentDescriptor> attachments)

Creates default instance of OutboundMessage for attachment messages.

Parameters

attachments

see OutboundMessage.attachments, should be non-empty.

message

Optional text message to be sent with attachment.

postback

Optional - see OutboundMessage.postback.