TextContent

data class TextContent(text: String, textEntities: List<TextPart>) : MessageContent, TextedInput

Functions

createResend
Link copied to clipboard
common
open override fun createResend(chatId: ChatIdentifier, disableNotification: Boolean, replyToMessageId: MessageIdentifier?, allowSendingWithoutReply: Boolean?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<TextContent>>

Properties

text
Link copied to clipboard
common
open override val text: String
textEntities
Link copied to clipboard
common
open override val textEntities: List<TextPart>
Here must be full list of entities.

Extensions

toHtmlTexts
Link copied to clipboard
common
fun TextContent.toHtmlTexts(): List<String>
toMarkdownTexts
Link copied to clipboard
common
fun TextContent.toMarkdownTexts(): List<String>
toMarkdownV2Texts
Link copied to clipboard
common
fun TextContent.toMarkdownV2Texts(): List<String>