mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Update API scheme to layer 168. Giveaways.
This commit is contained in:
@@ -145,7 +145,13 @@ MTPinputStorePaymentPurpose InvoicePremiumGiftCodeGiveawayToTL(
|
||||
: Flag::f_additional_peers)
|
||||
| (giveaway.countries.empty()
|
||||
? Flag()
|
||||
: Flag::f_countries_iso2)),
|
||||
: Flag::f_countries_iso2)
|
||||
| (giveaway.showWinners
|
||||
? Flag::f_winners_are_visible
|
||||
: Flag())
|
||||
| (giveaway.additionalPrize.isEmpty()
|
||||
? Flag()
|
||||
: Flag::f_prize_description)),
|
||||
giveaway.boostPeer->input,
|
||||
MTP_vector_from_range(ranges::views::all(
|
||||
giveaway.additionalChannels
|
||||
@@ -157,6 +163,7 @@ MTPinputStorePaymentPurpose InvoicePremiumGiftCodeGiveawayToTL(
|
||||
) | ranges::views::transform([](QString value) {
|
||||
return MTP_string(value);
|
||||
})),
|
||||
MTP_string(giveaway.additionalPrize),
|
||||
MTP_long(invoice.randomId),
|
||||
MTP_int(giveaway.untilDate),
|
||||
MTP_string(invoice.currency),
|
||||
|
@@ -190,8 +190,10 @@ struct InvoicePremiumGiftCodeGiveaway {
|
||||
not_null<ChannelData*> boostPeer;
|
||||
std::vector<not_null<ChannelData*>> additionalChannels;
|
||||
std::vector<QString> countries;
|
||||
QString additionalPrize;
|
||||
TimeId untilDate = 0;
|
||||
bool onlyNewSubscribers = false;
|
||||
bool showWinners = false;
|
||||
};
|
||||
|
||||
struct InvoicePremiumGiftCodeUsers {
|
||||
|
Reference in New Issue
Block a user