MessageCreated

data class MessageCreated @ApiResultType constructor(val msgId: CharSequenceID, val msgTimestamp: Timestamp, val nonce: String? = null)

发送频道消息发送私聊消息的响应值。

Author

ForteScarlet

Constructors

Link copied to clipboard
fun MessageCreated(msgId: CharSequenceID, msgTimestamp: Timestamp, nonce: String? = null)

Properties

Link copied to clipboard
val msgId: CharSequenceID

服务端生成的消息 id

Link copied to clipboard
val msgTimestamp: Timestamp

消息发送时间(服务器时间戳)

Link copied to clipboard
val nonce: String? = null

随机字符串,见参数列表

Extensions

Link copied to clipboard
Link copied to clipboard
fun MessageCreated.toUpdate(content: String, quote: ID? = null): MessageUpdateRequest

通过 MessageCreated 构建 MessageUpdateRequest 实例。