Skip to content

怎样发送语音消息? #923

Answered by Karlatemp
AdorableParker asked this question in Q&A
Discussion options

You must be logged in to vote

目前只有群聊支持语音发送

// kotlin
val voice = File("E:\\MediaCoder\\dec/sys_cc4.amr").toExternalResource().use {
    (subject as Group).uploadVoice(it)
}
subject.sendMessage(voice)

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Him188
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Him188
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants