diff --git a/Telegram/Resources/scheme.tl b/Telegram/Resources/scheme.tl index 18d087395..04f2a3bb9 100644 --- a/Telegram/Resources/scheme.tl +++ b/Telegram/Resources/scheme.tl @@ -312,8 +312,6 @@ photoStrippedSize#e0b0bc2e type:string bytes:bytes = PhotoSize; geoPointEmpty#1117dd5f = GeoPoint; geoPoint#296f104 long:double lat:double access_hash:long = GeoPoint; -auth.checkedPhone#811ea28e phone_registered:Bool = auth.CheckedPhone; - auth.sentCode#5e002502 flags:# type:auth.SentCodeType phone_code_hash:string next_type:flags.1?auth.CodeType timeout:flags.2?int = auth.SentCode; auth.authorization#cd050916 flags:# tmp_sessions:flags.0?int user:User = auth.Authorization; @@ -637,6 +635,7 @@ chatInvite#dfc2f58e flags:# channel:flags.0?true broadcast:flags.1?true public:f inputStickerSetEmpty#ffb62b95 = InputStickerSet; inputStickerSetID#9de7a269 id:long access_hash:long = InputStickerSet; inputStickerSetShortName#861cc8a0 short_name:string = InputStickerSet; +inputStickerSetAnimatedEmoji#28703c8 = InputStickerSet; stickerSet#eeb46f27 flags:# archived:flags.1?true official:flags.2?true masks:flags.3?true animated:flags.5?true installed_date:flags.0?int id:long access_hash:long title:string short_name:string thumb:flags.4?PhotoSize thumb_dc_id:flags.4?int count:int hash:int = StickerSet; @@ -1145,7 +1144,7 @@ inputWallPaperSlug#72091c80 slug:string = InputWallPaper; account.wallPapersNotModified#1c199183 = account.WallPapers; account.wallPapers#702b65a9 hash:int wallpapers:Vector = account.WallPapers; -codeSettings#302f59f3 flags:# allow_flashcall:flags.0?true current_number:flags.1?true app_hash_persistent:flags.2?true app_hash:flags.3?string = CodeSettings; +codeSettings#debebe83 flags:# allow_flashcall:flags.0?true current_number:flags.1?true allow_app_hash:flags.4?true = CodeSettings; wallPaperSettings#a12f40b8 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int intensity:flags.3?int = WallPaperSettings; @@ -1411,7 +1410,7 @@ photos.deletePhotos#87cf7f2f id:Vector = Vector; photos.getUserPhotos#91cd32a8 user_id:InputUser offset:int max_id:long limit:int = photos.Photos; upload.saveFilePart#b304a621 file_id:long file_part:int bytes:bytes = Bool; -upload.getFile#e3a6cfb5 location:InputFileLocation offset:int limit:int = upload.File; +upload.getFile#b15a9afc flags:# precise:flags.0?true location:InputFileLocation offset:int limit:int = upload.File; upload.saveBigFilePart#de7b673d file_id:long file_part:int file_total_parts:int bytes:bytes = Bool; upload.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile; upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile; diff --git a/Telegram/SourceFiles/boxes/change_phone_box.cpp b/Telegram/SourceFiles/boxes/change_phone_box.cpp index 8b30c7b19..a422ed832 100644 --- a/Telegram/SourceFiles/boxes/change_phone_box.cpp +++ b/Telegram/SourceFiles/boxes/change_phone_box.cpp @@ -163,9 +163,7 @@ void ChangePhoneBox::EnterPhone::submit() { _requestId = MTP::send( MTPaccount_SendChangePhoneCode( MTP_string(phoneNumber), - MTP_codeSettings( - MTP_flags(0), - MTPstring())), + MTP_codeSettings(MTP_flags(0))), rpcDone(crl::guard(this, [=]( const MTPauth_SentCode &result) { return sendPhoneDone(phoneNumber, result); diff --git a/Telegram/SourceFiles/boxes/confirm_phone_box.cpp b/Telegram/SourceFiles/boxes/confirm_phone_box.cpp index 5c633abe7..60437db1a 100644 --- a/Telegram/SourceFiles/boxes/confirm_phone_box.cpp +++ b/Telegram/SourceFiles/boxes/confirm_phone_box.cpp @@ -219,9 +219,7 @@ void ConfirmPhoneBox::checkPhoneAndHash() { _sendCodeRequestId = MTP::send( MTPaccount_SendConfirmPhoneCode( MTP_string(_hash), - MTP_codeSettings( - MTP_flags(0), - MTPstring())), + MTP_codeSettings(MTP_flags(0))), rpcDone(&ConfirmPhoneBox::sendCodeDone), rpcFail(&ConfirmPhoneBox::sendCodeFail)); } diff --git a/Telegram/SourceFiles/boxes/sticker_set_box.cpp b/Telegram/SourceFiles/boxes/sticker_set_box.cpp index a7e0c1292..cea970463 100644 --- a/Telegram/SourceFiles/boxes/sticker_set_box.cpp +++ b/Telegram/SourceFiles/boxes/sticker_set_box.cpp @@ -223,6 +223,7 @@ StickerSetBox::Inner::Inner( }, [&](const MTPDinputStickerSetShortName &data) { _setShortName = qs(data.vshort_name()); }, [&](const MTPDinputStickerSetEmpty &) { + }, [&](const MTPDinputStickerSetAnimatedEmoji &) { }); _mtp.request(MTPmessages_GetStickerSet( diff --git a/Telegram/SourceFiles/data/data_document.cpp b/Telegram/SourceFiles/data/data_document.cpp index 9a13d7855..09078cc2d 100644 --- a/Telegram/SourceFiles/data/data_document.cpp +++ b/Telegram/SourceFiles/data/data_document.cpp @@ -1134,6 +1134,8 @@ bool DocumentData::isStickerSetInstalled() const { return false; }, [&](const MTPDinputStickerSetEmpty &) { return false; + }, [&](const MTPDinputStickerSetAnimatedEmoji &) { + return false; }); } diff --git a/Telegram/SourceFiles/export/export_api_wrap.cpp b/Telegram/SourceFiles/export/export_api_wrap.cpp index dc2b91b40..ef8f938c6 100644 --- a/Telegram/SourceFiles/export/export_api_wrap.cpp +++ b/Telegram/SourceFiles/export/export_api_wrap.cpp @@ -380,6 +380,7 @@ auto ApiWrap::fileRequest(const Data::FileLocation &location, int offset) { return std::move(_mtp.request(MTPInvokeWithTakeout( MTP_long(*_takeoutId), MTPupload_GetFile( + MTP_flags(0), location.data, MTP_int(offset), MTP_int(kFileChunkSize)) diff --git a/Telegram/SourceFiles/intro/introphone.cpp b/Telegram/SourceFiles/intro/introphone.cpp index 8bd1716b7..74612fbc3 100644 --- a/Telegram/SourceFiles/intro/introphone.cpp +++ b/Telegram/SourceFiles/intro/introphone.cpp @@ -122,9 +122,7 @@ void PhoneWidget::submit() { MTP_string(_sentPhone), MTP_int(ApiId), MTP_string(ApiHash), - MTP_codeSettings( - MTP_flags(0), - MTPstring())), + MTP_codeSettings(MTP_flags(0))), rpcDone(&PhoneWidget::phoneSubmitDone), rpcFail(&PhoneWidget::phoneSubmitFail)); } diff --git a/Telegram/SourceFiles/mtproto/dedicated_file_loader.cpp b/Telegram/SourceFiles/mtproto/dedicated_file_loader.cpp index bf646e394..ab65b0b17 100644 --- a/Telegram/SourceFiles/mtproto/dedicated_file_loader.cpp +++ b/Telegram/SourceFiles/mtproto/dedicated_file_loader.cpp @@ -309,7 +309,11 @@ void DedicatedLoader::sendRequest() { const auto offset = _offset; _requests.push_back({ offset }); _mtp.send( - MTPupload_GetFile(_location, MTP_int(offset), MTP_int(kChunkSize)), + MTPupload_GetFile( + MTP_flags(0), + _location, + MTP_int(offset), + MTP_int(kChunkSize)), [=](const MTPupload_File &result) { gotPart(offset, result); }, failHandler(), MTP::updaterDcId(_dcId)); diff --git a/Telegram/SourceFiles/passport/passport_form_controller.cpp b/Telegram/SourceFiles/passport/passport_form_controller.cpp index 8e0f8a3ad..961f84132 100644 --- a/Telegram/SourceFiles/passport/passport_form_controller.cpp +++ b/Telegram/SourceFiles/passport/passport_form_controller.cpp @@ -2084,9 +2084,7 @@ QString FormController::getPlainTextFromValue( void FormController::startPhoneVerification(not_null value) { value->verification.requestId = request(MTPaccount_SendVerifyPhoneCode( MTP_string(getPhoneFromValue(value)), - MTP_codeSettings( - MTP_flags(0), - MTPstring()) + MTP_codeSettings(MTP_flags(0)) )).done([=](const MTPauth_SentCode &result) { Expects(result.type() == mtpc_auth_sentCode); diff --git a/Telegram/SourceFiles/storage/file_download.cpp b/Telegram/SourceFiles/storage/file_download.cpp index f823260b0..2c02be5a0 100644 --- a/Telegram/SourceFiles/storage/file_download.cpp +++ b/Telegram/SourceFiles/storage/file_download.cpp @@ -782,6 +782,7 @@ mtpRequestId mtpFileLoader::sendRequest(const RequestData &requestData) { }, [&](const StorageFileLocation &location) { return MTP::send( MTPupload_GetFile( + MTP_flags(0), location.tl(session().userId()), MTP_int(offset), MTP_int(limit)), diff --git a/Telegram/SourceFiles/ui/image/image_location.cpp b/Telegram/SourceFiles/ui/image/image_location.cpp index f72b5ac92..3ec575023 100644 --- a/Telegram/SourceFiles/ui/image/image_location.cpp +++ b/Telegram/SourceFiles/ui/image/image_location.cpp @@ -157,7 +157,10 @@ StorageFileLocation::StorageFileLocation( _id = data.vid().v; _accessHash = data.vaccess_hash().v; }, [&](const MTPDinputStickerSetShortName &data) { - Unexpected("inputStickerSetShortName in StorageFileLocation()."); + Unexpected("inputStickerSetShortName in StorageFileLocation."); + }, [&](const MTPDinputStickerSetAnimatedEmoji &data) { + Unexpected( + "inputStickerSetAnimatedEmoji in StorageFileLocation."); }); _volumeId = data.vvolume_id().v; _localId = data.vlocal_id().v;