Functions
createAudio
Parameters
audio: { duration: number; originalContentUrl: string }
duration: number
originalContentUrl: string
createButtonTemplate
- createButtonTemplate(altText: string, __namedParameters: { actions: Action[]; defaultAction?: Action; imageAspectRatio?: "rectangle" | "square"; imageBackgroundColor?: string; imageSize?: "cover" | "contain"; text: string; thumbnailImageUrl?: string; title?: string }, options?: MessageOptions): TemplateMessage<ButtonsTemplate>
Parameters
altText: string
__namedParameters: { actions: Action[]; defaultAction?: Action; imageAspectRatio?: "rectangle" | "square"; imageBackgroundColor?: string; imageSize?: "cover" | "contain"; text: string; thumbnailImageUrl?: string; title?: string }
Optional defaultAction?: Action
Optional imageAspectRatio?: "rectangle" | "square"
Optional imageBackgroundColor?: string
Optional imageSize?: "cover" | "contain"
text: string
Optional thumbnailImageUrl?: string
Optional title?: string
createButtonsTemplate
- createButtonsTemplate(altText: string, __namedParameters: { actions: Action[]; defaultAction?: Action; imageAspectRatio?: "rectangle" | "square"; imageBackgroundColor?: string; imageSize?: "cover" | "contain"; text: string; thumbnailImageUrl?: string; title?: string }, options?: MessageOptions): TemplateMessage<ButtonsTemplate>
Parameters
altText: string
__namedParameters: { actions: Action[]; defaultAction?: Action; imageAspectRatio?: "rectangle" | "square"; imageBackgroundColor?: string; imageSize?: "cover" | "contain"; text: string; thumbnailImageUrl?: string; title?: string }
Optional defaultAction?: Action
Optional imageAspectRatio?: "rectangle" | "square"
Optional imageBackgroundColor?: string
Optional imageSize?: "cover" | "contain"
text: string
Optional thumbnailImageUrl?: string
Optional title?: string
createCarouselTemplate
Parameters
altText: string
__namedParameters: { imageAspectRatio?: "rectangle" | "square"; imageSize?: "cover" | "contain"; quickReply?: QuickReply } = {}
Optional imageAspectRatio?: "rectangle" | "square"
Optional imageSize?: "cover" | "contain"
Optional quickReply?: QuickReply
createConfirmTemplate
Parameters
altText: string
__namedParameters: { actions: Action[]; text: string }
createImage
Parameters
image: { originalContentUrl: string; previewImageUrl?: string }
originalContentUrl: string
Optional previewImageUrl?: string
createImageCarouselTemplate
createImagemap
Parameters
altText: string
__namedParameters: Omit<ImagemapMessage, "type" | "altText">
createTemplate
Type parameters
Parameters
altText: string
template: T
createVideo
Parameters
video: { originalContentUrl: string; previewImageUrl: string }
originalContentUrl: string
previewImageUrl: string