Get number of channels with unread messages
This action retrieves the total number of group channels in which a user has unread messages. You can use various query parameters to determine the search scope of group channels.
The following table lists the parameters that this action supports.
Specifies the unique ID of a user.
array of strings
Specifies an array of one or more custom types to filter the group channels with the corresponding types.
Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are
If successful, this action returns the total number of group channels in which the user has unread messages in the response body.
List of response properties
The total number of the user's group channels with unread messages.
In the case of an error, an error object like below is returned. See the error codes section for more details.