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