sendVoice

Gửi đoạn hội thoại

api.sendVoice(options, threadId[, type])

Parameters

  • options SendVoiceOptions

    • voiceUrl string

    • ttl number?

      • thời gian tồn tại danh thiếp, mặc định là 0 (vô hạn)

  • threadId string

  • type 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

Last updated