UNPKG

@warriorteam/zalo-personal

Version:

Unofficial Zalo Personal API for JavaScript - A powerful library for interacting with Zalo personal accounts with URL attachment support, auto-reply, product catalog, and business features

19 lines (18 loc) 880 B
import { ThreadType } from "../models/index.js"; import { Urgency, type Mention, type SendMessageQuote, type Style } from "./sendMessage.js"; export type SendImageByUrlOptions = { imageUrl: string; msg?: string; ttl?: number; mentions?: Mention[]; quote?: SendMessageQuote; styles?: Style[]; urgency?: Urgency; filename?: `${string}.${string}`; headers?: Record<string, string>; }; export type SendImageByUrlResponse = Awaited<ReturnType<ReturnType<typeof import("./sendMessage.js").sendMessageFactory>>>; export declare const sendImageByUrlFactory: (ctx: import("../context.js").ContextBase, api: import("../apis.js").API) => (options: SendImageByUrlOptions, threadId: string, type?: ThreadType) => Promise<{ message: import("./sendMessage.js").SendMessageResult | null; attachment: import("./sendMessage.js").SendMessageResult[]; }>;