We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc0dd1d commit 35d6243Copy full SHA for 35d6243
Telegram.php
@@ -79,6 +79,10 @@ class Telegram
79
* Constant for type Left Chat Member.
80
*/
81
const LEFT_CHAT_MEMBER = 'left_chat_member';
82
+ /**
83
+ * Constant for type My Chat Member.
84
+ */
85
+ const MY_CHAT_MEMBER = 'my_chat_member';
86
87
private $bot_token = '';
88
private $data = [];
@@ -1741,6 +1745,9 @@ public function getUpdateType()
1741
1745
if (isset($update['message']['left_chat_member'])) {
1742
1746
return self::LEFT_CHAT_MEMBER;
1743
1747
}
1748
+ if (isset($update['message']['my_chat_member'])) {
1749
+ return self::MY_CHAT_MEMBER;
1750
+ }
1744
1751
if (isset($update['channel_post'])) {
1752
return self::CHANNEL_POST;
1753
0 commit comments