diff --git a/src/TgBotLib/Enums/UpdateEventType.php b/src/TgBotLib/Enums/UpdateEventType.php index f9aa8a5..09db5ac 100644 --- a/src/TgBotLib/Enums/UpdateEventType.php +++ b/src/TgBotLib/Enums/UpdateEventType.php @@ -108,9 +108,9 @@ return UpdateEventType::PRE_CHECKOUT_QUERY; } - if($update->getPreCheckoutQuery() !== null) + if($update->getShippingQuery() !== null) { - return UpdateEventType::PRE_CHECKOUT_QUERY; + return UpdateEventType::SHIPPING_QUERY; } if($update->getCallbackQuery() !== null)