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