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