diff options
author | John Preston <johnprestonmail@gmail.com> | 2023-10-11 09:32:59 +0400 |
---|---|---|
committer | John Preston <johnprestonmail@gmail.com> | 2023-10-26 14:08:40 +0400 |
commit | 0926bb1288404c8d5955e1cf09775fa1e0d94187 (patch) | |
tree | 34622627b20e39c3cc668297b915b2d5e7987db8 /Telegram/SourceFiles/payments/payments_form.cpp | |
parent | e13768ea50d5188ee8a8f4d762557ad6a5ed3c03 (diff) |
Update API scheme on layer 166.
Diffstat (limited to 'Telegram/SourceFiles/payments/payments_form.cpp')
-rw-r--r-- | Telegram/SourceFiles/payments/payments_form.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Telegram/SourceFiles/payments/payments_form.cpp b/Telegram/SourceFiles/payments/payments_form.cpp index 37bb927a8f..6099314bed 100644 --- a/Telegram/SourceFiles/payments/payments_form.cpp +++ b/Telegram/SourceFiles/payments/payments_form.cpp @@ -316,13 +316,21 @@ MTPInputInvoice Form::inputInvoice() const { : Flag()) | (giveaway.additionalChannels.empty() ? Flag() - : Flag::f_additional_peers)), + : Flag::f_additional_peers) + | (giveaway.countries.empty() + ? Flag() + : Flag::f_countries_iso2)), giveaway.boostPeer->input, MTP_vector<MTPInputPeer>(ranges::views::all( giveaway.additionalChannels ) | ranges::views::transform([](not_null<ChannelData*> c) { return MTPInputPeer(c->input); }) | ranges::to<QVector>()), + MTP_vector<MTPstring>(ranges::views::all( + giveaway.countries + ) | ranges::views::transform([](QString value) { + return MTP_string(value); + }) | ranges::to<QVector>()), MTP_long(giftCode.randomId), MTP_int(giveaway.untilDate), MTP_string(giftCode.currency), |