@nguyennhuy/zalo-api
Version:
Unofficial Zalo API for JavaScript
26 lines (25 loc) • 726 B
TypeScript
export type FetchLastMsgResponse = {
lastActionId: string;
lastActionIdOther: string;
more: number;
msgs: Array<string>;
groupMsgs: Array<string>;
pageMsgs: Array<string>;
clearUnreads: Array<{
actionId: string;
idTo: string;
lastMsgId: string;
isGroup: number;
type: number;
}>;
clearUnreadsReact: Array<{
actionId: string;
idTo: string;
lastMsgId: string;
isGroup: number;
type: number;
}>;
};
export declare const getLastMsgFactory: (ctx: import("../../context.js").ContextBase, api: import("../../apis.js").API) => (threadIdLocalMsgId: {
[key: string]: string;
}) => Promise<FetchLastMsgResponse>;