Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@adiwajshing/baileys/lib/Utils/history.d.ts
1129 views
1
import { proto } from '../../WAProto';
2
import { Chat, Contact, InitialReceivedChatsState } from '../Types';
3
export declare const downloadHistory: (msg: proto.Message.IHistorySyncNotification) => Promise<proto.HistorySync>;
4
export declare const processHistoryMessage: (item: proto.IHistorySync, historyCache: Set<string>, recvChats: InitialReceivedChatsState) => {
5
chats: Chat[];
6
contacts: Contact[];
7
messages: proto.IWebMessageInfo[];
8
didProcess: boolean;
9
};
10
export declare const downloadAndProcessHistorySyncNotification: (msg: proto.Message.IHistorySyncNotification, historyCache: Set<string>, recvChats: InitialReceivedChatsState) => Promise<{
11
chats: Chat[];
12
contacts: Contact[];
13
messages: proto.IWebMessageInfo[];
14
didProcess: boolean;
15
}>;
16
export declare const isHistoryMsg: (message: proto.IMessage) => boolean;
17
18