2018-12-26 08:07:24 +00:00
|
|
|
package com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity
|
|
|
|
|
2019-03-27 01:35:37 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.toHtml
|
2019-01-23 04:15:57 +00:00
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.toMarkdown
|
|
|
|
|
2018-12-26 08:07:24 +00:00
|
|
|
interface MessageEntity {
|
|
|
|
val offset: Int
|
|
|
|
val length: Int
|
|
|
|
val sourceString: String
|
|
|
|
|
|
|
|
val asMarkdownSource: String
|
2019-01-23 04:15:57 +00:00
|
|
|
get() = sourceString.toMarkdown()
|
2019-03-27 01:35:37 +00:00
|
|
|
|
|
|
|
val asHtmlSource: String
|
|
|
|
get() = sourceString.toHtml()
|
2018-12-26 08:07:24 +00:00
|
|
|
}
|