mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-19 11:52:20 -06:00
chore: Update cloud API message sending for lists and buttons
This commit updates the way messages are sent to the cloud API for lists and buttons, adjusting the structure of the request payload. The affected files include: - sendMessage.dto.ts: updates the format of the Button class - sendMessage.router.ts: adds a new route for sending button messages - whatsapp.business.service.ts: updates the handling of list and button messages - message.schema.ts: adds a new schema for button messages These changes improve the integration with the cloud API and allow for better handling of lists and buttons in messages.
This commit is contained in:
@@ -90,18 +90,15 @@ export class SendAudioDto extends Metadata {
|
||||
}
|
||||
|
||||
class Button {
|
||||
buttonText: string;
|
||||
buttonId: string;
|
||||
text: string;
|
||||
id: string;
|
||||
}
|
||||
class ButtonMessage {
|
||||
export class SendButtonDto extends Metadata {
|
||||
title: string;
|
||||
description: string;
|
||||
footerText?: string;
|
||||
buttons: Button[];
|
||||
}
|
||||
export class SendButtonDto extends Metadata {
|
||||
buttonMessage: ButtonMessage;
|
||||
}
|
||||
|
||||
export class SendLocationDto extends Metadata {
|
||||
latitude: number;
|
||||
|
||||
Reference in New Issue
Block a user