2
0
mirror of https://github.com/tdlib/telegram-bot-api synced 2025-08-22 01:49:24 +00:00

Fix JsonStarAmount.

This commit is contained in:
levlam 2025-05-01 01:37:09 +03:00
parent 20da7d23f2
commit e0d481aa9d

View File

@ -4531,9 +4531,9 @@ class Client::JsonStarAmount final : public td::Jsonable {
}
void store(td::JsonValueScope *scope) const {
auto object = scope->enter_object();
object("star_count", amount_->star_count_);
object("amount", amount_->star_count_);
if (amount_->nanostar_count_ != 0) {
object("nanostar_count", amount_->nanostar_count_);
object("nanostar_amount", amount_->nanostar_count_);
}
}