evolution-api-sdk
Version:
Unofficial SDK for the Evolution Whatsapp API v2
35 lines (32 loc) • 690 B
text/typescript
import { ChatId, MessageId } from '../../../types/tags.mjs';
interface Row {
title: string;
description?: string;
rowId: string;
}
interface Section {
title: string;
rows: Row[];
}
interface ListMessageOptions {
number: ChatId;
buttonText: string;
text: string;
title?: string;
footer?: string;
sections: Section[];
options?: {
delay?: number;
messageId?: MessageId;
};
}
interface ListMessageResponse {
key: {
remoteJid: ChatId;
fromMe: boolean;
id: MessageId;
};
messageTimestamp: string;
status: string;
}
export type { ListMessageOptions, ListMessageResponse, Row, Section };