Module Values.ImageResponseCardSource

A card that is shown to the user by a messaging platform. You define the contents of the card, the card is displayed by the platform. When you use a response card, the response from the user is constrained to the text associated with a button on the card.

Sourcetype nonrec t = {
  1. title : AttachmentTitle.t;
    (*

    The title to display on the response card. The format of the title is determined by the platform displaying the response card.

    *)
  2. subtitle : AttachmentTitle.t option;
    (*

    The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.

    *)
  3. imageUrl : AttachmentUrl.t option;
    (*

    The URL of an image to display on the response card. The image URL must be publicly available so that the platform displaying the response card has access to the image.

    *)
  4. buttons : ButtonsList.t option;
    (*

    A list of buttons that should be displayed on the response card. The arrangement of the buttons is determined by the platform that displays the button.

    *)
}
Sourceval context_ : string
Sourceval make : ?subtitle:??? -> ?imageUrl:??? -> ?buttons:??? -> title:AttachmentTitle.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ButtonText.t ]) list ] list | `String of AttachmentTitle.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t