RichMediaPayload: {
    actions?: Action[];
    attachmentIds?: string[];
    coordinates?: LocationCoordinates;
    items?: Item[];
    location?: LocationDetails;
    mediaUrl?: string;
    selectedAction?: Action;
}

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

Type declaration

  • Optionalactions?: Action[]

    Actions for the rich media content

  • OptionalattachmentIds?: string[]

    List Of attachment Ids

  • Optionalcoordinates?: LocationCoordinates

    Coordinates of the location

  • Optionalitems?: Item[]

    Items in the carousel

  • Optionallocation?: LocationDetails

    Location details like address and name

  • OptionalmediaUrl?: string

    The URL of the file/image in case of attachment

  • OptionalselectedAction?: Action

    The selected action for the rich media content