2020-01-02 17:10:30 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity.textsources
|
|
|
|
|
2020-01-05 13:24:17 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.MultilevelTextSource
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.TextPart
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.*
|
2020-01-02 17:10:30 +00:00
|
|
|
|
|
|
|
class StrikethroughTextSource(
|
2020-01-05 13:24:17 +00:00
|
|
|
source: String,
|
|
|
|
textParts: List<TextPart>
|
|
|
|
) : MultilevelTextSource {
|
2020-01-05 14:07:51 +00:00
|
|
|
override val textParts: List<TextPart> by lazy { source.fullListOfSubSource(textParts) }
|
2020-01-05 13:24:17 +00:00
|
|
|
override val asHtmlSource: String by lazy { strikethroughHTML() }
|
|
|
|
override val asMarkdownV2Source: String by lazy { strikethroughMarkdownV2() }
|
|
|
|
override val asMarkdownSource: String by lazy { source.strikethroughMarkdown() }
|
2020-01-02 17:10:30 +00:00
|
|
|
}
|