2019-12-11 08:06:09 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity.textsources
|
|
|
|
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.TextSource
|
2020-01-05 13:24:17 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.*
|
2019-12-11 08:06:09 +00:00
|
|
|
|
|
|
|
class URLTextSource(
|
2020-04-08 09:17:13 +00:00
|
|
|
override val source: String
|
2020-01-05 13:24:17 +00:00
|
|
|
) : TextSource {
|
|
|
|
override val asMarkdownSource: String by lazy { source.linkMarkdown(source) }
|
|
|
|
override val asMarkdownV2Source: String by lazy { source.linkMarkdownV2(source) }
|
|
|
|
override val asHtmlSource: String by lazy { source.linkHTML(source) }
|
2019-12-11 08:06:09 +00:00
|
|
|
}
|