2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

Update API scheme to layer 86.

This commit is contained in:
John Preston
2018-07-13 19:49:46 +03:00
parent b8b5ab6378
commit ee16070abe
26 changed files with 508 additions and 141 deletions

View File

@@ -4226,7 +4226,10 @@ void ApiWrap::uploadAlbumMedia(
: MTPDinputMediaPhoto::Flag(0));
const auto media = MTP_inputMediaPhoto(
MTP_flags(flags),
MTP_inputPhoto(photo.vid, photo.vaccess_hash),
MTP_inputPhoto(
photo.vid,
photo.vaccess_hash,
photo.vfile_reference),
data.has_ttl_seconds() ? data.vttl_seconds : MTPint());
sendAlbumWithUploaded(item, groupId, media);
} break;
@@ -4244,7 +4247,10 @@ void ApiWrap::uploadAlbumMedia(
: MTPDinputMediaDocument::Flag(0));
const auto media = MTP_inputMediaDocument(
MTP_flags(flags),
MTP_inputDocument(document.vid, document.vaccess_hash),
MTP_inputDocument(
document.vid,
document.vaccess_hash,
document.vfile_reference),
data.has_ttl_seconds() ? data.vttl_seconds : MTPint());
sendAlbumWithUploaded(item, groupId, media);
} break;