create
fun create(messageType: String, userId: ID?, groupId: ID?, message: OneBotMessageOutgoing, autoEscape: Boolean? = null): SendMsgApi(source)
构建一个 SendMsgApi.
Parameters
messageType
消息类型,支持 private
、group
,分别对应私聊、群组,如不传入,则根据传入的 *_id
参数判断
userId
对方 QQ 号(消息类型为 private
时需要)
groupId
群号(消息类型为 group
时需要)
message
要发送的内容
autoEscape
消息内容是否作为纯文本发送(即不解析 CQ 码),只在 message
字段是字符串时有效