Commit 432aa929 authored by MBoretto's avatar MBoretto

added emoji field in sticker entity

parent ebe87eca
...@@ -18,9 +18,9 @@ class Sticker extends Entity ...@@ -18,9 +18,9 @@ class Sticker extends Entity
protected $width; protected $width;
protected $height; protected $height;
protected $thumb; protected $thumb;
protected $emoji;
protected $file_size; protected $file_size;
public function __construct(array $data) public function __construct(array $data)
{ {
...@@ -45,8 +45,9 @@ class Sticker extends Entity ...@@ -45,8 +45,9 @@ class Sticker extends Entity
} }
$this->thumb = new PhotoSize($this->thumb); $this->thumb = new PhotoSize($this->thumb);
$this->file_size = isset($data['file_size']) ? $data['file_size'] : null; $this->emoji = isset($data['emoji']) ? $data['emoji'] : null;
$this->file_size = isset($data['file_size']) ? $data['file_size'] : null;
} }
public function getFileId() public function getFileId()
...@@ -63,10 +64,17 @@ class Sticker extends Entity ...@@ -63,10 +64,17 @@ class Sticker extends Entity
{ {
return $this->height; return $this->height;
} }
public function getThumb() public function getThumb()
{ {
return $this->thumb; return $this->thumb;
} }
public function getEmoji()
{
return $this->emoji;
}
public function getFileSize() public function getFileSize()
{ {
return $this->file_size; return $this->file_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment