Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
TelegramBot
Commits
432aa929
Commit
432aa929
authored
May 13, 2016
by
MBoretto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added emoji field in sticker entity
parent
ebe87eca
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
Sticker.php
src/Entities/Sticker.php
+10
-2
No files found.
src/Entities/Sticker.php
View file @
432aa929
...
...
@@ -18,9 +18,9 @@ class Sticker extends Entity
protected
$width
;
protected
$height
;
protected
$thumb
;
protected
$emoji
;
protected
$file_size
;
public
function
__construct
(
array
$data
)
{
...
...
@@ -45,8 +45,9 @@ class Sticker extends Entity
}
$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
()
...
...
@@ -63,10 +64,17 @@ class Sticker extends Entity
{
return
$this
->
height
;
}
public
function
getThumb
()
{
return
$this
->
thumb
;
}
public
function
getEmoji
()
{
return
$this
->
emoji
;
}
public
function
getFileSize
()
{
return
$this
->
file_size
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment