diff --git a/src/Telegram/Types/Message.php b/src/Telegram/Types/Message.php index 7341005..ba2c744 100644 --- a/src/Telegram/Types/Message.php +++ b/src/Telegram/Types/Message.php @@ -310,7 +310,7 @@ protected function mapSubObjects(string $key, array $data): TelegramTypes case 'invoice': return new Invoice($data, $this->logger); case 'successful_payment': - return new SuccessFulPayment($data, $this->logger); + return new SuccessfulPayment($data, $this->logger); } // Return always null if none of the objects above matches