Skip to content

chatroom_def.chatroom_def.ChatRoomMessage

Zvicii edited this page Oct 24, 2022 · 4 revisions

Interface: ChatRoomMessage

chatroom_def/chatroom_def.ChatRoomMessage

Table of contents

Properties

Properties

room_id_

Optional room_id_: number

消息所属的聊天室id,服务器填写,发送方不需要填写

Defined in

ts/chatroom_def/chatroom_def.ts:237


from_id_

Optional from_id_: string

消息发送者的账号,服务器填写,发送方不需要填写

Defined in

ts/chatroom_def/chatroom_def.ts:239


timetag_

Optional timetag_: number

消息发送的时间戳(毫秒),服务器填写,发送方不需要填写

Defined in

ts/chatroom_def/chatroom_def.ts:241


from_client_type_

Optional from_client_type_: NIMChatRoomClientType

消息发送方客户端类型,服务器填写,发送方不需要填写

Defined in

ts/chatroom_def/chatroom_def.ts:243


from_nick_

Optional from_nick_: string

发送方昵称,服务器填写,发送方不需要填写

Defined in

ts/chatroom_def/chatroom_def.ts:245


from_avatar_

Optional from_avatar_: string

发送方头像,服务器填写,发送方不需要填写

Defined in

ts/chatroom_def/chatroom_def.ts:247


from_ext_

Optional from_ext_: string

发送方身份扩展字段,服务器填写,发送方不需要填写

Defined in

ts/chatroom_def/chatroom_def.ts:249


third_party_callback_ext_

Optional third_party_callback_ext_: string

第三方回调回来的自定义扩展字段

Defined in

ts/chatroom_def/chatroom_def.ts:251


notify_tags_

Optional notify_tags_: string

对端发送消息或通知时携带的 notify tags 信息

Defined in

ts/chatroom_def/chatroom_def.ts:253


anti_spam_res_

Optional anti_spam_res_: string

String, 易盾反垃圾返回的结果字段

Defined in

ts/chatroom_def/chatroom_def.ts:255


msg_type_

Optional msg_type_: NIMChatRoomMsgType

消息类型

Defined in

ts/chatroom_def/chatroom_def.ts:257


msg_attach_

Optional msg_attach_: string

消息内容,长度限制2048,json结构, 文本消息和其他消息保持一致

Defined in

ts/chatroom_def/chatroom_def.ts:259


client_msg_id_

Optional client_msg_id_: string

客户端消息id

Defined in

ts/chatroom_def/chatroom_def.ts:261


msg_body_

Optional msg_body_: string

文本消息内容(聊天室机器人文本消息)

Defined in

ts/chatroom_def/chatroom_def.ts:263


msg_setting_

Optional msg_setting_: ChatRoomMessageSetting

消息属性设置

Defined in

ts/chatroom_def/chatroom_def.ts:265


sub_type_

Optional sub_type_: number

消息的子类型,客户端定义,服务器透传

Defined in

ts/chatroom_def/chatroom_def.ts:267


local_res_path_

Optional local_res_path_: string

媒体文件本地绝对路径(客户端)

Defined in

ts/chatroom_def/chatroom_def.ts:269


local_res_id_

Optional local_res_id_: string

媒体文件ID(客户端)

Defined in

ts/chatroom_def/chatroom_def.ts:271

Clone this wiki locally