Airgram

Guides
/
/
Output types

Update

Contains notifications about data changes.

The UpdateUnion type represents one of the following types:

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.


NameTypeDescription
_"updateUnreadChatCount"
chatList The chat list with changed number of unread messages
totalCountnumber Approximate total number of chats in the chat list
unreadCountnumber Total number of unread chats
unreadUnmutedCountnumber Total number of unread unmuted chats
markedAsUnreadCountnumber Total number of chats marked as unread
markedAsUnreadUnmutedCountnumber Total number of unmuted chats marked as unread