Add td_api::starTransactionSourceChannel.
This commit is contained in:
parent
5d73204805
commit
403c905cb1
@ -867,6 +867,9 @@ starTransactionSourceFragment withdrawal_state:RevenueWithdrawalState = StarTran
|
|||||||
//@description The transaction is a transaction with another user @user_id Identifier of the user @product_info Information about the bought product; may be null if none
|
//@description The transaction is a transaction with another user @user_id Identifier of the user @product_info Information about the bought product; may be null if none
|
||||||
starTransactionSourceUser user_id:int53 product_info:productInfo = StarTransactionSource;
|
starTransactionSourceUser user_id:int53 product_info:productInfo = StarTransactionSource;
|
||||||
|
|
||||||
|
//@description The transaction is a transaction with a channel chat @chat_id Identifier of the chat
|
||||||
|
starTransactionSourceChannel chat_id:int53 = StarTransactionSource;
|
||||||
|
|
||||||
//@description The transaction is a transaction with unknown source
|
//@description The transaction is a transaction with unknown source
|
||||||
starTransactionSourceUnsupported = StarTransactionSource;
|
starTransactionSourceUnsupported = StarTransactionSource;
|
||||||
|
|
||||||
|
@ -150,6 +150,10 @@ class GetStarsTransactionsQuery final : public Td::ResultHandler {
|
|||||||
td_->user_manager_->get_user_id_object(dialog_id.get_user_id(), "starTransactionSourceUser"),
|
td_->user_manager_->get_user_id_object(dialog_id.get_user_id(), "starTransactionSourceUser"),
|
||||||
std::move(product_info));
|
std::move(product_info));
|
||||||
}
|
}
|
||||||
|
if (td_->dialog_manager_->is_broadcast_channel(dialog_id)) {
|
||||||
|
return td_api::make_object<td_api::starTransactionSourceChannel>(
|
||||||
|
td_->dialog_manager_->get_chat_id_object(dialog_id, "starTransactionSourceUser"));
|
||||||
|
}
|
||||||
return td_api::make_object<td_api::starTransactionSourceUnsupported>();
|
return td_api::make_object<td_api::starTransactionSourceUnsupported>();
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user