Skip to content

Commit 4c2ff82

Browse files
committed
Fix: get chat id when update is my_chat_member
1 parent 4bbd7c4 commit 4c2ff82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Telegram.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,9 @@ public function ChatID()
856856
if ($type == self::INLINE_QUERY) {
857857
return @$this->data['inline_query']['from']['id'];
858858
}
859+
if ($type == self::MY_CHAT_MEMBER) {
860+
return @$this->data['my_chat_member']['chat']['id'];
861+
}
859862

860863
return $this->data['message']['chat']['id'];
861864
}

0 commit comments

Comments
 (0)