2018-12-26 08:07:24 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity
|
|
|
|
|
2019-12-11 08:06:09 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.CommonAbstracts.TextSource
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity.textsources.URLTextSource
|
2019-03-31 03:26:41 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.linkHTML
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.linkMarkdown
|
|
|
|
|
2018-12-26 08:07:24 +00:00
|
|
|
data class URLMessageEntity(
|
|
|
|
override val offset: Int,
|
|
|
|
override val length: Int,
|
|
|
|
override val sourceString: String
|
2019-12-11 08:06:09 +00:00
|
|
|
) : MessageEntity, TextSource by URLTextSource(sourceString) {
|
2019-03-31 03:26:41 +00:00
|
|
|
val url: String = sourceString
|
2018-12-26 08:07:24 +00:00
|
|
|
}
|