chatId = $chatId; $this->text = $text; $this->buttons = $buttons; $this->image = $image; $this->isTop = $isTop; } public function handle() { try { BaseService::sendMessage($this->chatId ,$this->text, $this->buttons, $this->image); Log::channel('issue')->info('Telegram私聊消息发送成功', [ 'attempt' => $this->attempts(), 'chat_id' => $this->chatId, 'text_length' => strlen((string)$this->text), 'has_image' => !empty($this->image), ]); } catch (\Throwable $exception) { $this->handleTelegramJobFailure($exception, 'Telegram私聊消息发送失败', [ 'chat_id' => $this->chatId, 'text_length' => strlen((string)$this->text), 'has_image' => !empty($this->image), ], false); } } }