# Uses of Class
it.tdlight.jni.TdApi.Message

## Uses of TdApi.Message in it.tdlight.jni

Fields in it.tdlight.jni declared as TdApi.Message
Modifier and Type
Field
Description
`TdApi.Message`
TdApi.Chat.`lastMessage`
Last message in the chat; may be null.
`TdApi.Message`
TdApi.UpdateChatLastMessage.`lastMessage`
The new last message in the chat; may be null.
`TdApi.Message`
TdApi.ChatEventMessageDeleted.`message`
Deleted message.
`TdApi.Message`
TdApi.ChatEventMessagePinned.`message`
Pinned message.
`TdApi.Message`
TdApi.ChatEventMessageUnpinned.`message`
Unpinned message.
`TdApi.Message`
TdApi.ChatEventPollStopped.`message`
The message with the poll.
`TdApi.Message`
TdApi.MessageCalendarDay.`message`
First message sent in the day.
`TdApi.Message`
TdApi.MessageLinkInfo.`message`
If found, the linked message; may be null.
`TdApi.Message`
TdApi.NotificationTypeNewMessage.`message`
The message.
`TdApi.Message`
TdApi.UpdateMessageSendFailed.`message`
The failed to send message.
`TdApi.Message`
TdApi.UpdateMessageSendSucceeded.`message`
The sent message.
`TdApi.Message`
TdApi.UpdateNewMessage.`message`
The new message.
`TdApi.Message[]`
TdApi.FoundMessages.`messages`
List of messages.
`TdApi.Message[]`
TdApi.Messages.`messages`
List of messages; messages may be null.
`TdApi.Message[]`
TdApi.MessageThreadInfo.`messages`
The messages from which the thread starts.
`TdApi.Message`
TdApi.ChatEventMessageEdited.`newMessage`
The message after it was edited.
`TdApi.Message`
TdApi.ChatEventMessageEdited.`oldMessage`
The original message before the edit.
Constructors in it.tdlight.jni with parameters of type TdApi.Message
Modifier
Constructor
Description
``
`Chat(long id, TdApi.ChatType type, String title, TdApi.ChatPhotoInfo photo, TdApi.ChatPermissions permissions, TdApi.Message lastMessage, TdApi.ChatPosition[] positions, boolean isMarkedAsUnread, boolean isBlocked, boolean hasScheduledMessages, boolean canBeDeletedOnlyForSelf, boolean canBeDeletedForAllUsers, boolean canBeReported, boolean defaultDisableNotification, int unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, int unreadMentionCount, TdApi.ChatNotificationSettings notificationSettings, int messageTtlSetting, String themeName, TdApi.ChatActionBar actionBar, TdApi.VideoChat videoChat, TdApi.ChatJoinRequestsInfo pendingJoinRequests, long replyMarkupMessageId, TdApi.DraftMessage draftMessage, String clientData)`
A chat.
``
`ChatEventMessageDeleted(TdApi.Message message)`
A message was deleted.
``
`ChatEventMessageEdited(TdApi.Message oldMessage, TdApi.Message newMessage)`
A message was edited.
``
`ChatEventMessagePinned(TdApi.Message message)`
A message was pinned.
``
`ChatEventMessageUnpinned(TdApi.Message message)`
A message was unpinned.
``
`ChatEventPollStopped(TdApi.Message message)`
A poll in a message was stopped.
``
`FoundMessages(int totalCount, TdApi.Message[] messages, String nextOffset)`
Contains a list of messages found by a search.
``
`MessageCalendarDay(int totalCount, TdApi.Message message)`
Contains information about found messages sent in a specific day.
``
`MessageLinkInfo(boolean isPublic, long chatId, TdApi.Message message, int mediaTimestamp, boolean forAlbum, boolean forComment)`
Contains information about a link to a message in a chat.
``
`Messages(int totalCount, TdApi.Message[] messages)`
Contains a list of messages.
``
`MessageThreadInfo(long chatId, long messageThreadId, TdApi.MessageReplyInfo replyInfo, int unreadMessageCount, TdApi.Message[] messages, TdApi.DraftMessage draftMessage)`
Contains information about a message thread.
``
`NotificationTypeNewMessage(TdApi.Message message)`
New message was received.
``
`UpdateChatLastMessage(long chatId, TdApi.Message lastMessage, TdApi.ChatPosition[] positions)`
The last message of a chat was changed.
``
`UpdateMessageSendFailed(TdApi.Message message, long oldMessageId, int errorCode, String errorMessage)`
A message failed to send.
``
`UpdateMessageSendSucceeded(TdApi.Message message, long oldMessageId)`
A message has been successfully sent.
``
`UpdateNewMessage(TdApi.Message message)`
A new message was received; can also be an outgoing message.