Uses of Class
org.drinkless.tdlib.TdApi.FormattedText
Packages that use TdApi.FormattedText
-
Uses of TdApi.FormattedText in org.drinkless.tdlib
Fields in org.drinkless.tdlib declared as TdApi.FormattedTextModifier and TypeFieldDescriptionTdApi.UserFullInfo.bio
A short user bio; may be null for bots.TdApi.EditBusinessMessageCaption.caption
New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters.TdApi.EditBusinessStory.caption
New story caption.TdApi.EditInlineMessageCaption.caption
New message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters.TdApi.EditMessageCaption.caption
New message content caption; 0-getOption("message_caption_length_max") characters; pass null to remove caption.TdApi.EditStory.caption
New story caption; pass null to keep the current caption.TdApi.InputMessageAnimation.caption
Animation caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.InputMessageAudio.caption
Audio caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.InputMessageDocument.caption
Document caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.InputMessagePaidMedia.caption
Message caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.InputMessagePhoto.caption
Photo caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.InputMessageVideo.caption
Video caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.InputMessageVoiceNote.caption
Voice note caption; may be null if empty; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.MessageAnimation.caption
Animation caption.TdApi.MessageAudio.caption
Audio caption.TdApi.MessageDocument.caption
Document caption.TdApi.MessagePaidMedia.caption
Media caption.TdApi.MessagePhoto.caption
Photo caption.TdApi.MessageVideo.caption
Video caption.TdApi.MessageVoiceNote.caption
Voice note caption.TdApi.PostStory.caption
Story caption; pass null to use an empty caption; 0-getOption("story_caption_length_max") characters; can have entities only if getOption("can_use_text_entities_in_story_caption").TdApi.Story.caption
Caption of the story.TdApi.BotVerification.customDescription
Custom description of verification reason set by the bot.TdApi.BotVerificationParameters.defaultCustomDescription
Default custom description of verification reason to be used as placeholder in setMessageSenderBotVerification; may be null if none.TdApi.LinkPreview.description
Description of the content.TdApi.ProductInfo.description
Product description.TdApi.SuggestedActionCustom.description
Description of the suggestion.TdApi.PollTypeQuiz.explanation
Text that is shown when the user chooses an incorrect answer or taps on the lamp icon; 0-200 characters with at most 2 line feeds; empty for a yet unanswered poll.TdApi.SetUserSupportInfo.message
New information message.TdApi.UserSupportInfo.message
Information message.TdApi.MessageCopyOptions.newCaption
New message caption; pass null to copy message without caption.TdApi.InputMessagePoll.options
List of poll answer options, 2-10 strings 1-100 characters each.TdApi.InputMessageInvoice.paidMediaCaption
Paid media caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.MessageInvoice.paidMediaCaption
Extended media caption; may be null if none.TdApi.InputMessagePoll.question
Poll question; 1-255 characters (up to 300 characters for bots).TdApi.Poll.question
Poll question; 1-300 characters.TdApi.SearchQuote.quote
Quote to search for.TdApi.PremiumState.state
Text description of the state of the current Premium subscription; may be empty if the current user has no Telegram Premium subscription.TdApi.BusinessChatLink.text
Message draft text that will be added to the input field.TdApi.BusinessChatLinkInfo.text
Message draft text that must be added to the input field.TdApi.ChatFolderName.text
The text of the chat folder name; 1-12 characters without line feeds.TdApi.DeepLinkInfo.text
Text to be shown to the user.TdApi.FactCheck.text
Text of the fact-check.TdApi.Game.text
Game text, usually containing scoreboards for a game.TdApi.GetLinkPreview.text
Message text with formatting.TdApi.GetMarkdownText.text
The text.TdApi.GiftPremiumWithStars.text
Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters.TdApi.InputBusinessChatLink.text
Message draft text that will be added to the input field.TdApi.InputMessageText.text
Formatted text to be sent; 0-getOption("message_text_length_max") characters.TdApi.InputTextQuote.text
Text of the quote; 0-getOption("message_reply_quote_length_max") characters.TdApi.InternalLinkTypeMessageDraft.text
Message draft text.TdApi.MessageGift.text
Message added to the gift.TdApi.MessageGiftedPremium.text
Message added to the gifted Telegram Premium by the sender.TdApi.MessagePremiumGiftCode.text
Message added to the gift.TdApi.MessageText.text
Text of the message.TdApi.ParseMarkdown.text
The text to parse.TdApi.PollOption.text
Option text; 1-100 characters.TdApi.ReceivedGift.text
Message added to the gift.TdApi.SearchQuote.text
Text in which to search for the quote.TdApi.SendGift.text
Text to show along with the gift; 0-getOption("gift_text_length_max") characters.TdApi.SetMessageFactCheck.text
New text of the fact-check; 0-getOption("fact_check_length_max") characters; pass null to remove it.TdApi.StorePaymentPurposePremiumGift.text
Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters.TdApi.StorePaymentPurposePremiumGiftCodes.text
Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters.TdApi.TelegramPaymentPurposePremiumGift.text
Text to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters.TdApi.TelegramPaymentPurposePremiumGiftCodes.text
Text to show along with the gift codes; 0-getOption("gift_text_length_max") characters.TdApi.TermsOfService.text
Text of the terms of service.TdApi.TextQuote.text
Text of the quote.TdApi.TranslateText.text
Text to translate.TdApi.UpgradedGiftOriginalDetails.text
Message added to the gift.TdApi.SuggestedActionCustom.title
Title of the suggestion.Constructors in org.drinkless.tdlib with parameters of type TdApi.FormattedTextModifierConstructorDescriptionBotVerification
(long botUserId, long iconCustomEmojiId, TdApi.FormattedText customDescription) Describes verification status provided by a bot.BotVerificationParameters
(long iconCustomEmojiId, String organizationName, TdApi.FormattedText defaultCustomDescription, boolean canSetCustomDescription) Describes parameters of verification that is provided by a bot.BusinessChatLink
(String link, TdApi.FormattedText text, String title, int viewCount) Contains information about a business chat link.BusinessChatLinkInfo
(long chatId, TdApi.FormattedText text) Contains information about a business chat link.ChatFolderName
(TdApi.FormattedText text, boolean animateCustomEmoji) Describes name of a chat folder.DeepLinkInfo
(TdApi.FormattedText text, boolean needUpdateApplication) Contains information about a tg: deep link.EditBusinessMessageCaption
(String businessConnectionId, long chatId, long messageId, TdApi.ReplyMarkup replyMarkup, TdApi.FormattedText caption, boolean showCaptionAboveMedia) Creates a function, which edits the caption of a message sent on behalf of a business account; for bots only.EditBusinessStory
(long storyPosterChatId, int storyId, TdApi.InputStoryContent content, TdApi.InputStoryAreas areas, TdApi.FormattedText caption, TdApi.StoryPrivacySettings privacySettings) Creates a function, which changes a story posted by the bot on behalf of a business account; for bots only.EditInlineMessageCaption
(String inlineMessageId, TdApi.ReplyMarkup replyMarkup, TdApi.FormattedText caption, boolean showCaptionAboveMedia) Creates a function, which edits the caption of an inline message sent via a bot; for bots only.EditMessageCaption
(long chatId, long messageId, TdApi.ReplyMarkup replyMarkup, TdApi.FormattedText caption, boolean showCaptionAboveMedia) Creates a function, which edits the message content caption.EditStory
(long storyPosterChatId, int storyId, TdApi.InputStoryContent content, TdApi.InputStoryAreas areas, TdApi.FormattedText caption) Creates a function, which changes content and caption of a story.FactCheck
(TdApi.FormattedText text, String countryCode) Describes a fact-check added to the message by an independent checker.Game
(long id, String shortName, String title, TdApi.FormattedText text, String description, TdApi.Photo photo, TdApi.Animation animation) Describes a game.GetLinkPreview
(TdApi.FormattedText text, TdApi.LinkPreviewOptions linkPreviewOptions) Creates a function, which returns a link preview by the text of a message.Creates a function, which replaces text entities with Markdown formatting in a human-friendly format.GiftPremiumWithStars
(long userId, long starCount, int monthCount, TdApi.FormattedText text) Creates a function, which allows to buy a Telegram Premium subscription for another user with payment in Telegram Stars; for bots only.InputBusinessChatLink
(TdApi.FormattedText text, String title) Describes a business chat link to create or edit.InputMessageAnimation
(TdApi.InputFile animation, TdApi.InputThumbnail thumbnail, int[] addedStickerFileIds, int duration, int width, int height, TdApi.FormattedText caption, boolean showCaptionAboveMedia, boolean hasSpoiler) An animation message (GIF-style).InputMessageAudio
(TdApi.InputFile audio, TdApi.InputThumbnail albumCoverThumbnail, int duration, String title, String performer, TdApi.FormattedText caption) An audio message.InputMessageDocument
(TdApi.InputFile document, TdApi.InputThumbnail thumbnail, boolean disableContentTypeDetection, TdApi.FormattedText caption) A document message (general file).InputMessageInvoice
(TdApi.Invoice invoice, String title, String description, String photoUrl, int photoSize, int photoWidth, int photoHeight, byte[] payload, String providerToken, String providerData, String startParameter, TdApi.InputPaidMedia paidMedia, TdApi.FormattedText paidMediaCaption) A message with an invoice; can be used only by bots.InputMessagePaidMedia
(long starCount, TdApi.InputPaidMedia[] paidMedia, TdApi.FormattedText caption, boolean showCaptionAboveMedia, String payload) A message with paid media; can be used only in channel chats with supergroupFullInfo.hasPaidMediaAllowed.InputMessagePhoto
(TdApi.InputFile photo, TdApi.InputThumbnail thumbnail, int[] addedStickerFileIds, int width, int height, TdApi.FormattedText caption, boolean showCaptionAboveMedia, TdApi.MessageSelfDestructType selfDestructType, boolean hasSpoiler) A photo message.InputMessagePoll
(TdApi.FormattedText question, TdApi.FormattedText[] options, boolean isAnonymous, TdApi.PollType type, int openPeriod, int closeDate, boolean isClosed) A message with a poll.InputMessageText
(TdApi.FormattedText text, TdApi.LinkPreviewOptions linkPreviewOptions, boolean clearDraft) A text message.InputMessageVideo
(TdApi.InputFile video, TdApi.InputThumbnail thumbnail, TdApi.InputFile cover, int startTimestamp, int[] addedStickerFileIds, int duration, int width, int height, boolean supportsStreaming, TdApi.FormattedText caption, boolean showCaptionAboveMedia, TdApi.MessageSelfDestructType selfDestructType, boolean hasSpoiler) A video message.InputMessageVoiceNote
(TdApi.InputFile voiceNote, int duration, byte[] waveform, TdApi.FormattedText caption, TdApi.MessageSelfDestructType selfDestructType) A voice note message.InputTextQuote
(TdApi.FormattedText text, int position) Describes manually chosen quote from another message.InternalLinkTypeMessageDraft
(TdApi.FormattedText text, boolean containsLink) The link contains a message draft text.LinkPreview
(String url, String displayUrl, String siteName, String title, TdApi.FormattedText description, String author, TdApi.LinkPreviewType type, boolean hasLargeMedia, boolean showLargeMedia, boolean showMediaAboveDescription, boolean skipConfirmation, boolean showAboveText, int instantViewVersion) Describes a link preview.MessageAnimation
(TdApi.Animation animation, TdApi.FormattedText caption, boolean showCaptionAboveMedia, boolean hasSpoiler, boolean isSecret) An animation message (GIF-style).MessageAudio
(TdApi.Audio audio, TdApi.FormattedText caption) An audio message.MessageCopyOptions
(boolean sendCopy, boolean replaceCaption, TdApi.FormattedText newCaption, boolean newShowCaptionAboveMedia) Options to be used when a message content is copied without reference to the original sender.MessageDocument
(TdApi.Document document, TdApi.FormattedText caption) A document message (general file).MessageGift
(TdApi.Gift gift, TdApi.MessageSender senderId, String receivedGiftId, TdApi.FormattedText text, long sellStarCount, long prepaidUpgradeStarCount, boolean isPrivate, boolean isSaved, boolean canBeUpgraded, boolean wasConverted, boolean wasUpgraded, boolean wasRefunded, String upgradedReceivedGiftId) A regular gift was received or sent by the current user, or the current user was notified about a channel gift.MessageGiftedPremium
(long gifterUserId, long receiverUserId, TdApi.FormattedText text, String currency, long amount, String cryptocurrency, long cryptocurrencyAmount, int monthCount, TdApi.Sticker sticker) Telegram Premium was gifted to a user.MessageInvoice
(TdApi.ProductInfo productInfo, String currency, long totalAmount, String startParameter, boolean isTest, boolean needShippingAddress, long receiptMessageId, TdApi.PaidMedia paidMedia, TdApi.FormattedText paidMediaCaption) A message with an invoice from a bot.MessagePaidMedia
(long starCount, TdApi.PaidMedia[] media, TdApi.FormattedText caption, boolean showCaptionAboveMedia) A message with paid media.MessagePhoto
(TdApi.Photo photo, TdApi.FormattedText caption, boolean showCaptionAboveMedia, boolean hasSpoiler, boolean isSecret) A photo message.MessagePremiumGiftCode
(TdApi.MessageSender creatorId, TdApi.FormattedText text, boolean isFromGiveaway, boolean isUnclaimed, String currency, long amount, String cryptocurrency, long cryptocurrencyAmount, int monthCount, TdApi.Sticker sticker, String code) A Telegram Premium gift code was created for the user.MessageText
(TdApi.FormattedText text, TdApi.LinkPreview linkPreview, TdApi.LinkPreviewOptions linkPreviewOptions) A text message.MessageVideo
(TdApi.Video video, TdApi.AlternativeVideo[] alternativeVideos, TdApi.Photo cover, int startTimestamp, TdApi.FormattedText caption, boolean showCaptionAboveMedia, boolean hasSpoiler, boolean isSecret) A video message.MessageVoiceNote
(TdApi.VoiceNote voiceNote, TdApi.FormattedText caption, boolean isListened) A voice note message.Creates a function, which parses Markdown entities in a human-friendly format, ignoring markup errors.Poll
(long id, TdApi.FormattedText question, TdApi.PollOption[] options, int totalVoterCount, TdApi.MessageSender[] recentVoterIds, boolean isAnonymous, TdApi.PollType type, int openPeriod, int closeDate, boolean isClosed) Describes a poll.PollOption
(TdApi.FormattedText text, int voterCount, int votePercentage, boolean isChosen, boolean isBeingChosen) Describes one answer option of a poll.PollTypeQuiz
(int correctOptionId, TdApi.FormattedText explanation) A poll in quiz mode, which has exactly one correct answer option and can be answered only once.PostStory
(long chatId, TdApi.InputStoryContent content, TdApi.InputStoryAreas areas, TdApi.FormattedText caption, TdApi.StoryPrivacySettings privacySettings, int activePeriod, TdApi.StoryFullId fromStoryFullId, boolean isPostedToChatPage, boolean protectContent) Creates a function, which posts a new story on behalf of a chat; requires canPostStories right for supergroup and channel chats.PremiumState
(TdApi.FormattedText state, TdApi.PremiumStatePaymentOption[] paymentOptions, TdApi.PremiumFeaturePromotionAnimation[] animations, TdApi.BusinessFeaturePromotionAnimation[] businessAnimations) Contains state of Telegram Premium subscription and promotion videos for Premium features.ProductInfo
(String title, TdApi.FormattedText description, TdApi.Photo photo) Contains information about a product that can be paid with invoice.ReceivedGift
(String receivedGiftId, TdApi.MessageSender senderId, TdApi.FormattedText text, boolean isPrivate, boolean isSaved, boolean isPinned, boolean canBeUpgraded, boolean canBeTransferred, boolean wasRefunded, int date, TdApi.SentGift gift, long sellStarCount, long prepaidUpgradeStarCount, long transferStarCount, int nextTransferDate, int nextResaleDate, int exportDate) Represents a gift received by a user or a chat.SearchQuote
(TdApi.FormattedText text, TdApi.FormattedText quote, int quotePosition) Creates a function, which searches for a given quote in a text.SendGift
(long giftId, TdApi.MessageSender ownerId, TdApi.FormattedText text, boolean isPrivate, boolean payForUpgrade) Creates a function, which sends a gift to another user or channel chat.SetMessageFactCheck
(long chatId, long messageId, TdApi.FormattedText text) Creates a function, which changes the fact-check of a message.SetUserSupportInfo
(long userId, TdApi.FormattedText message) Creates a function, which sets support information for the given user; for Telegram support only.StorePaymentPurposePremiumGift
(String currency, long amount, long userId, TdApi.FormattedText text) The user gifting Telegram Premium to another user.StorePaymentPurposePremiumGiftCodes
(long boostedChatId, String currency, long amount, long[] userIds, TdApi.FormattedText text) The user boosting a chat by creating Telegram Premium gift codes for other users.Story
(int id, long posterChatId, TdApi.MessageSender posterId, int date, boolean isBeingPosted, boolean isBeingEdited, boolean isEdited, boolean isPostedToChatPage, boolean isVisibleOnlyForSelf, boolean canBeDeleted, boolean canBeEdited, boolean canBeForwarded, boolean canBeReplied, boolean canToggleIsPostedToChatPage, boolean canGetStatistics, boolean canGetInteractions, boolean hasExpiredViewers, TdApi.StoryRepostInfo repostInfo, TdApi.StoryInteractionInfo interactionInfo, TdApi.ReactionType chosenReactionType, TdApi.StoryPrivacySettings privacySettings, TdApi.StoryContent content, TdApi.StoryArea[] areas, TdApi.FormattedText caption) Represents a story.SuggestedActionCustom
(String name, TdApi.FormattedText title, TdApi.FormattedText description, String url) A custom suggestion to be shown at the top of the chat list.TelegramPaymentPurposePremiumGift
(String currency, long amount, long userId, int monthCount, TdApi.FormattedText text) The user gifting Telegram Premium to another user.TelegramPaymentPurposePremiumGiftCodes
(long boostedChatId, String currency, long amount, long[] userIds, int monthCount, TdApi.FormattedText text) The user boosting a chat by creating Telegram Premium gift codes for other users.TermsOfService
(TdApi.FormattedText text, int minUserAge, boolean showPopup) Contains Telegram terms of service.TextQuote
(TdApi.FormattedText text, int position, boolean isManual) Describes manually or automatically chosen quote from another message.TranslateText
(TdApi.FormattedText text, String toLanguageCode) Creates a function, which translates a text to the given language.UpgradedGiftOriginalDetails
(TdApi.MessageSender senderId, TdApi.MessageSender receiverId, TdApi.FormattedText text, int date) Describes the original details about the gift.UserFullInfo
(TdApi.ChatPhoto personalPhoto, TdApi.ChatPhoto photo, TdApi.ChatPhoto publicPhoto, TdApi.BlockList blockList, boolean canBeCalled, boolean supportsVideoCalls, boolean hasPrivateCalls, boolean hasPrivateForwards, boolean hasRestrictedVoiceAndVideoNoteMessages, boolean hasPostedToProfileStories, boolean hasSponsoredMessagesEnabled, boolean needPhoneNumberPrivacyException, boolean setChatBackground, TdApi.FormattedText bio, TdApi.Birthdate birthdate, long personalChatId, int giftCount, int groupInCommonCount, long incomingPaidMessageStarCount, long outgoingPaidMessageStarCount, TdApi.GiftSettings giftSettings, TdApi.BotVerification botVerification, TdApi.BusinessInfo businessInfo, TdApi.BotInfo botInfo) Contains full information about a user.UserSupportInfo
(TdApi.FormattedText message, String author, int date) Contains custom information about the user.