2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Update API scheme on layer 166.

This commit is contained in:
John Preston
2023-10-13 16:17:02 +04:00
parent ef0539c9fc
commit f90a010b84
18 changed files with 106 additions and 39 deletions

View File

@@ -2155,7 +2155,8 @@ void ApiWrap::saveDraftsToCloud() {
ReplyToForMTP(history, cloudDraft->reply),
history->peer->input,
MTP_string(textWithTags.text),
entities
entities,
MTPInputMedia()
)).done([=](const MTPBool &result, const MTP::Response &response) {
const auto requestId = response.requestId;
history->finishSavingCloudDraft(
@@ -3628,8 +3629,11 @@ void ApiWrap::sendMessage(MessageToSend &&message) {
} else if (message.webPageId) {
auto page = _session->data().webpage(message.webPageId);
media = MTP_messageMediaWebPage(
MTP_flags(0),
MTP_webPagePending(
MTP_flags(0),
MTP_long(page->id),
MTPstring(), // url
MTP_int(page->pendingTill)));
}
const auto anonymousPost = peer->amAnonymous();