UNPKG

@zenvia/sdk

Version:

This SDK for [Node.js](https://nodejs.org/) was created based on the [Zenvia](https://www.zenvia.com/) [API](https://zenvia.github.io/zenvia-openapi-spec/).

23 lines (22 loc) 951 B
import { Buttons, ICardContent, IMedia } from '../../types'; import { AbstractContent } from './abstract-content'; /** * Implementation of card content. */ export declare class CardContent extends AbstractContent implements ICardContent { title?: string; text?: string; media?: IMedia; buttons?: Buttons; quickReplyButtons?: Buttons; /** * Returns a new `CardContent` that can be used to send an image, a GIF or a video to your customer. * * @param title A title in bold shown above the text of the card. * @param text A text to be displayed inside the card. * @param media Object with the media url, disposition and caption. * @param buttons List of buttons displayed inside a card. * @param quickReplyButtons Horizontal list of buttons displayed after the content. */ constructor(title?: string, text?: string, media?: IMedia, buttons?: Buttons, quickReplyButtons?: Buttons); }