OtherClient

interface OtherClient : Contact

其他设备. 如当 BotANDROID_PHONE 登录时, 还可以有其他设备以 ANDROID_PAD, iOS, PC 或其他设备登录.

Functions

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

发送纯文本消息

open suspend override fun sendMessage(message: Message): MessageReceipt<OtherClient>

向这个对象发送消息.

uploadImage
Link copied to clipboard
open suspend override 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
open override val id: Long

识别 id, 仅运行时使用.

info
Link copied to clipboard
abstract val info: OtherClientInfo

Extensions

deviceKind
Link copied to clipboard
val OtherClient.deviceKind: String
deviceName
Link copied to clipboard
val OtherClient.deviceName: String
platform
Link copied to clipboard
val OtherClient.platform: Platform?