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); } catch (TelegramResponseException $e) { try { BaseService::bettingGroupNotice($this->text, $this->buttons, $this->image, $this->isTop, $this->separator); } catch (TelegramResponseException $e) { try { BaseService::bettingGroupNotice($this->text, $this->buttons, $this->image, $this->isTop, $this->separator); } catch (TelegramResponseException $e) { Log::error('Telegram 消息发送失败: ' . $e->getMessage()); Log::error("失败消息: \n" . $this->text); } } } } }