Path: blob/master/node_modules/@adiwajshing/baileys/lib/Utils/process-message.d.ts
1129 views
import type { Logger } from 'pino';1import { proto } from '../../WAProto';2import { AuthenticationCreds, BaileysEventEmitter, InitialReceivedChatsState, SignalKeyStoreWithTransaction } from '../Types';3declare type ProcessMessageContext = {4historyCache: Set<string>;5recvChats: InitialReceivedChatsState;6downloadHistory: boolean;7creds: AuthenticationCreds;8keyStore: SignalKeyStoreWithTransaction;9ev: BaileysEventEmitter;10logger?: Logger;11};12/** Cleans a received message to further processing */13export declare const cleanMessage: (message: proto.IWebMessageInfo, meId: string) => void;14export declare const isRealMessage: (message: proto.IWebMessageInfo) => boolean;15export declare const shouldIncrementChatUnread: (message: proto.IWebMessageInfo) => boolean;16declare const processMessage: (message: proto.IWebMessageInfo, { downloadHistory, ev, historyCache, recvChats, creds, keyStore, logger }: ProcessMessageContext) => Promise<void>;17export default processMessage;181920