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 { InstanceDto } from '@api/dto/instance.dto';
|
||||||
import {
|
import {
|
||||||
SendAudioDto,
|
SendAudioDto,
|
||||||
SendButtonDto,
|
SendButtonsDto,
|
||||||
SendContactDto,
|
SendContactDto,
|
||||||
SendListDto,
|
SendListDto,
|
||||||
SendLocationDto,
|
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);
|
return await this.waMonitor.waInstances[instanceName].buttonMessage(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import {
|
|||||||
MediaMessage,
|
MediaMessage,
|
||||||
Options,
|
Options,
|
||||||
SendAudioDto,
|
SendAudioDto,
|
||||||
SendButtonDto,
|
SendButtonsDto,
|
||||||
SendContactDto,
|
SendContactDto,
|
||||||
SendListDto,
|
SendListDto,
|
||||||
SendLocationDto,
|
SendLocationDto,
|
||||||
@ -1108,7 +1108,7 @@ export class BusinessStartupService extends ChannelStartupService {
|
|||||||
return audioSent;
|
return audioSent;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async buttonMessage(data: SendButtonDto) {
|
public async buttonMessage(data: SendButtonsDto) {
|
||||||
const embeddedMedia: any = {};
|
const embeddedMedia: any = {};
|
||||||
|
|
||||||
const btnItems = {
|
const btnItems = {
|
||||||
|
Loading…
Reference in New Issue
Block a user