Interface UpdateUnreadChatCount

Number of unread chats, i.e. with unread messages or marked as unread, has changed. This update is sent only if the message database is used. Subtype of Update.

interface UpdateUnreadChatCount {
    @type: "updateUnreadChatCount";
    chat_list: ChatList;
    marked_as_unread_count: number;
    marked_as_unread_unmuted_count: number;
    total_count: number;
    unread_count: number;
    unread_unmuted_count: number;
}

Properties

@type: "updateUnreadChatCount"
chat_list: ChatList

The chat list with changed number of unread messages.

marked_as_unread_count: number

Total number of chats marked as unread.

marked_as_unread_unmuted_count: number

Total number of unmuted chats marked as unread.

total_count: number

Approximate total number of chats in the chat list.

unread_count: number

Total number of unread chats.

unread_unmuted_count: number

Total number of unread unmuted chats.