[**RongIMLib**](../README.md) *** [RongIMLib](../globals.md) / getUltraGroupUnreadMentionedCountByTargetId # Function: getUltraGroupUnreadMentionedCountByTargetId() > **getUltraGroupUnreadMentionedCountByTargetId**(`targetId`, `notificationLevels?`): `Promise`\<[`RCResult`](../interfaces/RCResult.md)\<`number`\>\> 根据会话 ID 获取所有子频道 @ 消息未读数 ## Parameters ### targetId `string` 超级群 Id ### notificationLevels? [`NotificationLevel`](../enumerations/NotificationLevel.md)[] 免打扰级别,不传或传空数组则获取全部级别,类型为 [NotificationLevel](../enumerations/NotificationLevel.md) 数组 ## Returns `Promise`\<[`RCResult`](../interfaces/RCResult.md)\<`number`\>\> ## Description 获取当前用户在指定超级群会话中的未读 @ 消息数 ## Since 5.5.1 仅 Web 端 IMLib 支持超级群。 ## Example ```ts const targetId = 'targetId'; const res = await RongIMLib.getUltraGroupUnreadMentionedCountByTargetId(targetId); console.log('获取指定会话的未读 @ 消息数结果:', res); ```