mode = $mode; } public function execute(): void { $m = $this->message->getReplyToMessage(); if (!$m) { $this->bot->sendMessage($this->message->getChat()->getId(), "Cita un messaggio di testo", null, false, $this->message->getMessageId()); } else { $this->bot->sendChatAction($this->message->getChat()->getId(), "upload_video"); $this->bot->sendVideo( $this->message->getChat()->getId(), "https://crabrave.boringcactus.com/render?text=" . urlencode($m->getText()) . "&ext=mp4&style=" . $this->mode, null, null, $this->message->getMessageId(), null, null, "HTML" ); } } }