Minor improvements.

This commit is contained in:
levlam 2024-05-27 13:06:51 +03:00
parent 4079658376
commit 7150f71552
4 changed files with 7 additions and 5 deletions

View File

@ -2727,7 +2727,7 @@ validatedOrderInfo order_info_id:string shipping_options:vector<shippingOption>
paymentResult success:Bool verification_url:string = PaymentResult;
//@class PaymentReceiptType @description Describes type of a successful payment
//@class PaymentReceiptType @description Describes type of successful payment
//@description The payment was done using a third-party payment provider
//@payment_provider_user_id User identifier of the payment provider bot

View File

@ -455,7 +455,7 @@ class GetPaymentFormQuery final : public Td::ResultHandler {
case telegram_api::payments_paymentForm::ID: {
auto payment_form = telegram_api::move_object_as<telegram_api::payments_paymentForm>(payment_form_ptr);
td_->user_manager_->on_get_users(std::move(payment_form->users_), "GetPaymentFormQuery");
td_->user_manager_->on_get_users(std::move(payment_form->users_), "GetPaymentFormQuery 1");
UserId payments_provider_user_id(payment_form->provider_id_);
if (!payments_provider_user_id.is_valid()) {
@ -496,7 +496,7 @@ class GetPaymentFormQuery final : public Td::ResultHandler {
case telegram_api::payments_paymentFormStars::ID: {
auto payment_form = telegram_api::move_object_as<telegram_api::payments_paymentFormStars>(payment_form_ptr);
td_->user_manager_->on_get_users(std::move(payment_form->users_), "GetPaymentFormQuery");
td_->user_manager_->on_get_users(std::move(payment_form->users_), "GetPaymentFormQuery 2");
UserId seller_bot_user_id(payment_form->bot_id_);
if (!seller_bot_user_id.is_valid()) {
@ -718,7 +718,7 @@ class GetPaymentReceiptQuery final : public Td::ResultHandler {
case telegram_api::payments_paymentReceiptStars::ID: {
auto payment_receipt = telegram_api::move_object_as<telegram_api::payments_paymentReceiptStars>(ptr);
td_->user_manager_->on_get_users(std::move(payment_receipt->users_), "GetPaymentReceiptQuery");
td_->user_manager_->on_get_users(std::move(payment_receipt->users_), "GetPaymentReceiptQuery 1");
UserId seller_bot_user_id(payment_receipt->bot_id_);
if (!seller_bot_user_id.is_valid()) {
LOG(ERROR) << "Receive invalid seller " << seller_bot_user_id;
@ -741,7 +741,7 @@ class GetPaymentReceiptQuery final : public Td::ResultHandler {
case telegram_api::payments_paymentReceipt::ID: {
auto payment_receipt = telegram_api::move_object_as<telegram_api::payments_paymentReceipt>(ptr);
td_->user_manager_->on_get_users(std::move(payment_receipt->users_), "GetPaymentReceiptQuery");
td_->user_manager_->on_get_users(std::move(payment_receipt->users_), "GetPaymentReceiptQuery 2");
UserId payments_provider_user_id(payment_receipt->provider_id_);
if (!payments_provider_user_id.is_valid()) {

View File

@ -8,6 +8,7 @@
#include "td/telegram/MessageFullId.h"
#include "td/telegram/td_api.h"
#include "td/telegram/UserId.h"
#include "td/utils/common.h"
#include "td/utils/Promise.h"

View File

@ -23,6 +23,7 @@
#include "td/telegram/MessageSender.h"
#include "td/telegram/MessagesManager.h"
#include "td/telegram/misc.h"
#include "td/telegram/Photo.h"
#include "td/telegram/PremiumGiftOption.h"
#include "td/telegram/ServerMessageId.h"
#include "td/telegram/SuggestedAction.h"