-
Notifications
You must be signed in to change notification settings - Fork 2
qchat_def.message_def.QChatMessageSend
qchat_def/message_def.QChatMessageSend
Struct
QChatMessageSend 发送消息时指定的参数
- server_id
- channel_id
- msg_type
- msg_body
- msg_attach
- msg_ext
- msg_id
- resend_flag
- mention_all
- mention_accids
- history_enable
- push_payload
- push_content
- push_enable
- need_badge
- need_push_nick
- route_enable
- thread_info
- anti_spam_info
- env
• server_id: number
必填,消息所属的server id
ts/qchat_def/message_def.ts:73
• channel_id: number
必填,消息所属的channel id
ts/qchat_def/message_def.ts:75
• msg_type: NIMQChatMsgType
必填,消息类型
ts/qchat_def/message_def.ts:77
• msg_body: string
可选,消息内容
ts/qchat_def/message_def.ts:79
• msg_attach: object
可选,消息附件
ts/qchat_def/message_def.ts:81
• msg_ext: string
可选,消息扩展字段
ts/qchat_def/message_def.ts:83
• msg_id: string
可选,消息重发时需要指定此参数
ts/qchat_def/message_def.ts:85
• resend_flag: boolean
必填,重发标记,false:不是重发,true:是重发
ts/qchat_def/message_def.ts:87
• mention_all: boolean
可选,是否艾特所有人,false:否,true:是
ts/qchat_def/message_def.ts:89
• mention_accids: string
[]
可选,被艾特的人的accid列表
ts/qchat_def/message_def.ts:91
• history_enable: boolean
必填,该消息是否存储云端历史,0:不支持,1:支持
ts/qchat_def/message_def.ts:93
• push_payload: string
可选,自定义的推送属性,限制json
ts/qchat_def/message_def.ts:95
• push_content: string
可选,自定义的推送内容
ts/qchat_def/message_def.ts:97
• push_enable: boolean
可选,是否需要推送, false: 不需要, true: 需要, 默认 false
ts/qchat_def/message_def.ts:99
• need_badge: boolean
可选,是否需要消息计数, false: 不需要, true: 需要, 默认 true
ts/qchat_def/message_def.ts:101
• need_push_nick: boolean
可选,是否需要推送昵称, false: 不需要, true: 需要, 默认 true
ts/qchat_def/message_def.ts:103
• route_enable: boolean
可选,是否需要抄送, false: 不需要, true: 需要, 默认 true
ts/qchat_def/message_def.ts:105
• thread_info: QChatMessageThreadInfo
可选,thread 消息相关信息
ts/qchat_def/message_def.ts:107
• anti_spam_info: QChatMessageAntiSpamInfo
可选,反垃圾信息
ts/qchat_def/message_def.ts:109
• env: string
可选,环境变量
- chatroom/chatroom
- chatroom_def/chatroom_def
- nim/client
- nim/data_sync
- nim/friend
- nim/global
- nim/msglog
- nim/nos
- nim/online_session
- nim/pass_through_proxy
- nim/plugin
- nim/session
- nim/subscribe_event
- nim/super_team
- nim/sysmsg
- nim/talk
- nim/talkex
- nim/team
- nim/tool
- nim/user
- nim_def/client_def
- nim_def/data_sync_def
- nim_def/doc_trans_def
- nim_def/friend_def
- nim_def/global_def
- nim_def/msglog_def
- nim_def/nos_def
- nim_def/online_session_def
- nim_def/pass_through_proxy_def
- nim_def/plugin_def
- nim_def/session_def
- nim_def/subscribe_event_def
- nim_def/super_team_def
- nim_def/sysmsg_def
- nim_def/talk_def
- nim_def/talkex_def
- nim_def/team_def
- nim_def/tool_def
- nim_def/user_def
- node-nim
- qchat/attachment
- qchat/channel
- qchat/channel_category
- qchat/instance
- qchat/message
- qchat/role
- qchat/server
- qchat/system_notification
- qchat_def/attachment_def
- qchat_def/channel_def
- qchat_def/instance_def
- qchat_def/message_def
- qchat_def/public_def
- qchat_def/role_def
- qchat_def/server_def
- qchat_def/system_notification_def