Skip to content

Commit fe5dcb7

Browse files
authored
Merge pull request #192 from Mohsen322/patch-4
added sticker constant type in getUpdateType function
2 parents 19ee637 + 37c1708 commit fe5dcb7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Telegram.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ class Telegram
5151
* Constant for type animation.
5252
*/
5353
const ANIMATION = 'animation';
54+
/**
55+
* Constant for type sticker.
56+
*/
57+
const STICKER = 'sticker';
5458
/**
5559
* Constant for type Document.
5660
*/
@@ -3133,6 +3137,9 @@ public function getUpdateType()
31333137
if (isset($update['message']['animation'])) {
31343138
return self::ANIMATION;
31353139
}
3140+
if (isset($update['message']['sticker'])) {
3141+
return self::STICKER;
3142+
}
31363143
if (isset($update['message']['document'])) {
31373144
return self::DOCUMENT;
31383145
}

0 commit comments

Comments
 (0)