This action retrieves the count of a user's unread messages, unread mentioned messages, or received invitations in group channels. You can use this action to display an unread count in the UI and prompt the user to check unread items. This is only available for group channels.
The following table lists the parameters that this action supports.
Parameters
Required
Type
Description
user_id
string
Specifies the unique ID of a user.
item_keys
string
Specifies which unread items to count in a comma-separated string. Acceptable values are the following: - non_super_group_channel_unread_message_count: Only counts the total number of the user's unread messages in the non-Supergroup channels. - super_group_channel_unread_message_count: Only counts the total number of the user's unread messages in the Supergroup channels. - group_channel_unread_message_count: Counts the total number of the user's unread messages in all group channels. - non_super_group_channel_invitation_count: Only counts the total number of the user's received invitations to the non-Supergroup channels. - super_group_channel_invitation_count: Only counts the total number of the user's received invitations to the Supergroup channels. - group_channel_invitation_count: Counts the total number of the user's received invitations to all group channels. - non_super_group_channel_unread_mention_count: Only counts the total number of the user's mentioned but unread messages in the non-Supergroup channels. - super_group_channel_unread_mention_count: Only counts the total number of the user's mentioned but unread message in the Supergroup channels. - group_channel_unread_mention_count: Counts the total number of the user's mentioned but unread messages in all group channels.
Optional
Type
Description
custom_types
string
Specifies custom channel types in a comma-separated string. If specified, only unread items in channels with the specified custom types are included in the count.