From e38615b71ee9795bfcd49d5e0d7c631e0b4b8a8c Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 1 Jul 2022 14:33:59 +0300 Subject: [PATCH] Update layer to 144. --- td/generate/scheme/telegram_api.tl | 39 ++++++++++++++++++++++-------- td/telegram/AuthManager.cpp | 2 +- td/telegram/DocumentsManager.cpp | 3 +++ td/telegram/MessageContent.cpp | 2 ++ td/telegram/MessageEntity.cpp | 2 ++ td/telegram/Payments.cpp | 8 +++--- td/telegram/Premium.cpp | 18 ++++++++++---- td/telegram/PrivacyManager.cpp | 3 +++ td/telegram/StickersManager.cpp | 8 +++--- td/telegram/UpdatesManager.cpp | 6 +++++ td/telegram/UpdatesManager.h | 2 ++ td/telegram/Version.h | 2 +- 12 files changed, 71 insertions(+), 24 deletions(-) diff --git a/td/generate/scheme/telegram_api.tl b/td/generate/scheme/telegram_api.tl index 5d87305f6..be109e015 100644 --- a/td/generate/scheme/telegram_api.tl +++ b/td/generate/scheme/telegram_api.tl @@ -182,6 +182,7 @@ messageActionSetChatTheme#aa786345 emoticon:string = MessageAction; messageActionChatJoinedByRequest#ebbca3cb = MessageAction; messageActionWebViewDataSentMe#47dd8079 text:string data:string = MessageAction; messageActionWebViewDataSent#b4c38cb5 text:string = MessageAction; +messageActionGiftPremium#aba0f5c6 currency:string amount:long months:int = MessageAction; dialog#a8edd0f5 flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int = Dialog; dialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog; @@ -231,7 +232,7 @@ inputReportReasonFake#f5ddd6e7 = ReportReason; inputReportReasonIllegalDrugs#a8eb2be = ReportReason; inputReportReasonPersonalDetails#9ec7863d = ReportReason; -userFull#8c72ea81 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true id:long about:flags.1?string settings:PeerSettings profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights = UserFull; +userFull#c4b1fc3f flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true id:long about:flags.1?string settings:PeerSettings profile_photo:flags.2?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector = UserFull; contact#145ade0b user_id:long mutual:Bool = Contact; @@ -313,7 +314,7 @@ updateDeleteChannelMessages#c32d5b12 channel_id:long messages:Vector pts:in updateChannelMessageViews#f226ac08 channel_id:long id:int views:int = Update; updateChatParticipantAdmin#d7ca61a2 chat_id:long user_id:long is_admin:Bool version:int = Update; updateNewStickerSet#688a30aa stickerset:messages.StickerSet = Update; -updateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true order:Vector = Update; +updateStickerSetsOrder#bb2d201 flags:# masks:flags.0?true emojis:flags.1?true order:Vector = Update; updateStickerSets#43ae3dec = Update; updateSavedGifs#9375341e = Update; updateBotInlineQuery#496f379c flags:# query_id:long user_id:long query:string geo:flags.0?GeoPoint peer_type:flags.1?InlineQueryPeerType offset:string = Update; @@ -382,6 +383,7 @@ updateWebViewResultSent#1592b79d query_id:long = Update; updateBotMenuButton#14b85813 bot_id:long button:BotMenuButton = Update; updateSavedRingtones#74d8be99 = Update; updateTranscribedAudio#84cd5a flags:# pending:flags.0?true peer:Peer msg_id:int transcription_id:long text:string = Update; +updateReadFeaturedEmojiStickers#fb4c496c = Update; updates.state#a56c2a3e pts:int qts:int date:int seq:int unread_count:int = updates.State; @@ -484,6 +486,7 @@ inputPrivacyKeyForwards#a4dd4c08 = InputPrivacyKey; inputPrivacyKeyProfilePhoto#5719bacc = InputPrivacyKey; inputPrivacyKeyPhoneNumber#352dafa = InputPrivacyKey; inputPrivacyKeyAddedByPhone#d1219bdd = InputPrivacyKey; +inputPrivacyKeyVoiceMessages#aee69d68 = InputPrivacyKey; privacyKeyStatusTimestamp#bc2eab30 = PrivacyKey; privacyKeyChatInvite#500e6dfa = PrivacyKey; @@ -493,6 +496,7 @@ privacyKeyForwards#69ec56a3 = PrivacyKey; privacyKeyProfilePhoto#96151fed = PrivacyKey; privacyKeyPhoneNumber#d19ae46d = PrivacyKey; privacyKeyAddedByPhone#42ffd42b = PrivacyKey; +privacyKeyVoiceMessages#697f414 = PrivacyKey; inputPrivacyValueAllowContacts#d09e07b = InputPrivacyRule; inputPrivacyValueAllowAll#184b35ce = InputPrivacyRule; @@ -523,6 +527,7 @@ documentAttributeVideo#ef02ce6 flags:# round_message:flags.0?true supports_strea documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttribute; documentAttributeFilename#15590068 file_name:string = DocumentAttribute; documentAttributeHasStickers#9801d2f7 = DocumentAttribute; +documentAttributeCustomEmoji#fd149899 flags:# free:flags.0?true alt:string stickerset:InputStickerSet = DocumentAttribute; messages.stickersNotModified#f1749a22 = messages.Stickers; messages.stickers#30a6ec7e hash:long stickers:Vector = messages.Stickers; @@ -566,8 +571,9 @@ inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet; inputStickerSetAnimatedEmoji#28703c8 = InputStickerSet; inputStickerSetDice#e67f520e emoticon:string = InputStickerSet; inputStickerSetAnimatedEmojiAnimations#cde3739 = InputStickerSet; +inputStickerSetPremiumGifts#c88b3b02 = InputStickerSet; -stickerSet#d7df217a flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true videos:flags.6?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector thumb_dc_id:flags.4?int thumb_version:flags.4?int count:int hash:int = StickerSet; +stickerSet#2dd14edc flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true videos:flags.6?true emojis:flags.7?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumbs:flags.4?Vector thumb_dc_id:flags.4?int thumb_version:flags.4?int thumb_document_id:flags.8?long count:int hash:int = StickerSet; messages.stickerSet#b60a24a6 set:StickerSet packs:Vector documents:Vector = messages.StickerSet; messages.stickerSetNotModified#d3f924eb = messages.StickerSet; @@ -619,6 +625,7 @@ messageEntityStrike#bf0693d4 offset:int length:int = MessageEntity; messageEntityBlockquote#20df5d0 offset:int length:int = MessageEntity; messageEntityBankCard#761e6af4 offset:int length:int = MessageEntity; messageEntitySpoiler#32ca960f offset:int length:int = MessageEntity; +messageEntityCustomEmoji#c8cf05f8 offset:int length:int document_id:long = MessageEntity; inputChannelEmpty#ee8c1e86 = InputChannel; inputChannel#f35aec28 channel_id:long access_hash:long = InputChannel; @@ -745,6 +752,7 @@ messages.stickerSetInstallResultArchive#35e410a8 sets:Vector stickerSetCovered#6410a5d2 set:StickerSet cover:Document = StickerSetCovered; stickerSetMultiCovered#3407e51b set:StickerSet covers:Vector = StickerSetCovered; +stickerSetFullCovered#1aed5ee5 set:StickerSet packs:Vector documents:Vector = StickerSetCovered; maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords; @@ -833,10 +841,11 @@ inputWebDocument#9bed434d url:string size:int mime_type:string attributes:Vector inputWebFileLocation#c239d686 url:string access_hash:long = InputWebFileLocation; inputWebFileGeoPointLocation#9f2221c9 geo_point:InputGeoPoint access_hash:long w:int h:int zoom:int scale:int = InputWebFileLocation; +inputWebFileAudioAlbumThumbLocation#f46fe924 flags:# document:flags.0?InputDocument title:flags.1?string performer:flags.1?string = InputWebFileLocation; upload.webFile#21e753bc size:int mime_type:string file_type:storage.FileType mtime:int bytes:bytes = upload.WebFile; -payments.paymentForm#b0133b37 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long title:string description:string photo:flags.5?WebDocument invoice:Invoice provider_id:long url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector = payments.PaymentForm; +payments.paymentForm#a0058751 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long title:string description:string photo:flags.5?WebDocument invoice:Invoice provider_id:long url:string native_provider:flags.4?string native_params:flags.4?DataJSON additional_methods:flags.6?Vector saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?Vector users:Vector = payments.PaymentForm; payments.validatedRequestedInfo#d1451883 flags:# id:flags.0?string shipping_options:flags.1?Vector = payments.ValidatedRequestedInfo; @@ -1378,6 +1387,13 @@ messages.transcribedAudio#93752c52 flags:# pending:flags.0?true transcription_id help.premiumPromo#8a4f3c29 status_text:string status_entities:Vector video_sections:Vector videos:Vector currency:string monthly_amount:long users:Vector = help.PremiumPromo; +inputStorePaymentPremiumSubscription#a6751e66 flags:# restore:flags.0?true = InputStorePaymentPurpose; +inputStorePaymentGiftPremium#616f7fe8 user_id:InputUser currency:string amount:long = InputStorePaymentPurpose; + +premiumGiftOption#74c34319 flags:# months:int currency:string amount:long bot_url:string store_product:flags.0?string = PremiumGiftOption; + +paymentFormMethod#88f8f21b url:string title:string = PaymentFormMethod; + ---functions--- invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X; @@ -1421,7 +1437,7 @@ account.checkUsername#2714d86c username:string = Bool; account.updateUsername#3e0bdd7c username:string = User; account.getPrivacy#dadbc950 key:InputPrivacyKey = account.PrivacyRules; account.setPrivacy#c9f81ce8 key:InputPrivacyKey rules:Vector = account.PrivacyRules; -account.deleteAccount#418d4e0b reason:string = Bool; +account.deleteAccount#a2c0cf74 flags:# reason:string password:flags.0?InputCheckPasswordSRP = Bool; account.getAccountTTL#8fc711d = AccountDaysTTL; account.setAccountTTL#2442485e ttl:AccountDaysTTL = Bool; account.sendChangePhoneCode#82574ae5 phone_number:string settings:CodeSettings = auth.SentCode; @@ -1559,7 +1575,7 @@ messages.getMessagesViews#5784d3e1 peer:InputPeer id:Vector increment:Bool messages.editChatAdmin#a85bd1c2 chat_id:long user_id:InputUser is_admin:Bool = Bool; messages.migrateChat#a2875319 chat_id:long = Updates; messages.searchGlobal#4bc6589a flags:# folder_id:flags.0?int q:string filter:MessagesFilter min_date:int max_date:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages; -messages.reorderStickerSets#78337739 flags:# masks:flags.0?true order:Vector = Bool; +messages.reorderStickerSets#78337739 flags:# masks:flags.0?true emojis:flags.1?true order:Vector = Bool; messages.getDocumentByHash#b1f2061f sha256:bytes size:long mime_type:string = Document; messages.getSavedGifs#5cf09635 hash:long = messages.SavedGifs; messages.saveGif#327a30cb id:InputDocument unsave:Bool = Bool; @@ -1579,7 +1595,7 @@ messages.readFeaturedStickers#5b118126 id:Vector = Bool; messages.getRecentStickers#9da9403b flags:# attached:flags.0?true hash:long = messages.RecentStickers; messages.saveRecentSticker#392718f8 flags:# attached:flags.0?true id:InputDocument unsave:Bool = Bool; messages.clearRecentStickers#8999602d flags:# attached:flags.0?true = Bool; -messages.getArchivedStickers#57f17692 flags:# masks:flags.0?true offset_id:long limit:int = messages.ArchivedStickers; +messages.getArchivedStickers#57f17692 flags:# masks:flags.0?true emojis:flags.1?true offset_id:long limit:int = messages.ArchivedStickers; messages.getMaskStickers#640f82b8 hash:long = messages.AllStickers; messages.getAttachedStickers#cc5b67cc media:InputStickeredMedia = Vector; messages.setGameScore#8ef8ecc0 flags:# edit_message:flags.0?true force:flags.1?true peer:InputPeer id:int user_id:InputUser score:int = Updates; @@ -1680,6 +1696,9 @@ messages.sendWebViewResultMessage#a4314f5 bot_query_id:string result:InputBotInl messages.sendWebViewData#dc0242c8 bot:InputUser random_id:long button_text:string data:string = Updates; messages.transcribeAudio#269e9a49 peer:InputPeer msg_id:int = messages.TranscribedAudio; messages.rateTranscribedAudio#7f1d072f peer:InputPeer msg_id:int transcription_id:long good:Bool = Bool; +messages.getCustomEmojiDocuments#d9ab0f54 document_id:Vector = Vector; +messages.getEmojiStickers#fbfca18f hash:long = messages.AllStickers; +messages.getFeaturedEmojiStickers#ecf6736 hash:long = messages.FeaturedStickers; updates.getState#edd4882a = updates.State; updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference; @@ -1783,9 +1802,9 @@ payments.getSavedInfo#227d824b = payments.SavedInfo; payments.clearSavedInfo#d83d70c1 flags:# credentials:flags.0?true info:flags.1?true = Bool; payments.getBankCardData#2e79d779 number:string = payments.BankCardData; payments.exportInvoice#f91b065 invoice_media:InputMedia = payments.ExportedInvoice; -payments.assignAppStoreTransaction#d5ccfd0 flags:# restore:flags.0?true receipt:bytes = Updates; -payments.assignPlayMarketTransaction#4faa4aed purchase_token:string = Updates; -payments.canPurchasePremium#aa6a90c8 = Bool; +payments.assignAppStoreTransaction#80ed747d receipt:bytes purpose:InputStorePaymentPurpose = Updates; +payments.assignPlayMarketTransaction#dffd50d3 receipt:DataJSON purpose:InputStorePaymentPurpose = Updates; +payments.canPurchasePremium#9fc19eb6 purpose:InputStorePaymentPurpose = Bool; payments.requestRecurringPayment#146e958d user_id:InputUser recurring_init_charge:string invoice_media:InputMedia = Updates; stickers.createStickerSet#9021ab67 flags:# masks:flags.0?true animated:flags.1?true videos:flags.4?true user_id:InputUser title:string short_name:string thumb:flags.2?InputDocument stickers:Vector software:flags.3?string = messages.StickerSet; diff --git a/td/telegram/AuthManager.cpp b/td/telegram/AuthManager.cpp index 97a1a2694..394319b17 100644 --- a/td/telegram/AuthManager.cpp +++ b/td/telegram/AuthManager.cpp @@ -401,7 +401,7 @@ void AuthManager::delete_account(uint64 query_id, const string &reason) { on_new_query(query_id); LOG(INFO) << "Deleting account"; start_net_query(NetQueryType::DeleteAccount, - G()->net_query_creator().create_unauth(telegram_api::account_deleteAccount(reason))); + G()->net_query_creator().create_unauth(telegram_api::account_deleteAccount(0, reason, nullptr))); } void AuthManager::on_closing(bool destroy_flag) { diff --git a/td/telegram/DocumentsManager.cpp b/td/telegram/DocumentsManager.cpp index f9e729683..e3065a381 100644 --- a/td/telegram/DocumentsManager.cpp +++ b/td/telegram/DocumentsManager.cpp @@ -110,6 +110,9 @@ Document DocumentsManager::on_get_document(RemoteDocument remote_document, Dialo case telegram_api::documentAttributeHasStickers::ID: has_stickers = true; break; + case telegram_api::documentAttributeCustomEmoji::ID: + // TODO + break; default: UNREACHABLE(); } diff --git a/td/telegram/MessageContent.cpp b/td/telegram/MessageContent.cpp index 83e6c3680..af40311de 100644 --- a/td/telegram/MessageContent.cpp +++ b/td/telegram/MessageContent.cpp @@ -4931,6 +4931,8 @@ unique_ptr get_action_message_content(Td *td, tl_object_ptr(action_ptr); return td::make_unique(std::move(action->text_), std::move(action->data_)); } + case telegram_api::messageActionGiftPremium::ID: + break; default: UNREACHABLE(); } diff --git a/td/telegram/MessageEntity.cpp b/td/telegram/MessageEntity.cpp index c3f947590..32c0297b8 100644 --- a/td/telegram/MessageEntity.cpp +++ b/td/telegram/MessageEntity.cpp @@ -3446,6 +3446,8 @@ vector get_message_entities(const ContactsManager *contacts_manag entities.emplace_back(entity->offset_, entity->length_, user_id); break; } + case telegram_api::messageEntityCustomEmoji::ID: + break; default: UNREACHABLE(); } diff --git a/td/telegram/Payments.cpp b/td/telegram/Payments.cpp index 15ea203f2..6e52bffcd 100644 --- a/td/telegram/Payments.cpp +++ b/td/telegram/Payments.cpp @@ -332,12 +332,12 @@ static tl_object_ptr convert_order_info( } static tl_object_ptr convert_saved_credentials( - tl_object_ptr saved_credentials) { - if (saved_credentials == nullptr) { + vector> saved_credentials) { + if (saved_credentials.empty()) { return nullptr; } - return make_tl_object(std::move(saved_credentials->id_), - std::move(saved_credentials->title_)); + return make_tl_object(std::move(saved_credentials[0]->id_), + std::move(saved_credentials[0]->title_)); } class GetPaymentFormQuery final : public Td::ResultHandler { diff --git a/td/telegram/Premium.cpp b/td/telegram/Premium.cpp index a834f85d8..feb598ebc 100644 --- a/td/telegram/Premium.cpp +++ b/td/telegram/Premium.cpp @@ -14,6 +14,7 @@ #include "td/telegram/Document.h" #include "td/telegram/DocumentsManager.h" #include "td/telegram/Global.h" +#include "td/telegram/JsonValue.h" #include "td/telegram/MessageEntity.h" #include "td/telegram/Td.h" #include "td/telegram/telegram_api.h" @@ -21,6 +22,7 @@ #include "td/utils/algorithm.h" #include "td/utils/buffer.h" +#include "td/utils/JsonBuilder.h" #include "td/utils/logging.h" #include "td/utils/misc.h" #include "td/utils/SliceBuilder.h" @@ -147,7 +149,8 @@ class CanPurchasePremiumQuery final : public Td::ResultHandler { } void send() { - send_query(G()->net_query_creator().create(telegram_api::payments_canPurchasePremium())); + send_query(G()->net_query_creator().create(telegram_api::payments_canPurchasePremium( + make_tl_object(0, false /*ignored*/)))); } void on_result(BufferSlice packet) final { @@ -178,10 +181,11 @@ class AssignAppStoreTransactionQuery final : public Td::ResultHandler { void send(const string &receipt, bool is_restore) { int32 flags = 0; if (is_restore) { - flags |= telegram_api::payments_assignAppStoreTransaction::RESTORE_MASK; + flags |= telegram_api::inputStorePaymentPremiumSubscription::RESTORE_MASK; } - send_query(G()->net_query_creator().create( - telegram_api::payments_assignAppStoreTransaction(flags, false /*ignored*/, BufferSlice(receipt)))); + send_query(G()->net_query_creator().create(telegram_api::payments_assignAppStoreTransaction( + BufferSlice(receipt), + make_tl_object(flags, false /*ignored*/)))); } void on_result(BufferSlice packet) final { @@ -208,7 +212,11 @@ class AssignPlayMarketTransactionQuery final : public Td::ResultHandler { } void send(const string &purchase_token) { - send_query(G()->net_query_creator().create(telegram_api::payments_assignPlayMarketTransaction(purchase_token))); + auto receipt = make_tl_object(string()); + receipt->data_ = + json_encode(json_object([&purchase_token](auto &o) { o("purchase_token", purchase_token); })); + send_query(G()->net_query_creator().create(telegram_api::payments_assignPlayMarketTransaction( + std::move(receipt), make_tl_object(0, false /*ignored*/)))); } void on_result(BufferSlice packet) final { diff --git a/td/telegram/PrivacyManager.cpp b/td/telegram/PrivacyManager.cpp index 6888fa85c..d1013c5f1 100644 --- a/td/telegram/PrivacyManager.cpp +++ b/td/telegram/PrivacyManager.cpp @@ -58,6 +58,9 @@ PrivacyManager::UserPrivacySetting::UserPrivacySetting(const telegram_api::Priva case telegram_api::privacyKeyAddedByPhone::ID: type_ = Type::FindByPhoneNumber; break; + case telegram_api::privacyKeyVoiceMessages::ID: + type_ = Type::UserStatus; // TODO + break; default: UNREACHABLE(); type_ = Type::UserStatus; diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index 02b422d0b..1d6a18e61 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -278,8 +278,8 @@ class GetArchivedStickerSetsQuery final : public Td::ResultHandler { if (is_masks_) { flags |= telegram_api::messages_getArchivedStickers::MASKS_MASK; } - send_query(G()->net_query_creator().create( - telegram_api::messages_getArchivedStickers(flags, is_masks /*ignored*/, offset_sticker_set_id.get(), limit))); + send_query(G()->net_query_creator().create(telegram_api::messages_getArchivedStickers( + flags, false /*ignored*/, false /*ignored*/, offset_sticker_set_id.get(), limit))); } void on_result(BufferSlice packet) final { @@ -650,7 +650,7 @@ class ReorderStickerSetsQuery final : public Td::ResultHandler { flags |= telegram_api::messages_reorderStickerSets::MASKS_MASK; } send_query(G()->net_query_creator().create(telegram_api::messages_reorderStickerSets( - flags, is_masks /*ignored*/, StickersManager::convert_sticker_set_ids(sticker_set_ids)))); + flags, false /*ignored*/, false /*ignored*/, StickersManager::convert_sticker_set_ids(sticker_set_ids)))); } void on_result(BufferSlice packet) final { @@ -3091,6 +3091,8 @@ StickerSetId StickersManager::on_get_sticker_set_covered(tl_object_ptr(action); @@ -3512,4 +3513,9 @@ void UpdatesManager::on_update(tl_object_ptr update, + Promise &&promise) { + promise.set_value(Unit()); +} + } // namespace td diff --git a/td/telegram/UpdatesManager.h b/td/telegram/UpdatesManager.h index 16882689a..a23a5c8b1 100644 --- a/td/telegram/UpdatesManager.h +++ b/td/telegram/UpdatesManager.h @@ -531,6 +531,8 @@ class UpdatesManager final : public Actor { void on_update(tl_object_ptr update, Promise &&promise); // unsupported updates + + void on_update(tl_object_ptr update, Promise &&promise); }; } // namespace td diff --git a/td/telegram/Version.h b/td/telegram/Version.h index ae69d2a30..7d74db9b8 100644 --- a/td/telegram/Version.h +++ b/td/telegram/Version.h @@ -10,7 +10,7 @@ namespace td { -constexpr int32 MTPROTO_LAYER = 143; +constexpr int32 MTPROTO_LAYER = 144; enum class Version : int32 { Initial, // 0