Major Refactoring

This commit is contained in:
Netkas 2023-02-14 17:35:16 -05:00
parent 3de87df2d9
commit 54a8a59ee8
83 changed files with 892 additions and 918 deletions

View file

@ -4,6 +4,7 @@
namespace TgBotLib\Objects\BotCommandScope;
use TgBotLib\Abstracts\BotCommandScopeType;
use TgBotLib\Interfaces\ObjectTypeInterface;
use TgBotLib\Objects\BotCommandScope;
@ -46,7 +47,7 @@
{
$object = new self();
$object->type = $data['type'];
$object->type = $data['type'] ?? BotCommandScopeType::AllGroupChats;
return $object;
}