@nguyennhuy/zalo-api
Version:
Unofficial Zalo API for JavaScript
13 lines (12 loc) • 458 B
TypeScript
import { ThreadType } from "../models/index.js";
export type SendVoiceOptions = {
voiceUrl: string;
/**
* Time to live in milliseconds (default: 0)
*/
ttl?: number;
};
export type SendVoiceResponse = {
msgId: string;
};
export declare const sendVoiceFactory: (ctx: import("../context.js").ContextBase, api: import("../apis.js").API) => (options: SendVoiceOptions, threadId: string, type?: ThreadType) => Promise<SendVoiceResponse>;