Update layer 76.
GitOrigin-RevId: fe0ae4a97a6b05894e4a8cb3afe9251485eaeeb1
This commit is contained in:
parent
0c9249f7f6
commit
dd54e3cee0
@ -343,7 +343,7 @@ photos.photosSlice#15051f54 count:int photos:Vector<Photo> users:Vector<User> =
|
|||||||
photos.photo#20212ca8 photo:Photo users:Vector<User> = photos.Photo;
|
photos.photo#20212ca8 photo:Photo users:Vector<User> = photos.Photo;
|
||||||
|
|
||||||
upload.file#96a18d5 type:storage.FileType mtime:int bytes:bytes = upload.File;
|
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<CdnFileHash> = upload.File;
|
upload.fileCdnRedirect#f18cda44 dc_id:int file_token:bytes encryption_key:bytes encryption_iv:bytes file_hashes:Vector<FileHash> = 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;
|
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;
|
popularContact#5ce14175 client_id:long importers:int = PopularContact;
|
||||||
|
|
||||||
cdnFileHash#77eec38f offset:int limit:int hash:bytes = CdnFileHash;
|
|
||||||
|
|
||||||
messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers;
|
messages.favedStickersNotModified#9e8fa6d3 = messages.FavedStickers;
|
||||||
messages.favedStickers#f37f2f16 hash:int packs:Vector<StickerPack> stickers:Vector<Document> = messages.FavedStickers;
|
messages.favedStickers#f37f2f16 hash:int packs:Vector<StickerPack> stickers:Vector<Document> = messages.FavedStickers;
|
||||||
|
|
||||||
@ -838,7 +836,9 @@ inputDialogPeer#fcaafeb7 peer:InputPeer = InputDialogPeer;
|
|||||||
dialogPeer#e56dbf05 peer:Peer = DialogPeer;
|
dialogPeer#e56dbf05 peer:Peer = DialogPeer;
|
||||||
|
|
||||||
messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets;
|
messages.foundStickerSetsNotModified#d54b65d = messages.FoundStickerSets;
|
||||||
messages.foundStickerSets#b35bcea9 hash:int sets:Vector<StickerSet> = messages.FoundStickerSets;
|
messages.foundStickerSets#5108d648 hash:int sets:Vector<StickerSetCovered> = messages.FoundStickerSets;
|
||||||
|
|
||||||
|
fileHash#6242c773 offset:int limit:int hash:bytes = FileHash;
|
||||||
|
|
||||||
---functions---
|
---functions---
|
||||||
|
|
||||||
@ -931,6 +931,7 @@ messages.forwardMessages#708e0195 flags:# silent:flags.5?true background:flags.6
|
|||||||
messages.reportSpam#cf1592db peer:InputPeer = Bool;
|
messages.reportSpam#cf1592db peer:InputPeer = Bool;
|
||||||
messages.hideReportSpam#a8f1709b peer:InputPeer = Bool;
|
messages.hideReportSpam#a8f1709b peer:InputPeer = Bool;
|
||||||
messages.getPeerSettings#3672e09c peer:InputPeer = PeerSettings;
|
messages.getPeerSettings#3672e09c peer:InputPeer = PeerSettings;
|
||||||
|
messages.report#bd82b658 peer:InputPeer id:Vector<int> reason:ReportReason = Bool;
|
||||||
messages.getChats#3c6aa187 id:Vector<int> = messages.Chats;
|
messages.getChats#3c6aa187 id:Vector<int> = messages.Chats;
|
||||||
messages.getFullChat#3b831c66 chat_id:int = messages.ChatFull;
|
messages.getFullChat#3b831c66 chat_id:int = messages.ChatFull;
|
||||||
messages.editChatTitle#dc452855 chat_id:int title:string = Updates;
|
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.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.getWebFile#24e6818d location:InputWebFileLocation offset:int limit:int = upload.WebFile;
|
||||||
upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile;
|
upload.getCdnFile#2000bcc3 file_token:bytes offset:int limit:int = upload.CdnFile;
|
||||||
upload.reuploadCdnFile#1af91c09 file_token:bytes request_token:bytes = Vector<CdnFileHash>;
|
upload.reuploadCdnFile#9b2754a8 file_token:bytes request_token:bytes = Vector<FileHash>;
|
||||||
upload.getCdnFileHashes#f715c87b file_token:bytes offset:int = Vector<CdnFileHash>;
|
upload.getCdnFileHashes#4da54231 file_token:bytes offset:int = Vector<FileHash>;
|
||||||
|
upload.getFileHashes#c7025931 location:InputFileLocation offset:int = Vector<FileHash>;
|
||||||
|
|
||||||
help.getConfig#c4f9186b = Config;
|
help.getConfig#c4f9186b = Config;
|
||||||
help.getNearestDc#1fb33026 = NearestDc;
|
help.getNearestDc#1fb33026 = NearestDc;
|
||||||
|
Binary file not shown.
@ -125,7 +125,7 @@ Result<bool> FileDownloader::should_restart_part(Part part, NetQueryPtr &net_que
|
|||||||
cdn_dc_id_ = DcId::external(file->dc_id_);
|
cdn_dc_id_ = DcId::external(file->dc_id_);
|
||||||
cdn_encryption_key_ = file->encryption_key_.as_slice().str();
|
cdn_encryption_key_ = file->encryption_key_.as_slice().str();
|
||||||
cdn_encryption_iv_ = file->encryption_iv_.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) {
|
if (cdn_encryption_iv_.size() != 16 || cdn_encryption_key_.size() != 32) {
|
||||||
return Status::Error("Wrong ctr key or iv size");
|
return Status::Error("Wrong ctr key or iv size");
|
||||||
}
|
}
|
||||||
@ -391,7 +391,7 @@ Result<FileLoader::CheckInfo> FileDownloader::check_loop(int64 checked_prefix_si
|
|||||||
info.checked_prefix_size = checked_prefix_size;
|
info.checked_prefix_size = checked_prefix_size;
|
||||||
return std::move(info);
|
return std::move(info);
|
||||||
}
|
}
|
||||||
void FileDownloader::add_hash_info(const std::vector<telegram_api::object_ptr<telegram_api::cdnFileHash>> &hashes) {
|
void FileDownloader::add_hash_info(const std::vector<telegram_api::object_ptr<telegram_api::fileHash>> &hashes) {
|
||||||
for (auto &hash : hashes) {
|
for (auto &hash : hashes) {
|
||||||
//LOG(ERROR) << "ADD HASH " << hash->offset_ << "->" << hash->limit_;
|
//LOG(ERROR) << "ADD HASH " << hash->offset_ << "->" << hash->limit_;
|
||||||
HashInfo hash_info;
|
HashInfo hash_info;
|
||||||
|
@ -87,7 +87,7 @@ class FileDownloader : public FileLoader {
|
|||||||
FileLoader::Callback *get_callback() override;
|
FileLoader::Callback *get_callback() override;
|
||||||
Status process_check_query(NetQueryPtr net_query) override;
|
Status process_check_query(NetQueryPtr net_query) override;
|
||||||
Result<CheckInfo> check_loop(int64 checked_prefix_size, int64 ready_prefix_size, bool is_ready) override;
|
Result<CheckInfo> check_loop(int64 checked_prefix_size, int64 ready_prefix_size, bool is_ready) override;
|
||||||
void add_hash_info(const std::vector<telegram_api::object_ptr<telegram_api::cdnFileHash>> &hashes);
|
void add_hash_info(const std::vector<telegram_api::object_ptr<telegram_api::fileHash>> &hashes);
|
||||||
|
|
||||||
bool keep_fd_ = false;
|
bool keep_fd_ = false;
|
||||||
void keep_fd_flag(bool keep_fd) override;
|
void keep_fd_flag(bool keep_fd) override;
|
||||||
|
Reference in New Issue
Block a user