Skip to content

Commit 432aa92

Browse files
committed
added emoji field in sticker entity
1 parent ebe87ec commit 432aa92

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/Entities/Sticker.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ class Sticker extends Entity
1818
protected $width;
1919
protected $height;
2020
protected $thumb;
21+
protected $emoji;
2122
protected $file_size;
2223

23-
2424
public function __construct(array $data)
2525
{
2626

@@ -45,8 +45,9 @@ public function __construct(array $data)
4545
}
4646
$this->thumb = new PhotoSize($this->thumb);
4747

48-
$this->file_size = isset($data['file_size']) ? $data['file_size'] : null;
48+
$this->emoji = isset($data['emoji']) ? $data['emoji'] : null;
4949

50+
$this->file_size = isset($data['file_size']) ? $data['file_size'] : null;
5051
}
5152

5253
public function getFileId()
@@ -63,10 +64,17 @@ public function getHeight()
6364
{
6465
return $this->height;
6566
}
67+
6668
public function getThumb()
6769
{
6870
return $this->thumb;
6971
}
72+
73+
public function getEmoji()
74+
{
75+
return $this->emoji;
76+
}
77+
7078
public function getFileSize()
7179
{
7280
return $this->file_size;

0 commit comments

Comments
 (0)