Skip to content

Commit ce6d656

Browse files
committed
Fix donate via inline button callback by passing an int for the amount.
1 parent 67cb895 commit ce6d656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/DonateCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static function handleCallbackQuery(CallbackQuery $callback_query, array
7070
{
7171
self::createPaymentInvoice(
7272
$callback_query->getFrom()->getId(),
73-
$callback_data['amount'],
73+
(int) $callback_data['amount'],
7474
$callback_data['currency']
7575
);
7676

0 commit comments

Comments
 (0)