Function Voice

  • 需要 mirai-api-http 1.8.2 以上,mirai-console 1.0 以上 生成语音消息格式

    Parameters

    • voiceId: null | string = null

      语音的 voiceId,不为空时将忽略 url 属性

    • url: null | string = null

      语音的URL,发送时可作网络语音的链接;接收时为腾讯语音服务器的链接,可用于语音下载

    • path: null | string = null

      语音的路径,发送本地语音,相对路径于 data/net.mamoe.mirai-api-http/voices

    • base64: null | string = null

    Returns MessageType.Voice

Generated using TypeDoc