1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-09-03 15:19:30 +00:00

Markdown and HTML typealiases

This commit is contained in:
2019-03-31 10:20:14 +08:00
parent 997f9ce411
commit 4ccfb93a94
2 changed files with 4 additions and 0 deletions

View File

@@ -23,6 +23,9 @@ object HTMLParseMode : ParseMode() {
override val parseModeName: String = "HTML"
}
typealias Markdown = MarkdownParseMode
typealias HTML = HTMLParseMode
@Serializer(ParseMode::class)
internal class ParseModeSerializerObject: KSerializer<ParseMode> {
override fun deserialize(decoder: Decoder): ParseMode {