mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-27 02:48: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,
|
WAMessage,
|
||||||
WAMessageUpdate,
|
WAMessageUpdate,
|
||||||
WASocket,
|
WASocket,
|
||||||
|
makeInMemoryStore,
|
||||||
|
|
||||||
} from '@whiskeysockets/baileys';
|
} from '@whiskeysockets/baileys';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import { exec, execSync } from 'child_process';
|
import { exec, execSync } from 'child_process';
|
||||||
@ -135,6 +137,8 @@ import { ChatwootService } from './chatwoot.service';
|
|||||||
import { TypebotService } from './typebot.service';
|
import { TypebotService } from './typebot.service';
|
||||||
|
|
||||||
const retryCache = {};
|
const retryCache = {};
|
||||||
|
const pino = require('pino');
|
||||||
|
const dados = makeInMemoryStore({ pino });
|
||||||
|
|
||||||
export class WAStartupService {
|
export class WAStartupService {
|
||||||
constructor(
|
constructor(
|
||||||
@ -1408,7 +1412,7 @@ export class WAStartupService {
|
|||||||
return isGroupJid || isBroadcast;
|
return isGroupJid || isBroadcast;
|
||||||
},
|
},
|
||||||
msgRetryCounterCache: this.msgRetryCounterCache,
|
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,
|
generateHighQualityLinkPreview: true,
|
||||||
syncFullHistory: false,
|
syncFullHistory: false,
|
||||||
userDevicesCache: this.userDevicesCache,
|
userDevicesCache: this.userDevicesCache,
|
||||||
|
Loading…
Reference in New Issue
Block a user