From dd54e3cee038a97ab55955ebde11ee0945779ddf Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 25 Feb 2018 21:56:16 +0300 Subject: [PATCH] Update layer 76. GitOrigin-RevId: fe0ae4a97a6b05894e4a8cb3afe9251485eaeeb1 --- td/generate/scheme/telegram_api.tl | 14 ++++++++------ td/generate/scheme/telegram_api.tlo | Bin 149268 -> 149584 bytes td/telegram/files/FileDownloader.cpp | 4 ++-- td/telegram/files/FileDownloader.h | 2 +- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/td/generate/scheme/telegram_api.tl b/td/generate/scheme/telegram_api.tl index 8f4829cc5..afc258b18 100644 --- a/td/generate/scheme/telegram_api.tl +++ b/td/generate/scheme/telegram_api.tl @@ -343,7 +343,7 @@ photos.photosSlice#15051f54 count:int photos:Vector users:Vector = photos.photo#20212ca8 photo:Photo users:Vector = photos.Photo; upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File; -upload.fileCdnRedirect#ea52fe5a dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes cdn_file_hashes:Vector = upload.File; +upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector = upload.File; dcOption#5d8c6cc flags:# ipv6:flags.0?true media_only:flags.1?true tcpo_only:flags.2?true cdn:flags.3?true static:flags.4?true id:int ip_address:string port:int = DcOption; @@ -810,8 +810,6 @@ channelAdminLogEventsFilter#ea107ae4 flags:# join:flags.0?true leave:flags.1?tru popularContact#5ce14175 client_id:long importers:int = PopularContact; -cdnFileHash#77eec38f offset:int limit:int hash:bytes = CdnFileHash; - messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers; messages.favedStickers#f37f2f16 hash:int packs:Vector stickers:Vector = messages.FavedStickers; @@ -838,7 +836,9 @@ inputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer; dialogPeer#e56dbf05 peer:Peer = DialogPeer; messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets; -messages.foundStickerSets#b35bcea9 hash:int sets:Vector = messages.FoundStickerSets; +messages.foundStickerSets#5108d648 hash:int sets:Vector = messages.FoundStickerSets; + +fileHash#6242c773 offset:int limit:int hash:bytes = FileHash; ---functions--- @@ -931,6 +931,7 @@ messages.forwardMessages#708e0195 flags:# silent:flags.5?true background:flags.6 messages.reportSpam#cf1592db peer:InputPeer = Bool; messages.hideReportSpam#a8f1709b peer:InputPeer = Bool; messages.getPeerSettings#3672e09c peer:InputPeer = PeerSettings; +messages.report#bd82b658 peer:InputPeer id:Vector reason:ReportReason = Bool; messages.getChats#3c6aa187 id:Vector = messages.Chats; messages.getFullChat#3b831c66 chat_id:int = messages.ChatFull; messages.editChatTitle#dc452855 chat_id:int title:string = Updates; @@ -1026,8 +1027,9 @@ upload.getFile#e3a6cfb5 location:InputFileLocation offset:int limit:int = upload 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; -upload.reuploadCdnFile#1af91c09 file_token:bytes request_token:bytes = Vector; -upload.getCdnFileHashes#f715c87b file_token:bytes offset:int = Vector; +upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector; +upload.getCdnFileHashes#4da54231 file_token:bytes offset:int = Vector; +upload.getFileHashes#c7025931 location:InputFileLocation offset:int = Vector; help.getConfig#c4f9186b = Config; help.getNearestDc#1fb33026 = NearestDc; diff --git a/td/generate/scheme/telegram_api.tlo b/td/generate/scheme/telegram_api.tlo index c2d1060b6e6a3a975a318ad57a9722dfecfcbed4..c1372d02b23b1da55da19ac6eb7e6311e1363c43 100644 GIT binary patch delta 547 zcmbQz$9Z7_=Y}PWo6j(Eu<;fjcS_=L%gjmjNG#5nEXX9i`3if26pLs=Ow48rr9CVx z6AwN6vH6GE3f|2orYAf^!0OYW>KPaqK>W!MuIo&GVB*38;xvD#-TtALaSgvO$c&rE zgnWRi7>ba8$2`dKFjnrcjc>Byu!y=4Pq03-MGn;RI_ zB|v_H83pqNNXvAIjf^iCe{N^o#JE36B4S(9UVgYgic$;mi%OavajQ;$V9F#jJ%F9b zVfqAfCV}Z8I~Y~A9}r=RVF!C*x`GVT5{PF`$S}=NWifPG>N`EfiKzt~meb!jF)4s! zV7h=aQwfH*3?rG2i$J}Vo>~Hn##CUyF^C@7Dgz1@rs*p=8KtKiI5Pp`$em-lfH0E? d#PAMhrZp@pLeytZw{T(V0gG)v;lkv@1OT1I!b$)D delta 473 zcmcaGfpbb9=Y}PW0{w^Im2*3%640lzQExSPj>d>DYB$eB%t!?x`pNDRaWfva*{F)PnSZPc7C<%P-AK z2`0@+J1Un%uu^?` z!Uo0?etw{@<3Z};Gk_tLIyv4%Rs!Tpn2|6qfwWE+*~s{U@%#3_8yWW}ZBG$pieU%4 zZn^4eM0p6bPi{x7I4T-pWw`-01ox(Z(NuZrdPNy i=}dD0>Hr&l#D!@M3#ZIasp%!IOg&%?+gaS0e3$?u@VDsz diff --git a/td/telegram/files/FileDownloader.cpp b/td/telegram/files/FileDownloader.cpp index 4d6237d66..a11641540 100644 --- a/td/telegram/files/FileDownloader.cpp +++ b/td/telegram/files/FileDownloader.cpp @@ -125,7 +125,7 @@ Result FileDownloader::should_restart_part(Part part, NetQueryPtr &net_que cdn_dc_id_ = DcId::external(file->dc_id_); cdn_encryption_key_ = file->encryption_key_.as_slice().str(); cdn_encryption_iv_ = file->encryption_iv_.as_slice().str(); - add_hash_info(file->cdn_file_hashes_); + add_hash_info(file->file_hashes_); if (cdn_encryption_iv_.size() != 16 || cdn_encryption_key_.size() != 32) { return Status::Error("Wrong ctr key or iv size"); } @@ -391,7 +391,7 @@ Result FileDownloader::check_loop(int64 checked_prefix_si info.checked_prefix_size = checked_prefix_size; return std::move(info); } -void FileDownloader::add_hash_info(const std::vector> &hashes) { +void FileDownloader::add_hash_info(const std::vector> &hashes) { for (auto &hash : hashes) { //LOG(ERROR) << "ADD HASH " << hash->offset_ << "->" << hash->limit_; HashInfo hash_info; diff --git a/td/telegram/files/FileDownloader.h b/td/telegram/files/FileDownloader.h index e85737e37..088d07717 100644 --- a/td/telegram/files/FileDownloader.h +++ b/td/telegram/files/FileDownloader.h @@ -87,7 +87,7 @@ class FileDownloader : public FileLoader { FileLoader::Callback *get_callback() override; Status process_check_query(NetQueryPtr net_query) override; Result check_loop(int64 checked_prefix_size, int64 ready_prefix_size, bool is_ready) override; - void add_hash_info(const std::vector> &hashes); + void add_hash_info(const std::vector> &hashes); bool keep_fd_ = false; void keep_fd_flag(bool keep_fd) override;