Make Chat type nullable and default is_forum to false

This commit is contained in:
netkas 2024-10-07 13:03:39 -04:00
parent 7b32ae835e
commit b3d26446e6

View file

@ -9,7 +9,7 @@
class Chat implements ObjectTypeInterface
{
private int $id;
private ChatType $type;
private ?ChatType $type;
private ?string $title;
private ?string $username;
private ?string $first_name;
@ -123,7 +123,7 @@
$object->username = $data['username'] ?? null;
$object->first_name = $data['first_name'] ?? null;
$object->last_name = $data['last_name'] ?? null;
$object->is_forum = $data['is_forum'] ?? null;
$object->is_forum = $data['is_forum'] ?? false;
return $object;
}