All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.blr19c.falowp.bot.system.adapter.qq.op.OpSendMessage.kt Maven / Gradle / Ivy

There is a newer version: 2.0.0-RC2
Show newest version
package com.blr19c.falowp.bot.system.adapter.qq.op

import com.fasterxml.jackson.annotation.JsonProperty

data class OpSendMessage(
    /**
     * 消息内容
     */
    val content: OpMessageContent,

    /**
     * 图片地址
     */
    val image: String?,

    /**
     * 引用消息对象
     */
    @field:JsonProperty("message_reference")
    val messageReference: Reference?,

    /**
     * 要回复的消息id
     */
    @field:JsonProperty("msg_id")
    val msgId: String?,
) {
    data class Reference(
        /**
         * 需要引用回复的消息 id
         */
        @field:JsonProperty("message_id")
        val messageId: String,

        /**
         * 是否忽略获取引用消息详情错误,默认否
         */
        @field:JsonProperty("ignore_get_message_error")
        val ignore: Boolean = false
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy