MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / FindTonForResale

Function FindTonForResale

Telegram/SourceFiles/api/api_premium.cpp:79–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79[[nodiscard]] int64 FindTonForResale(const MTPVector<MTPStarsAmount> *list) {
80 if (!list) {
81 return 0;
82 }
83 for (const auto &amount : list->v) {
84 if (amount.type() == mtpc_starsTonAmount) {
85 return int64(amount.c_starsTonAmount().vamount().v);
86 }
87 }
88 return 0;
89}
90
91} // namespace
92

Callers 1

FromTLFunction · 0.85

Calls 1

typeMethod · 0.45

Tested by

no test coverage detected