mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-03 08:25:28 +00:00
15 lines
631 B
Kotlin
15 lines
631 B
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity.textsources
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.*
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.*
|
|
|
|
class EMailTextSource(
|
|
source: String,
|
|
textParts: List<TextPart>
|
|
) : MultilevelTextSource {
|
|
override val textParts: List<TextPart> by lazy { source.fullListOfSubSource(textParts) }
|
|
override val asMarkdownSource: String by lazy { source.emailMarkdown() }
|
|
override val asMarkdownV2Source: String by lazy { emailMarkdownV2(source) }
|
|
override val asHtmlSource: String by lazy { emailHTML(source) }
|
|
}
|