mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-03 00:15:27 +00:00
14 lines
525 B
Kotlin
14 lines
525 B
Kotlin
|
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 TextLinkTextSource(
|
||
|
sourceString: String,
|
||
|
url: String
|
||
|
) : TextSource {
|
||
|
override val asMarkdownSource: String = sourceString.linkMarkdown(url)
|
||
|
override val asHtmlSource: String = sourceString.linkHTML(url)
|
||
|
}
|