sendVoice
Gửi đoạn hội thoại
api.sendVoice(options, threadId[, type])
Parameters
options
SendVoiceOptionsvoiceUrl
stringttl
number?thời gian tồn tại danh thiếp, mặc định là 0 (vô hạn)
threadId
stringtype
ThreadType?loại thread, mặc định là người dùng
Return
Promise<SendVoiceResponse>
Types
export type SendVoiceOptions = {
voiceUrl: string;
ttl?: number;
};
export type SendVoiceResponse = {
msgId: string;
};Examples
Gửi đoạn hội thoại
const userId = "0000000000000001"
api.sendVoice(
{
voiceUrl: "https://example.com/voice.mp3"
},
userId
)
.then(console.log)
.catch(console.error);Related
Last updated