Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data ImageResponseCard = ImageResponseCard' {}
- newImageResponseCard :: Text -> ImageResponseCard
- imageResponseCard_buttons :: Lens' ImageResponseCard (Maybe [Button])
- imageResponseCard_imageUrl :: Lens' ImageResponseCard (Maybe Text)
- imageResponseCard_subtitle :: Lens' ImageResponseCard (Maybe Text)
- imageResponseCard_title :: Lens' ImageResponseCard Text
Documentation
data ImageResponseCard Source #
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.
See: newImageResponseCard
smart constructor.
ImageResponseCard' | |
|
Instances
Create a value of ImageResponseCard
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:buttons:ImageResponseCard'
, imageResponseCard_buttons
- 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.
$sel:imageUrl:ImageResponseCard'
, imageResponseCard_imageUrl
- 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.
$sel:subtitle:ImageResponseCard'
, imageResponseCard_subtitle
- The subtitle to display on the response card. The format of the subtitle
is determined by the platform displaying the response card.
$sel:title:ImageResponseCard'
, imageResponseCard_title
- The title to display on the response card. The format of the title is
determined by the platform displaying the response card.
imageResponseCard_buttons :: Lens' ImageResponseCard (Maybe [Button]) Source #
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.
imageResponseCard_imageUrl :: Lens' ImageResponseCard (Maybe Text) Source #
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.
imageResponseCard_subtitle :: Lens' ImageResponseCard (Maybe Text) Source #
The subtitle to display on the response card. The format of the subtitle is determined by the platform displaying the response card.
imageResponseCard_title :: Lens' ImageResponseCard Text Source #
The title to display on the response card. The format of the title is determined by the platform displaying the response card.