2019-12-11 08:06:09 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity.textsources
|
|
|
|
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.TextSource
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.emailHTML
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.emailMarkdown
|
|
|
|
|
|
|
|
class EMailTextSource(
|
2020-01-02 17:55:26 +00:00
|
|
|
override val rawSource: String
|
2019-12-11 08:06:09 +00:00
|
|
|
) : TextSource {
|
2020-01-02 17:55:26 +00:00
|
|
|
override val asMarkdownSource: String
|
|
|
|
get() = rawSource.emailMarkdown()
|
|
|
|
override val asHtmlSource: String
|
|
|
|
get() = rawSource.emailHTML()
|
2019-12-11 08:06:09 +00:00
|
|
|
}
|