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