1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-06-03 00:15:27 +00:00

update CHANGELOG

This commit is contained in:
InsanusMokrassar 2020-01-05 19:58:29 +06:00
parent 7694b25d33
commit bb3ebb455e

View File

@ -2,20 +2,16 @@
## 0.21.0 TelegramBotAPI 4.5 ## 0.21.0 TelegramBotAPI 4.5
* _**All `MessageEntity`'es now are replaced with `TextPart`**_
* Added support of strikethrough and underline * Added support of strikethrough and underline
* Added `UnderlineTextSource` and `UnderlineMessageEntity` * Added `UnderlineTextSource`
* Added `StrikethroughTextSource` and `StrikethroughMessageEntity` * Added `StrikethroughTextSource`
* Added support in `RawMessageEntity` * Added support in `RawMessageEntity`
* Now `TextSource` have its `rawSource` const * Added support of `MarkdownV2`
* `sourceString` in `MessageEntity` now is deprecated * Now will not be thrown exception when there is income unknown type of `RawMessageEntity`. Instead of this will be
* All `MessageEntity` classes now have no income parameter `sourceString` created `RegularTextSource` with the same text
* In most part of `TextSource` classes `asMarkdownSource` and `asHtmlSource` now are getters instead if fields
* All parseMode-specific functions in `StringFormatting` now are not `infix`
* Now will not be thrown exception when there is income unknown type of `MessageEntity`. Instead of this will be
created `RegularTextMessageEntity` with the same text
* Fixed problem that usually string formatting did not trigger escaping of control characters * Fixed problem that usually string formatting did not trigger escaping of control characters
* Actualized work with `pre` type of text - now it is possible to use `language` for formatting of text * Actualized work with `pre` type of text - now it is possible to use `language` for formatting of text
* Removed constructor of `TextMentionMessageEntity`, which was deprecated previously
* Removed constructor of `TextMentionTextSource`, which was deprecated previously * Removed constructor of `TextMentionTextSource`, which was deprecated previously
* All `TelegramMediaFile` instances now have field `fileUniqueId`, which represents `file_unique_id` field from API * All `TelegramMediaFile` instances now have field `fileUniqueId`, which represents `file_unique_id` field from API
* Now `ChatPhoto` have two additional fields: `smallFileUniqueId` and `bigFileUniqueId` * Now `ChatPhoto` have two additional fields: `smallFileUniqueId` and `bigFileUniqueId`