Add td_api::starTransactionPartnerBusiness.
This commit is contained in:
parent
5f659c9b8c
commit
2eab9fc897
@ -890,7 +890,7 @@ starTransactionDirectionOutgoing = StarTransactionDirection;
|
|||||||
|
|
||||||
//@class BotTransactionPurpose @description Describes purpose of a transaction with a bot
|
//@class BotTransactionPurpose @description Describes purpose of a transaction with a bot
|
||||||
|
|
||||||
//@description Paid media were bought @media The bought media if they are still accessible
|
//@description Paid media were bought @media The bought media if the trancastion wasn't refunded
|
||||||
botTransactionPurposePaidMedia media:vector<PaidMedia> = BotTransactionPurpose;
|
botTransactionPurposePaidMedia media:vector<PaidMedia> = BotTransactionPurpose;
|
||||||
|
|
||||||
//@description User bought a product from the bot
|
//@description User bought a product from the bot
|
||||||
@ -903,7 +903,7 @@ botTransactionPurposeInvoicePayment product_info:productInfo invoice_payload:byt
|
|||||||
|
|
||||||
//@description Paid media were bought
|
//@description Paid media were bought
|
||||||
//@message_id Identifier of the corresponding message with paid media; can be an identifier of a deleted message
|
//@message_id Identifier of the corresponding message with paid media; can be an identifier of a deleted message
|
||||||
//@media The bought media if they are still accessible
|
//@media The bought media if the trancastion wasn't refunded
|
||||||
channelTransactionPurposePaidMedia message_id:int53 media:vector<PaidMedia> = ChannelTransactionPurpose;
|
channelTransactionPurposePaidMedia message_id:int53 media:vector<PaidMedia> = ChannelTransactionPurpose;
|
||||||
|
|
||||||
//@description User joined the channel and subscribed to regular payments in Telegram Stars
|
//@description User joined the channel and subscribed to regular payments in Telegram Stars
|
||||||
@ -935,6 +935,9 @@ starTransactionPartnerTelegramAds = StarTransactionPartner;
|
|||||||
//@description The transaction is a transaction with a bot @user_id Identifier of the bot @purpose Purpose of the transaction
|
//@description The transaction is a transaction with a bot @user_id Identifier of the bot @purpose Purpose of the transaction
|
||||||
starTransactionPartnerBot user_id:int53 purpose:BotTransactionPurpose = StarTransactionPartner;
|
starTransactionPartnerBot user_id:int53 purpose:BotTransactionPurpose = StarTransactionPartner;
|
||||||
|
|
||||||
|
//@description The transaction is a transaction with a business account @user_id Identifier of the business account user @media The bought media if the trancastion wasn't refunded
|
||||||
|
starTransactionPartnerBusiness user_id:int53 media:vector<PaidMedia> = StarTransactionPartner;
|
||||||
|
|
||||||
//@description The transaction is a transaction with a channel chat @chat_id Identifier of the chat @purpose Purpose of the transaction
|
//@description The transaction is a transaction with a channel chat @chat_id Identifier of the chat @purpose Purpose of the transaction
|
||||||
starTransactionPartnerChannel chat_id:int53 purpose:ChannelTransactionPurpose = StarTransactionPartner;
|
starTransactionPartnerChannel chat_id:int53 purpose:ChannelTransactionPurpose = StarTransactionPartner;
|
||||||
|
|
||||||
|
@ -279,6 +279,11 @@ class GetStarsTransactionsQuery final : public Td::ResultHandler {
|
|||||||
td_->stickers_manager_->get_premium_gift_sticker_object(
|
td_->stickers_manager_->get_premium_gift_sticker_object(
|
||||||
StarManager::get_months_by_star_count(star_count)));
|
StarManager::get_months_by_star_count(star_count)));
|
||||||
}
|
}
|
||||||
|
if (!transaction->extended_media_.empty()) { // TODO
|
||||||
|
return td_api::make_object<td_api::starTransactionPartnerBusiness>(
|
||||||
|
td_->user_manager_->get_user_id_object(user_id, "starTransactionPartnerBusiness"),
|
||||||
|
get_paid_media_objects(DialogId(user_id)));
|
||||||
|
}
|
||||||
LOG(ERROR) << "Receive Telegram Star transaction with " << user_id;
|
LOG(ERROR) << "Receive Telegram Star transaction with " << user_id;
|
||||||
return td_api::make_object<td_api::starTransactionPartnerUnsupported>();
|
return td_api::make_object<td_api::starTransactionPartnerUnsupported>();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user