| 65 | } |
| 66 | |
| 67 | [[nodiscard]] int FindStarsForResale(const MTPVector<MTPStarsAmount> *list) { |
| 68 | if (!list) { |
| 69 | return 0; |
| 70 | } |
| 71 | for (const auto &amount : list->v) { |
| 72 | if (amount.type() == mtpc_starsAmount) { |
| 73 | return int(amount.c_starsAmount().vamount().v); |
| 74 | } |
| 75 | } |
| 76 | return 0; |
| 77 | } |
| 78 | |
| 79 | [[nodiscard]] int64 FindTonForResale(const MTPVector<MTPStarsAmount> *list) { |
| 80 | if (!list) { |