mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-23 04:22:02 -06:00
Adjusted so that when it is "list", it sends correctly
This commit is contained in:
parent
5f79513617
commit
4357fcf7ef
@ -2434,6 +2434,21 @@ export class WAStartupService {
|
||||
);
|
||||
}
|
||||
|
||||
if (!message['audio'] && sender != 'status@broadcast') {
|
||||
this.logger.verbose('Sending message');
|
||||
return await this.client.sendMessage(
|
||||
sender,
|
||||
{
|
||||
forward: {
|
||||
key: { remoteJid: this.instance.wuid, fromMe: true },
|
||||
message,
|
||||
},
|
||||
mentions,
|
||||
},
|
||||
option as unknown as MiscMessageGenerationOptions,
|
||||
);
|
||||
}
|
||||
|
||||
if (sender === 'status@broadcast') {
|
||||
this.logger.verbose('Sending message');
|
||||
return await this.client.sendMessage(
|
||||
|
Loading…
Reference in New Issue
Block a user