Skip to content

qchat_def.message_def.QChatMessageSend

Zvicii edited this page Jul 8, 2022 · 6 revisions

Interface: QChatMessageSend

qchat_def/message_def.QChatMessageSend

Struct

QChatMessageSend 发送消息时指定的参数

Table of contents

Properties

Properties

server_id

server_id: number

必填,消息所属的server id

Defined in

ts/qchat_def/message_def.ts:73


channel_id

channel_id: number

必填,消息所属的channel id

Defined in

ts/qchat_def/message_def.ts:75


msg_type

msg_type: NIMQChatMsgType

必填,消息类型

Defined in

ts/qchat_def/message_def.ts:77


msg_body

msg_body: string

可选,消息内容

Defined in

ts/qchat_def/message_def.ts:79


msg_attach

msg_attach: object

可选,消息附件

Defined in

ts/qchat_def/message_def.ts:81


msg_ext

msg_ext: string

可选,消息扩展字段

Defined in

ts/qchat_def/message_def.ts:83


msg_id

msg_id: string

可选,消息重发时需要指定此参数

Defined in

ts/qchat_def/message_def.ts:85


resend_flag

resend_flag: boolean

必填,重发标记,false:不是重发,true:是重发

Defined in

ts/qchat_def/message_def.ts:87


mention_all

mention_all: boolean

可选,是否艾特所有人,false:否,true:是

Defined in

ts/qchat_def/message_def.ts:89


mention_accids

mention_accids: string[]

可选,被艾特的人的accid列表

Defined in

ts/qchat_def/message_def.ts:91


history_enable

history_enable: boolean

必填,该消息是否存储云端历史,0:不支持,1:支持

Defined in

ts/qchat_def/message_def.ts:93


push_payload

push_payload: string

可选,自定义的推送属性,限制json

Defined in

ts/qchat_def/message_def.ts:95


push_content

push_content: string

可选,自定义的推送内容

Defined in

ts/qchat_def/message_def.ts:97


push_enable

push_enable: boolean

可选,是否需要推送, false: 不需要, true: 需要, 默认 false

Defined in

ts/qchat_def/message_def.ts:99


need_badge

need_badge: boolean

可选,是否需要消息计数, false: 不需要, true: 需要, 默认 true

Defined in

ts/qchat_def/message_def.ts:101


need_push_nick

need_push_nick: boolean

可选,是否需要推送昵称, false: 不需要, true: 需要, 默认 true

Defined in

ts/qchat_def/message_def.ts:103


route_enable

route_enable: boolean

可选,是否需要抄送, false: 不需要, true: 需要, 默认 true

Defined in

ts/qchat_def/message_def.ts:105


thread_info

thread_info: QChatMessageThreadInfo

可选,thread 消息相关信息

Defined in

ts/qchat_def/message_def.ts:107


anti_spam_info

anti_spam_info: QChatMessageAntiSpamInfo

可选,反垃圾信息

Defined in

ts/qchat_def/message_def.ts:109


env

env: string

可选,环境变量

Defined in

ts/qchat_def/message_def.ts:111

Clone this wiki locally