|
| 1 | +Changes in 1.1.0: |
| 2 | + |
| 3 | +* Methods `td::Log::set_file_path` and `td_set_log_file_path` now return whether they succeeded. |
| 4 | +* Added methods `td::Log::set_max_file_size` and `td_set_log_max_file_size` for restricting maximum TDLib log size. |
| 5 | +* Added methods `td::Log::set_fatal_error_callback` and `td_set_log_fatal_error_callback` for providing callbacks |
| 6 | + on fatal errors. |
| 7 | +* JNI-bindings are now package-agnostic. Use CMake option `TD_ENABLE_JNI` to enable JNI-bindings. |
| 8 | +* Added a Java example. See [Readme](example/java/README.md) for build and usage instructions. |
| 9 | +* Added support for text entities in media captions. |
| 10 | + - Added new type `formattedText` containing a text with entities. |
| 11 | + - Replaced all string fields `caption` with fields of type `formattedText`. |
| 12 | + - Replaced fields `text` and `entities` with the field `text` of type `formattedText` in class `messageText`. |
| 13 | + - Replaced fields `text` and `entities` with the field `text` of type `formattedText` in class `inputMessageText`. |
| 14 | + - Replaced fields `text` and `text_entities` with the field `text` of type `formattedText` in class `game`. |
| 15 | + - Removed field `parse_mode` from class `inputMessageText`. |
| 16 | + - Added synchronous method `parseTextEntities`. |
| 17 | +* updateNewMessage is now sent for all sent messages. |
| 18 | +* updateChatLastMessage is now sent when any field of the last message in a chat changes. |
| 19 | +* Reworked the `registerDevice` method: |
| 20 | + - Added parameter `other_user_ids` to method `registerDevice` to support multiple accounts. |
| 21 | + - It is now possible to specify tokens for VoIP pushes, WNS, web Push API, Tizen Push Service as `DeviceToken`. |
| 22 | + - Added support for Apple Push Notification Service inside App Sandbox. |
| 23 | +* Add method `searchChatsOnServer` analogous to `searchChats`, but using server search. |
| 24 | +* Results from the `searchChatsOnServer` method are now excluded from `searchPublicChats` results, |
| 25 | + so `searchChatsOnServer` (along with `searchContacts`) should be called whenever `searchPublicChats` is called |
| 26 | + to ensure that no results were omitted. |
| 27 | +* Added parameter `as_album` to method `getPublicMessageLink` to enable getting public links for media albums. |
| 28 | +* Added field `html` to class `publicMessageLink`, containing HTML-code for message/message album embedding. |
| 29 | +* Added parameter `only_if_pending` to method `cancelDownloadFile` to allow keeping already started downloads. |
| 30 | +* Methods `createPrivateChat`, `createBasciGroupChat`, `createSupergroupChat` and `createSecretChat` |
| 31 | + can now be called without a prior call to `getUser`/`getBasicGroup`/`getSupergorup`/`getSecretChat`. |
| 32 | +* Added parameter `force` to methods `createPrivateChat`, `createBasciGroupChat` and `createSupergroupChat` to allow |
| 33 | + creating a chat without network requests. |
| 34 | +* Numerous optimizations and bug fixes. |
| 35 | + |
| 36 | +----------------------------------------------------------------------------------------------------------------------- |
0 commit comments