2019-01-29 01:47:01 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity
|
|
|
|
|
2019-03-31 03:26:41 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.toHtml
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.toMarkdown
|
|
|
|
|
2019-01-29 01:47:01 +00:00
|
|
|
data class RegularTextMessageEntity(
|
|
|
|
override val offset: Int,
|
|
|
|
override val length: Int,
|
|
|
|
override val sourceString: String
|
2019-03-31 03:26:41 +00:00
|
|
|
) : MessageEntity {
|
|
|
|
override val asMarkdownSource: String = sourceString.toMarkdown()
|
|
|
|
override val asHtmlSource: String = sourceString.toHtml()
|
|
|
|
}
|