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