Adjusted so that when it is "list", it sends correctly

This commit is contained in:
Leandro Santos Rocha 2024-01-18 21:30:49 -03:00 committed by GitHub
parent 5f79513617
commit 4357fcf7ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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(