# 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 if none or unknown.
`TdApi.Message`
TdApi.ForumTopic.`lastMessage`
Last message in the topic; may be null if unknown.
`TdApi.Message`
TdApi.SavedMessagesTopic.`lastMessage`
Last message in the topic; may be null if none or unknown.
`TdApi.Message`
TdApi.UpdateChatLastMessage.`lastMessage`
The new last message in the chat; may be null if the last message became unknown.
`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.FileDownload.`message`
The message with the file.
`TdApi.Message`
TdApi.MessageCalendarDay.`message`
First message sent on 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.PublicForwardMessage.`message`
Information about the message.
`TdApi.Message`
TdApi.StoryInteractionTypeForward.`message`
The message with story forward.
`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.FoundChatMessages.`messages`
List of messages.
`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, int accentColorId, long backgroundCustomEmojiId, int profileAccentColorId, long profileBackgroundCustomEmojiId, TdApi.ChatPermissions permissions, TdApi.Message lastMessage, TdApi.ChatPosition[] positions, TdApi.ChatList[] chatLists, TdApi.MessageSender messageSenderId, TdApi.BlockList blockList, boolean hasProtectedContent, boolean isTranslatable, boolean isMarkedAsUnread, boolean viewAsTopics, boolean hasScheduledMessages, boolean canBeDeletedOnlyForSelf, boolean canBeDeletedForAllUsers, boolean canBeReported, boolean defaultDisableNotification, int unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, int unreadMentionCount, int unreadReactionCount, TdApi.ChatNotificationSettings notificationSettings, TdApi.ChatAvailableReactions availableReactions, int messageAutoDeleteTime, TdApi.EmojiStatus emojiStatus, TdApi.ChatBackground background, String themeName, TdApi.ChatActionBar actionBar, TdApi.VideoChat videoChat, TdApi.ChatJoinRequestsInfo pendingJoinRequests, long replyMarkupMessageId, TdApi.DraftMessage draftMessage, String clientData)`
A chat.
``
`ChatEventMessageDeleted(TdApi.Message message, boolean canReportAntiSpamFalsePositive)`
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.
``
`FileDownload(int fileId, TdApi.Message message, int addDate, int completeDate, boolean isPaused)`
Describes a file added to file download list.
``
`ForumTopic(TdApi.ForumTopicInfo info, TdApi.Message lastMessage, boolean isPinned, int unreadCount, long lastReadInboxMessageId, long lastReadOutboxMessageId, int unreadMentionCount, int unreadReactionCount, TdApi.ChatNotificationSettings notificationSettings, TdApi.DraftMessage draftMessage)`
Describes a forum topic.
``
`FoundChatMessages(int totalCount, TdApi.Message[] messages, long nextFromMessageId)`
Contains a list of messages found by a search in a given chat.
``
`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 on a specific day.
``
`MessageLinkInfo(boolean isPublic, long chatId, long messageThreadId, TdApi.Message message, int mediaTimestamp, boolean forAlbum)`
Contains information about a link to a message or a forum topic 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, boolean showPreview)`
New message was received.
``
`PublicForwardMessage(TdApi.Message message)`
Contains a public forward as a message.
``
`SavedMessagesTopic(long id, TdApi.SavedMessagesTopicType type, boolean isPinned, long order, TdApi.Message lastMessage, TdApi.DraftMessage draftMessage)`
Contains information about a Saved Messages topic.
``
`StoryInteractionTypeForward(TdApi.Message message)`
A forward of the story as a message.
``
`UpdateChatLastMessage(long chatId, TdApi.Message lastMessage, TdApi.ChatPosition[] positions)`
The last message of a chat was changed.
``
`UpdateMessageSendFailed(TdApi.Message message, long oldMessageId, TdApi.Error error)`
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.