TextContent

@Serializable
data class TextContent(val text: String, val textSources: TextSourcesList = emptyList(), val linkPreviewOptions: LinkPreviewOptions? = null, val quote: TextQuote? = null) : TextedContent, WithOptionalQuoteInfo

Constructors

Link copied to clipboard
constructor(text: String, textSources: TextSourcesList = emptyList(), linkPreviewOptions: LinkPreviewOptions? = null, quote: TextQuote? = null)

Properties

Link copied to clipboard
Link copied to clipboard
open override val quote: TextQuote? = null
Link copied to clipboard
open override val text: String
Link copied to clipboard
open override val textSources: TextSourcesList

Full list of TextSources

Functions

Link copied to clipboard
open fun createResend(chatId: ChatIdentifier, messageThreadId: MessageThreadId? = chatId.threadId, disableNotification: Boolean = false, protectContent: Boolean = false, replyToMessageId: MessageId?, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Request<out AccessibleMessage>
open override fun createResend(chatId: ChatIdentifier, messageThreadId: MessageThreadId?, disableNotification: Boolean, protectContent: Boolean, replyParameters: ReplyParameters?, replyMarkup: KeyboardMarkup?): Request<ContentMessage<TextContent>>