Don't warn about bot payload for owned bots.

This commit is contained in:
levlam 2024-06-21 14:48:59 +03:00
parent 78aae0b3f3
commit ab0a1fc9ee

View File

@ -120,7 +120,8 @@ class GetStarsTransactionsQuery final : public Td::ResultHandler {
if (!transaction->bot_payload_.empty()) {
if (td_->auth_manager_->is_bot()) {
bot_payload = transaction->bot_payload_.as_slice().str();
} else {
} else if (dialog_id_.get_type() != DialogType::User ||
!td_->user_manager_->is_user_bot(dialog_id_.get_user_id())) {
LOG(ERROR) << "Receive Star transaction with bot payload";
}
}