TextContent

data class TextContent(val text: String, val textSources: TextSourcesList = emptyList()) : MessageContent, TextedInput

Constructors

Link copied to clipboard
fun TextContent(text: String, textSources: TextSourcesList = emptyList())

Functions

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

Properties

Link copied to clipboard
open override val text: String
Link copied to clipboard
open override val textSources: TextSourcesList

Full list of TextSources

Extensions

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