File libtd.changes of Package libtd
------------------------------------------------------------------- Tue Mar 28 08:17:47 UTC 2023 - dead_mozay@opensuse.org - Update to version 1.8.13: * Don't register users and channels for bots. * Fix get_input_peer for bots. * Add CustomEmojiId::get_custom_emoji_ids. * Add DialogId::get_dialog_ids. * Fix typos. (#2365) * Update default OpenSSL versions in examples. * Update version to 1.8.13. * Add example/uwp/Telegram.Td.UWP.nuspec to the list of files with TDLib version. * Update UWP example README. * Added nupkg support to UWP example * Improve authenticationCodeTypeSms documentation. * Fix a type on viewMessages method documentation. * Minor improvements. * Improve documentation. * Improve field names in DialogFilter. * Don't drop is_outgoing message flag. * Return error 404 from addApplicationChangelog if nothing was added. * Make DialogFilter fields private. * Add and use DialogFilter::get_pinned_dialog_ids(). * Add DialogFilter::is_dialog_pinned. * Add DialogFilter::can_have_archived_dialogs. * Add and use DialogFilter::is_dialog_included. * Fix misprint. * Send updateLanguagePackStrings when language pack is loaded for the first time. * Reload promo data sequentially. * Improve some log messages. * Load channels from messages. * Add more input_channel checks. * Add more checks for get_input_channel responses. * Add and use ContactsManager::get_input_user_force. * Use TRY_RESULT_PROMISE for get_input_user. * Add more secret chat checks. * Add GroupCallManager::can_join_group_calls. * Add some secret chat checks. * Add DialogFilter::can_include_dialog. * Add DialogFilter::set_pinned_dialog_ids. * Add td_api::getSupportName. * Improve DialogFilter variable names. * Move set_dialog_filters_order to DialogFilter. * Add DialogFilter::need_dialog. * Add DialogFilter::get_chat_filter_object. * Improve log message. * Completely delete DialogFilter if all chats there are inaccessible. * Add DialogFilter::set_dialog_is_pinned/include_dialog. * Add DialogFilter::remove_dialog_id. * Move get_dialog_filter_ids to DialogFilter. * Move get_dialog_filter_folder_ids to DialogFilter. * Move create_dialog_filter to DialogFilter. * Move sort_input_dialog_ids to class DialogFilter. * Add DialogFilter::for_each_dialog. * Avoid the use of low-numbered file descriptors for sockets. * Avoid duplicate is_error() check in TRY_STATUS/TRY_RESULT. * Remove ActorSendType::LaterWeak. * Improve check in MultiTimeout::update_timeout. * Add HttpReader::parse_http_version. * Add a.t.me Telegram domain. * Add td_api::resetAuthenticationEmailAddress. * Improve email address reset API. * Move log message to binlog tag. * Add email address reset infomation to authorizationStateWaitEmailCode. * Flush binlog buffer from time to time. * Allow to call resendAuthenticationCode for Firenase SMS. * Update layer to 156. * Print a warning if a field is marked as nullable erroneously. * Send updateUser when user.have_access is changed. * Add get_update_user/basic_group/supergroup/secret_chat_object * Support input*FromMessage. * Fix warning. * Add optional source to MultiTimeout::cancel_timeout. * Split parse_internal_link test to avoid GCC warning. * Add more is_bot checks. * Pass NotificationInfo to get_next_notification_id. * PAss NotificationInfo to *notification_id_to_message_id_correspondence. * Improve NotificationInfo field names. * Move max_notification_message_id to NotificationInfo. * Add struct NotificationInfo. * Add get_notification_group_info helper. * Move scheduled message info into a class. * Move read_history_log_event_ids out of Dialog. * Move updated_read_history_message_ids out of Dialog. * Move suffix load out of Dialog. * Move pending_viewed_live_locations out of Dialog. * Fix partial location check. * Fix condition. * Move pending message views out of Dialog. * Don't use yet_unsent_thread_message_ids_ for bots. * Move yet_unsent_thread_message_ids out of Dialog. * Move yet_unsent_message_id_to_persistent_message_id out of each Dialog. * Remove debug_message_op. * Decrease memprof backtrace shift. * Fix warning. * Drop requests after few retries if failed to return profile photos. * Support multiple retries for getUserProfilePhotos. * Support multiple getUserProfilePhotos requests. * Add call_source to register_photo_size. * Add source to PhotoSizeSource::get_unique. * Ignore invalid partial locations. * Improve error message. * Improve error message. * Ignore invalid polls stored in database. * Don't use poll multi-timeouts while closing. * Add debug logging. * Always restart upload when known file prefix decreases. * Fix auth.sentCodeSuccess handling. * Increase backtrace hashtable size. * Log real pong/read time. * Fix log message. * Allow to ignore background updates when file database is used. * Add Global::keep_media_order. * Add Global::use_sqlite_pmc. * Don't cancel NotificationManager timeouts while closing. Callbacks will do nothing anyway. * Inline TdDb::binlog_path/sqlite_path. * Don't store sqlite_path_ explicitly. * Add TdDb::Parameters. * Improve files_directory checking. * fix database parameters in the database thread, * Move ignore_background_updates() to Td. * Explicitly pass use_secret_chats to SecretChatsManager. * Remove unneeded TdParameters.h includes. * Make TdParameters private in Global. * Add option "ignore_file_names". * Replace value of "use_storage_optimizer" option with value of the corresponding TDLib parameter. * Use explicit CHECK instead of vector::at. * Add "disable_network_statistics" option. * Don't store TdParameters in Td. * Improve TdParameters. * Don't clean TdParameters on closing. * Update scheduled_message_date when message date changes. * Statically link libstdc++ and libgcc when memprof is enabled. * Autostart bots with non-empty message history. * Fix watchOS building. * Fix reload_dialog_administrators. * Fix compilation error. * Fix messageSendOptions processing. * Don't process USER_PRIVACY_RESTRICTED errors for bots. * Don't try to reload channel scheduled messages if have no access to them. * Ignore USER_NOT_PARTICIPANT error when leaving a channel. * Don't call getDifference explicitly after failed requests. * Don't try to load broadcast members without being an administrator. * Reget message to delete it after receiving "MESSAGE_ID_INVALID" from getPollResults. * Drop last_message_id when the last message is unloaded from memory. * Increase timeout for TQueue clear warning to be hardly exceeded. * Move EFAULT to the list of expected errors for ::read. * Update version to 1.8.12. * Add "gift_premium_from_attachment_menu" and "gift_premium_from_input_field" options. * Add reaction date to addedReaction. * Update layer to 155. * Avoid a fatal error in PartManager. * Handle invalid data index table size. * Handle data parsing errors in ContactsManager. * Call connection_online_update after sending service queries. * Don't call Callback::on_read for 0 size. * Improve logging in SessionConnection. * Remove duplicated fields from log message. * Avoid some MultiTimeout usages in NotificationManager while closing. * Add source to MultiTimeout::update_timeout. * Fix type of size parameter in set_known_prefix. * Improve fatal error logging. * Add more logging on fatal errors. * Add function for logging the whole PartsManager state. * Return parse error if invalid sticker set identifier is found in the database. * Add more fatal error logging. * Add more logging for invalid pointer alignment. * Use safe_promise in FileGenerateManager. * Fail message parsing immediately if parsed invalid message identifier. * Imrove viewMessages for threads with root messages from albums. * Universally initialize max_thread_message_id. * Update PHP download link. * tg_cli: disallow '_' as separator. * Send updateAddChatMembersPrivacyForbidden after successful request response. * Support null updates in get_update_ids. * Fix includes. * Minor improvements. * Use 2-space indentation in update_version.sh. * Allow to view additional root thread messages. * Improve error message. * Fix viewMessages.force_read. * Fix warning. * Rename can_send_messages to can_send_basic_messages. * Rename share_text to short_description. * Send td_api::updateAddChatMembersPrivacyForbidden after failed addition of a channel member. * Send td_api::updateAddChatMembersPrivacyForbidden after failed adding of a user to a basic group. * Add updateAddChatMembersPrivacyForbidden. * Fail iOS example building if can't apply OpenSSL patch. * Add ARM64 support for watchOS. * Allow truncated links in updates and event log. * Check that button text isn't empty. * Improve view_date documentation. * Avoid unneeded FileStats copying in main thread. * Improve documentation for t.me link creation. * Improve internal link test and fix some link parsing issues. * Improve test assertion messages. * Add td_api::getInternalLink. * Add LinkManager::get_proxy_link. * Add and use LinkManager::get_t_me_url(). * Return portable tg:// URLs in internalLinkTypeMessage. * Disallow numeric invite link hashes. * More generic parsing of background fill name. * Move is_background_name_local to BackgroundType. * Support file reference repair for Web App files. * Add send_emoji to get_input_media. * Add td_api::getBotInfoShareText. * Add td_api::setBotInfoShareText. * Add td_api::getBotInfoDescription. * Add td_api::setBotInfoDescription. * Pass specified emoji in documentAttributeSticker. * Add sponsor_info and additional_info to sponsoredMessage. * Add td_api::getWebAppLinkUrl. * Improve Web App and game name checks. * Add td_api::searchWebApp. * Improve field name. * Add td_api::internalLinkTypeWebApp. * Add sending_id to messageSendOptions. * Add td_api::messageViewers. * Add authorizationStateWaitPassword.has_passport_data. * Disallow to_string for bool. * Add MessageWebViewWriteAccessAllowed. * Add td_api::webApp. * Fix sticker set deletion. * Add inlineQueryResultsButtonTypeWebApp. * Add inlineQueryResultsButton. * Add document flags. * Ignore failed to parse application log events. * Fix AppConfig parsing. * Make StickerSetId storer/parser implementation private. * Add addApplicationChangelog. * Reregister uploaded by URL WEBP stickers. * Remove unneeded include. * Fix uploading of WEBP stickers by URL. * Return Ok from setStickerSetThumbnail. * Return Ok from addStickerToSet. * Add td_api::deleteStickerSet. * Add AppConfig cache. * Move inputSticker checks to StickersManager::prepare_input_file. * Simplify StickersManager::upload_sticker_file. * Move sticker_format out of inputSticker. * Add td_api::setStickerMaskPosition. * Simplify td_api::emojiCategory usage. * Add td_api::setStickerKeywords. * Add td_api::setStickerEmojis. * Simplify uploadStickerFile. * Support inputSticker keywords. * Add td_api::setStickerSetTitle. * Add td_api::setCustomEmojiStickerSetThumbnail. * Support creation of repainted custom emoji sticker sets. * Allow to create emoji sticker sets. * Allow multiple open/close for the same chat. * Add MessageSource to viewMessages. * Update layer to 154. * Ensure that being added FileSource isn't copied. * Simplify language code check. * Use "receive"/"have"/"loaded" instead of "got" and other log message improvements. * Improve log message spelling. * Improve log message spelling. * Improve FileLoader comment. * Simplify sticker set source logging. * Allow to create basic groups without other members. * Fix ContactsManager::reload_channel. * Repair unread mention count in channels when a mention is read. * Remove redundant Slice copy constructor usages. * Store last handshake query in string instead of BufferSlice. * Improve NetQuery debug. * Simplify MessagesManager::can_unload_message for bots; allow to unload the last message. * tg_cli: remove as_button_id. * Improve PhotoSize type logging. * Log photo date. * Use G()->close_status() instead of manual error. * Reuse default_result. * Add Global::ignore_result_if_closing. * Use request promise in getWebPagePreview. * Don't pass default is_optional value to get_json_object_string_field. * Improve thumbnail variable names. * Update .gitignore. * Remove now unused CI yml. * Update src.sh/src.ps1. * Avoid the use of low-numbered file descriptors. * Add tests for erase_batch. * Add erase_batch to key-values. * Return 0 from erase_batch for empty event list. * Improve field name. * Binlog::erase_batch, TQueue:pop_batch * Binlog: avoid sync on Binlog creation. * Fix FileFd::sync_barrier. * Use FileFd::sync_barrier in Binlog * FileFd::sync_barrier uses F_BARRIERFSYNC on darwin * Fix tdactor benchmark. * Avoid std::move to itself in BinlogEventsProcessor * Store std::string instead of BufferSlice in BinlogEvent * Fix benchmark/bench_db.cpp * Add class StickerMaskPosition. * Use error code returned by get_input_file_id. * Add StickersManager::get_sticker_input_document. * Update needs_repainting documentation. * Fix getPremiumStickers. * Update clang-format to 16.0.0. * Use __is_trivially_copyable if possible. * Support percent-encoding for Content-Disposition parameter values as per RFC7578. * Don't try to reload data mutiple times without network. * Reload autosave settings periodically. * Save autosave settings to database. * Fix SQLite key-value usage. * Fix watchOS compilation error. * Support updateAutosaveSettings in getCurrentState. * Fix creator in ForumTopicInfo. * Don't try to check password without checkAuthenticationPassword/recoverAuthenticationPassword query. * Add Vala example. * Fix checkAuthenticationEmailCode in Python example. * Add update version script. (#2288) * Fix OpenSSL version check. * Fix warnings. * Send updateAutosaveSettings. * Add td_api::updateAutosaveSettings. * Check and fix max_video_file_size. * Support telegram_api::updateAutoSaveSettings. * Add td_api::setAutosaveSettings. * Improve class names. * Add td_api::clearAutosaveSettingsExceptions. * Add td_api::getAutosaveSettings. * Add AutosaveManager. * Improve CRC spelling. * Improve translateText documentation. * Initialize all BinlogEvent fields. * Update version to 1.8.11. * Use explicit as_mutable_slice to get MutableSlice. * Always initialize BinlogEvent.offset_. * Simplify BinlogEvent::init/validate. * Fix query merge while closing. * Replace unsafe to maintain data_ field with get_data() method. * Binlog: store iv, key and key_hash in string instead of BufferSlice. * Binlog: store key_salt in string instead of BufferSlice. * Reserve storage for deleted_log_event_ids. * Improve chat photo animation documentation. * Fix error handling in QueryMerger. * Add get_custom_emoji_stickers_unlimited. * Reload default chat photo custom emoji identifiers. * Fix formatting. * Improve chat type check. * Don't try to repair empty draft message. * Check chat activness. * Improve needs_repainting documentation. * Don't check bot_is_member and bot_administrator_rights. * Add ability to check shared with bot user/chat. * Implement ReplyMarkup::check_shared_dialog. * Add updateNewChatJoinRequest.user_chat_id. * Minor improvements. * Increase MessageUnsupported version. * Add listener nullability checks. * Add td_api::deviceTokenHuaweiPush. * Add test for parse_url. * Add userinfo characters check. * Add and use "since_last_open" internal option. * Add inputChatPhotoSticker. * Improve TQueue::clear logging. * Don't postpone updates during initial getDifference. * Improve LinkManager::get_external_link_info. * Add td_api::emojiCategoryTypeChatPhoto. * Ignore message_thread_id for channel posts. * Add td_api::premiumFeatureRealTimeChatTranslation. * Avoid duplicate updateUserStatus updates for self. * Add StickersManager::get_used_language_codes_string. * Replace result with "Request Aborted" error only if it is successful. * Asynchronously check local location of all viewed and opened files. * Remove unneeded logging. * Collect statistics about received updates. * Store emoji groups in the database. * Send updateNewMessage after file upload has started. * Add td_api::EmojiCategoryType. * Fix language pack information repair. * Add td_api::getEmojiCategories. * Support search by multiple emojis in getStickers. * Improve function name. * Don't remove emoji selectors in search_stickers. * Allow mutiple emojis in searchStickers. * Support sticker_type in searchStickers. * Add StickersManager::reload_found_stickers helper. * Fix handling of requestPeerTypeBroadcast. * Improve names of methods and message contents related to sharing user/chat with a bot. * Add more t.me domains for web clients. * Add more service t.me subdomains. * Add td_api::suggestedActionSubscribeToAnnualPremium. * Add suggestedActionUpgradePremium. * Add translateMessageText. * Ignore min-channel photo for unavailable channels. * Support stickers in setChatPhoto. * Make StickeerPhotoSize fields private. * Check provided custom emoji and sticker identifiers. * Add sticker.id. * Imptove StickerPhotoSize field names. * Move get_chat_photo_sticker_object to StickerPhotoSize class. * Improve video size processing. * Store StickerPhotoSize in unique_ptr to optimize Photo size. * Add unique_value_ptr. * Improve get_sticker_photo_size. * Move StickerPhotoSize to separate files. * Support sticker chat photos. * Send updateChatIsTranslatable when premium is switched on or off. * Support chat.is_translatable, toggleChatIsTranslatable and updateChatIsTranslatable. * Add information for Premium subscription upgrade. * Add storePaymentPurposePremiumSubscription.is_upgrade. * Add sendAuthenticationFirebaseSms. * Allow to request Firebase Authentication in official apps. * Add authenticationCodeTypeFirebaseIos. * Add authenticationCodeTypeFirebaseAndroid. * Allow to upload custom emoji photos. * Support CustomEmojiSize. * Keep bot commands and media timestamps in translated text. * Support translation of formatted text. * Add functions for conversion between FormattedText and textWithEntities. * Add TranslationManager. * Untie can_send_messages right from other rights. * Fix AuthManager::on_sent_code. * Support standalone SetPassword suggested action. * Improve repair of unread reaction count. * Improve error messages. * Open main connection before authorization. * Explicitly fail reload attachment menu bot queries. * Forcely load chosen chat from database. * Add td_api::sendChosenChat. * Add td_api::sendChosenUser. * Add messageUserChosen. * Implement RequestedDialogType. * Add separate keyboardButtonTypeRequestUser. * Add keyboardButtonTypeRequestChat. * Add td_api::messageChatChosen. * Add td_api::getDefaultProfilePhotoCustomEmojiStickers. * Add td_api::getDefaultChatPhotoCustomEmojiStickers. * Allow to create forum supergroups. * Support separate chat permissions for different media types. * Make DialogParticipant flags 64-bit. * Support authentication_token after authorization. * Support auth.sentCodeSuccess. * Update layer to 152. * Don't use Time::now_cached in Session. * Fix some warnings. * Allow redundant 0xFE0F after emoji. * Return after call to on_error. * Improve can_send_messages documentation. * Support General topic in getMessageThread. * Explicitly define static constexpr fields. * Improve handling of internal options with updates. * Fix set_option_empty. * Improve "id" variable names in FileManager. * Improve some spelling. * Improve event_id variable names. * Improve message_id variable names in Session. * Fix some lower-case spelling. * Improve some mixed-case spelling. * Improve PTS/QTS spelling. * Reduce ping timeout in primary non-main-DC connections. * Improve logging. * Explicitly fail some promises on closing. * Combine getChannel queries with the same channel_id. * Merge GetChat queries. * Reload contacts if failed to load the from database. * Merge getUser queries. * Add QueryMerger test. * Add QueryMerger. * Remove some getAuthorizationState usages. * Use busy-waiting instead of short Sleep on Windows. * Simplify Scheduler::send_impl. * Remove now unneeded wait_generation. * Always wait for mailbox. * Update rust-tdlib link. * Don't use FILE_FLAG_OPEN_REPARSE_POINT with UWP. * Remove never used AbridgedTransport. * Improve config recovery source order. * Add tests for anonymous phone numbers. * Update answers in get_phone_number_info test. * Optimize parsing of argument value in HTML tags. * Improve parse_html test. * Replace text in-place in parse_html. * Ensure that PTS/QTS updates are null after processing. * Replace text in-place in parse_markdown. * Recheck UTF-8 in parse_html only if needed. * Use StringBuilder to create new string in parse_html. * Explicitly use std::move to return entities. * Avoid some minor string copying in message entity parsing. * Don't send more than 100 user entities to server. * Remove checks that status.is_error in ResultHandler::on_error. * Delete TQueue events directly if appropriate. * Add constant methods to td::Container. * Improve setAuthenticationPhoneNumber and requestQrCodeAuthentication documentation. * Reduce struct RawEvent size on some compilers. * Return all deleted events fron TQueue::clear. * Delete symbolic links in rmrf. * Improve loading of system certificate store. * Fix warning. * Fix bench_misc. * Process symlinks in system certificate store. * Support symbolic links in walk_path. * Add Stat.is_symbolic_link_. * Skip subdirectories in system certificate store. * Load certificate from default_cert_file. * Skip returned by server messages, not matching the filter. * Improve warnings about changed MessageForwardInfo. * Improve system certificate store loading. * Preload all root certificates instead of using SSL_CTX_set_default_verify_paths, which would lazily load the same certificates over and over. * Don't send parallel ping-server requests. * Fix check for use_pfs. * Log if instance wasn't launched for more than 24 hours. * Log last used time for auth key. * Add some emptiness checks. * Log number of unprocessed updateMessageID while closing. * Log source for failed to add awaited messages. * Improve logging in on_get_channel_difference. * Silently ignore PERSISTENT_TIMESTAMP_INVALID errors for channels.getDifference. * Improve punctuation. * Move random_shuffle to tests.h. * Drop cached attachment menu bots when database is deleted. * Improve internalLinkTypePassportDataRequest documentation. * Update copyright year. * Remove "forum_member_count_min" option. * Improve setTdlibParameters errors. * Revert invalid 439e0863f39240e42be8c6d66b7d4e816cd4b2fc. * Keep only full name for Go examples. * Clarify package names for Go * Update version to 1.8.10. * Split call to destroy_on_scheduler in two to avoid variable tracking size limit. * Fix warning. * Send typings to General topic by default in forums. * Fix spoiler in on_upload_message_media_success. * Improve field name. * Process updates about pinned forum topics. * Add td_api::setPinnedForumTopics. * Add td_api::toggleForumTopicIsPinned. * Add "pinned_forum_topic_count_max" option. * Improve message-TTL-related log messages. * Improve message_auto_delete_time field and class names. * Avoid duplicate 't' and 'i' photo sizes. * Improve return value of searchCallMessages. * Improve return type of searchChatMessages. * Add internalLinkTypeEditProfileSettings. * Add internalLinkTypeDefaultMessageAutoDeleteTimerSettings. * Fix misprints. * Rename message.ttl to self_destruct_timer. * Rename message TTL to auto-delete timer when appropriate. * Rename is_aggressive_anti_spam_enabled to has_aggressive_anti_spam_enabled. * Add internalLinkTypeStickerSet.expect_custom_emoji. * Improve set_user_profile_photo. * Improve documentation. * Improve class name. * Ignore photo returned by DeleteContactProfilePhotoQuery. * Drop UserFull photos, only if they are unknown. * Use cached UserFull in ContactsManager::delete_profile_photo. * Remove unneeded calls to update_user/update_user_full. * Drop all UserFull photos when profile photo is changed. * Always send updates in ContactsManager::delete_my_profile_photo_from_cache. * Fix call to drop_user_photos. * Apply empty personal and public photos. * Improve suggestUserProfilePhoto documentation. * Separately create admin log message ogjects. * Add separate message.auto_delete_in. * Improve getForumTopicLink. * Minor improvements. * Support spoilers for messageAnimation. * Improve documentation. * Improve method name. * Improve handling of telegram_api::updateUser. * Update user's username from min-user. * Fix setting of public photo. * Returm server messages for General topic in getMessageThreadHistory. * Improve next_offset in getMessagePublicForwards. * Use next_rate in searchMessages. * Simplify searchMessages usage. * Add pushMessageContentSuggestProfilePhoto. * Improve userFullInfo photos documentation. * Improve getUserProfilePhotos documentation. * Improve photo field order in userFullInfo. * tg_cli: randomize sendMessageAlbum testing. * Support sending of media with spoiler. * Improve delete_my_profile_photo_from_cache. * Add source to drop_user_full_photos. * Guarantee that all UserFull photos are known or none. * Always reload full user after changing a photo. * Remove unused ContactsManager::on_update_user_photo. * Keep personal and public photos after setting previous profile photo. * Preload UserFull before deletion of profile photos. * Repair personal and public photo with getUserFull. * Fix photo.id usages. * Register suggested profile photos. * Don't update cache when suggesting a profile photo. * Check userProfilePhoto.photo_id. * Explicitly call drop_user_full_photos. * Drop only needed full profile photos. * Avoid duplicate updateChatPhoto updates. * Fix some spelling. * Add StickerTypeFullInfo. * Disable sending of media with spoilers for now. * Hide can_get_message_thread for non-root messages. * tg_cli: fix call to canPurchasePremium. * Remove PhotoWithSpoiler and VideoWithSpoiler file types. * Combine sticker set reload queries. * Reload emoji sticker sets once. * Remove "themed_emoji_statuses_sticker_set_id" option. * Use directly remove_event instead of pop in TQueue:clear. * Add has_spoiler flag to messagePhoto and messageVideo. * Delete events from callback before forgetting them in TQueue. * Add toggleSupergroupHasHiddenMembers. * Improve ContactsManager::get_channel_effective_has_hidden_participants. * Add phoneNumberInfo.is_anonymous. * Allow to add emoji stickers to animations, photos and videos. * Support stickerSetNoCovered. * Increase MessageUnsupported version to load photo and video with spoiler. * Add new flags to basicGroupFullInfo. * Add supergroupFullInfo.can_hide_members. * Hide viewers in chats with hidden participants. * Use server-side online count for supergroups with hidden members. * Correctly process received channel participants. * Add supergroupFullInfo.has_hidden_members. * Add supergroupFullInfo.can_toggle_aggressive_anti_spam. * Rename fallback photo to public photo. * tg_cli: simplify message TTL testing. * tg_cli: simplify has_spoiler testing. * Support sending of photos and videos with spoiler animation. * Support photo deletion in setUserPersonalProfilePhoto. * Add suggestUserPersonalProfilePhoto. * Allow to set fallback profile photo. * Add userFullInfo.fallback_photo. * Add ContactsManager::get_user_full_profile_photo_id. * Add replyMarkupShowKeyboard.is_persistent. * Add AttachmentMenuBot.request_write_access. * Add toggleBotIsAddedToAttachmentMenu.allow_write_access. * Add td_api::messageBotWriteAccessAllowed * Split some long class/field descriptions. * Split multiline documentation by different lines. * Add td_api::setUserPersonalProfilePhoto. * Support personal photo in UserFull. * Add profilePhoto.is_personal flag. * Add messageSuggestProfilePhoto. * Add sticker.has_text_color. * Update layer to 151. * Don't try to load the same chat many times from the database. * Ignore ReadMessageContents updates for bots. * Add source to do_reload_sticker_set. * Drop pending updates with too big PTS after getDifference. * Unify parameter order. * Improve authorization states documentation. * Simplify some usages of optional TL fields. * Check that sticker is still in the set before using it. * Simplify optional fields access in *Full. * Improve FullLocalFileLocation default constructor. * Update last read inbox/outbox message identifiers in topics. * Replace top_thread_message_id in unsupported messages. * Never create again deleted forum topics. * Fix forum topic deletion. * Move static get_message_id/get_message_dialog_id to corresponding classes. * Improve log messages with time. * Simplify update logging. * Increase MessageUnsupported version. * Move static MessageId helpers to MessageId class. * Minor improvements. * Delete left dialogs from filters. * Get channel difference if needed in getForumTopics. * Get channel difference if needed in getForumTopic. * Move get_messages_info to MessagesInfo.cpp. * Add separate header for MessagesInfo. * Fix processing of links to messages in General topic. * Support creation of message links for messages in General topic. * Add is_forum_channel. * HttpReader: open temp file only in FormDataParseState::ReadFile state. * Fix compilation error. * Update defeult value for "forum_member_count_min" option. * Update version to 1.8.9. * Fix add_local_message. * Add td_api::getForumTopics. * Support updates about forum topic notification settings. * Add need_update_dialog_notification_settings. * Improve get_dialog_notification_settings(td_api::object_ptr<td_api::chatNotificationSettings> &¬ification_settings). * Improve get_dialog_notification_settings(tl_object_ptr<telegram_api::peerNotifySettings>). * Fix forum topic initial notification settings. * Add setForumTopicNotificationSettings. * Add Topic.need_save_to_database_. * Add ForumTopicManager::set_topic_info. * Add ForumTopic cache. * Support General forum topic links. * Use need_unread_counter. * Add ForumTopicManager::can_be_message_thread_id. * Add td_api::getForumTopicLink. * Clarify meaning of chatMember.joined_chat_date. * Don't try to change top_thread_message_id for messages in dialog. * Add chatEventIsAggressiveAntiSpamEnabledToggled. * Improve documentation. * Fix topic message count. * Return last message in forumTopic. * Add on_get_forum_topic_info. * Add td_api::getForumTopic. * Update built-in list of countries. * Update rights check for setChatMessageTtl. * Extract only relevant random_id from updates. * Improve return value of UpdatesManager::get_new_messages. * Don't return SetMessagesTTL messages in get_new_messages. * Add internalLinkTypeUserToken. * Add td_api::searchUserByToken. * Add td_api::getUserLink. * Add td_api::toggleGeneralForumTopicIsHidden. * Improve editForumTopic. * Add forumTopicInfo.is_general. * Allow to change topic name and icon separately. * Add chatEventForumTopicToggleIsHidden. * Move is_hidden to ForumTopicInfo. * Add messageForumTopicIsHiddenToggled. * Add forum.is_hidden. * Make option "anti_spam_bot_user_id" public and allow to load the user without network request. * Ignore useless "reactions_in_chat_max" option. * Send updateUser when Fragment prefixes are changed. * Add user.has_anonymous_phone_number. * Process fragment_prefixes option. * Improve message TTL documentation. * Add td_api::getDefaultMessageTtl. * Add td_api::setDefaultMessageTtl. * Fix log size after rotation. * Ignore message interaction info updates for bots. * Avoid unneeded calls to channels.getDifference. * Allow to specify message_ttl during creation of basic group and channel chats. * Add messageChatSetTtl.from_user_id. * Ignore "none" Content-Encoding. * Apply message_ttl from telegram_api::dialog. * Add authenticationCodeTypeFragment. * Add "aggressive_anti_spam_supergroup_member_count_min" option. * Add chatEventMessageDeleted.can_report_anti_spam_false_positive. * Add td_api::reportSupergroupAntiSpamFalsePositive. * Add toggleSupergroupIsAggressiveAntiSpamEnabled. * Add supergroupFullInfo.is_aggressive_anti_spam_enabled. * Update layer to 150. * Delete topic from database after it was deleted locally. * Delete all topics from database when chat is deleted. * Save information about forum topics to database. * Add ForumTopicManager::get_topic. * Unload forum topic information after all messages are unloaded. * Add ForumTopicManager::can_be_forum. * Support storing additional data about forum topics. * Move ForumTopicInfo out of ForumTopic. * Apply information about forum topics from messages.channelMessages. * Support new ForumTopic fields. * Fix checkChatUsernameResultPublicChatsTooMany spelling. * Add checkChatUsernameResultUsernamePurchasable. * Update layer to 149. * Allow to read deleted thread messages. * Add time limit for applying of pending PTS updates. * Avoid update about deleted closed polls. * Use std::thread::native_handle() only for MSVC, because it is unsafe to assume native_handle_type otherwise. * Fix MinGW (32-bit) out of memory error (#2212) * Fix MinGW threading compilation error (#2210) * Do nothing in MessagesManager::reload_voice_chat_on_search before authorization. * Fix compilation error. * Return back randomize_hash to WaitFreeHashMap. * Fix warning. * Add td::Hash and use it everywhere instead of unusable std::hash. * Minor fixes. * Skip too old channel difference for bots. * Fix logging. * Minor FloodControlFast improvements. * Rewrite FoodControlFast: now it uses a bucket logic * HttpReader: fix keep-alive flag. * Improve size formatting. * Improve log message for failed to generate files. * Use WaitFreeHashMap to store poll messages. * Store polls in a WaitFreeHashMap. * Don't send updateMessageContent about poll messages to bots when the poll is changed. * Use double timestamps in FloodControlStrict. * Minor FloodControlStrict improvements. * Adjust last_read_inbox_message_id in MessageReplyInfo by last read chat message. * Improve MessageReplyInfo field names. * Decrease maximum size of wait-free hash tables. * Fix postponed drop of default message sender. * Drop chat message sender when chat become private. * Improve logging. * Treat files with upload_pause as being uploaded. * Add source to cancel_upload_file. * Add warning about too long TQueue clear. * Avoid non-required file_id duping. * Add source to dup_file_id. * Use WaitFreeHashMap for user photos. * Use WaitFreeHashMap for pending_user_photos_. * Add more logging for long update applying. * Avoid expected warning. * Simplify variables initialization. * Improve updating of reply info. * Invalidate ChannelFull instead of running getDifference if appropriate. * Try to add user to channel after unrestricting. * Improve parameters name. * Hide comments button if the user is banned in the discussion group. * Fix warning. * Improve log guard. * Rename size() to calc_size() for WaitFree hash tables. * Make WaitFreeHashSet recursive. * Make WaitFreeHashMap recursive. * Improve to_integer_safe error message. * Use WaitFreeHashMap to store nodes in FileReferenceManager. * Use request promise in setBackground. * Speculatively add channel users added through addChatMembers. * Improve source type in on_get_channel_error/on_get_dialog_error. * Add source to invalidate_channel_full. * Add search text for topic service messages. * Use get_next_message_id. * Simplify authorization state timeout handling. * Add draft of history generation for better gap handling. * Don't replace cached file_id of being uploaded files. * Add voluntary spin lock for logging to reduce conflicts with stderr. * Hide replies to root message in topic messages. * Fix file registration. * Improve logging. * Improve getRepliedMessage. * Don't register VoiceNote and VideoNote messages for bots. * Disable message thread database for now. * Remove unused return value in FileManager::merge. * Merge downloaded and generated files as early as possible to avoid pinning and keeping of a temporary file_id for local location. * Avoid deletion of message files for bots. * Fix remove_emoji_modifiers. * Pin only main file_id. * Reduce boundary for file identifier number warnings. * Don't clear draft when inline message is sent not from input field. * Unload at most 5000 messages at a time. * Create SslStream from SslCtx. * Make SslCtx public. * Decrease the maximum number of kept TQueue events. * Fix dropping of MessageReplyInfo. * Add MessageThreadDatabase. * Flush DialogDb on closing. * Rename MessagesDb to MessageDb. * Implement get_scheduler_thread_id without threads. * Fix AsyncFileLog building without threads. * Improve TQueue::clear. * Add TQueue::clear. * Don't send updates about unloading from cache of unknown to app messages. * Remove unused from_cache parameter in send_update_delete_messages. * Remove ignored Status responses from DialogDb. * Remove unused Status responses in MessagesDb. * Fix last_added_message_id. * Allow change of replied message to top thread message. * Improve source for error suppression. * Improve fatal error handling in AsyncFileLog. * Don't try to fail message edits while closing. * Fix warning. * Add more Dart examples. * Update version to 1.8.8. * Add "forum_member_count_min" option. * Various user photo improvements. * Don't drop photo cache if only minithumbnail was changed. * Ensure that full photo and is null if unknown. * Immediately drop UserFull photo after changing user photo. * Log to ERROR inconsistent chatPhoto and chatPhotoInfo. * Delete photo from *FullInfo before sending update*. * Improve FullInfo.photo documentation. * Improve actor of TopicCreated chat log event. * Output main chat list position along with all folder identifiers. * Update main chat list position after adding or deleting chat lists. * Fix adding of a chat list to beginning. * Generate new links for topic messages. * Support forum message links in getInternalLinkType. * Support message links for forum topics. * Fix warning. * Fix compilation error. * Wait for emoji reactions to be loaded once in getEmojiReaction. * Pass promise to StickersManager::get_emoji_reaction. * Avoid call to is_deleted_message in delete_dialog_messages if it isn't needed. * Use delete_dialog_messages if appropriate. * Improve parameter name. * Remove from_updates parameter from delete_dialog_messages. * Split delete_dialog_messages in two functions. * Refactor delete_newer_server_messages_at_the_end. * Destroy deleted messages on another thread. * Improve handling of too long messages and captions. * Improve logging. * Support "restriction_add_platforms" app config parameter. * Minor improvements. * Rename forum topic title to topic name. * Improve MessateReplyHeader processing. * Unpin locally only messages from forum topics. * Fix solid backgrounds. * Improve message reply header handling. * Allow bots to get default topic icons. * Ignore MESSAGE_NOT_MODIFIED error for added reactions. * Don't truncate logs after rotation. * Improve TimedStat value after long pause. * Use autogenerated constant instead of raw constructor number. * Split API methods for chats and message threads. * Do nothing for bots in on_dialog_linked_channel_updated. * Support unpinning of all messages in a message thread. * Allow forum topic methods for bots. * Improve getMessageThread for forums. * Avoid expected warning. * Improve chatActionBar documentation. * Increase cache version for channels. * Avoid warning for allowed channel useless updates. * Add td_api::deleteForumTopic. * Keep information about dropped MessageReplyInfo. * Don't send updateForumTopicInfo for bots just in case. * Improve topic message detection. * Allow to get thread of failed to send and yet unsent messages. * Add various fixes. * Add comments about ignored top_thread_message_id. * Add Message.is_topic_message. * Add updateForumTopicInfo. * Add ForumTopicManager::add_topic_info. * Check that identifier of the edited topic wasn't changed. * Add separate chatEventForumTopicToggleIsClosed. * Add separate messageForumTopicIsClosedToggled. * Allow to edit forum topic by its creator. * Apply edited data from service message about forum topics. * Add toggleForumTopicIsClosed. * Ignore TOPIC_NOT_MODIFIED errors. * Add td_api::editForumTopic. * Use async destruction for ForumTopicManager. * Add ForumTopicInfo cache. * tg_cli: add class MessageThreadId. * Add openWebApp.message_thread_id. * Add getForumTopicDefaultIcons. * Support whitelisted domains. * Support forum topic creation on behalf of channels. * Don't update channel pts if failed to process updateEditChannelMessage. * Improve error logging. * Disallow deletion of TopicCreate service messages. * tg_cli: fix misprint. * Treat usernames of length 4 as valid. * Support forum topic creation. * Add ForumTopicManager. * Add premiumFeatureForumTopicIcon. * Disallow message history hiding in forums. * Add toggleSupergroupIsForum. * Add class ForumTopic. * Check message thread identifier with can_use_top_thread_message_id while changing message draft. * Add ContactsManager::is_forum_channel. * Use InvokeAfter for requests changing usernames of the current user. * Increase MESSAGE_UNSUPPORTED version. * Use InvokeAfter for requests changing channels. * Allow to pass message thread identifier to readAllChatReactions. * Allow to pass message thread identifier to readAllChatMentions. * Document searchChatMessages behavior for unsupported search criteria combinations. * Username fixes. * Allow to get unread mentions and reactions in a message thread. * Support can_manage_topics administrator right and chat permission. * Support forwarding of messages to message threads. * Drop sponsored message cache when Premium state is changed. * Support multiple sponsored messages. * Support sponsored messages with chat photo. * Support waveform for video notes. * Support speech recognition for video notes. * Add video note flags. * Inline handling of transcribed audio update. * Move TranscribeAudioQuery to TranscriptionInfo.cpp. * Make VideoNotesManager an actor. * Explicitly subscribe to updateTranscribedAudio updates. * Various improvements. * Move RateTranscribedAudioQuery to TranscriptionInfo.cpp. * Add class TranscriptionInfo. * Register video note messages. * Mark reactions as loaded after saving them to database just in case. * Proxy speech recognition methods through MessagesManager. * Add messageForumTopicEdited. * Fix Usernames store. * Add class ForumTopicEditedData. * Add messageForumTopicCreated. * Add class ForumTopicIcon. * Pass top_thread_message_id to server methods for message sending. * Add supergroup.is_forum flag. * Keep top_thread_message_id for yet unsent scheduled messages. * Add chatEventLogFilters.forum_changes. * Add forum-related chat actions. * Add td_api::forumTopicInfo. * Immediately succeed reorder usernames queries if they can't change order. * Improve backward compatibility. * Add disableAllSupergroupUsernames. * Add toggleUsernameIsActive/toggleSupergroupUsernameIsActive. * Restore support for ContactsManager::on_update_channel_editable_username. * Add td_api::chatEventActiveUsernamesChanged. * Support usernames without editable username. * Support reordering of active usernames. * Add support for multiple usernames. * Update layer to 148. * Improve order of available message senders. * Improve field names. * Improve some emplace_back/push_back usage. * Improve download/upload callback handling. * Fix parse_url_query test. * Fix test. * Split NotificationSettings.h. * Improve TdDb::check_parameters. * Simplify checks in AdministratorRights. * Fix cleaning of being loaded imported contacts. * Improve logging. * Add debug for get_binlog_pmc. * Optimize the very first key generation. * Move ConcurrentHashMap test out of namespace td. * Move test's KDF3 out of namespace td. * Use suggested_video_note_length as default size for video notes. * Use std::move to update document fields. * Improve documentation. * Explicitly set promise in on_update_message_reactions. * Move get_background_url to LinkManager. * Call MessagesManager::on_dialog_bots_updated even the list of bots wasn't changed. * Send updateMessageSendFailed when closing for being uploaded messages. * Support redirect_stderr in AsyncFileLog. * Fix OpenSSL building in iOS example. * Don't allow TQueue::run_gc to run for more than 50 milliseconds. * Simplify TQueue::run_gc. * Add more checks for close_status. * Move is_valid_username to misc.h. * Minor improvements. * tg_cli: unify function names. * Fix CallActor closing. * tg_cli: add last_message_date to ghf. * Add ContactsManager::get_dialog_search_text. * Simplify username caching. * Asynchronously check local location for downloaded files. * Pass promise to FileManager::download. * Asynchronously check location for files loaded from database. * Add FileManager::check_local_location_async. * Move check_local_location to FileLoaderUtils. * Improve FileManager::check_local_location. * Simplify local location check in FileManager::download. * Make FileManager::check_local_location static. * Don't check local file size for downloaded files. * Make all operator bool const and nonexcept. * Improve 'always be' spelling. * Minor improvements. * Avoid redundant usages of Status::error(). * Add AsyncFileLog. * Fix warning. * Fix call discarding. * Fix warning. * Update version to 1.8.7. * Add Dockerfile for Android example. * Send updateMessageSendFailed about being sent messages on closing if there is no message database. * Explicitly fail some promises stored in MessagesManager. * Suppress expected warnings. * Improve source for telegram_api::updates. * Remove legacy "default_reaction" options. * Don't send fake optionValueEmpty while logging out. * Improve logging. * Fix duplicate file source creation for web pages. * Immediately ignore duplicate and invalid file sources loaded from database. * Avoid creation of multiple FileSourceId for the same URL. * Fix checks for *Full initialization to avoid file resaving. * Synchronously load file in FileManager::add_file_source to avoid resaving it to the database. * SQLite: fix handling of SQLITE_DEFAULT_SYNCHRONOUS macros. * Add logging for slow logging to file. * Improve log and error messages. * Improve SQLite logging. * Add warnings about big file nodes. * Fix warning. * Build and install only OpenSSL libraries in iOS example. Fixes #2152. Update OpenSSL to 1.0.2u. * Add ConcurrentScheduler::get_thread_id. * Add thread.get_id() test. * Add td::thread::get_id(). * Allow to start OptionManager on any scheduler. * ClientActor: create Td on desired thread. * Update response of getChatAvailableMessageSenders. * Make TdApi default constructor private. * Use WaitFreeHashMap for resolved_usernames. * Fix read_date usage. * Support empty filter in getChatMessagePosition. * Explicitly ignore READ_REACTION notifications. * Optimize logging to NULL on Windows. Fixes #2112. * Minor improvements. * Add class CustomEmojiId. * Resave file after clearing local location to keep file sources. * Improve getFile response. * Fix FileManager::clear_from_pmc. * Fix scanning of temporary directories. * Ensure that all network requests are sent and all their responses are processed asynchronously. * Avoid message type checks in treap_insert/treap_find. * Minor improvements. * Remove template ActorOwn::reset. * Inline ActorOwn::hangup. * Remove unused ActorId methods. * Inline yield_scheduler. * Improve logging. * Add getChatMessagePosition. * Update comment. * Reduce MAX_STORAGE_SIZE for wait free hash tables to reduce split_storage time. * Return stickers from getCustomEmojiReactionAnimations. * Remove bitcode from iOS/tvOS/watchOS binaries as required by https://developer.apple.com/documentation/Xcode-Release-Notes/xcode-14-release-notes. * Improve logging for auth key dropping. * Improve secret chat schema constructor naming. * Support search by keywords in getStickers. * Really avoid force_reuse even for message photos. * Add helpers for sticker search. * Add lazy initialization for keyword_stickers_map_. * Update emoji to 15.0. * Update Unicode tables to 15.0. * Add utf8_prepare_search_string. * Save sticker keywords. * Update layer to 147. * Use the same template recursively for instant view links. * Improve clicked animated emoji zoom. * Add fallback_url to internalLinkTypeInstantView. * Add animatedEmoji.sticker_width/sticker_height. * Make struct Invoice private. * Make InputInvoice fields private. * Move store/parse inside classes Invoice/InputInvoice. * Add InputInvoice::is_equal_but_different. * Add InputInvoice::need_reget. * Add InputInvoice::update_from. * Support extended media polling. * Fix extended media store. * Support extended media in inputMessageInvoice. * Make Invoice operator == private. * Move InputInvoice methods inside the class. * Unify field naming in Invoice/InputInvoice classes. * Support telegram_api::updateMessageExtendedMedia. * Minor improvements. * Remove unused class ShippingOption. * Move get_product_description_object to InputInvoice.h. * Move check_currency_amount to misc.h. * Add OrderInfo.h. * Move InputInvoice to InputInvoice.h. * Add LabeledPricePart.h. * Move some functions to Photo.h. * Support ExtendedMedia in MessageContent. * Add version for MessageExtendedMedia::Unsupported. * Never replace ExtendedMedia media with preview. * Add td_api::messageExtendedMedia. * Add InputInvoice flags. * Update layer to 146. ------------------------------------------------------------------- Thu Sep 29 17:14:15 UTC 2022 - dead_mozay@opensuse.org - Update to version 1.8.6: * Make most MessageReaction methods private. * Add MessageReactions::add_min_channels. * Add MessageReactions::add_dependencies. * Add MessageReactions::get_message_reactions_object. * Add MessageReactions::are_consistent_with_list. * Increase limits for slow operations logging. * Keep only Slice overload of utf8_utf16_substr. * Increase 8 times number of WaitFreeMap storages. * Don't add self speculatively to channel members if join requests are enabled in the chat. * Create all dialogs before initializing inactive_channel_ids_. ------------------------------------------------------------------- Thu Sep 29 15:16:51 UTC 2022 - Dead Mozay <dead_mozay@opensuse.org> - Initial package.