diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ddef21..19e1f15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed * Refactor enums to use native PHP 8.1 syntax + * Moved Types to their own namespace ## [6.7.0] - 2023-08-10 diff --git a/src/TgBotLib/Bot.php b/src/TgBotLib/Bot.php index f56f352..f3fe94b 100644 --- a/src/TgBotLib/Bot.php +++ b/src/TgBotLib/Bot.php @@ -9,8 +9,8 @@ use InvalidArgumentException; use LogLib\Log; use TempFile\TempFile; - use TgBotLib\Enums\ChatMemberStatus; - use TgBotLib\Enums\EventType; + use TgBotLib\Enums\Types\ChatMemberStatus; + use TgBotLib\Enums\Types\EventType; use TgBotLib\Exceptions\TelegramException; use TgBotLib\Interfaces\CommandInterface; use TgBotLib\Interfaces\EventInterface; diff --git a/src/TgBotLib/Enums/BotCommandScopeType.php b/src/TgBotLib/Enums/Types/BotCommandScopeType.php similarity index 91% rename from src/TgBotLib/Enums/BotCommandScopeType.php rename to src/TgBotLib/Enums/Types/BotCommandScopeType.php index 468ea2c..6a71c7b 100644 --- a/src/TgBotLib/Enums/BotCommandScopeType.php +++ b/src/TgBotLib/Enums/Types/BotCommandScopeType.php @@ -1,6 +1,6 @@