Interface UpdateUnreadMessageCount

Number of unread messages in a chat list has changed. This update is sent only if the message database is used. Subtype of Update.

interface UpdateUnreadMessageCount {
    @type: "updateUnreadMessageCount";
    chat_list: ChatList;
    unread_count: number;
    unread_unmuted_count: number;
}

Properties

@type: "updateUnreadMessageCount"
chat_list: ChatList

The chat list with changed number of unread messages.

unread_count: number

Total number of unread messages.

unread_unmuted_count: number

Total number of unread messages in unmuted chats.