Td Api Update Chat Position - OTR/Kotlin-Telegram-Client GitHub Wiki
TdApi.UpdateChatPosition
Class Description
Represents an update about the new position of a chat in a chat list.
Properties
chatId
: Long - the identifier of the chat which position has been changed.position
: TdApi.ChatPosition - Describes a position of a chat in a chat list.
The position field is an object of the TdApi.ChatPosition
class, which contains the following properties:
list
: TdApi.ChatList - the chat list in which the chat was moved.order
: Long - the new order of the chat in the chat list. A parameter used to determine order of the chat in the chat list. Chats must be sorted by the pair (order, chat.id) in descending order.isPinned
: Boolean - a flag indicating whether the chat is pinned in the chat list. Iftrue
, the chat will be displayed at the top of the list.source
: TdApi.ChatSource - Source of the chat in the chat list; may be null.
This update is sent by the TDLib whenever the position of a chat is changed in one of the chat lists. The client can use this update to update the display order of chats in the user interface.