UNPKG

@warriorteam/zalo-personal

Version:

Unofficial Zalo Personal API for JavaScript - A powerful library for interacting with Zalo personal accounts with URL attachment support

27 lines (26 loc) 729 B
import { ThreadType } from "../models/index.js"; export type Success = { clientId: string; msgId: string; }; export type Failed = { clientId: string; errorCode: number; errorMessage: string; }; export type ForwardMessageResponse = { success: Success[]; failed: Failed[]; }; export type ForwardMessageParams = { message: string; threadIds: string[]; ttl?: number; reference?: { id: string; ts: number; logSrcType: number; fwLvl: number; }; }; export declare const forwardMessageFactory: (ctx: import("../context.js").ContextBase, api: import("../zalo.js").API) => (params: ForwardMessageParams, type?: ThreadType) => Promise<ForwardMessageResponse>;