Skip to content

Commit b3ea496

Browse files
authored
added ANIMATION type const and fixed some bugs
In getUpdateType method, if a user sends his/her location or contact, the "message" type will return. As a result, for fixing this issue, we should change priority and push location and contact condition upper than "reply". It's same for "animation" and "document" type, because in receiving json from server animation data is upper than document
1 parent 1653d61 commit b3ea496

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Telegram.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ class Telegram
4747
* Constant for type Voice.
4848
*/
4949
const VOICE = 'voice';
50+
/**
51+
* Constant for type animation.
52+
*/
53+
const ANIMATION = 'animation';
5054
/**
5155
* Constant for type Document.
5256
*/
@@ -63,10 +67,6 @@ class Telegram
6367
* Constant for type Channel Post.
6468
*/
6569
const CHANNEL_POST = 'channel_post';
66-
/**
67-
* Constant for type animation.
68-
*/
69-
const ANIMATION = 'animation';
7070

7171
private $bot_token = '';
7272
private $data = [];

0 commit comments

Comments
 (0)