QGAttachmentMessage

@SerialName(value = "qg.attachment")
data class QGAttachmentMessage @JvmOverloads constructor(val url: String, val properties: Map<String, String> = emptyMap()) : QGMessageElement, BinaryDataAwareMessage(source)

附件消息。

仅支持在接收的消息中出现,暂不支持发送。

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(url: String, properties: Map<String, String> = emptyMap())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val id: ID
Link copied to clipboard
Link copied to clipboard

得到当前消息可对应的原始类型 Message.Attachment.

Link copied to clipboard
val url: String

Functions

Link copied to clipboard
open suspend override fun binaryData(): ByteArray

尝试通过 url 读取二进制资源。