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