2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

Update API scheme, rich preview drafts.

This commit is contained in:
John Preston
2023-10-19 18:20:27 +04:00
parent b2e8e0431e
commit b1823d981b
21 changed files with 268 additions and 174 deletions

View File

@@ -787,7 +787,7 @@ void SessionNavigation::applyBoostChecked(
MTP_flags(0),
MTPVector<MTPint>(), // slots
channel->input
)).done([=](const MTPBool &result) {
)).done([=](const MTPpremium_MyBoosts &result) {
done(true);
}).fail([=](const MTP::Error &error) {
showToast(u"Error: "_q + error.type());
@@ -1556,7 +1556,7 @@ bool SessionController::switchInlineQuery(
textWithTags,
to.currentReplyTo,
cursor,
Data::PreviewState::Allowed);
Data::WebPageDraft());
auto params = Window::SectionShow();
params.reapplyLocalDraft = true;