mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2025-11-16 20:10:18 +00:00
MessageEntities are using string formatting extensions
This commit is contained in:
@@ -78,6 +78,9 @@ fun String.command(): String = if (startsWith("/")) {
|
||||
"/$this"
|
||||
}
|
||||
|
||||
fun String.commandMarkdown(): String = command()
|
||||
fun String.commandHTML(): String = command()
|
||||
|
||||
|
||||
infix fun String.bold(parseMode: ParseMode): String = when (parseMode) {
|
||||
is HTML -> boldHTML()
|
||||
|
||||
Reference in New Issue
Block a user