mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 00:03:48 +00:00
Markdown and HTML typealiases
This commit is contained in:
parent
997f9ce411
commit
4ccfb93a94
@ -57,6 +57,7 @@ media for present out)
|
||||
* Add tools for work with html captions and texts
|
||||
* `MessageContent` which using captions or text now have default parse mode `HTMLParseMode` due to issue with escaping
|
||||
of `]` in links titles
|
||||
* Added `Markdown` and `HTML` type aliases which actually means `MarkdownParseMode` and `HTMLParseMode`
|
||||
|
||||
## 0.11.0
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user