UNPKG

@warriorteam/zalo-personal

Version:

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

13 lines (12 loc) 457 B
import { ThreadType } from "../models/index.js"; export type SendVoiceOptions = { voiceUrl: string; /** * Time to live in miliseconds (default: 0) */ ttl?: number; }; export type SendVoiceResponse = { msgId: string; }; export declare const sendVoiceFactory: (ctx: import("../context.js").ContextBase, api: import("../zalo.js").API) => (options: SendVoiceOptions, threadId: string, type?: ThreadType) => Promise<SendVoiceResponse>;