RichMediaPayload: {
    actions?: Action[];
    attachmentIds?: string[];
    mediaUrl?: string;
    selectedAction?: Action;
}

Payload for the rich media content which covers image, file, postback, reply, location, carousel.

Type declaration

  • Optionalactions?: Action[]

    Available actions for message containing reply rich media elements.

  • OptionalattachmentIds?: string[]

    List of attachment ids for all the attachments contained in the rich media payload of the message.

  • OptionalmediaUrl?: string

    The URL of the file/image for an attachment message.

  • OptionalselectedAction?: Action

    The selected action against available actions for message containing reply.