By using the getTotalUnreadChannelCount() method, you can retrieve the total number of group channels in which a user has one or more unread messages.
SendbirdChat.getTotalUnreadChannelCount { count, error in
guard error == nil else {
return // Handle error.
}
}