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.boldHTML
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.boldMarkdown
|
|
|
|
|
|
|
|
class BoldTextSource(
|
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.boldMarkdown()
|
|
|
|
override val asHtmlSource: String
|
|
|
|
get() = rawSource.boldHTML()
|
2019-12-11 08:06:09 +00:00
|
|
|
}
|