RoamingSupported

interface RoamingSupported : Contact

支持查询漫游消息记录的 Contact.

Since

2.8

Functions

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

发送纯文本消息

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

向这个对象发送消息.

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

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

Properties

avatarUrl
Link copied to clipboard
open val avatarUrl: String

头像下载链接

bot
Link copied to clipboard
abstract override val bot: Bot

这个联系对象所属 Bot.

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

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

roamingMessages
Link copied to clipboard
abstract val roamingMessages: RoamingMessages

获取漫游消息记录管理器.

Inheritors

Friend
Link copied to clipboard