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

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

Subclasses of TdApi.MessageContent in it.tdlight.jni
Modifier and Type
Class
Description
`static final class`
`TdApi.MessageAnimatedEmoji`
A message with an animated emoji.
`static final class`
`TdApi.MessageAnimation`
An animation message (GIF-style).
`static final class`
`TdApi.MessageAudio`
An audio message.
`static final class`
`TdApi.MessageBasicGroupChatCreate`
A newly created basic group.
`static final class`
`TdApi.MessageBotWriteAccessAllowed`
The user allowed the bot to send messages.
`static final class`
`TdApi.MessageCall`
A message with information about an ended call.
`static final class`
`TdApi.MessageChatAddMembers`
New chat members were added.
`static final class`
`TdApi.MessageChatBoost`
The chat was boosted by the sender of the message.
`static final class`
`TdApi.MessageChatChangePhoto`
An updated chat photo.
`static final class`
`TdApi.MessageChatChangeTitle`
An updated chat title.
`static final class`
`TdApi.MessageChatDeleteMember`
A chat member was deleted.
`static final class`
`TdApi.MessageChatDeletePhoto`
A deleted chat photo.
`static final class`
`TdApi.MessageChatJoinByLink`
A new member joined the chat via an invite link.
`static final class`
`TdApi.MessageChatJoinByRequest`
A new member was accepted to the chat by an administrator.
`static final class`
`TdApi.MessageChatSetBackground`
A new background was set in the chat.
`static final class`
`TdApi.MessageChatSetMessageAutoDeleteTime`
The auto-delete or self-destruct timer for messages in the chat has been changed.
`static final class`
`TdApi.MessageChatSetTheme`
A theme in the chat has been changed.
`static final class`
`TdApi.MessageChatShared`
The current user shared a chat, which was requested by the bot.
`static final class`
`TdApi.MessageChatUpgradeFrom`
A supergroup has been created from a basic group.
`static final class`
`TdApi.MessageChatUpgradeTo`
A basic group was upgraded to a supergroup and was deactivated as the result.
`static final class`
`TdApi.MessageContact`
A message with a user contact.
`static final class`
`TdApi.MessageContactRegistered`
A contact has registered with Telegram.
`static final class`
`TdApi.MessageCustomServiceAction`
A non-standard action has happened in the chat.
`static final class`
`TdApi.MessageDice`
A dice message.
`static final class`
`TdApi.MessageDocument`
A document message (general file).
`static final class`
`TdApi.MessageExpiredPhoto`
A self-destructed photo message.
`static final class`
`TdApi.MessageExpiredVideo`
A self-destructed video message.
`static final class`
`TdApi.MessageExpiredVideoNote`
A self-destructed video note message.
`static final class`
`TdApi.MessageExpiredVoiceNote`
A self-destructed voice note message.
`static final class`
`TdApi.MessageForumTopicCreated`
A forum topic has been created.
`static final class`
`TdApi.MessageForumTopicEdited`
A forum topic has been edited.
`static final class`
`TdApi.MessageForumTopicIsClosedToggled`
A forum topic has been closed or opened.
`static final class`
`TdApi.MessageForumTopicIsHiddenToggled`
A General forum topic has been hidden or unhidden.
`static final class`
`TdApi.MessageGame`
A message with a game.
`static final class`
`TdApi.MessageGameScore`
A new high score was achieved in a game.
`static final class`
`TdApi.MessageGiftedPremium`
Telegram Premium was gifted to the user.
`static final class`
`TdApi.MessageInviteVideoChatParticipants`
A message with information about an invite to a video chat.
`static final class`
`TdApi.MessageInvoice`
A message with an invoice from a bot.
`static final class`
`TdApi.MessageLocation`
A message with a location.
`static final class`
`TdApi.MessagePassportDataReceived`
Telegram Passport data has been received; for bots only.
`static final class`
`TdApi.MessagePassportDataSent`
Telegram Passport data has been sent to a bot.
`static final class`
`TdApi.MessagePaymentSuccessful`
A payment has been completed.
`static final class`
`TdApi.MessagePaymentSuccessfulBot`
A payment has been completed; for bots only.
`static final class`
`TdApi.MessagePhoto`
A photo message.
`static final class`
`TdApi.MessagePinMessage`
A message has been pinned.
`static final class`
`TdApi.MessagePoll`
A message with a poll.
`static final class`
`TdApi.MessagePremiumGiftCode`
A Telegram Premium gift code was created for the user.
`static final class`
`TdApi.MessagePremiumGiveaway`
A Telegram Premium giveaway.
`static final class`
`TdApi.MessagePremiumGiveawayCompleted`
A Telegram Premium giveaway without public winners has been completed for the chat.
`static final class`
`TdApi.MessagePremiumGiveawayCreated`
A Telegram Premium giveaway was created for the chat.
`static final class`
`TdApi.MessagePremiumGiveawayWinners`
A Telegram Premium giveaway with public winners has been completed for the chat.
`static final class`
`TdApi.MessageProximityAlertTriggered`
A user in the chat came within proximity alert range.
`static final class`
`TdApi.MessageScreenshotTaken`
A screenshot of a message in the chat has been taken.
`static final class`
`TdApi.MessageSticker`
A sticker message.
`static final class`
`TdApi.MessageStory`
A message with a forwarded story.
`static final class`
`TdApi.MessageSuggestProfilePhoto`
A profile photo was suggested to a user in a private chat.
`static final class`
`TdApi.MessageSupergroupChatCreate`
A newly created supergroup or channel.
`static final class`
`TdApi.MessageText`
A text message.
`static final class`
`TdApi.MessageUnsupported`
A message content that is not supported in the current TDLib version.
`static final class`
`TdApi.MessageUsersShared`
The current user shared users, which were requested by the bot.
`static final class`
`TdApi.MessageVenue`
A message with information about a venue.
`static final class`
`TdApi.MessageVideo`
A video message.
`static final class`
`TdApi.MessageVideoChatEnded`
A message with information about an ended video chat.
`static final class`
`TdApi.MessageVideoChatScheduled`
A new video chat was scheduled.
`static final class`
`TdApi.MessageVideoChatStarted`
A newly created video chat.
`static final class`
`TdApi.MessageVideoNote`
A video note message.
`static final class`
`TdApi.MessageVoiceNote`
A voice note message.
`static final class`
`TdApi.MessageWebAppDataReceived`
Data from a Web App has been received; for bots only.
`static final class`
`TdApi.MessageWebAppDataSent`
Data from a Web App has been sent to a bot.
Fields in it.tdlight.jni declared as TdApi.MessageContent
Modifier and Type
Field
Description
`TdApi.MessageContent`
TdApi.Message.`content`
Content of the message.
`TdApi.MessageContent`
TdApi.MessageReplyToMessage.`content`
Media content of the message if the message was from another chat or topic; may be null for messages from the same chat and messages without media.
`TdApi.MessageContent`
TdApi.QuickReplyMessage.`content`
Content of the message.
`TdApi.MessageContent`
TdApi.SponsoredMessage.`content`
Content of the message.
`TdApi.MessageContent`
TdApi.UpdateServiceNotification.`content`
Notification content.
`TdApi.MessageContent`
TdApi.UpdateMessageContent.`newContent`
New message content.
Constructors in it.tdlight.jni with parameters of type TdApi.MessageContent
Modifier
Constructor
Description
``
`Message(long id, TdApi.MessageSender senderId, long chatId, TdApi.MessageSendingState sendingState, TdApi.MessageSchedulingState schedulingState, boolean isOutgoing, boolean isPinned, boolean canBeEdited, boolean canBeForwarded, boolean canBeRepliedInAnotherChat, boolean canBeSaved, boolean canBeDeletedOnlyForSelf, boolean canBeDeletedForAllUsers, boolean canGetAddedReactions, boolean canGetStatistics, boolean canGetMessageThread, boolean canGetReadDate, boolean canGetViewers, boolean canGetMediaTimestampLinks, boolean canReportReactions, boolean hasTimestampedMedia, boolean isChannelPost, boolean isTopicMessage, boolean containsUnreadMention, int date, int editDate, TdApi.MessageForwardInfo forwardInfo, TdApi.MessageImportInfo importInfo, TdApi.MessageInteractionInfo interactionInfo, TdApi.UnreadReaction[] unreadReactions, TdApi.MessageReplyTo replyTo, long messageThreadId, long savedMessagesTopicId, TdApi.MessageSelfDestructType selfDestructType, double selfDestructIn, double autoDeleteIn, long viaBotUserId, int senderBoostCount, String authorSignature, long mediaAlbumId, String restrictionReason, TdApi.MessageContent content, TdApi.ReplyMarkup replyMarkup)`
Describes a message.
``
`MessageReplyToMessage(long chatId, long messageId, TdApi.TextQuote quote, TdApi.MessageOrigin origin, int originSendDate, TdApi.MessageContent content)`
Describes a message replied by a given message.
``
`QuickReplyMessage(long id, TdApi.MessageSendingState sendingState, boolean canBeEdited, long replyToMessageId, long viaBotUserId, long mediaAlbumId, TdApi.MessageContent content, TdApi.ReplyMarkup replyMarkup)`
Describes a message that can be used for quick reply.
``
`SponsoredMessage(long messageId, boolean isRecommended, TdApi.MessageContent content, TdApi.MessageSponsor sponsor, String buttonText, String additionalInfo)`
Describes a sponsored message.
``
`UpdateMessageContent(long chatId, long messageId, TdApi.MessageContent newContent)`
The message content has changed.
``
`UpdateServiceNotification(String type, TdApi.MessageContent content)`
A service notification from the server was received.