MessageEntities are using string formatting extensions

This commit is contained in:
InsanusMokrassar committed 2019-03-31 11:26:41 +08:00
1 parent 769d0360f3
commit c4a3e2cf3d
18 files changed
+88 -67

No files matched your search

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