Td Api Update Chat Last Message - OTR/Kotlin-Telegram-Client GitHub Wiki
TdApi.UpdateChatLastMessage
Class Description
Represents an incoming update about the last message in a chat. This update is sent when the last message changes in the chat or when the chat is opened.
This update is sent if, for the chat marked as unread, either the last message is not yet known or the last message was changed.
This update is only applicable to chats with the canBeReported
flag set to true
, which indicates that the chat is not a private chat and the user is able to report spam in it.
Properties
chatId
: Long - Identifier of the chat with the changed last message.lastMessage
: TdApi.Message - The new last message in the chat; may benull
.positions
: Array<TdApi.ChatPosition> - The new positions of the chat in the chat list.
The last message of a chat was changed. If lastMessage
is null
, then the last message in the chat became unknown. Some new unknown messages might be added to the chat in this case.
Examples