Skip to content

Commit 5a45917

Browse files
committed
Fix: UserID when update is inline_query
1 parent ffef971 commit 5a45917

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
@@ -1082,6 +1082,9 @@ public function UserID()
10821082
if ($type == self::EDITED_MESSAGE) {
10831083
return @$this->data['edited_message']['from']['id'];
10841084
}
1085+
if ($type == self::INLINE_QUERY) {
1086+
return @$this->data['inline_query']['from']['id'];
1087+
}
10851088

10861089
return $this->data['message']['from']['id'];
10871090
}

0 commit comments

Comments
 (0)