mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-03 00:15:27 +00:00
17 lines
797 B
Kotlin
17 lines
797 B
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity.textsources
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.MultilevelTextSource
|
|
import com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.TextPart
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.*
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.fullListOfSubSource
|
|
|
|
class CashTagTextSource(
|
|
source: String,
|
|
textParts: List<TextPart>
|
|
) : MultilevelTextSource {
|
|
override val textParts: List<TextPart> by lazy { source.fullListOfSubSource(textParts) }
|
|
override val asMarkdownSource: String by lazy { source.cashTagMarkdown() }
|
|
override val asMarkdownV2Source: String by lazy { cashTagMarkdownV2() }
|
|
override val asHtmlSource: String by lazy { cashTagHTML() }
|
|
}
|