2
0
mirror of https://github.com/tdlib/telegram-bot-api synced 2025-08-23 02:17:39 +00:00

Support starTransactionTypeGiftPurchase for chats.

This commit is contained in:
levlam 2025-01-24 18:06:31 +03:00
parent 77b488e188
commit 20aa12caea

View File

@ -4358,8 +4358,9 @@ class Client::JsonStarTransactionType final : public td::Jsonable {
break; break;
} }
case td_api::messageSenderChat::ID: { case td_api::messageSenderChat::ID: {
// auto owner_id = static_cast<const td_api::messageSenderChat *>(type->owner_id_.get()); auto owner_id = static_cast<const td_api::messageSenderChat *>(type->owner_id_.get());
object("type", "other"); object("type", "chat");
object("chat", JsonChat(owner_id->chat_id_, client_));
break; break;
} }
default: default: