Skip to content

qchat_def.message_def.QChatMessageSend

Zvicii edited this page Oct 24, 2022 · 6 revisions

Interface: QChatMessageSend

qchat_def/message_def.QChatMessageSend

Struct

QChatMessageSend 发送消息时指定的参数

Table of contents

Properties

Properties

server_id

Optional server_id: number

必填,消息所属的server id

Defined in

ts/qchat_def/message_def.ts:76


channel_id

Optional channel_id: number

必填,消息所属的channel id

Defined in

ts/qchat_def/message_def.ts:78


msg_type

Optional msg_type: NIMQChatMsgType

必填,消息类型

Defined in

ts/qchat_def/message_def.ts:80


msg_body

Optional msg_body: string

可选,消息内容

Defined in

ts/qchat_def/message_def.ts:82


msg_attach

Optional msg_attach: object

可选,消息附件

Defined in

ts/qchat_def/message_def.ts:84


msg_ext

Optional msg_ext: string

可选,消息扩展字段

Defined in

ts/qchat_def/message_def.ts:86


msg_id

Optional msg_id: string

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

Defined in

ts/qchat_def/message_def.ts:88


resend_flag

Optional resend_flag: boolean

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

Defined in

ts/qchat_def/message_def.ts:90


mention_all

Optional mention_all: boolean

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

Defined in

ts/qchat_def/message_def.ts:92


mention_accids

Optional mention_accids: string[]

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

Defined in

ts/qchat_def/message_def.ts:94


mention_role_ids

Optional mention_role_ids: number[]

可选,被艾特的人的身份组id列表

Defined in

ts/qchat_def/message_def.ts:96


history_enable

Optional history_enable: boolean

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

Defined in

ts/qchat_def/message_def.ts:98


push_payload

Optional push_payload: string

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

Defined in

ts/qchat_def/message_def.ts:100


push_content

Optional push_content: string

可选,自定义的推送内容

Defined in

ts/qchat_def/message_def.ts:102


push_enable

Optional push_enable: boolean

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

Defined in

ts/qchat_def/message_def.ts:104


need_badge

Optional need_badge: boolean

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

Defined in

ts/qchat_def/message_def.ts:106


need_push_nick

Optional need_push_nick: boolean

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

Defined in

ts/qchat_def/message_def.ts:108


route_enable

Optional route_enable: boolean

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

Defined in

ts/qchat_def/message_def.ts:110


thread_info

Optional thread_info: QChatMessageThreadInfo

可选,thread 消息相关信息

Defined in

ts/qchat_def/message_def.ts:112


anti_spam_info

Optional anti_spam_info: QChatMessageAntiSpamInfo

可选,反垃圾信息

Defined in

ts/qchat_def/message_def.ts:114


env

Optional env: string

可选,环境变量

Defined in

ts/qchat_def/message_def.ts:116

Clone this wiki locally