mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-16 04:02:54 -06:00
gambiarra grupos
This commit is contained in:
parent
11177d3e13
commit
dde7aa2fd9
@ -2249,8 +2249,6 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
messageSent = await this.sendMessage(sender, message, mentions, linkPreview, quoted);
|
||||
}
|
||||
|
||||
console.dir({messageSent});
|
||||
|
||||
if (Long.isLong(messageSent?.messageTimestamp)) {
|
||||
messageSent.messageTimestamp = messageSent.messageTimestamp?.toNumber();
|
||||
}
|
||||
@ -3981,13 +3979,12 @@ export class BaileysStartupService extends ChannelStartupService {
|
||||
edit: data.key,
|
||||
});
|
||||
|
||||
console.dir({messageUpdate: messageSent}, {depth: null});
|
||||
|
||||
if (messageSent) {
|
||||
const editedMessage =
|
||||
messageSent?.message?.protocolMessage || messageSent?.message?.editedMessage?.message?.protocolMessage;
|
||||
|
||||
if (editedMessage) {
|
||||
editedMessage.key.remoteJid = editedMessage.key.remoteJid.replace("s.whatsapp.net", "g.us");
|
||||
this.sendDataWebhook(Events.SEND_MESSAGE_UPDATE, editedMessage);
|
||||
if (this.configService.get<Chatwoot>('CHATWOOT').ENABLED && this.localChatwoot?.enabled)
|
||||
this.chatwootService.eventWhatsapp(
|
||||
|
Loading…
Reference in New Issue
Block a user