mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-26 18:38:39 -06:00
Fixed sending messages in groups.
Fixed sending messages in groups. Message unavailable.
This commit is contained in:
parent
45e03d87c7
commit
2a323b41f0
@ -33,6 +33,8 @@ import makeWASocket, {
|
||||
WAMessage,
|
||||
WAMessageUpdate,
|
||||
WASocket,
|
||||
makeInMemoryStore,
|
||||
|
||||
} from '@whiskeysockets/baileys';
|
||||
import axios from 'axios';
|
||||
import { exec, execSync } from 'child_process';
|
||||
@ -135,6 +137,8 @@ import { ChatwootService } from './chatwoot.service';
|
||||
import { TypebotService } from './typebot.service';
|
||||
|
||||
const retryCache = {};
|
||||
const pino = require('pino');
|
||||
const dados = makeInMemoryStore({ pino });
|
||||
|
||||
export class WAStartupService {
|
||||
constructor(
|
||||
@ -1408,7 +1412,7 @@ export class WAStartupService {
|
||||
return isGroupJid || isBroadcast;
|
||||
},
|
||||
msgRetryCounterCache: this.msgRetryCounterCache,
|
||||
getMessage: async (key) => (await this.getMessage(key)) as Promise<proto.IMessage>,
|
||||
getMessage: (key) => { return (dados.loadMessage(key.remoteJid, key.id))?.message || undefined; },
|
||||
generateHighQualityLinkPreview: true,
|
||||
syncFullHistory: false,
|
||||
userDevicesCache: this.userDevicesCache,
|
||||
|
Loading…
Reference in New Issue
Block a user