feat: send list and buttons

This commit is contained in:
Davidson Gomes
2024-10-18 15:33:21 -03:00
parent c4bcd1fafe
commit 1787238c63
5 changed files with 193 additions and 28 deletions

View File

@@ -90,14 +90,22 @@ export class SendAudioDto extends Metadata {
audio: string;
}
class Button {
text: string;
id: string;
export type TypeButton = 'reply' | 'copy' | 'url' | 'call';
export class Button {
type: TypeButton;
displayText: string;
id?: string;
url?: string;
copyCode?: string;
phoneNumber?: string;
}
export class SendButtonDto extends Metadata {
export class SendButtonsDto extends Metadata {
thumbnailUrl?: string;
title: string;
description: string;
footerText?: string;
description?: string;
footer?: string;
buttons: Button[];
}