2020-01-02 17:10:30 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity.textsources
|
|
|
|
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.TextSource
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.strikethroughHTML
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.strikethroughMarkdown
|
|
|
|
|
|
|
|
class StrikethroughTextSource(
|
2020-01-02 17:55:26 +00:00
|
|
|
override val rawSource: String
|
2020-01-02 17:10:30 +00:00
|
|
|
) : TextSource {
|
2020-01-02 17:55:26 +00:00
|
|
|
override val asHtmlSource: String
|
|
|
|
get() = rawSource.strikethroughHTML()
|
|
|
|
override val asMarkdownSource: String
|
|
|
|
get() = rawSource.strikethroughMarkdown()
|
2020-01-02 17:10:30 +00:00
|
|
|
}
|