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 61d6c75 commit 00f719aCopy full SHA for 00f719a
src/Telegram.php
@@ -568,6 +568,12 @@ public function isAdmin($user_id = null)
568
if ($user_id === null && $this->update !== null) {
569
if (($message = $this->update->getMessage()) && ($from = $message->getFrom())) {
570
$user_id = $from->getId();
571
+ } elseif (($inline_query = $this->update->getInlineQuery()) && ($from = $inline_query->getFrom())) {
572
+ $user_id = $from->getId();
573
+ } elseif (($callback_query = $this->update->getCallbackQuery()) && ($from = $callback_query->getFrom())) {
574
575
+ } elseif (($chosen_inline_result = $this->update->getChosenInlineResult()) && ($from = $chosen_inline_result->getFrom())) {
576
577
}
578
579
0 commit comments