mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
feat: send list and buttons
This commit is contained in:
parent
1787238c63
commit
da77af5bd1
@ -1,7 +1,7 @@
|
||||
import { InstanceDto } from '@api/dto/instance.dto';
|
||||
import {
|
||||
SendAudioDto,
|
||||
SendButtonDto,
|
||||
SendButtonsDto,
|
||||
SendContactDto,
|
||||
SendListDto,
|
||||
SendLocationDto,
|
||||
@ -56,7 +56,7 @@ export class SendMessageController {
|
||||
}
|
||||
}
|
||||
|
||||
public async sendButtons({ instanceName }: InstanceDto, data: SendButtonDto) {
|
||||
public async sendButtons({ instanceName }: InstanceDto, data: SendButtonsDto) {
|
||||
return await this.waMonitor.waInstances[instanceName].buttonMessage(data);
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,7 @@ import {
|
||||
MediaMessage,
|
||||
Options,
|
||||
SendAudioDto,
|
||||
SendButtonDto,
|
||||
SendButtonsDto,
|
||||
SendContactDto,
|
||||
SendListDto,
|
||||
SendLocationDto,
|
||||
@ -1108,7 +1108,7 @@ export class BusinessStartupService extends ChannelStartupService {
|
||||
return audioSent;
|
||||
}
|
||||
|
||||
public async buttonMessage(data: SendButtonDto) {
|
||||
public async buttonMessage(data: SendButtonsDto) {
|
||||
const embeddedMedia: any = {};
|
||||
|
||||
const btnItems = {
|
||||
|
Loading…
Reference in New Issue
Block a user