Check amounts of stars/TON.

This commit is contained in:
John Preston
2025-06-26 22:30:55 +04:00
parent 6f305c8974
commit 4840a9094b
24 changed files with 474 additions and 150 deletions

View File

@@ -1910,8 +1910,8 @@ void WebViewInstance::botSendPreparedMessage(
const auto checked = state->sendPayment.check(
uiShow(),
strong->peer(),
options,
1,
options.starsApproved,
withPaymentApproved);
if (!checked) {
return;
@@ -2545,8 +2545,8 @@ void ChooseAndSendLocation(
const auto checked = state->sendPayment.check(
strong,
action.history->peer,
action.options,
1,
action.options.starsApproved,
withPaymentApproved);
if (!checked) {
return;