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.
getUser()
1 parent 7c7acb3 commit 8095909Copy full SHA for 8095909
1 file changed
src/Telegram/Update.php
@@ -142,8 +142,8 @@ public function getUser(): ?object
142
{
143
if(!isset($this->customs['user'])) {
144
$this->customs['user'] = $this->data->callback_query->from ??
145
- $this->getChat()->from ??
146
- $this->getChat()->sender_chat ??
+ $this->getMessage()->from ??
+ $this->getMessage()->sender_chat ??
147
$this->data->inline_query->from ??
148
$this->data->chosen_inline_result->from ??
149
$this->data->callback_query->from ??
0 commit comments