Skip to content

Commit

Permalink
Update Message.php
Browse files Browse the repository at this point in the history
  • Loading branch information
allanmcarvalho committed Oct 23, 2023
1 parent abc4552 commit 3f30233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Telegram/Models/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public function __construct(array $payload)
{
$this->message_id = intval(Arr::get($payload, 'message_id'));
$this->from = Arr::exists($payload, 'from') ? new User($payload['from']) : null;
$this->sender_chat = Arr::exists($payload, 'sender_chat') ? new User($payload['sender_chat']) : null;
$this->sender_chat = Arr::exists($payload, 'sender_chat') ? new Chat($payload['sender_chat']) : null;
$this->date = Carbon::createFromTimestamp(Arr::get($payload, 'date'));
$this->chat = new Chat(Arr::get($payload, 'chat', []));
$this->forward_from = Arr::exists($payload, 'forward_from') ? new User($payload['forward_from']) : null;
Expand Down

0 comments on commit 3f30233

Please sign in to comment.