diff --git a/app/Jobs/TelegramMessage.php b/app/Jobs/TelegramMessage.php index 639d0975..2023f00e 100644 --- a/app/Jobs/TelegramMessage.php +++ b/app/Jobs/TelegramMessage.php @@ -26,8 +26,8 @@ public function __construct(public Collection $message) { $this->text = $this->message->only(['text', 'caption'])->first(); $this->messageId = $this->message->get('message_id'); - $this->chatId = $this->message->get('chat.id'); - $this->from = $this->message->get('from.id'); + $this->chatId = $this->message->dot()->get('chat.id'); + $this->from = $this->message->dot()->get('from.id'); } /**