怎样发送语音消息? #923
Answered
by
Karlatemp
AdorableParker
asked this question in
Q&A
怎样发送语音消息?
#923
-
文档源码注释里面写了只能接收和转发,但又说可以通过 |
Beta Was this translation helpful? Give feedback.
Answered by
Karlatemp
Jan 28, 2021
Replies: 3 comments 1 reply
-
应该是先通过ExternalResource的静态方法构造ExternalResource实例,然后进行上传,上传后再添加到消息链内 |
Beta Was this translation helpful? Give feedback.
0 replies
-
语音还不完善,在2.2可能会支持好友语音 |
Beta Was this translation helpful? Give feedback.
1 reply
-
目前只有群聊支持语音发送 // kotlin
val voice = File("E:\\MediaCoder\\dec/sys_cc4.amr").toExternalResource().use {
(subject as Group).uploadVoice(it)
}
subject.sendMessage(voice) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Him188
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
目前只有群聊支持语音发送