From 76006f4a2e0a8afb58c0747a28d2849e4ce714ac Mon Sep 17 00:00:00 2001 From: levlam Date: Sun, 30 Jun 2024 13:26:14 +0300 Subject: [PATCH] Add "telegram_ads" transaction partner. --- telegram-bot-api/Client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index c26a74d..b48311a 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -3982,6 +3982,9 @@ class Client::JsonStarTransactionPartner final : public td::Jsonable { object("user", JsonUser(source_user->bot_user_id_, client_)); break; } + case td_api::starTransactionPartnerTelegramAds::ID: + object("type", "telegram_ads"); + break; case td_api::starTransactionPartnerTelegram::ID: case td_api::starTransactionPartnerAppStore::ID: case td_api::starTransactionPartnerGooglePlay::ID: @@ -3989,7 +3992,6 @@ class Client::JsonStarTransactionPartner final : public td::Jsonable { LOG(ERROR) << "Receive " << to_string(*source_); object("type", "other"); break; - case td_api::starTransactionPartnerTelegramAds::ID: case td_api::starTransactionPartnerUnsupported::ID: object("type", "other"); break;