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

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

Fields in it.tdlight.jni declared as TdApi.DraftMessage
Modifier and Type
Field
Description
`TdApi.DraftMessage`
TdApi.Chat.`draftMessage`
A draft of a message in the chat; may be null if none.
`TdApi.DraftMessage`
TdApi.ForumTopic.`draftMessage`
A draft of a message in the topic; may be null if none.
`TdApi.DraftMessage`
TdApi.MessageThreadInfo.`draftMessage`
A draft of a message in the message thread; may be null if none.
`TdApi.DraftMessage`
TdApi.SavedMessagesTopic.`draftMessage`
A draft of a message in the topic; may be null if none.
`TdApi.DraftMessage`
TdApi.SetChatDraftMessage.`draftMessage`
New draft message; pass null to remove the draft.
`TdApi.DraftMessage`
TdApi.UpdateChatDraftMessage.`draftMessage`
The new draft message; may be null if none.
Constructors in it.tdlight.jni with parameters of type TdApi.DraftMessage
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.
``
`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.
``
`MessageThreadInfo(long chatId, long messageThreadId, TdApi.MessageReplyInfo replyInfo, int unreadMessageCount, TdApi.Message[] messages, TdApi.DraftMessage draftMessage)`
Contains information about a message thread.
``
`SavedMessagesTopic(long id, TdApi.SavedMessagesTopicType type, boolean isPinned, long order, TdApi.Message lastMessage, TdApi.DraftMessage draftMessage)`
Contains information about a Saved Messages topic.
``
`SetChatDraftMessage(long chatId, long messageThreadId, TdApi.DraftMessage draftMessage)`
Changes the draft message in a chat.
``
`UpdateChatDraftMessage(long chatId, TdApi.DraftMessage draftMessage, TdApi.ChatPosition[] positions)`
A chat draft has changed.