1
0
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:
2019-03-31 11:26:41 +08:00
parent 769d0360f3
commit c4a3e2cf3d
18 changed files with 88 additions and 67 deletions

View File

@@ -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()