mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 23:45:44 +00:00
Update API scheme to layer 168. Giveaways.
This commit is contained in:
@@ -420,6 +420,8 @@ const std::vector<int> &PremiumGiftCodeOptions::availablePresets() const {
|
||||
}
|
||||
|
||||
[[nodiscard]] int PremiumGiftCodeOptions::monthsFromPreset(int monthsIndex) {
|
||||
Expects(monthsIndex >= 0 && monthsIndex < _availablePresets.size());
|
||||
|
||||
return _optionsForOnePerson.months[monthsIndex];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user