From 20aa12caeab8111bb3323f2b58d6e84ced3e4992 Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 24 Jan 2025 18:06:31 +0300 Subject: [PATCH] Support starTransactionTypeGiftPurchase for chats. --- telegram-bot-api/Client.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index e5e0f31..82abc45 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -4358,8 +4358,9 @@ class Client::JsonStarTransactionType final : public td::Jsonable { break; } case td_api::messageSenderChat::ID: { - // auto owner_id = static_cast(type->owner_id_.get()); - object("type", "other"); + auto owner_id = static_cast(type->owner_id_.get()); + object("type", "chat"); + object("chat", JsonChat(owner_id->chat_id_, client_)); break; } default: