2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 22:46:10 +00:00

"Add {bot}" button in existing starrefs list.

This commit is contained in:
John Preston
2024-12-02 17:11:08 +04:00
parent 1e14667006
commit 82cec83d87
7 changed files with 128 additions and 30 deletions

View File

@@ -739,6 +739,9 @@ StarRefProgram ParseStarRefProgram(const MTPStarRefProgram *program) {
const auto &data = program->data();
result.commission = data.vcommission_permille().v;
result.durationMonths = data.vduration_months().value_or_empty();
result.revenuePerUser = data.vdaily_revenue_per_user()
? Data::FromTL(*data.vdaily_revenue_per_user())
: StarsAmount();
result.endDate = data.vend_date().value_or_empty();
return result;
}