Update API scheme on layer 152.

This commit is contained in:
John Preston
2023-01-26 09:11:47 +04:00
parent 6bac662ee8
commit a58f9c6ebd
5 changed files with 27 additions and 12 deletions
+4 -2
View File
@@ -332,7 +332,8 @@ void PeerPhoto::ready(const FullMsgId &msgId, const MTPInputFile &file) {
MTP_flags(MTPDinputChatUploadedPhoto::Flag::f_file),
file,
MTPInputFile(), // video
MTPdouble()) // video_start_ts
MTPdouble(), // video_start_ts
MTPVideoSize()) // video_emoji_markup
)).done(applier).afterRequest(history->sendRequestId).send();
} else if (const auto channel = peer->asChannel()) {
const auto history = _session->data().history(channel);
@@ -342,7 +343,8 @@ void PeerPhoto::ready(const FullMsgId &msgId, const MTPInputFile &file) {
MTP_flags(MTPDinputChatUploadedPhoto::Flag::f_file),
file,
MTPInputFile(), // video
MTPdouble()) // video_start_ts
MTPdouble(), // video_start_ts
MTPVideoSize()) // video_emoji_markup
)).done(applier).afterRequest(history->sendRequestId).send();
} else if (const auto user = peer->asUser()) {
using Flag = MTPphotos_UploadContactProfilePhoto::Flag;