C2CMessageCreate

@SerialName(value = "C2C_MESSAGE_CREATE")
data class C2CMessageCreate(val id: String? = null, val s: Long = DEFAULT_SEQ, val data: C2CMessageCreate.Data) : Signal.Dispatch(source)

单聊消息

触发场景 用户在单聊发送消息给机器人

Constructors

Link copied to clipboard
constructor(id: String? = null, s: Long = DEFAULT_SEQ, data: C2CMessageCreate.Data)

Types

Link copied to clipboard
data class Author(val userOpenid: String)
Link copied to clipboard
data class Data(val id: String, val author: C2CMessageCreate.Author, val content: String, val timestamp: String, val attachments: List<Message.Attachment> = emptyList())

Properties

Link copied to clipboard
@SerialName(value = "d")
open override val data: C2CMessageCreate.Data

此事件的实际本体

Link copied to clipboard
open override val id: String? = null
Link copied to clipboard
protected open override val s: Long

事件序列

Inherited properties

Link copied to clipboard
Link copied to clipboard
val seq: Long

事件序列