Skip to content

chatroom_def.chatroom_def.ChatRoomMessageSetting

Zvicii edited this page Dec 5, 2022 · 5 revisions

Interface: ChatRoomMessageSetting

chatroom_def/chatroom_def.ChatRoomMessageSetting

Table of contents

Properties

Properties

resend_flag_

Optional resend_flag_: boolean

消息重发标记位

Defined in

ts/chatroom_def/chatroom_def.ts:208


ext_

Optional ext_: string

第三方扩展字段, 必须为可以解析为json的非格式化的字符串,长度限制4096

Defined in

ts/chatroom_def/chatroom_def.ts:210


anti_spam_enable_

Optional anti_spam_enable_: boolean

是否需要过易盾反垃圾

Defined in

ts/chatroom_def/chatroom_def.ts:212


anti_spam_content_

Optional anti_spam_content_: string

(可选)开发者自定义的反垃圾字段,长度限制2048

Defined in

ts/chatroom_def/chatroom_def.ts:214


history_save_

Optional history_save_: boolean

(可选)是否存云端消息历史,默认存

Defined in

ts/chatroom_def/chatroom_def.ts:216


anti_spam_bizid_

Optional anti_spam_bizid_: string

(可选)用户配置的对某些单条消息另外的反垃圾的业务ID

Defined in

ts/chatroom_def/chatroom_def.ts:218


anti_spam_using_yidun_

Optional anti_spam_using_yidun_: number

(可选) 单条消息是否使用易盾反垃圾 0:(在开通易盾的情况下)不过易盾反垃圾

Defined in

ts/chatroom_def/chatroom_def.ts:220


high_priority_

Optional high_priority_: number

高优先级消息标记,1:是; 非高优先级消息不带该字段,服务器填写,发送方不需要填写

Defined in

ts/chatroom_def/chatroom_def.ts:222


yidun_anti_cheating_

Optional yidun_anti_cheating_: string

(可选)String, 易盾反垃圾增强反作弊专属字段, 限制json,长度限制1024

Defined in

ts/chatroom_def/chatroom_def.ts:224


env_config_

Optional env_config_: string

(可选) 自定义抄送配置

Defined in

ts/chatroom_def/chatroom_def.ts:226


anti_spam_ext_

Optional anti_spam_ext_: string

(可选)String, 易盾反垃圾扩展字段,限制json,长度限制1024

Defined in

ts/chatroom_def/chatroom_def.ts:228


location_

Optional location_: NIMChatRoomLocation

(可选)发送消息时附加的位置信息

Defined in

ts/chatroom_def/chatroom_def.ts:230


to_accids

Optional to_accids: string[]

(可选)消息接受者,如果设置了本字段,且不为空,则本消息为聊天室定向消息(聊天室定向消息不会存历史)

Defined in

ts/chatroom_def/chatroom_def.ts:232

Clone this wiki locally