Skip to content

Commit da77af5

Browse files
committed
feat: send list and buttons
1 parent 1787238 commit da77af5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/api/controllers/sendMessage.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { InstanceDto } from '@api/dto/instance.dto';
22
import {
33
SendAudioDto,
4-
SendButtonDto,
4+
SendButtonsDto,
55
SendContactDto,
66
SendListDto,
77
SendLocationDto,
@@ -56,7 +56,7 @@ export class SendMessageController {
5656
}
5757
}
5858

59-
public async sendButtons({ instanceName }: InstanceDto, data: SendButtonDto) {
59+
public async sendButtons({ instanceName }: InstanceDto, data: SendButtonsDto) {
6060
return await this.waMonitor.waInstances[instanceName].buttonMessage(data);
6161
}
6262

src/api/integrations/channel/meta/whatsapp.business.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
MediaMessage,
55
Options,
66
SendAudioDto,
7-
SendButtonDto,
7+
SendButtonsDto,
88
SendContactDto,
99
SendListDto,
1010
SendLocationDto,
@@ -1108,7 +1108,7 @@ export class BusinessStartupService extends ChannelStartupService {
11081108
return audioSent;
11091109
}
11101110

1111-
public async buttonMessage(data: SendButtonDto) {
1111+
public async buttonMessage(data: SendButtonsDto) {
11121112
const embeddedMedia: any = {};
11131113

11141114
const btnItems = {

0 commit comments

Comments
 (0)