invoke

@JvmName(name = "create")
operator fun invoke(message: String, postback: String? = null): OutboundMessage

Creates default instance of OutboundMessage for simple text messages.

Parameters

postback

Optional - see OutboundMessage.postback.


@JvmName(name = "create")
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.