1Changes in 1.7.0 (28 Nov 2020): 2 3* Added a new simplified JSON interface in which updates and responses to requests from all TDLib instances 4 are received in the same thread: 5 - The TDLib instance is identified by the unique `client_id` identifier, which is returned by the method 6 `td_create_client_id`. 7 - Use the method `td_send` to send a request to a specified client. The TDLib instance is created on the first 8 request sent to it. 9 - Use the method `td_receive` to receive updates and request responses from TDLib. The response will contain 10 the identifier of the client from which the event was received in the field "@client_id". 11 - Use the method `td_execute` to synchronously execute suitable TDLib methods. 12* Added support for adding chats to more than one chat list: 13 - Added the class `chatPosition`, describing the position of the chat within a chat list. 14 - Replaced the fields `chat_list`, `order`, `is_sponsored` and `is_pinned` in the class `chat` with 15 the field `positions`, containing a list of the chat positions in various chat list. 16 - Replaced the field `order` with the field `positions` in the updates `updateChatLastMessage` and 17 `updateChatDraftMessage`. 18 - Added the update `updateChatPosition`. 19 - Removed the superfluous updates `updateChatChatList`, `updateChatIsSponsored`, `updateChatOrder` and 20 `updateChatIsPinned`. 21 - Added the parameter `chat_list` to the method `toggleChatIsPinned`. 22 - Added the class `chatLists`, containing a list of chat lists. 23 - Added the method `getChatListsToAddChat`, returning all chat lists to which a chat can be added. 24 - Added the method `addChatToList`, which can be used to add a chat to a chat list. 25 - Remove the method `setChatChatList`. 26* Added support for chat filters: 27 - Added the new chat list type `chatListFilter`. 28 - Added the classes `chatFilterInfo` and `chatFilter`, describing a filter of user chats. 29 - Added the update `updateChatFilters`, which is sent when the list of chat filters is changed. 30 - Added the methods `createChatFilter`, `editChatFilter` and `deleteChatFilter` for managing chat filters. 31 - Added the method `reorderChatFilters` for changing the order of chat filters. 32 - Added the method `getChatFilter`, returning full information about a chat filter. 33 - Added the synchronous method `getChatFilterDefaultIconName`. 34 - Added the classes `recommendedChatFilter` and `recommendedChatFilters`. 35 - Added the method `getRecommendedChatFilters`, returning a list of recommended chat filters. 36* Added support for messages sent on behalf of chats instead of users: 37 - Added the class `MessageSender`, representing a user or a chat which sent a message. 38 - Added the class `MessageSenders`, representing a list of message senders. 39 - Replaced the field `sender_user_id` with the field `sender` of the type `MessageSender` in the classes `message` 40 and `notificationTypeNewPushMessage`. 41 - Added the class `messageForwardOriginChat`, which describe a chat as the original sender of a message. 42 - Added the ability to search messages sent by a chat by replacing the parameter `sender_user_id` with 43 the parameter `sender` of the type `MessageSender` in the method `searchChatMessages`. 44 - Added the ability to specify a chat as a local message sender by replacing the parameter `sender_user_id` with 45 the parameter `sender` of the type `MessageSender` in the method `addLocalMessage`. 46* Added support for video calls: 47 - Added the class `callServer`, describing a server for relaying call data. 48 - Added the classes `callServerTypeTelegramReflector` and `callServerTypeWebrtc`, representing different types of 49 supported call servers. 50 - Replaced the field `connections` with the field `servers` in the class `callStateReady`. 51 - Removed the class `callConnection`. 52 - Added the update `updateNewCallSignalingData`. 53 - Added the method `sendCallSignalingData`. 54 - Added the field `supports_video_calls` to the class `userFullInfo`. 55 - Added the field `is_video` to the class `messageCall`. 56 - Added the field `is_video` to the class `call`. 57 - Added the parameter `is_video` to the method `createCall`. 58 - Added the parameter `is_video` to the method `discardCall`. 59 - Added two new types of call problems `callProblemDistortedVideo` and `callProblemPixelatedVideo`. 60 - Added the field `library_versions` to the class `callProtocol`, which must be used to specify all supported 61 call library versions. 62* Added support for multiple pinned messages and the ability to pin messages in private chats: 63 - Added the ability to pin messages in all private chats. 64 - Added the ability to pin mutiple messages in all chats. 65 - Added the field `is_pinned` to the class `message`. 66 - Added the update `updateMessageIsPinned`. 67 - Added the parameter `only_for_self` to the method `pinChatMessage`, allowing to pin messages in private chats for 68 one side only. 69 - Added the ability to find pinned messages in a chat using the filter `searchMessagesFilterPinned`. 70 - Added the parameter `message_id` to the method `unpinChatMessage`. 71 - Added the field `message` to the class `chatEventMessageUnpinned`. 72 - Added the method `unpinAllChatMessages`, which can be used to simultaneously unpin all pinned messages in a chat. 73 - Documented that notifications about new pinned messages are always silent in channels and private chats. 74 - The method `getChatPinnedMessage` now returns the newest pinned message in the chat. 75 - Removed the field `pinned_message_id` from the class `chat`. 76 - Removed the update `updateChatPinnedMessage`. 77* Improved thumbnail representation and added support for animated MPEG4 thumbnails: 78 - Added the class `ThumbnailFormat`, representing the various supported thumbnail formats. 79 - Added the class `thumbnail`, containing information about a thumbnail. 80 - Changed the type of all thumbnail fields from `photoSize` to `thumbnail`. 81 - Added support for thumbnails in the format `thumbnailFormatMpeg4` for some animations and videos. 82 - Replaced the classes `inputInlineQueryResultAnimatedGif` and `inputInlineQueryResultAnimatedMpeg4` with 83 the generic class `inputInlineQueryResultAnimation`. 84 - Added support for animated thumbnails in the class `inputInlineQueryResultAnimation`. 85 - The class `photoSize` is now only used for JPEG images. 86* Improved support for user profile photos and chat photos: 87 - Added the field `photo` to the class `userFullInfo`, containing full information about the user photo. 88 - Added the field `photo` to the class `basicGroupFullInfo`, containing full information about the group photo. 89 - Added the field `photo` to the class `supergroupFullInfo`, containing full information about the group photo. 90 - Renamed the class `chatPhoto` to `chatPhotoInfo`. 91 - Added the field `has_animation` to the classes `profilePhoto` and `chatPhotoInfo`, which is set to true for 92 animated chat photos. 93 - Added the classes `chatPhoto` and `chatPhotos`. 94 - Added minithumbnail support via the field `minithumbnail` in the class `chatPhoto`. 95 - Added the class `animatedChatPhoto`. 96 - Added animated chat photo support via the field `animation` in the class `chatPhoto`. 97 - Removed the classes `userProfilePhoto` and `userProfilePhotos`. 98 - Changed the type of the field `photo` in the class `messageChatChangePhoto` to `chatPhoto`. 99 - Changed the type of the fields `old_photo` and `new_photo` in the class `chatEventPhotoChanged` to `chatPhoto`. 100 - Changed the return type of the method `getUserProfilePhotos` to `chatPhotos`. 101 - Added the class `InputChatPhoto`, representing a chat or a profile photo to set. 102 - Changed the type of the parameter `photo` in the methods `setProfilePhoto` and `setChatPhoto` to 103 the `InputChatPhoto`. 104 - Added the ability to explicitly re-use previously set profile photos using the class `inputChatPhotoPrevious`. 105 - Added the ability to set animated chat photos using the class `inputChatPhotoAnimated`. 106* Added support for message threads in supergroups and channel comments: 107 - Added the field `message_thread_id` to the class `message`. 108 - Added the class `messageThreadInfo`, containing information about a message thread. 109 - Added the class `messageReplyInfo`, containing information about replies to a message. 110 - Added the field `reply_info` to the class `messageInteractionInfo`, containing information about message replies. 111 - Added the field `can_get_message_thread` to the class `message`. 112 - Added the method `getMessageThread`, returning information about the message thread to which a message belongs. 113 - Added the method `getMessageThreadHistory`, returning messages belonging to a message thread. 114 - Added the parameter `message_thread_id` to the methods `sendMessage`, `sendMessageAlbum` and 115 `sendInlineQueryResultMessage` for sending messages within a thread. 116 - Added the parameter `message_thread_id` to the method `searchChatMessages` to search messages within a thread. 117 - Added the parameter `message_thread_id` to the method `viewMessages`. 118 - Added the parameter `message_thread_id` to the method `setChatDraftMessage`. 119 - Added the parameter `message_thread_id` to the method `sendChatAction` to send chat actions to a thread. 120 - Added the field `message_thread_id` to the update `updateUserChatAction`. 121* Improved support for message albums: 122 - Added support for sending and receiving messages of the types `messageAudio` and `messageDocument` as albums. 123 - Added automatic grouping into audio or document albums in the method `forwardMessages` if all forwarded or 124 copied messages are of the same type. 125 - Removed the parameter `as_album` from the method `forwardMessages`. Forwarded message albums are now determined 126 automatically. 127* Simplified usage of methods generating an HTTP link to a message: 128 - Added the class `messageLink`, representing an HTTP link to a message. 129 - Combined the methods `getPublicMessageLink` and `getMessageLink` into the method `getMessageLink`, which 130 now returns a public link to the message if possible and a private link otherwise. The combined method is 131 an offline method now. 132 - Added the parameter `for_comment` to the method `getMessageLink`, which allows to get a message link to the message 133 that opens it in a thread. 134 - Removed the class `publicMessageLink`. 135 - Added the field `for_comment` to the class `messageLinkInfo`. 136 - Added the separate method `getMessageEmbeddingCode`, returning an HTML code for embedding a message. 137* Added the ability to block private messages sent via the @replies bot from chats: 138 - Added the field `is_blocked` to the class `chat`. 139 - Added the update `updateChatIsBlocked`. 140 - Added the method `blockMessageSenderFromReplies`. 141 - Replaced the methods `blockUser` and `unblockUser` with the method `toggleMessageSenderIsBlocked`. 142 - Replaced the method `getBlockedUsers` with the method `getBlockedMessageSenders`. 143* Added support for incoming messages which are replies to messages in different chats: 144 - Added the field `reply_in_chat_id` to the class `message`. 145 - The method `getRepliedMessage` can now return the replied message in a different chat. 146* Renamed the class `sendMessageOptions` to `messageSendOptions`. 147* Added the new `tdapi` static library, which needs to be additionally linked in when static linking is used. 148* Changed the type of the field `value` in the class `optionValueInteger` from `int32` to `int64`. 149* Changed the type of the field `description` in the class `webPage` from `string` to `formattedText`. 150* Improved Instant View support: 151 - Added the field `view_count` to the class `webPageInstantView`. 152 - Added the class `richTextAnchorLink`, containing a link to an anchor on the same page. 153 - Added the class `richTextReference`, containing a reference to a text on the same page. 154 - Removed the field `text` from the class `richTextAnchor`. 155 - Removed the field `url` which is no longer needed from the class `webPageInstantView`. 156* Allowed the update `updateServiceNotification` to be sent before authorization is completed. 157* Disallowed to pass messages in non-strictly increasing order to the method `forwardMessages`. 158* Improved sending copies of messages: 159 - Added the class `messageCopyOptions` and the field `copy_options` to the class `inputMessageForwarded`. 160 - Removed the fields `send_copy` and `remove_caption` from the class `inputMessageForwarded`. 161 - Allowed to replace captions in copied messages using the fields `replace_caption` and `new_caption` in 162 the class `messageCopyOptions`. 163 - Allowed to specify `reply_to_message_id` when sending a copy of a message. 164 - Allowed to specify `reply_markup` when sending a copy of a message. 165* Allowed passing multiple input language codes to `searchEmojis` by replacing the parameter `input_language_code` with 166 the parameter `input_language_codes`. 167* Added support for public service announcements: 168 - Added the class `ChatSource` and the field `source` to the class `chatPosition`. 169 - Added the new type of chat source `chatSourcePublicServiceAnnouncement`. 170 - Added the field `public_service_announcement_type` to the class `messageForwardInfo`. 171* Added support for previewing of private supergroups and channels by their invite link. 172 - The field `chat_id` in the class `chatInviteLinkInfo` is now non-zero for private supergroups and channels to which 173 the temporary read access is granted. 174 - Added the field `accessible_for` to the class `chatInviteLinkInfo`, containing the amount of time for which 175 read access to the chat will remain available. 176* Improved methods for message search: 177 - Replaced the field `next_from_search_id` with a string field `next_offset` in the class `foundMessages`. 178 - Added the field `total_count` to the class `foundMessages`; can be -1 if the total count of matching messages is 179 unknown. 180 - Replaced the parameter `from_search_id` with the parameter `offset` in the method `searchSecretMessages`. 181 - Added the parameter `filter` to the method `searchMessages`. 182 - Added the parameters `min_date` and `max_date` to the method `searchMessages` to search messages sent only within 183 a particular timeframe. 184* Added pkg-config file generation for all installed libraries. 185* Added automatic operating system version detection. Use an empty field `system_version` in 186 the class `tdlibParameters` for the automatic detection. 187* Increased maximum file size from 1500 MB to 2000 MB. 188* Added support for human-friendly Markdown formatting: 189 - Added the synchronous method `parseMarkdown` for human-friendly parsing of text entities. 190 - Added the synchronous method `getMarkdownText` for replacing text entities with a human-friendly 191 Markdown formatting. 192 - Added the writable option "always_parse_markdown" which enables automatic parsing of text entities in 193 all `inputMessageText` objects. 194* Added support for dice with random values in messages: 195 - Added the class `messageDice` to the types of message content; contains a dice. 196 - Added the class `DiceStickers`, containing animated stickers needed to show the dice. 197 - Added the class `inputMessageDice` to the types of new input message content; can be used to send a dice. 198 - Added the update `updateDiceEmojis`, containing information about supported dice emojis. 199* Added support for chat statistics in channels and supergroups: 200 - Added the field `can_get_statistics` to the class `supergroupFullInfo`. 201 - Added the class `ChatStatistics`, which represents a supergroup or a channel statistics. 202 - Added the method `getChatStatistics` returning detailed statistics about a chat. 203 - Added the classes `chatStatisticsMessageInteractionInfo`, `chatStatisticsAdministratorActionsInfo`, 204 `chatStatisticsMessageSenderInfo` and `chatStatisticsInviterInfo` representing various parts of chat statistics. 205 - Added the class `statisticalValue` describing recent changes of a statistical value. 206 - Added the class `StatisticalGraph` describing a statistical graph. 207 - Added the method `getStatisticalGraph`, which can be used for loading asynchronous or zoomed in statistical graphs. 208 - Added the class `dateRange` representing a date range for which statistics are available. 209 - Removed the field `can_view_statistics` from the class `supergroupFullInfo` and marked 210 the method `getChatStatisticsUrl` as disabled and not working. 211* Added support for detailed statistics about interactions with messages: 212 - Added the class `messageInteractionInfo`, containing information about message views, forwards and replies. 213 - Added the field `interaction_info` to the class `message`. 214 - Added the update `updateMessageInteractionInfo`. 215 - Added the field `can_get_statistics` to the class `message`. 216 - Added the class `messageStatistics`. 217 - Added the method `getMessageStatistics`. 218 - Added the method `getMessagePublicForwards`, returning all forwards of a message to public channels. 219 - Removed the now superfluous field `views` from the class `message`. 220 - Removed the now superfluous update `updateMessageViews`. 221* Improved support for native polls: 222 - Added the field `explanation` to the class `pollTypeQuiz`. 223 - Added the fields `close_date` and `open_period` to the class `poll`. 224 - Added the fields `close_date` and `open_period` to the class `inputMessagePoll`; for bots only. 225 - Increased maximum poll question length to 300 characters for bots. 226* Added support for anonymous administrators in supergroups: 227 - Added the field `is_anonymous` to the classes `chatMemberStatusCreator` and `chatMemberStatusAdministrator`. 228 - The field `author_signature` in the class `message` can now contain a custom title of the anonymous administrator 229 that sent the message. 230* Added support for a new type of inline keyboard buttons, requiring user password entry: 231 - Added the class `inlineKeyboardButtonTypeCallbackWithPassword`, representing a button requiring password entry from 232 a user. 233 - Added the class `callbackQueryPayloadDataWithPassword`, representing new type of callback button payload, 234 which must be used for the buttons of the type `inlineKeyboardButtonTypeCallbackWithPassword`. 235* Added support for making the location of the user public: 236 - Added the writable option "is_location_visible" to allow other users see location of the current user. 237 - Added the method `setLocation`, which should be called if `getOption("is_location_visible")` is true and location 238 changes by more than 1 kilometer. 239* Improved Notification API: 240 - Added the field `sender_name` to the class `notificationTypeNewPushMessage`. 241 - Added the writable option "disable_sent_scheduled_message_notifications" for disabling notifications about 242 outgoing scheduled messages that were sent. 243 - Added the field `is_outgoing` to the class `notificationTypeNewPushMessage` for recognizing 244 outgoing scheduled messages that were sent. 245 - Added the fields `has_audios` and `has_documents` to the class `pushMessageContentMediaAlbum`. 246* Added the field `date` to the class `draftMessage`. 247* Added the update `updateStickerSet`, which is sent after a sticker set is changed. 248* Added support for pagination in trending sticker sets: 249 - Added the parameters `offset` and `limit` to the method `getTrendingStickerSets`. 250 - Changed the field `sticker_sets` in the update `updateTrendingStickerSets` to contain only the prefix of 251 trending sticker sets. 252* Messages that failed to send can now be found using the filter `searchMessagesFilterFailedToSend`. 253* Added the ability to disable automatic server-side file type detection using the new field 254 `disable_content_type_detection` of the class `inputMessageDocument`. 255* Improved chat action bar: 256 - Added the field `can_unarchive` to the classes `chatActionBarReportSpam` and `chatActionBarReportAddBlock`, 257 which is true whenever the chat was automatically archived. 258 - Added the field `distance` to the class `chatActionBarReportAddBlock`, 259 which denotes the distance between the users. 260* Added support for actions suggested to the user by the server: 261 - Added the class `SuggestedAction`, representing possible actions suggested by the server. 262 - Added the update `updateSuggestedActions`. 263 - Added the method `hideSuggestedAction`, which can be used to dismiss a suggested action. 264* Supported attaching stickers to animations: 265 - Added the field `has_stickers` to the class `animation`. 266 - Added the field `added_sticker_file_ids` to the class `inputMessageAnimation`. 267* Added methods for phone number formatting: 268 - Added the class `countryInfo`, describing a country. 269 - Added the class `countries`, containing a list of countries. 270 - Added the method `getCountries`, returning a list of all existing countries. 271 - Added the class `phonenumberinfo` and the method `getPhoneNumberInfo`, which can be used to format a phone number 272 according to local rules. 273* Improved location support: 274 - Added the field `horizontal_accuracy` to the class `location`. 275 - Added the field `heading` to the classes `messageLocation` and `inputMessageLocation` for live locations. 276 - Added the parameter `heading` to the methods `editMessageLiveLocation` and `editInlineMessageLiveLocation`. 277* Added support for proximity alerts in live locations: 278 - Added the field `proximity_alert_radius` to the classes `messageLocation` and `inputMessageLocation`. 279 - Added the parameter `proximity_alert_radius` to the methods `editMessageLiveLocation` and 280 `editInlineMessageLiveLocation`. 281 - Added the new message content `messageProximityAlertTriggered`, received whenever a proximity alert is triggered. 282* Added `CentOS 7` and `CentOS 8` operating systems to the 283 [TDLib build instructions generator](https://tdlib.github.io/td/build.html). 284* Added the CMake configuration option TD_ENABLE_MULTI_PROCESSOR_COMPILATION, which can be used to enable parallel 285 build with MSVC. 286* Added support for sending and receiving messages in secret chats with silent notifications. 287* Added the field `progressive_sizes` to the class `photo` to allow partial progressive JPEG photo download. 288* Added the field `redirect_stderr` to the class `logStreamFile` to allow explicit control over stderr redirection to 289 the log file. 290* Added the read-only option "can_archive_and_mute_new_chats_from_unknown_users", which can be used to check, whether 291 the option "archive_and_mute_new_chats_from_unknown_users" can be changed. 292* Added the writable option "archive_and_mute_new_chats_from_unknown_users", which can be used to automatically archive 293 and mute new chats from non-contacts. The option can be set only if the option 294 "can_archive_and_mute_new_chats_from_unknown_users" is true. 295* Added the writable option "message_unload_delay", which can be used to change the minimum delay before messages are 296 unloaded from the memory. 297* Added the writable option "disable_persistent_network_statistics", which can be used to disable persistent 298 network usage statistics, significantly reducing disk usage. 299* Added the writable option "disable_time_adjustment_protection", which can be used to disable protection from 300 external time adjustment, significantly reducing disk usage. 301* Added the writable option "ignore_default_disable_notification" to allow the application to manually specify the 302 `disable_notification` option each time when sending messages instead of following the default per-chat settings. 303* Added the read-only option "telegram_service_notifications_chat_id", containing the identifier of 304 the Telegram service notifications chat. 305* Added the read-only option "replies_bot_chat_id", containing the identifier of the @replies bot. 306* Added the read-only option "group_anonymous_bot_user_id", containing the identifier of the bot which is shown as 307 the sender of anonymous group messages when viewed from an outdated client. 308* Added the new venue provider value "gplaces" for Google Places. 309* Added the parameter `return_deleted_file_statistics` to the method `optimizeStorage` to return information about 310 the files that were deleted instead of the ones that were not. 311* Added the ability to search for supergroup members to mention by their name and username: 312 - Added the new filter `supergroupMembersFilterMention` for the method `getSupergroupMembers`. 313 - Added the new filter `chatMembersFilterMention` for the method `searchChatMembers`. 314* Added support for highlighting bank card numbers: 315 - Added the new text entity `textEntityTypeBankCardNumber`. 316 - Added the classes `bankCardInfo` and `bankCardActionOpenUrl`, containing information about a bank card. 317 - Added the method `getBankCardInfo`, returning information about a bank card. 318* Improved methods for managing sticker sets by bots: 319 - Added the method `setStickerSetThumbnail`. 320 - Added the ability to create new animated sticker sets and add new stickers to them by adding 321 the class `inputStickerAnimated`. 322 - Renamed the class `inputSticker` to `inputStickerStatic`. 323 - Renamed the field `png_sticker` to `sticker` in the class `inputStickerStatic`. 324* Added the method `setCommands` for bots. 325* Added the method `getCallbackQueryMessage` for bots. 326* Added support for starting bots in private chats through `sendBotStartMessage`. 327* Added the field `total_count` to the class `chats`. The field should have a precise value for the responses of 328 the methods `getChats`, `searchChats` and `getGroupsInCommon`. 329* Added the update `updateAnimationSearchParameters`, containing information about animation search parameters. 330* Documented that `getRepliedMessage` can be used to get a pinned message, a game message, or an invoice message for 331 messages of the types `messagePinMessage`, `messageGameScore`, and `messagePaymentSuccessful` respectively. 332* Added guarantees that the field `member_count` in the class `supergroup` is known if the supergroup was received from 333 the methods `searchChatsNearby`, `getInactiveSupergroupChats`, `getSuitableDiscussionChats`, `getGroupsInCommon`, or 334 `getUserPrivacySettingRules`. 335* Updated SQLCipher to 4.4.0. 336* Updated dependencies in the prebuilt TDLib for Android: 337 - Updated SDK to SDK 30. 338 - Updated NDK to r21d, which dropped support for 32-bit ARM devices without Neon support. 339* Updated recommended `emsdk` version for `tdweb` building to the 2.0.6. 340* Removed the ability to change the update handler after client creation in native .NET binding, Java example and 341 prebuilt library for Android. 342* Removed the ability to change the default exception handler after client creation in Java example and 343 prebuilt library for Android. 344* Removed the ability to close Client using close() method in Java example and prebuilt library for Android. 345 Use the method TdApi.close() instead. 346* Changed license of source code in prebuilt library for Android to Boost Software License, Version 1.0. 347 348----------------------------------------------------------------------------------------------------------------------- 349 350Changes in 1.6.0 (31 Jan 2020): 351 352* Added support for multiple chat lists. Currently, only two chat lists Main and Archive are supported: 353 - Added the class `ChatList`, which represents a chat list and could be `chatListMain` or `chatListArchive`. 354 - Added the field `chat_list` to the class `chat`, denoting the chat list to which the chat belongs. 355 - Added the parameter `chat_list` to the methods `getChats`, `searchMessages` and `setPinnedChats`. 356 - Added the field `chat_list` to the updates `updateUnreadMessageCount` and `updateUnreadChatCount`. 357 - Added the field `total_count` to the update `updateUnreadChatCount`, containing the total number of chats in 358 the list. 359 - Added the update `updateChatChatList`, which is sent after a chat is moved to or from a chat list. 360 - Added the method `setChatChatList`, which can be used to move a chat between chat lists. 361 - Added the option `pinned_archived_chat_count_max` for the maximum number of pinned chats in the Archive chat list. 362* Added support for scheduled messages: 363 - Added the classes `messageSchedulingStateSendAtDate` and `messageSchedulingStateSendWhenOnline`, 364 representing the scheduling state of a message. 365 - Added the field `scheduling_state` to the class `message`, which allows to distinguish between scheduled and 366 ordinary messages. 367 - The update `updateNewMessage` can now contain a scheduled message and must be handled appropriately. 368 - The updates `updateMessageContent`, `updateDeleteMessages`, `updateMessageViews`, `updateMessageSendSucceeded`, 369 `updateMessageSendFailed`, and `updateMessageSendAcknowledged` can now contain identifiers of scheduled messages. 370 - Added the class `sendMessageOptions`, which contains options for sending messages, 371 including the scheduling state of the messages. 372 - Replaced the parameters `disable_notification` and `from_background` in the methods `sendMessage`, 373 `sendMessageAlbum`, `sendInlineQueryResultMessage`, and `forwardMessages` with the new field `options` of 374 the type `sendMessageOptions`. 375 - Added the method `editMessageSchedulingState`, which can be used to reschedule a message or send it immediately. 376 - Added the method `getChatScheduledMessages`, which returns all scheduled messages in a chat. 377 - Added the field `has_scheduled_messages` to the class `chat`. 378 - Added the update `updateChatHasScheduledMessages`, which is sent whenever the field `has_scheduled_messages` 379 changes in a chat. 380 - Added support for reminders in Saved Messages and notifications about other sent scheduled messages in 381 the [Notification API](https://core.telegram.org/tdlib/notification-api/). 382* Added support for adding users without a known phone number to the list of contacts: 383 - Added the method `addContact` for adding or renaming contacts without a known phone number. 384 - Added the field `need_phone_number_privacy_exception` to the class `userFullInfo`, containing the default value for 385 the second parameter of the method `addContact`. 386 - Added the fields `is_contact` and `is_mutual_contact` to the class `user`. 387 - Removed the class `LinkState` and the fields `outgoing_link` and `incoming_link` from the class `user`. 388* Improved support for the top chat action bar: 389 - Added the class `ChatActionBar`, representing all possible types of the action bar. 390 - Added the field `action_bar` to the class `chat`. 391 - Removed the legacy class `chatReportSpamState`. 392 - Removed the legacy methods `getChatReportSpamState` and `changeChatReportSpamState`. 393 - Added the update `updateChatActionBar`. 394 - Added the method `removeChatActionBar`, which allows to dismiss the action bar. 395 - Added the method `sharePhoneNumber`, allowing to share the phone number of the current user with a mutual contact. 396 - Added the new reason `chatReportReasonUnrelatedLocation` for reporting location-based groups unrelated to 397 their stated location. 398* Improved support for text entities: 399 - Added the new types of text entities `textEntityTypeUnderline` and `textEntityTypeStrikethrough`. 400 - Added support for nested entities. Entities can be nested, but must not mutually intersect with each other. 401 Pre, Code and PreCode entities can't contain other entities. Bold, Italic, Underline and Strikethrough entities can 402 contain and be contained in all other entities. All other entities can't contain each other. 403 - Added the field `version` to the method `textParseModeMarkdown`. Versions 0 and 1 correspond to Bot API Markdown 404 parse mode, version 2 to Bot API MarkdownV2 parse mode with underline, strikethrough and nested entities support. 405 - The new entity types and nested entities are supported in secret chats also if its layer is at least 101. 406* Added support for native non-anonymous, multiple answer, and quiz-style polls: 407 - Added support for quiz-style polls, which has exactly one correct answer option and can be answered only once. 408 - Added support for regular polls, which allows multiple answers. 409 - Added the classes `pollTypeRegular` and `pollTypeQuiz`, representing the possible types of a poll. 410 - Added the field `type` to the classes `poll` and `inputMessagePoll`. 411 - Added support for non-anonymous polls with visible votes by adding the field `is_anonymous` to the classes `poll` 412 and `inputMessagePoll`. 413 - Added the method `getPollVoters` returning users that voted for the specified option in a non-anonymous poll. 414 - Added the new reply markup keyboard button `keyboardButtonTypeRequestPoll`. 415 - Added the field `is_regular` to the class `pushMessageContentPoll`. 416 - Added the update `updatePollAnswer` for bots only. 417 - Added the field `is_closed` to the class `inputMessagePoll`, which can be used by bots to send a closed poll. 418* Clarified in the documentation that file remote ID is guaranteed to be usable only if the corresponding file is 419 still accessible to the user and is known to TDLib. For example, if the file is from a message, then the message 420 must be not deleted and accessible to the user. If the file database is disabled, then the corresponding object with 421 the file must be preloaded by the client. 422* Added support for administrator custom titles: 423 - Added the field `custom_title` to `chatMemberStatusCreator` and `chatMemberStatusAdministrator` classes. 424 - Added the classes `chatAdministrator` and `chatAdministrators`, containing user identifiers along with 425 their custom administrator title and owner status. 426 - Replaced the result type of the method `getChatAdministrators` with `chatAdministrators`. 427* Improved Instant View support: 428 - Added the new web page block `pageBlockVoiceNote`. 429 - Changed value of invisible cells in `pageBlockTableCell` to null. 430 - Added the field `is_cached` to the class `richTextUrl`. 431* Improved support for chat backgrounds: 432 - Added the classes `backgroundFillSolid` for solid color backgrounds and `backgroundFillGradient` for 433 gradient backgrounds. 434 - Added support for TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") background patterns 435 in addition to PNG patterns. Background pattern thumbnails are still always in PNG format. 436 - Replaced the field `color` in the class `backgroundTypePattern` with the field `fill` of type `BackgroundFill`. 437 - Replaced the class `backgroundTypeSolid` with the class `backgroundTypeFill`. 438* Added support for discussion groups for channel chats: 439 - Added the field `linked_chat_id` to the class `supergroupFullInfo` containing the identifier of a discussion 440 supergroup for the channel, or a channel, for which the supergroup is the designated discussion supergroup. 441 - Added the field `has_linked_chat` to the class `supergroup`. 442 - Added the method `getSuitableDiscussionChats`, which returns a list of chats which can be assigned as 443 a discussion group for a channel by the current user. 444 - Added the method `setChatDiscussionGroup`, which can be used to add or remove a discussion group from a channel. 445 - Added the class `chatEventLinkedChatChanged` representing a change of the linked chat in the chat event log. 446* Added support for slow mode in supergroups: 447 - Added the field `is_slow_mode_enabled` to the class `supergroup`. 448 - Added the field `slow_mode_delay` to the class `supergroupFullInfo`. 449 - Added the method `setChatSlowModeDelay`, which can be used to change the slow mode delay setting in a supergroup. 450 - Added the class `chatEventSlowModeDelayChanged` representing a change of the slow mode delay setting in 451 the chat event log. 452* Improved privacy settings support: 453 - Added the classes `userPrivacySettingRuleAllowChatMembers` and `userPrivacySettingRuleRestrictChatMembers` 454 to include or exclude all group members in a privacy setting rule. 455 - Added the class `userPrivacySettingShowPhoneNumber` for managing the visibility of the user's phone number. 456 - Added the class `userPrivacySettingAllowFindingByPhoneNumber` for managing whether the user can be found by 457 their phone number. 458* Added the method `checkCreatedPublicChatsLimit` for checking whether the maximum number of owned public chats 459 has been reached. 460* Added support for transferring ownership of supergroup and channel chats: 461 - Added the method `transferChatOwnership`. 462 - Added the class `CanTransferOwnershipResult` and the method `canTransferOwnership` for checking 463 whether chat ownership can be transferred from the current session. 464* Added support for location-based supergroups: 465 - Added the class `chatLocation`, which contains the location to which the supergroup is connected. 466 - Added the field `has_location` to the class `supergroup`. 467 - Added the field `location` to the class `supergroupFullInfo`. 468 - Added the ability to create location-based supergroups via the new field `location` in 469 the method `createNewSupergroupChat`. 470 - Added the method `setChatLocation`, which allows to change location of location-based supergroups. 471 - Added the field `can_set_location` to the class `supergroupFullInfo`. 472 - Added the class `PublicChatType`, which can be one of `publicChatTypeHasUsername` or 473 `publicChatTypeIsLocationBased`. 474 - Added the parameter `type` to the method `getCreatedPublicChats`, which allows to get location-based supergroups 475 owned by the user. 476 - Supported location-based supergroups as public chats where appropriate. 477 - Added the class `chatEventLocationChanged` representing a change of the location of a chat in the chat event log. 478* Added support for searching chats and users nearby: 479 - Added the classes `chatNearby` and `chatsNearby`, containing information about chats along with 480 the distance to them. 481 - Added the method `searchChatsNearby`, which returns chats and users nearby. 482 - Added the update `updateUsersNearby`, which is sent 60 seconds after a successful `searchChatsNearby` request. 483* Improved support for inline keyboard buttons of the type `inlineKeyboardButtonTypeLoginUrl`: 484 - Added the class `LoginUrlInfo` and the method `getLoginUrlInfo`, which allows to get information about 485 an inline button of the type `inlineKeyboardButtonTypeLoginUrl`. 486 - Added the method `getLoginUrl` for automatic authorization on the target website. 487* Improved support for content restrictions: 488 - The field `restriction_reason` in the classes `user` and `channel` now contains only a human-readable description 489 why access must be restricted. It is non-empty if and only if access to the chat needs to be restricted. 490 - Added the field `restriction_reason` to the class `message`. It is non-empty if and only if access to the message 491 needs to be restricted. 492 - Added the writable option `ignore_platform_restrictions`, which can be set in non-store apps to ignore restrictions 493 specific to the currently used operating system. 494 - Added the writable option `ignore_sensitive_content_restrictions`, which can be set to show sensitive content on 495 all user devices. `getOption("ignore_sensitive_content_restrictions")` can be used to fetch the actual value of 496 the option, the option will not be immediately updated after a change from another device. 497 - Added the read-only option `can_ignore_sensitive_content_restrictions`, which can be used to check, whether 498 the option `ignore_sensitive_content_restrictions` can be changed. 499* Added support for QR code authentication for already registered users: 500 - Added the authorization state `authorizationStateWaitOtherDeviceConfirmation`. 501 - Added the method `requestQrCodeAuthentication`, which can be used in the `authorizationStateWaitPhoneNumber` state 502 instead of the method `setAuthenticationPhoneNumber` to request QR code authentication. 503 - Added the method `confirmQrCodeAuthentication` for authentication confirmation from another device. 504* Added the update `updateMessageLiveLocationViewed`, which is supposed to trigger an edit of the corresponding 505 live location. 506* Added the parameter `input_language_code` to the method `searchEmojis`. 507* Added the method `getInactiveSupergroupChats`, to be used when the user receives a CHANNELS_TOO_MUCH error after 508 reaching the limit on the number of joined supergroup and channel chats. 509* Added the field `unique_id` to the class `remoteFile`, which can be used to identify the same file for 510 different users. 511* Added the new category of top chat list `topChatCategoryForwardChats`. 512* Added the read-only option `animated_emoji_sticker_set_name`, containing name of a sticker set with animated emojis. 513* Added the read-only option `unix_time`, containing an estimation of the current Unix timestamp. 514 The option will not be updated automatically unless the difference between the previous estimation and 515 the locally available monotonic clocks changes significantly. 516* Added the field `is_silent` to the class `notification`, so silent notifications can be shown with 517 the appropriate mark. 518* Added the field `video_upload_bitrate` to the class `autoDownloadSettings`. 519* Disallowed to call `setChatNotificationSettings` method on the chat with self, which never worked. 520* Added support for `ton://` URLs in messages and inline keyboard buttons. 521 522----------------------------------------------------------------------------------------------------------------------- 523 524Changes in 1.5.0 (9 Sep 2019): 525 526* Changed authorization workflow: 527 - Added the state `authorizationStateWaitRegistration`, which will be received after `authorizationStateWaitCode` for 528 users who are not registered yet. 529 - Added the method `registerUser`, which must be used in the `authorizationStateWaitRegistration` state to finish 530 registration of the user. 531 - Removed the fields `is_registered` and `terms_of_service` from the class `authorizationStateWaitCode`. 532 - Removed the parameters `first_name` and `last_name` from the method `checkAuthenticationCode`. 533* Added support for messages with an unknown sender (zero `sender_user_id`) in private chats, basic groups and 534 supergroups. Currently, the sender is unknown for posts in channels and for channel posts automatically forwarded to 535 the discussion group. 536* Added support for the new permission system for non-administrator users in groups: 537 - Added the class `chatPermissions` containing all supported permissions, including new permissions `can_send_polls`, 538 `can_change_info`, `can_invite_users` and `can_pin_messages`. 539 - Added the field `permissions` to the class `chat`, describing actions that non-administrator chat members are 540 allowed to take in the chat. 541 - Added the update `updateChatPermissions`. 542 - Added the method `setChatPermissions` for changing chat permissions. 543 - Added the class `chatEventPermissionsChanged` representing a change of chat permissions in the chat event log. 544 - Replaced the fields `can_send_messages`, `can_send_media_messages`, `can_send_other_messages`, 545 `can_add_web_page_previews` in the class `chatMemberStatusRestricted` with the field `permissions` of 546 the type `chatPermissions`. 547 - Removed the field `everyone_is_administrator` from the `basicGroup` class in favor of the field `permissions` of 548 the class `chat`. 549 - Removed the field `anyone_can_invite` from the `supergroup` class in favor of the field `permissions` of 550 the class `chat`. 551 - Removed the method `toggleBasicGroupAdministrators` in favor of `setChatPermissions`. 552 - Removed the method `toggleSupergroupInvites` in favor of `setChatPermissions`. 553 - Renamed the field `anyone_can_invite` to `can_invite_users` in the class `chatEventInvitesToggled`. 554 - The permissions `can_send_other_messages` and `can_add_web_page_previews` now imply only `can_send_messages` 555 instead of `can_send_media_messages`. 556 - Allowed administrators in basic groups to use the method `generateChatInviteLink`. 557* Added out of the box `OpenBSD` and `NetBSD` operating systems support. 558* Added possibility to use `LibreSSL` >= 2.7.0 instead of `OpenSSL` to build TDLib. 559* Added instructions for building TDLib on `Debian 10`, `OpenBSD` and `NetBSD` to 560 the [TDLib build instructions generator](https://tdlib.github.io/td/build.html). 561* Added support for Backgrounds 2.0: 562 - Added the classes `BackgroundType`, `background`, `backgrounds` and `InputBackground`. 563 - Added the method `getBackground` returning the list of backgrounds installed by the user. 564 - Added the method `setBackground` for changing the background selected by the user. 565 - Added the update `updateSelectedBackground`, which is sent right after a successful initialization and whenever 566 the selected background changes. 567 - Added the method `removeBackground` for removing a background from the list of installed backgrounds. 568 - Added the method `resetBackgrounds` for restoring the default list of installed backgrounds. 569 - Added the method `searchBackground` returning a background by its name. 570 - Added the method `getBackgroundUrl` returning a persistent URL for a background. 571 - Removed the `getWallpapers` method. 572 - Removed the `wallpaper` and the `wallpapers` classes. 573 - The class `fileTypeWallpaper` can be used for remote file identifiers of both old wallpapers and new backgrounds. 574* Added support for descriptions in basic groups: 575 - Added the field `description` to the class `basicGroupFullInfo`. 576 - Replaced the method `setSupergroupDescription` with `setChatDescription` which can be used for any chat type. 577* Added support for emoji suggestions: 578 - Added the method `searchEmojis` for searching emojis by keywords. 579 - Added the method `getEmojiSuggestionsUrl`, which can be used to automatically log in to the translation platform 580 and suggest new emoji replacements. 581 - Renamed the class `stickerEmojis` to `emojis`. 582* Changed type of the fields `old_photo` and `new_photo` in the class `chatEventPhotoChanged` from `chatPhoto` to 583 `photo`. 584* Changed recommended size for `inputThumbnail` from 90x90 to 320x320. 585* Combined all supported settings for phone number authentication: 586 - Added the class `phoneNumberAuthenticationSettings` which contains all the settings. 587 - Replaced the parameters `is_current_phone_number` and `allow_flash_call` in the methods 588 `setAuthenticationPhoneNumber`, `sendPhoneNumberConfirmationCode`, `sendPhoneNumberVerificationCode` and 589 `changePhoneNumber` with the parameter `settings` of the type `phoneNumberAuthenticationSettings`. 590 - Added support for automatic SMS code verification for official applications via the new field `allow_app_hash` in 591 the class `phoneNumberAuthenticationSettings`. 592* Added support for auto-download settings presets. 593 - Added the classes `autoDownloadSettings` and `autoDownloadSettingsPresets`. 594 - Added the method `getAutoDownloadSettingsPresets` for getting the settings. 595 - Added the method `setAutoDownloadSettings`, which needs to be called whenever the user changes the settings. 596* Added support for minithumbnails - thumbnail images of a very poor quality and low resolution: 597 - Added the class `minithumbnail`. 598 - Added the field `minithumbnail` to `animation`, `document`, `photo`, `video` and `videoNote` classes. 599 - Added the field `audio_cover_minithumbnail` to the class `audio`. 600* Added support for resending messages which failed to send: 601 - Added the fields `error_code`, `error_message`, `can_retry` and `retry_after` to 602 the class `messageSendingStateFailed`. 603 - Added the method `resendMessages`. 604* Added the field `is_animated` to the `sticker`, `stickerSet` and `stickerSetInfo` classes. 605 Animated stickers can be received anywhere where non-animated stickers can appear. 606* Added the parameters `send_copy` and `remove_caption` to the `forwardMessages` method to allow forwarding of 607 messages without links to the originals. 608* Added the fields `send_copy` and `remove_caption` to `inputMessageForwarded` method to allow forwarding of 609 a message without link to the original message. 610* Added the method `getMessageLinkInfo` for getting information about a link to a message in a chat. 611* Added the class `userPrivacySettingShowProfilePhoto` for managing visibility of the user's profile photo. 612* Added the class `userPrivacySettingShowLinkInForwardedMessages` for managing whether a link to the user's account is 613 included with forwarded messages. 614* Added the field `thumbnail` to the classes `stickerSet` and `stickerSetInfo`, containing a thumbnail for 615 the sticker set. 616* Added the field `is_scam` to the classes `user` and `supergroup`. 617* Added a new kind of inline keyboard button `inlineKeyboardButtonTypeLoginUrl`, which for the moment must be processed 618 in the same way as an `inlineKeyboardButtonTypeUrl`. 619* Added the new class `supergroupMembersFilterContacts`, allowing to only search for contacts 620 in `getSupergroupMembers`. 621* Added the new class `chatMembersFilterContacts`, allowing to only search for contacts in `searchChatMembers`. 622* Added the class `chatEventPollStopped` representing the closing of a poll in a message in the chat event log. 623* Added ability to specify the exact types of problems with a call in the method `sendCallRating` and 624 the new class `CallProblem`. 625* Changes in [tdweb](https://github.com/tdlib/td/blob/master/example/web/): 626 - Supported non-zero `offset` and `limit` in `readFilePart`. 627 628----------------------------------------------------------------------------------------------------------------------- 629 630Changes in 1.4.0 (1 May 2019): 631 632* Added a [TDLib build instructions generator](https://tdlib.github.io/td/build.html), covering in details 633 TDLib building on the most popular operating systems. 634* Added an example of TDLib building and usage from a browser. 635 See https://github.com/tdlib/td/blob/master/example/web/ for more details. 636* Allowed to pass NULL pointer to `td_json_client_execute` instead of a previously created JSON client. 637 Now you can use synchronous TDLib methods through a JSON interface before creating a TDLib JSON client. 638* Added support for media streaming by allowing to download any part of a file: 639 - Added the `offset` parameter to `downloadFile` which specifies the starting position 640 from which the file should be downloaded. 641 - Added the `limit` parameter to `downloadFile` which specifies how many bytes should be downloaded starting from 642 the `offset` position. 643 - Added the field `download_offset` to the class `localFile` which contains the current download offset. 644 - The field `downloaded_prefix_size` of the `localFile` class now contains the number of available bytes 645 from the position `download_offset` instead of from the beginning of the file. 646 - Added the method `getFileDownloadedPrefixSize` which can be used to get the number of locally available file bytes 647 from a given offset without actually changing the download offset. 648* Added the parameter `synchronous` to `downloadFile` which causes the request to return the result only after 649 the download is completed. 650* Added support for native polls in messages: 651 - Added `messagePoll` to the types of message content; contains a poll. 652 - Added the classes `poll` and `pollOption` describing a poll and a poll answer option respectively. 653 - Added `inputMessagePoll` to the types of new input message content; can be used to send a poll. 654 - Added the method `setPollAnswer` which can be used for voting in polls. 655 - Added the method `stopPoll` which can be used to stop polls. Use the `Message.can_be_edited` field to check whether 656 this method can be called on a message. 657 - Added the update `updatePoll` for bots only. Ordinary users receive poll updates through `updateMessageContent`. 658* Added a Notification API. See article https://core.telegram.org/tdlib/notification-api for a detailed description. 659 - Added the class `pushReceiverId` which contains a globally unique identifier of the push notification subscription. 660 - Changed the return type of the method `registerDevice` to `pushReceiverId` to allow matching of push notifications 661 with TDLib instances. 662 - Removed the fields `disable_notification` and `contains_mention` from `updateNewMessage`. 663 - Renamed the class `deviceTokenGoogleCloudMessaging` to `deviceTokenFirebaseCloudMessaging`. 664 - Added the field `encrypt` to classes `deviceTokenApplePushVoIP` and `deviceTokenFirebaseCloudMessaging` 665 which allows to subscribe for end-to-end encrypted push notifications. 666 - Added the option `notification_group_count_max` which can be used to enable the Notification API and set 667 the maximum number of notification groups to be shown simultaneously. 668 - Added the option `notification_group_size_max` which can be used to set the maximum number of simultaneously shown 669 notifications in a group. 670 - Added the synchronous method `getPushReceiverId` for matching a push notification with a TDLib instance. 671 - Added the method `processPushNotification` for handling of push notifications. 672 - Removed the method `processDcUpdate` in favor of the general `processPushNotification` method. 673 - Added the update `updateNotificationGroup`, sent whenever a notification group changes. 674 - Added the update `updateNotification`, sent whenever a notification changes. 675 - Added the update `updateActiveNotifications` for syncing the list of active notifications on startup. 676 - Added the update `updateHavePendingNotifications` which can be used to improve lifetime handling of 677 the TDLib instance. 678 - Added the possibility to disable special handling of notifications about pinned messages via the new settings 679 `use_default_disable_pinned_message_notifications`, `disable_pinned_message_notifications` in 680 the class `chatNotificationSettings` and the new setting `disable_pinned_message_notifications` in 681 the class `scopeNotificationSettings`. 682 - Added the possibility to disable special handling of notifications about mentions and replies via the new settings 683 `use_default_disable_mention_notifications`, `disable_mention_notifications` in 684 the class `chatNotificationSettings` and the new setting `disable_mention_notifications` in 685 the class `scopeNotificationSettings`. 686 - Added the class `PushMessageContent` describing the content of a notification, received through 687 a push notification. 688 - Added the class `NotificationType` describing a type of a notification. 689 - Added the class `notification` containing information about a notification. 690 - Added the class `NotificationGroupType` describing a type of a notification group. 691 - Added the class `notificationGroup` describing a state of a notification group. 692 - Added the methods `removeNotification` and `removeNotificationGroup` for handling notifications removal 693 by the user. 694 - Added the separate notification scope `notificationSettingsScopeChannelChats` for channel chats. 695* Added support for pinned notifications in basic groups and Saved Messages: 696 - Added the field `pinned_message_id` to the class `chat`. 697 - Removed the field `pinned_message_id` from the class `supergroupFullInfo` in favor of `chat.pinned_message_id`. 698 - Added the update `updateChatPinnedMessage`. 699 - The right `can_pin_messages` is now applicable to both basic groups and supergroups. 700 - Replaced the method `pinSupergroupMessage` with `pinChatMessage` which can be used for any chat type. 701 - Replaced the method `unpinSupergroupMessage` with `unpinChatMessage` which can be used for any chat type. 702* Added new synchronous methods for managing TDLib internal logging. The old functions are deprecated and 703 will be removed in TDLib 2.0.0. 704 - Added the synchronous method `setLogStream` for changing the stream to which the TDLib internal log is written. 705 - Added the synchronous method `getLogStream` for getting information about the currently used log stream. 706 - Added the classes `logStreamDefault`, `logStreamFile` and `logStreamEmpty` describing different supported kinds of 707 log streams. 708 - Added the class `logVerbosityLevel` containing the verbosity level of the TDLib internal log. 709 - Added the class `logTags` containing a list of available TDLib internal log tags. 710 - Added the synchronous method `setLogVerbosityLevel` for changing verbosity level of logging. 711 - Added the synchronous method `getLogVerbosityLevel` for getting the current verbosity level of logging. 712 - Added the synchronous method `getLogTags` returning all currently supported log tags. 713 - Added the synchronous method `setLogTagVerbosityLevel` for changing the verbosity level of logging for 714 some specific part of the code. 715 - Added the synchronous method `getLogTagVerbosityLevel` for getting the current verbosity level for a specific part 716 of the code. 717 - Added the synchronous method `addLogMessage` for using the TDLib internal log by the application. 718* Added support for Instant View 2.0: 719 - Replaced the field `has_instant_view` in class `webPage` with the `instant_view_version` field. 720 - Added the field `version` to the class `webPageInstantView`. 721 - Added the class `pageBlockCaption`. 722 - Changed the type of `caption` fields in `pageBlockAnimation`, `pageBlockAudio`, `pageBlockPhoto`, `pageBlockVideo`, 723 `pageBlockEmbedded`, `pageBlockEmbeddedPost`, `pageBlockCollage` and `pageBlockSlideshow` from 724 `RichText` to `pageBlockCaption`. 725 - Added the class `pageBlockListItem` and replaced the content of the `pageBlockList` class with a list of 726 `pageBlockListItem`. 727 - Added 6 new kinds of `RichText`: `richTextSubscript`, `richTextSuperscript`, `richTextMarked`, 728 `richTextPhoneNumber`, `richTextIcon` and `richTextAnchor`. 729 - Added new classes `pageBlockRelatedArticle`, `PageBlockHorizontalAlignment`, `PageBlockVerticalAlignment` and 730 `pageBlockTableCell`. 731 - Added new block types `pageBlockKicker`, `pageBlockRelatedArticles`, `pageBlockTable`, `pageBlockDetails` and 732 `pageBlockMap`. 733 - Added the flag `is_rtl` to the class `webPageInstantView`. 734 - Renamed the field `caption` in classes `pageBlockBlockQuote` and `pageBlockPullQuote` to `credit`. 735 - Dimensions in `pageBlockEmbedded` can now be unknown. 736 - Added the field `url` to `pageBlockPhoto` which contains a URL that needs to be opened when the photo is clicked. 737 - Added the field `url` to `webPageInstantView` which must be used for the correct handling of anchors. 738* Added methods for confirmation of the 2-step verification recovery email address: 739 - Added the method `checkRecoveryEmailAddressCode` for checking the verification code. 740 - Added the method `resendRecoveryEmailAddressCode` for resending the verification code. 741 - Replaced the field `unconfirmed_recovery_email_address_pattern` in the class `passwordState` with 742 the `recovery_email_address_code_info` field containing full information about the code. 743 - The necessity of recovery email address confirmation in `setPassword` and `setRecoveryEmailAddress` methods 744 is now returned by the corresponding `passwordState` and not by the error `EMAIL_UNCONFIRMED`. 745* Improved the `MessageForwardInfo` class and added support for hidden original senders: 746 - Removed the old `messageForwardedPost` and `messageForwardedFromUser` classes. 747 - Added the class `messageForwardInfo` which contains information about the origin of the message, original sending 748 date and identifies the place from which the message was forwarded the last time for messages forwarded to 749 Saved Messages. 750 - Added the classes `messageForwardOriginUser`, `messageForwardOriginHiddenUser` and `messageForwardOriginChannel` 751 which describe the exact origins of a message. 752* Improved getting the list of user profile photos: 753 - Added the class `userProfilePhoto`, containing `id`, `added_date` and `sizes` of a profile photo. 754 - Changed the type of the field `photos` in `userProfilePhotos` to a list of `userProfilePhoto` instead of 755 a list of `photo`. `getUserProfilePhotos` now returns a date for each profile photo. 756 - Removed the field `id` from the class `photo` (this field was only needed in the result of `getUserProfilePhotos`). 757* Added the possibility to get a Telegram Passport authorization form before asking the user for a password: 758 - Removed the parameter `password` from the method `getPassportAuthorizationForm`. 759 - Moved the fields `elements` and `errors` from the class `passportAuthorizationForm` to 760 the new class `passportElementsWithErrors`. 761 - Added the method `getPassportAuthorizationFormAvailableElements` that takes the user's password and 762 returns previously uploaded Telegram Passport elements and errors in them. 763* Added the field `file_index` to the classes `passportElementErrorSourceFile` and 764 `passportElementErrorSourceTranslationFile`. 765* Added the method `getCurrentState` returning all updates describing the current `TDLib` state. It can be used to 766 restore the correct state after connecting to a running TDLib instance. 767* Added the class `updates` which contains a list of updates and is returned by the `getCurrentState` method. 768* Added the update `updateChatOnlineMemberCount` which is automatically sent for open group chats if the number of 769 online members in a group changes. 770* Added support for custom language packs downloaded from the server: 771 - Added the fields `base_language_pack_id`` to the class `languagePackInfo`. Strings from the base language pack 772 must be used for untranslated keys from the chosen language pack. 773 - Added the fields `plural_code`, `is_official`, `is_rtl`, `is_beta`, `is_installed`, `total_string_count`, 774 `translated_string_count`, `translation_url` to the class `languagePackInfo`. 775 - Added the method `addCustomServerLanguagePack` which adds a custom server language pack to the list of 776 installed language packs. 777 - Added the method `getLanguagePackInfo` which can be used for handling `https://t.me/setlanguage/...` links. 778 - Added the method `synchronizeLanguagePack` which can be used to fetch the latest versions of all strings from 779 a language pack. 780 The method doesn't need to be called explicitly for the current used/base language packs. 781 - The method `deleteLanguagePack` now also removes the language pack from the list of installed language packs. 782* Added the method `getChatNotificationSettingsExceptions` which can be used to get chats with 783 non-default notification settings. 784* Added the parameter `hide_via_bot` to `sendInlineQueryResultMessage` which can be used for 785 `getOption("animation_search_bot_username")`, `getOption("photo_search_bot_username")` and 786 `getOption("venue_search_bot_username")` bots to hide that the message was sent via the bot. 787* Added the class `chatReportReasonChildAbuse` which can be used to report a chat for child abuse. 788* Added the method `getMessageLocally` which returns a message only if it is available locally without 789 a network request. 790* Added the method `writeGeneratedFilePart` which can be used to write a generated file if there is no direct access to 791 TDLib's file system. 792* Added the method `readFilePart` which can be used to read a file from the TDLib file cache. 793* Added the class `filePart` to represent the result of the new `readFilePart` method. 794* Added the field `log_size` to the `storageStatisticsFast` class which contains the size of the TDLib internal log. 795 Previously the size was included into the value of the `database_size` field. 796* Added the field `language_pack_database_size` to the `storageStatisticsFast` class which contains the size of the 797 language pack database. 798* Added the field `is_support` to the class `user` which can be used to identify Telegram Support accounts. 799* Added the class `HttpUrl` encapsulating an HTTP URL. 800* Added the method `getMessageLink` which can be used to create a private link (which works only for members) to 801 a message in a supergroup or channel. 802* Added support for channel statistics (coming soon): 803 - Added the field `can_view_statistics` to the `supergroupFullInfo` class. 804 - Added the method `getChatStatisticsUrl` which returns a URL with the chat statistics. 805* Added support for server-side peer-to-peer calls privacy: 806 - Added the class `userPrivacySettingAllowPeerToPeerCalls` for managing privacy. 807 - Added the field `allow_p2p` to `callStateReady` class which must be used to determine whether 808 a peer-to-peer connection can be used. 809* Added the option `ignore_background_updates` which allows to skip all updates received while the TDLib instance was 810 not running. The option does nothing if the database or secret chats are used. 811* Added the read-only option `expect_blocking`, suggesting whether Telegram is blocked for the user. 812* Added the read-only option `enabled_proxy_id`, containing the ID of the enabled proxy. 813* Added the ability to identify password pending sessions (where the code was entered but not 814 the two-step verification password) via the flag `is_password_pending` in the `session` class. 815 TDLib guarantees that the sessions will be returned by the `getActiveSessions` method in the correct order. 816* Added the classes `JsonValue` and `jsonObjectMember` which represent a JSON value and 817 a member of a JSON object respectively as TDLib API objects. 818* Added the synchronous methods `getJsonValue` and `getJsonString` for simple conversion between 819 a JSON-encoded string and `JsonValue` TDLib API class. 820* Added the methods `getApplicationConfig` and `saveApplicationLogEvent` to be used for testing purposes. 821* Added the temporarily class `databaseStatistics` and the method `getDatabaseStatistics` for rough estimations of 822 database tables size in a human-readable format. 823* Made the method `Client.Execute` static in .NET interface. 824* Removed the `on_closed` callback virtual method from low-level C++ ClientActor interface. 825 Callback destructor can be used instead. 826* Updated dependencies in the prebuilt TDLib for Android: 827 - Updated SDK to SDK 28 in which helper classes was moved from `android.support.` to `androidx.` package. 828 - Updated NDK to r19c, which dropped support for Android versions up to 4.0.4, so the minimum supported version is 829 Android 4.1. 830 - Updated OpenSSL to version 1.1.1. 831 - Added x86_64 libraries. 832* Added out of the box `FreeBSD` support. 833* Significantly improved TDLib compilation time and decreased compiler RAM usage: 834 - In native C++ interface `td_api::object_ptr` is now a simple homebrew const-propagating class instead of 835 `std::unique_ptr`. 836 - Added the script `SplitSource.php`, which can be used to split some source code files before building 837 the library to reduce maximum RAM usage per file at the expense of increased build time. 838* The update `updateOption` with the `version` option is now guaranteed to come before all other updates. 839 It can now be used to dynamically discover available methods. 840* Added the ability to delete incoming messages in private chats and revoke messages without a time limit: 841 - Added the parameter `revoke` to the method `deleteChatHistory`; use it to delete chat history for all chat members. 842 - Added the fields `can_be_deleted_only_for_self` and `can_be_deleted_for_all_users` to the class `chat` 843 which can be used to determine for whom the chat can be deleted through the `deleteChatHistory` method. 844 - The fields `Message.can_be_deleted_only_for_self` and `Message.can_be_deleted_for_all_users` can still be used 845 to determine for whom the message can be deleted through the `deleteMessages` method. 846* Added support for server-generated notifications about newly registered contacts: 847 - Setting the option `disable_contact_registered_notifications` now affects all user sessions. 848 When the option is enabled, the client will still receive `messageContactRegistered` message in the private chat, 849 but there will be no notification about the message. 850 - `getOption("disable_contact_registered_notifications")` can be used to fetch the actual value of the option, 851 the option will not be updated automatically after a change from another device. 852* Decreased the maximum allowed first name and last name length to 64, chat title length to 128, 853 matching the new server-side limits. 854* Decreased the maximum allowed value of the `forward_limit` parameter of the `addChatMember` method from 300 to 100, 855 matching the new server-side limit. 856* Added protection from opening two TDLib instances with the same database directory from one process. 857* Added copying of notification settings of new secret chats from notification settings of 858 the corresponding private chat. 859* Excluded the sponsored chat (when using sponsored proxies) from unread counters. 860* Allowed to pass decreased local_size in `setFileGenerationProgress` to restart the generation from the beginning. 861* Added a check for modification time of original file in `inputFileGenerated` whenever possible. 862 If the original file was changed, then TDLib will restart the generation. 863* Added the destruction of MTProto keys on the server during log out. 864* Added support for hexadecimal-encoded and decimal-encoded IPv4 proxy server addresses. 865* Improved the behavior of `changeImportedContacts` which now also deletes contacts of users without Telegram accounts 866 from the server. 867* Added the ability to call `getStorageStatistics` before authorization. 868* Allowed to pass `limit` = -`offset` for negative offset in the `getChatHistory` method. 869* Changed the recommended `inputThumbnail` size to be at most 320x320 instead of the previous 90x90. 870* Disabled building by default of the native C interface. Use `cmake --build . --target tdc` to build it. 871* Numerous optimizations and bug fixes: 872 - Network implementation for Windows was completely rewritten to allow a literally unlimited number of 873 simultaneously used TDLib instances. 874 - TDLib instances can now share working threads with each other. Only a limited number of threads will be created 875 even if there are thousands of TDLib instances in a single process. 876 - Removed the restriction on the size of update or response result in JSON interface. 877 - Fixed pinning of the 5th chat when there is a sponsored chat. 878 - Fixed IPv6 on Windows. 879 - Improved network connections balancing, aliveness checks and overall stability. 880 - Various autogenerated documentation fixes and improvements. 881 882----------------------------------------------------------------------------------------------------------------------- 883 884Changes in 1.3.0 (5 Sep 2018): 885 886* Added a review of existing TDLib based [frameworks](https://github.com/tdlib/td/blob/master/example/README.md) 887 in different programming languages. 888* Added a [Getting started](https://core.telegram.org/tdlib/getting-started) guide describing the main TDLib concepts 889 and basic principles required for library usage. 890* When a chat is opened, only those messages that have been viewed are marked as read. 891* Improved the proxy settings API: 892 - A list of proxies is stored instead of just one proxy. 893 - New methods `addProxy`, `editProxy`, `enableProxy`, `disableProxy`, `removeProxy` and `getProxies` were added 894 instead of `setProxy` and `getProxy`. 895 - Added the method `pingProxy` which can be used to compute time needed to receive a response from a Telegram server 896 through a proxy or directly. 897 - Added support for MTProto proxy via class `proxyTypeMtproto`. 898 - Added support for HTTP proxy via class `proxyTypeHttp`. 899 - For each proxy last time it was used is remembered. 900 - Added the method `getProxyLink` which returns an HTTPS link that can be used to share a proxy with others. 901* Improved the notification settings API. Scope notification settings are now properly synchronized between all devices 902 and chat notification settings can be reset to their default values: 903 - The `notificationSettings` class was split into `chatNotificationSettings` and `scopeNotificationSettings`. 904 - Only two notification settings scopes are left: `notificationSettingsScopePrivateChats` which is responsible for 905 default notification settings for private and secret chats and `notificationSettingsScopeGroupChats` for all other 906 chats. 907 - `updateNotificationSettings` was split into `updateChatNotificationSettings` and `updateScopeNotificationSettings`. 908 - `setNotificationSettings` was split into `setChatNotificationSettings` and `setScopeNotificationSettings`. 909 - `getNotificationSettings` was replaced with `getScopeNotificationSettings`. 910* Added the field `filter` to the `searchChatMembers` method to support searching among administrators, bots, 911 restricted and banned members. 912* Added the ability to use synchronous requests and `setAlarm` before the library is initialized. 913* Added the ability to send requests that don't need authentication before the library is initialized. These requests 914 will be postponed and executed at the earliest opportunity. For example, `setNetworkType` can be used to disable the 915 network for TDLib before the library tries to use it; `addProxy` can be used to add a proxy before any network 916 activity; or `setOption("use_pfs")` can be used to guarantee that PFS is used for all requests. 917* Added support for tg:// links in `inlineKeyboardButtonTypeUrl` and `textEntityTypeTextUrl`. 918* Added the ability to call `deleteAccount` in the `authorizationStateWaitPassword` authorization state. 919* Added the ability to call `checkAuthenticationCode` with an empty `first_name` for unregistered users to check the 920 code validity. 921* Added the methods `editMessageMedia` and `editInlineMessageMedia` for editing media messages content. 922* Renamed the class `shippingAddress` to `address`. 923* Changed the return value of the `requestPasswordRecovery` method from `passwordRecoveryInfo` to 924 `emailAddressAuthenticationCodeInfo`. 925* Added support for sponsored channels promoted by MTProto-proxies: 926 - Added the field `is_sponsored` to the `chat` class. 927 - Added `updateChatIsSponsored`, sent when this field changes. 928* Added support for marking chats as unread: 929 - Added the field `is_marked_as_unread` to `chat`. 930 - Added the update `updateChatIsMarkedAsUnread`. 931 - Added the method `toggleChatIsMarkedAsUnread`. 932* Added support for a default value of `disable_notification`, used when a message is sent to the chat: 933 - Added the field `default_disable_notification` to `chat` class. 934 - Added the update `updateChatDefaultDisableNotification`. 935 - Added the method `toggleChatDefaultDisableNotification`. 936* Added the field `vcard` to the `contact` class. 937* Added the field `type` to `venue`, which contains a provider-specific type of the venue, 938* Added the update `updateUnreadChatCount`, enabled when the message database is used and sent when 939 the number of unread chats has changed. 940* Added the method `addLocalMessage` for adding a local message to a chat. 941* Added the method `getDeepLinkInfo`, which can return information about `tg://` links that are not supported by 942 the client. 943* Added support for language packs: 944 - Added the writable option `language_pack_database_path` which can be used to specify a path to a database 945 for storing language pack strings, so that this database can be shared between different accounts. 946 If not specified, language pack strings will be stored only in memory. 947 Changes to the option are applied only on the next TDLib launch. 948 - Added the writable option `localization_target` for setting up a name for the current localization target 949 (currently supported: "android", "android_x", "ios", "macos" and "tdesktop"). 950 - Added the writable option `language_pack_id` for setting up an identifier of the currently used language pack from 951 the current localization target (a "language pack" represents the collection of strings that can be used to display 952 the interface of a particular application in a particular language). 953 - Added the class `LanguagePackStringValue` describing the possible values of a string from a language pack. 954 - Added the class `languagePackString` describing a string from a language pack. 955 - Added the class `languagePackStrings` containing a list of language pack strings. 956 - Added the class `languagePackInfo` containing information about a language pack from a localization target. 957 - Added the class `localizationTargetInfo` containing information about a localization target. 958 - Added the update `updateLanguagePackStrings` which is sent when some strings in a language pack have changed. 959 - Added the synchronous method `getLanguagePackString` which can be used to get a language pack string from 960 the local database. 961 - Added the method `getLocalizationTargetInfo` which returns information about the current localization target. 962 - Added the method `getLanguagePackStrings` which returns some or all strings from a language pack, possibly fetching 963 them from the server. 964 - Added the method `setCustomLanguagePack` for adding or editing a custom language pack. 965 - Added the method `editCustomLanguagePackInfo` for editing information about a custom language pack. 966 - Added the method `setCustomLanguagePackString` for adding, editing or deleting a string in a custom language pack. 967 - Added the method `deleteLanguagePack` for deleting a language pack from the database. 968 - Added the read-only option `suggested_language_pack_id` containing the identifier of the language pack, 969 suggested for the user by the server. 970* Added support for Telegram Passport: 971 - Added two new message contents `messagePassportDataSent` for ordinary users and `messagePassportDataReceived` 972 for bots containing information about Telegram Passport data shared with a bot. 973 - Added the new file type `fileTypeSecure`. 974 - Added the class `datedFile` containing information about a file along with the date it was uploaded. 975 - Added the helper classes `date`, `personalDetails`, `identityDocument`, `inputIdentityDocument`, 976 `personalDocument`, `inputPersonalDocument`, `passportElements`. 977 - Added the class `PassportElementType` describing all supported types of Telegram Passport elements. 978 - Added the class `PassportElement` containing information about a Telegram Passport element. 979 - Added the class `InputPassportElement` containing information about a Telegram Passport element to save. 980 - Added the classes `passportElementError` and `PassportElementErrorSource` describing an error in 981 a Telegram Passport element. 982 - Added the field `has_passport_data` to the `passwordState` class. 983 - Added the methods `getPassportElement`, `getAllPassportElements`, `setPassportElement`, `deletePassportElement` 984 for managing Telegram Passport elements. 985 - Added the methods `getPassportAuthorizationForm` and `sendPassportAuthorizationForm` used for sharing 986 Telegram Passport data with a service via a bot. 987 - Added the methods `sendPhoneNumberVerificationCode`, `resendPhoneNumberVerificationCode` and 988 `checkPhoneNumberVerificationCode` for verification of a phone number used for Telegram Passport. 989 - Added the methods `sendEmailAddressVerificationCode`, `resendEmailAddressVerificationCode` and 990 `checkEmailAddressVerificationCode` for verification of an email address used for Telegram Passport. 991 - Added the method `getPreferredCountryLanguage` returning a most popular language in a country. 992 - Added the classes `inputPassportElementError` and `InputPassportElementErrorSource` for bots describing an error in 993 a Telegram Passport element. 994 - Added the method `setPassportElementErrors` for bots. 995 - Added the class `encryptedPassportElement` and `encryptedCredentials` for bots describing 996 an encrypted Telegram Passport element. 997* Improved support for Telegram terms of service: 998 - Added the class `termsOfService`, containing information about the Telegram terms of service. 999 - Added the field `terms_of_service` to `authorizationStateWaitCode`. 1000 - Added the update `updateTermsOfService` coming when new terms of service need to be accepted by the user. 1001 - Added the method `acceptTermsOfService` for accepting terms of service. 1002 - Removed the method `getTermsOfService`. 1003* Added the method `getMapThumbnailFile` which can be used to register and download a map thumbnail file. 1004* Added the methods `sendPhoneNumberConfirmationCode`, `resendPhoneNumberConfirmationCode` and 1005 `checkPhoneNumberConfirmationCode` which can be used to prevent an account from being deleted. 1006* Added the convenience methods `joinChat` and `leaveChat` which can be used instead of `setChatMemberStatus` to manage 1007 the current user's membership in a chat. 1008* Added the convenience method `getContacts` which can be used instead of `searchContacts` to get all contacts. 1009* Added the synchronous method `cleanFileName` which removes potentially dangerous characters from a file name. 1010* Added the method `getChatMessageCount` which can be used to get the number of shared media. 1011* Added the writable option `ignore_inline_thumbnails` which can be used to prevent file thumbnails sent 1012 by the server along with messages from being saved on the disk. 1013* Added the writable option `prefer_ipv6` which can be used to prefer IPv6 connections over IPv4. 1014* Added the writable option `disable_top_chats` which can be used to disable support for top chats. 1015* Added the class `chatReportReasonCopyright` for reporting chats containing infringing content. 1016* Added the method `clearAllDraftMessages` which can be used to delete all cloud drafts. 1017* Added the read-only options `message_text_length_max` and `message_caption_length_max`. 1018* Added the read-only options `animation_search_bot_username`, `photo_search_bot_username` and 1019 `venue_search_bot_username` containing usernames of bots which can be used in inline mode for animations, photos and 1020 venues search respectively. 1021* Numerous optimizations and bug fixes: 1022 - Fixed string encoding for .NET binding. 1023 - Fixed building TDLib SDK for Universal Windows Platform for ARM with MSVC 2017. 1024 - Fixed the Swift example project. 1025 - Fixed the syntax error in the Python example. 1026 - Sticker thumbnails can now have `webp` extensions if they are more likely to be in WEBP format. 1027 1028----------------------------------------------------------------------------------------------------------------------- 1029 1030Changes in 1.2.0 (20 Mar 2018): 1031 1032* Added support for native .NET bindings through `C++/CLI` and `C++/CX`. 1033 See [using in .NET projects](README.md#using-dotnet) for more details. 1034* Added a C# example. See [README](example/csharp/README.md) for build and usage instructions. 1035* Added a build and usage example of TDLib SDK for Universal Windows Platform. See [README](example/uwp/README.md) 1036 for detailed build and usage instructions. Also see [Unigram](https://github.com/UnigramDev/Unigram), which is 1037 a full-featured client rewritten from scratch using TDLib SDK for Universal Windows Platform in less than 2 months. 1038* Added a Swift example. See [README](example/swift/README.md) for build and usage instructions. 1039* Added an example of building TDLib for iOS, watchOS, tvOS, and also macOS. See [README](example/ios/README.md) for 1040 detailed build instructions. 1041* Added README to [C++](example/cpp/README.md) and [python](example/python/README.md) examples. 1042* Link Time Optimization is disabled by default. Use `-DTD_ENABLE_LTO=ON` CMake option and CMake >= 3.9 to enable it. 1043* `updateNotificationSettings` is now automatically sent when the mute time expires for a chat. 1044* Added automatic sending of a corresponding `chatAction` when a file is being uploaded. 1045* `updateUserChatAction` with `chatActionCancel` is now automatically sent when the timeout expires for an action. 1046* Authorization states `authorizationStateWaitCode` and `authorizationStateWaitPassword` are now saved between 1047 library restarts for 5 minutes. 1048* Added new message content type `messageWebsiteConnected`. 1049* Added new text entity types `textEntityTypeCashtag` and `textEntityTypePhoneNumber`. 1050* Added new update `updateUnreadMessageCount`, enabled when message database is used. 1051* Method `joinChatByInviteLink` now returns the joined `chat`. 1052* Method `getWebPagePreview` now accepts `formattedText` instead of plain `string`. 1053* Added field `phone_number` to `authenticationCodeInfo`, which contains a phone number that is being authenticated. 1054* Added field `is_secret` to `messageAnimation`, `messagePhoto`, `messageVideo` and `messageVideoNote` classes, 1055 which denotes whether the thumbnail for the content must be blurred and the content must be shown only while tapped. 1056* Added field `expires_in` to `messageLocation` for live locations. 1057* Added flag `can_be_reported` to `chat` class. 1058* Added flag `supports_streaming` to classes `video` and `inputMessageVideo`. 1059* Added parameter `message_ids` to `reportChat`, which can be used to report specific messages. 1060* Added method `checkChatUsername` for checking whether a username can be set for a chat. 1061* Added method `getRepliedMessage`, which returns a message that is replied by a given message. 1062* Added method `getChatPinnedMessage`, which returns the pinned message from a chat. 1063* Added method `searchStickers` to search by emoji for popular stickers suggested by the server. 1064* Added method `searchStickerSets` to search by title and name for popular sticker sets suggested by the server. 1065* Added method `searchInstalledStickerSets` to search by title and name for installed sticker sets. 1066* Added methods for handling connected websites: `getConnectedWebsites`, `disconnectWebsite` and 1067 `disconnectAllWebsites`. 1068* Added method `getCountryCode`, which uses current user IP address to identify their country. 1069* Added option `t_me_url`. 1070* Fixed `BlackBerry` spelling in `deviceTokenBlackBerryPush`. 1071* Fixed return type of `getChatMessageByDate` method, which is `Message` and not `Messages`. 1072* Ensured that updateOption("my_id") comes before `updateAuthorizationState` with `authorizationStateReady`. 1073* Numerous optimizations and bug fixes. 1074 1075----------------------------------------------------------------------------------------------------------------------- 1076 1077Changes in 1.1.1 (4 Feb 2018): 1078* Fixed C JSON bindings compilation error. 1079* Fixed locale-dependent JSON generation. 1080 1081----------------------------------------------------------------------------------------------------------------------- 1082 1083Changes in 1.1.0 (31 Jan 2018): 1084 1085* Methods `td::Log::set_file_path` and `td_set_log_file_path` now return whether they succeeded. 1086* Added methods `td::Log::set_max_file_size` and `td_set_log_max_file_size` for restricting maximum TDLib log size. 1087* Added methods `td::Log::set_fatal_error_callback` and `td_set_log_fatal_error_callback` for providing callbacks 1088 on fatal errors. 1089* JNI-bindings are now package-agnostic. Use CMake option `TD_ENABLE_JNI` to enable JNI-bindings. 1090* Added a Java example. See [README](example/java/README.md) for build and usage instructions. 1091* Added support for text entities in media captions. 1092 - Added new type `formattedText` containing a text with entities. 1093 - Replaced all string fields `caption` with fields of type `formattedText`. 1094 - Replaced fields `text` and `entities` with the field `text` of type `formattedText` in class `messageText`. 1095 - Replaced fields `text` and `entities` with the field `text` of type `formattedText` in class `inputMessageText`. 1096 - Replaced fields `text` and `text_entities` with the field `text` of type `formattedText` in class `game`. 1097 - Removed field `parse_mode` from class `inputMessageText`. 1098 - Added synchronous method `parseTextEntities`. 1099* updateNewMessage is now sent for all sent messages. 1100* updateChatLastMessage is now sent when any field of the last message in a chat changes. 1101* Reworked the `registerDevice` method: 1102 - Added parameter `other_user_ids` to method `registerDevice` to support multiple accounts. 1103 - It is now possible to specify tokens for VoIP pushes, WNS, web Push API, Tizen Push Service as `DeviceToken`. 1104 - Added support for Apple Push Notification Service inside App Sandbox. 1105* Added method `searchChatsOnServer` analogous to `searchChats`, but using server search. 1106* Results from the `searchChatsOnServer` method are now excluded from `searchPublicChats` results, 1107 so `searchChatsOnServer` (along with `searchContacts`) should be called whenever `searchPublicChats` is called 1108 to ensure that no results were omitted. 1109* Added parameter `as_album` to method `getPublicMessageLink` to enable getting public links for media albums. 1110* Added field `html` to class `publicMessageLink`, containing HTML-code for message/message album embedding. 1111* Added parameter `only_if_pending` to method `cancelDownloadFile` to allow keeping already started downloads. 1112* Methods `createPrivateChat`, `createBasicGroupChat`, `createSupergroupChat` and `createSecretChat` 1113 can now be called without a prior call to `getUser`/`getBasicGroup`/`getSupergroup`/`getSecretChat`. 1114* Added parameter `force` to methods `createPrivateChat`, `createBasicGroupChat` and `createSupergroupChat` to allow 1115 creating a chat without network requests. 1116* Numerous optimizations and bug fixes. 1117 1118----------------------------------------------------------------------------------------------------------------------- 1119