Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISendMessageOptions

发送消息参数结构

Hierarchy

Index

Properties

Optional isStatusMessage

isStatusMessage?: boolean

是否是状态消息,一般为无需注册的自定义消息

description
  1. 状态消息只有 pub,没有 ack 应答
  2. 状态消息默认不存储,不计数,isPersitedisCounted 配置将失效
deprecated

请在注册消息时设置消息类型是否是状态消息

Optional disableNotification

disableNotification?: boolean

是否发送静默消息

description

当值为 true 时,服务器将不会发送 Push 信息,移动端也不会弹出本地通知提醒

Optional pushContent

pushContent?: string

Push 信息

Optional pushData

pushData?: string

Push 通知携带的附加信息

Optional isMentioned

isMentioned?: boolean

是否为 @ 消息,只当 conversationType 值为 ConversationType.GROUP 时有效

Optional mentionedType

mentionedType?: 1 | 2

@ 消息类型

description

1: @ 所有人 2: @ 指定用户

deprecated

推荐使用 content.mentionedInfo.type

Optional mentionedUserIdList

mentionedUserIdList?: string[]

被 @ 的用户 Id 列表,当 mentionedType 值为 1 时,该值可为空

deprecated

推荐使用 content.mentionedInfo.userIdList

Optional directionalUserIdList

directionalUserIdList?: string[]

用于发送群定向消息,只当 conversationType 值为 群、超级群、讨论组、RTC聊天室 时有效

Optional isVoipPush

isVoipPush?: boolean

当对方为 iOS 设备且未在线时,其将收到 Voip Push. 此配置对 Android 无影响

Optional canIncludeExpansion

canIncludeExpansion?: boolean

消息是否支持拓展内容

Optional expansion

expansion?: {}

消息拓展内容数据

Type declaration

  • [key: string]: string

Optional isFilerWhiteBlacklist

isFilerWhiteBlacklist?: boolean

黑/白名单

todo

功能未知,需确认

Optional pushConfig

pushConfig?: IPushConfig

移动端推送配置

Optional messageId

messageId?: number

重发消息时用到,重发消息的 messageId。 当要重发消息时所有参数需与原始消息参数一致,messageId 必须存在。 正常发消息时无需传该参数。

Optional auditInfo

auditInfo?: IAuditInfo

消息审核配置

Methods

Optional onSendBefore

  • 消息发送之前的回调

    Parameters

    Returns void