From 03b1f158d969542190a41dce58d3d0ce100b0947 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 30 Nov 2025 17:10:00 +0300 Subject: [PATCH] Disabled api version #16 --- src/Api.php | 6 +++--- src/Laravel/MaxBotServiceProvider.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Api.php b/src/Api.php index 86419cb..3917eff 100644 --- a/src/Api.php +++ b/src/Api.php @@ -48,9 +48,9 @@ use RuntimeException; */ class Api { - public const string LIBRARY_VERSION = '1.3.2'; + public const string LIBRARY_VERSION = '1.3.3'; - public const string API_VERSION = '0.0.6'; + public const string API_VERSION = '1.2.5'; private const string API_BASE_URL = 'https://platform-api.max.ru'; @@ -128,7 +128,7 @@ class Api $httpFactory, $httpFactory, self::API_BASE_URL, - self::API_VERSION, + null, $this->logger, ); } diff --git a/src/Laravel/MaxBotServiceProvider.php b/src/Laravel/MaxBotServiceProvider.php index a089ef9..0c8df1f 100644 --- a/src/Laravel/MaxBotServiceProvider.php +++ b/src/Laravel/MaxBotServiceProvider.php @@ -76,8 +76,8 @@ class MaxBotServiceProvider extends ServiceProvider $guzzle, $httpFactory, $httpFactory, - $config->get('maxbot.base_url', 'https://botapi.max.ru'), - $config->get('maxbot.api_version', Api::API_VERSION), + $config->get('maxbot.base_url', 'https://platform-api.max.ru'), + $config->get('maxbot.api_version'), $logger, ); });