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

@ -237,11 +237,11 @@
'height' => $this->height,
'is_animated' => $this->is_animated,
'is_video' => $this->is_video,
'thumb' => ($this->thumb instanceof PhotoSize) ? $this->thumb->toArray() : null,
'thumb' => ($this->thumb instanceof ObjectTypeInterface) ? $this->thumb->toArray() : $this->thumb,
'emoji' => $this->emoji,
'set_name' => $this->set_name,
'premium_animation' => ($this->premium_animation instanceof File) ? $this->premium_animation->toArray() : null,
'mask_position' => ($this->mask_position instanceof MaskPosition) ? $this->mask_position->toArray() : null,
'premium_animation' => ($this->premium_animation instanceof ObjectTypeInterface) ? $this->premium_animation->toArray() : $this->thumb,
'mask_position' => ($this->mask_position instanceof ObjectTypeInterface) ? $this->mask_position->toArray() : $this->mask_position,
'custom_emoji_id' => $this->custom_emoji_id,
'file_size' => $this->file_size,
];