FileSupported

interface FileSupported : Contact

支持文件操作的 Contact. 目前仅 Group.

获取文件操作相关示例: RemoteFiles

Since

2.5

See also

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
files
Link copied to clipboard
abstract val files: RemoteFiles

获取远程文件列表 (管理器).

filesRoot
Link copied to clipboard
abstract val filesRoot: RemoteFile

文件根目录. 可通过 net.mamoe.mirai.utils.RemoteFile.listFiles 获取目录下文件列表.

id
Link copied to clipboard
abstract override val id: Long

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

Inheritors

Group
Link copied to clipboard