invoke

operator fun invoke(message: String, postback: String? = null): OutboundMessage

Creates default instance of OutboundMessage for simple text messages.

Parameters

postback

Optional - see OutboundMessage.postback.


operator fun invoke(attachments: Iterable<ContentDescriptor>, message: String = "", postback: String? = null): OutboundMessage

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.


Creates a default instance of OutboundMessage for reply button actions.

Return

A new instance of OutboundMessage.

Parameters

action

The reply button action that triggered this message.