2
0
mirror of https://github.com/tdlib/telegram-bot-api synced 2025-08-22 18:08:31 +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;
}
case td_api::messageSenderChat::ID: {
// auto owner_id = static_cast<const td_api::messageSenderChat *>(type->owner_id_.get());
object("type", "other");
auto owner_id = static_cast<const td_api::messageSenderChat *>(type->owner_id_.get());
object("type", "chat");
object("chat", JsonChat(owner_id->chat_id_, client_));
break;
}
default: