@@ -288,6 +288,7 @@ bool Client::init_methods() {
288
288
methods_.emplace("removebusinessaccountprofilephoto", &Client::process_remove_business_account_profile_photo_query);
289
289
methods_.emplace("setbusinessaccountgiftsettings", &Client::process_set_business_account_gift_settings_query);
290
290
methods_.emplace("getbusinessaccountstarbalance", &Client::process_get_business_account_star_balance_query);
291
+ methods_.emplace("transferbusinessaccountstars", &Client::process_transfer_business_account_stars_query);
291
292
methods_.emplace("getbusinessaccountgifts", &Client::process_get_business_account_gifts_query);
292
293
methods_.emplace("convertgifttostars", &Client::process_convert_gift_to_stars_query);
293
294
methods_.emplace("upgradegift", &Client::process_upgrade_gift_query);
@@ -12729,6 +12730,18 @@ td::Status Client::process_get_business_account_star_balance_query(PromisedQuery
12729
12730
return td::Status::OK();
12730
12731
}
12731
12732
12733
+ td::Status Client::process_transfer_business_account_stars_query(PromisedQueryPtr &query) {
12734
+ auto business_connection_id = query->arg("business_connection_id").str();
12735
+ auto star_count = get_integer_arg(query.get(), "star_count", 0, 0, 1000000000);
12736
+ check_business_connection(
12737
+ business_connection_id, std::move(query),
12738
+ [this, star_count](const BusinessConnection *business_connection, PromisedQueryPtr query) {
12739
+ send_request(make_object<td_api::transferBusinessAccountStars>(business_connection->id_, star_count),
12740
+ td::make_unique<TdOnOkQueryCallback>(std::move(query)));
12741
+ });
12742
+ return td::Status::OK();
12743
+ }
12744
+
12732
12745
td::Status Client::process_get_business_account_gifts_query(PromisedQueryPtr &query) {
12733
12746
auto business_connection_id = query->arg("business_connection_id").str();
12734
12747
check_business_connection(business_connection_id, std::move(query),
0 commit comments