mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-06-29 04:47:48 +00:00
14 lines
497 B
Kotlin
14 lines
497 B
Kotlin
package com.github.insanusmokrassar.TelegramBotAPI.types.MessageEntity
|
|
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.boldHTML
|
|
import com.github.insanusmokrassar.TelegramBotAPI.utils.boldMarkdown
|
|
|
|
data class BoldTextMessageEntity(
|
|
override val offset: Int,
|
|
override val length: Int,
|
|
override val sourceString: String
|
|
) : MessageEntity {
|
|
override val asMarkdownSource: String = sourceString.boldMarkdown()
|
|
override val asHtmlSource: String = sourceString.boldHTML()
|
|
}
|