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.bioA short user bio; may be null for bots.TdApi.EditBusinessMessageCaption.captionNew message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters.TdApi.EditBusinessStory.captionNew story caption.TdApi.EditInlineMessageCaption.captionNew message content caption; pass null to remove caption; 0-getOption("message_caption_length_max") characters.TdApi.EditMessageCaption.captionNew message content caption; 0-getOption("message_caption_length_max") characters; pass null to remove caption.TdApi.EditStory.captionNew story caption; pass null to keep the current caption.TdApi.InputMessageAnimation.captionAnimation caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.InputMessageAudio.captionAudio caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.InputMessageDocument.captionDocument caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.InputMessagePaidMedia.captionMessage caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.InputMessagePhoto.captionPhoto caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.InputMessageVideo.captionVideo caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.InputMessageVoiceNote.captionVoice note caption; may be null if empty; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.MessageAnimation.captionAnimation caption.TdApi.MessageAudio.captionAudio caption.TdApi.MessageDocument.captionDocument caption.TdApi.MessagePaidMedia.captionMedia caption.TdApi.MessagePhoto.captionPhoto caption.TdApi.MessageVideo.captionVideo caption.TdApi.MessageVoiceNote.captionVoice note caption.TdApi.PostStory.captionStory 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.captionCaption of the story.TdApi.BotVerification.customDescriptionCustom description of verification reason set by the bot.TdApi.BotVerificationParameters.defaultCustomDescriptionDefault custom description of verification reason to be used as placeholder in setMessageSenderBotVerification; may be null if none.TdApi.LinkPreview.descriptionDescription of the content.TdApi.ProductInfo.descriptionProduct description.TdApi.SuggestedActionCustom.descriptionDescription of the suggestion.TdApi.PollTypeQuiz.explanationText 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.messageNew information message.TdApi.UserSupportInfo.messageInformation message.TdApi.MessageCopyOptions.newCaptionNew message caption; pass null to copy message without caption.TdApi.InputMessagePoll.optionsList of poll answer options, 2-getOption("poll_answer_count_max") strings 1-100 characters each.TdApi.InputMessageInvoice.paidMediaCaptionPaid media caption; pass null to use an empty caption; 0-getOption("message_caption_length_max") characters.TdApi.MessageInvoice.paidMediaCaptionExtended media caption; may be null if none.TdApi.InputMessagePoll.questionPoll question; 1-255 characters (up to 300 characters for bots).TdApi.Poll.questionPoll question; 1-300 characters.TdApi.SearchQuote.quoteQuote to search for.TdApi.PremiumState.stateText description of the state of the current Premium subscription; may be empty if the current user has no Telegram Premium subscription.TdApi.BusinessChatLink.textMessage draft text that will be added to the input field.TdApi.BusinessChatLinkInfo.textMessage draft text that must be added to the input field.TdApi.ChatFolderName.textThe text of the chat folder name; 1-12 characters without line feeds.TdApi.ChecklistTask.textText of the task; may contain only Bold, Italic, Underline, Strikethrough, Spoiler, CustomEmoji, Url, EmailAddress, Mention, Hashtag, Cashtag and PhoneNumber entities.TdApi.DeepLinkInfo.textText to be shown to the user.TdApi.FactCheck.textText of the fact-check.TdApi.Game.textGame text, usually containing scoreboards for a game.TdApi.GetLinkPreview.textMessage text with formatting.TdApi.GetMarkdownText.textThe text.TdApi.GiftPremiumWithStars.textText to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters.TdApi.InputBusinessChatLink.textMessage draft text that will be added to the input field.TdApi.InputChecklistTask.textText of the task; 1-getOption("checklist_task_text_length_max") characters without line feeds.TdApi.InputMessageText.textFormatted text to be sent; 0-getOption("message_text_length_max") characters.TdApi.InputTextQuote.textText of the quote; 0-getOption("message_reply_quote_length_max") characters.TdApi.InternalLinkTypeMessageDraft.textMessage draft text.TdApi.MessageGift.textMessage added to the gift.TdApi.MessageGiftedPremium.textMessage added to the gifted Telegram Premium by the sender.TdApi.MessagePremiumGiftCode.textMessage added to the gift.TdApi.MessageText.textText of the message.TdApi.ParseMarkdown.textThe text to parse.TdApi.PollOption.textOption text; 1-100 characters.TdApi.ReceivedGift.textMessage added to the gift.TdApi.SearchQuote.textText in which to search for the quote.TdApi.SendGift.textText to show along with the gift; 0-getOption("gift_text_length_max") characters.TdApi.SetMessageFactCheck.textNew text of the fact-check; 0-getOption("fact_check_length_max") characters; pass null to remove it.TdApi.StorePaymentPurposePremiumGift.textText to show along with the gift codes; 0-getOption("gift_text_length_max") characters.TdApi.StorePaymentPurposePremiumGiftCodes.textText to show along with the gift codes; 0-getOption("gift_text_length_max") characters.TdApi.TelegramPaymentPurposePremiumGift.textText to show to the user receiving Telegram Premium; 0-getOption("gift_text_length_max") characters.TdApi.TelegramPaymentPurposePremiumGiftCodes.textText to show along with the gift codes; 0-getOption("gift_text_length_max") characters.TdApi.TermsOfService.textText of the terms of service.TdApi.TextQuote.textText of the quote.TdApi.TranslateText.textText to translate.TdApi.UpgradedGiftOriginalDetails.textMessage added to the gift.TdApi.Checklist.titleTitle of the checklist; may contain only Bold, Italic, Underline, Strikethrough, Spoiler, and CustomEmoji entities.TdApi.InputChecklist.titleTitle of the checklist; 1-getOption("checklist_title_length_max") characters.TdApi.SuggestedActionCustom.titleTitle 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.Checklist(TdApi.FormattedText title, TdApi.ChecklistTask[] tasks, boolean othersCanAddTasks, boolean canAddTasks, boolean othersCanMarkTasksAsDone, boolean canMarkTasksAsDone) Describes a checklist.ChecklistTask(int id, TdApi.FormattedText text, long completedByUserId, int completionDate) Describes a task in a checklist.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.InputChecklist(TdApi.FormattedText title, TdApi.InputChecklistTask[] tasks, boolean othersCanAddTasks, boolean othersCanMarkTasksAsDone) Describes a checklist to be sent.InputChecklistTask(int id, TdApi.FormattedText text) Describes a task in a checklist to be sent.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, TdApi.MessageSender receiverId, 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.VideoStoryboard[] storyboards, 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 administrator 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.