UNPKG

superchats

Version:

SuperChats is a premium library with unique features that control Whatsapp functions. With Superchats you can build service bots, multiservice chats or any system that uses whatsapp

16 lines (15 loc) 833 B
import { AxiosRequestConfig } from 'axios'; import { proto } from '../../Connection/enc'; import { Chat, Contact } from '../../Models'; export declare const downloadHistory: (msg: proto.Message.IHistorySyncNotification, options: AxiosRequestConfig<any>) => Promise<proto.HistorySync>; export declare const processHistoryMessage: (item: proto.IHistorySync, ev: any) => { chats: Chat[]; contacts: Contact[]; messages: proto.IWebMessageInfo[]; }; export declare const downloadAndProcessHistorySyncNotification: (msg: proto.Message.IHistorySyncNotification, options: AxiosRequestConfig<any>, ev: any) => Promise<{ chats: Chat[]; contacts: Contact[]; messages: proto.IWebMessageInfo[]; }>; export declare const getHistoryMsg: (message: proto.IMessage) => proto.Message.IHistorySyncNotification | null | undefined;