Changes in 1.1.0:
- Methods
td::Log::set_file_pathandtd_set_log_file_pathnow return whether they succeeded. - Added methods
td::Log::set_max_file_sizeandtd_set_log_max_file_sizefor restricting maximum TDLib log size. - Added methods
td::Log::set_fatal_error_callbackandtd_set_log_fatal_error_callbackfor providing callbacks on fatal errors. - JNI-bindings are now package-agnostic. Use CMake option
TD_ENABLE_JNIto enable JNI-bindings. - Added a Java example. See Readme for build and usage instructions.
- Added support for text entities in media captions.
- Added new type
formattedTextcontaining a text with entities. - Replaced all string fields
captionwith fields of typeformattedText. - Replaced fields
textandentitieswith the fieldtextof typeformattedTextin classmessageText. - Replaced fields
textandentitieswith the fieldtextof typeformattedTextin classinputMessageText. - Replaced fields
textandtext_entitieswith the fieldtextof typeformattedTextin classgame. - Removed field
parse_modefrom classinputMessageText. - Added synchronous method
parseTextEntities.
- Added new type
- updateNewMessage is now sent for all sent messages.
- updateChatLastMessage is now sent when any field of the last message in a chat changes.
- Reworked the
registerDevicemethod:- Added parameter
other_user_idsto methodregisterDeviceto support multiple accounts. - It is now possible to specify tokens for VoIP pushes, WNS, web Push API, Tizen Push Service as
DeviceToken. - Added support for Apple Push Notification Service inside App Sandbox.
- Added parameter
- Add method
searchChatsOnServeranalogous tosearchChats, but using server search. - Results from the
searchChatsOnServermethod are now excluded fromsearchPublicChatsresults, sosearchChatsOnServer(along withsearchContacts) should be called wheneversearchPublicChatsis called to ensure that no results were omitted. - Added parameter
as_albumto methodgetPublicMessageLinkto enable getting public links for media albums. - Added field
htmlto classpublicMessageLink, containing HTML-code for message/message album embedding. - Added parameter
only_if_pendingto methodcancelDownloadFileto allow keeping already started downloads. - Methods
createPrivateChat,createBasciGroupChat,createSupergroupChatandcreateSecretChatcan now be called without a prior call togetUser/getBasicGroup/getSupergorup/getSecretChat. - Added parameter
forceto methodscreatePrivateChat,createBasciGroupChatandcreateSupergroupChatto allow creating a chat without network requests. - Numerous optimizations and bug fixes.