mirror of
https://github.com/tdlight-team/tdlight-telegram-bot-api.git
synced 2025-01-30 13:47:33 +01:00
Add Gift.upgrade_star_count.
This commit is contained in:
parent
bc771a3b2f
commit
bff46219ae
@ -4088,6 +4088,9 @@ class Client::JsonGift final : public td::Jsonable {
|
|||||||
object("id", td::to_string(gift_->id_));
|
object("id", td::to_string(gift_->id_));
|
||||||
object("sticker", JsonSticker(gift_->sticker_.get(), client_));
|
object("sticker", JsonSticker(gift_->sticker_.get(), client_));
|
||||||
object("star_count", gift_->star_count_);
|
object("star_count", gift_->star_count_);
|
||||||
|
if (gift_->upgrade_star_count_ > 0) {
|
||||||
|
object("upgrade_star_count", gift_->upgrade_star_count_);
|
||||||
|
}
|
||||||
if (gift_->total_count_ > 0) {
|
if (gift_->total_count_ > 0) {
|
||||||
object("remaining_count", gift_->remaining_count_);
|
object("remaining_count", gift_->remaining_count_);
|
||||||
object("total_count", gift_->total_count_);
|
object("total_count", gift_->total_count_);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user