Skip to content

Commit 8095909

Browse files
committed
Fixed getUser() method
1 parent 7c7acb3 commit 8095909

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Telegram/Update.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ public function getUser(): ?object
142142
{
143143
if(!isset($this->customs['user'])) {
144144
$this->customs['user'] = $this->data->callback_query->from ??
145-
$this->getChat()->from ??
146-
$this->getChat()->sender_chat ??
145+
$this->getMessage()->from ??
146+
$this->getMessage()->sender_chat ??
147147
$this->data->inline_query->from ??
148148
$this->data->chosen_inline_result->from ??
149149
$this->data->callback_query->from ??

0 commit comments

Comments
 (0)