Closed varemel closed 9 months ago
Hello,
When call DTO\User object toArray() method is_bot = false property is missing. array_filter() removes false values from array.
DTO\User
is_bot = false
array_filter()
vendor/defstudio/telegraph/src/DTO/
public function toArray(): array { return array_filter([ 'id' => $this->id, 'is_bot' => $this->isBot, 'first_name' => $this->firstName, 'last_name' => $this->lastName, 'username' => $this->username, 'language_code' => $this->languageCode, ]); }
Hi, thanks for pointing this out, we'll fix it in next release
fixed in #502
Hello,
When call
DTO\User
object toArray() methodis_bot = false
property is missing.array_filter()
removes false values from array.vendor/defstudio/telegraph/src/DTO/