AudioSupported

interface AudioSupported : Contact

支持发送语音的 Contact

Since

2.7

Functions

Link copied to clipboard
@JvmName(name = "getAvatarUrl")
open fun avatarUrl(spec: AvatarSpec): String

头像下载链接.

Link copied to clipboard
expect open suspend fun sendMessage(message: String): MessageReceipt<Contact>

发送纯文本消息

expect abstract suspend fun sendMessage(message: Message): MessageReceipt<Contact>

向这个对象发送消息.

Link copied to clipboard
abstract suspend fun uploadAudio(resource: ExternalResource): OfflineAudio

上传一个语音文件以备发送. resource 需要调用方关闭.

Link copied to clipboard
expect abstract suspend fun uploadImage(resource: ExternalResource): Image

上传一个 资源 作为图片以备发送.

Properties

Link copied to clipboard
open val avatarUrl: String

头像下载链接, 规格默认为 AvatarSpec.LARGEST

Link copied to clipboard
expect abstract override val bot: Bot

这个联系对象所属 Bot.

Link copied to clipboard
abstract val coroutineContext: CoroutineContext
Link copied to clipboard
expect abstract override val id: Long

可以是 QQ 号码或者群号码.

Inheritors

Link copied to clipboard
Link copied to clipboard