mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-23 04:22:02 -06:00
fix: Sending status message
This commit is contained in:
parent
45e03d87c7
commit
5f79513617
@ -2420,21 +2420,6 @@ export class WAStartupService {
|
||||
option as unknown as MiscMessageGenerationOptions,
|
||||
);
|
||||
}
|
||||
|
||||
if (!message['audio']) {
|
||||
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 (message['conversation']) {
|
||||
this.logger.verbose('Sending message');
|
||||
@ -3097,6 +3082,8 @@ export class WAStartupService {
|
||||
if (!group) throw new BadRequestException('Group not found');
|
||||
|
||||
onWhatsapp.push(new OnWhatsAppDto(group.id, !!group?.id, group?.subject));
|
||||
} else if (jid === 'status@broadcast') {
|
||||
onWhatsapp.push(new OnWhatsAppDto(jid, false));
|
||||
} else {
|
||||
jid = !jid.startsWith('+') ? `+${jid}` : jid;
|
||||
const verify = await this.client.onWhatsApp(jid);
|
||||
|
Loading…
Reference in New Issue
Block a user