按会话设置免打扰
设置会话的消息免打扰状态
方法
即时通讯业务用户为指定会话或超级群设置免打扰级别,支持单聊、群聊、超级群会话。
C #
int changeConversationNotificationLevel(
RCIMConversationType type,
string targetId,
string channelId,
RCIMPushNotificationLevel level
)
参数说明
参数 | 类型 | 说明 |
---|---|---|
type | RCIMConversationType | 会话类型。请注意以下限制:
|
targetId | string | 会话 ID/超级群ID |
channelId | string | 超级群的会话频道 ID。
|
level | RCIMPushNotificationLevel | 免打扰级别,参考免打扰概述 |