按会话设置免打扰
设置会话的消息免打扰状态
方法
即时通讯业务用户为指定会话或超级群设置免打扰级别,支持单聊、群聊、超级群会话。
TypeScript
changeConversationNotificationLevel(
type: RCIMIWConversationType,
targetId: string,
channelId: string,
level: RCIMIWPushNotificationLevel,
callback: IRCIMIWChangeConversationNotificationLevelCallback
): Promise<number>;
参数说明
参数名 | 参数类型 | 描述 |
---|---|---|
type | RCIMIWConversationType | 会话类型。请注意以下限制:
|
targetId | string | 会话 ID |
channelId | string | 超级群的会话频道 ID。其他类型传 null 即可。
|
level | RCIMIWPushNotificationLevel | 消息通知级别 |
callback | IRCIMIWChangeConversationNotificationLevelCallback | 接口调用结果回调。 |