tock / ai.tock.bot.connector.messenger.model.send / MediaPayload

MediaPayload

data class MediaPayload : ModelPayload (source)

A Media payload see https://developers.facebook.com/docs/messenger-platform/send-messages/template/media.

Constructors

<init>

A Media payload see https://developers.facebook.com/docs/messenger-platform/send-messages/template/media.

MediaPayload(elements: List<MediaElement>, sharable: Boolean = false)

Properties

elements

val elements: List<MediaElement>

sharable

val sharable: Boolean

Functions

toGenericMessage

fun toGenericMessage(): GenericMessage?