diff --git a/app/Services/TelegramBotService.php b/app/Services/TelegramBotService.php index 0efcd3d..3686f7e 100644 --- a/app/Services/TelegramBotService.php +++ b/app/Services/TelegramBotService.php @@ -76,7 +76,6 @@ class TelegramBotService 'await_email' => $this->processEmail($chatId, $text, $nombre), 'await_otp' => $this->processOtp($chatId, $text), 'await_nombre' => $this->processNombre($chatId, $text), - 'await_cedula' => $this->processCedula($chatId, $text), 'await_celular' => $this->processCelular($chatId, $text), 'await_amount' => $this->processCustomAmount($chatId, $text), default => $this->handleFreeText($chatId, $state), @@ -289,17 +288,8 @@ class TelegramBotService return; } - $state = $this->getState($chatId); + $state = $this->getState($chatId); $state['data']['nombre'] = $text; - $state['step'] = 'await_cedula'; - $this->setState($chatId, $state); - $this->send($chatId, "Tu número de cédula (o escribe /omitir para saltarlo):"); - } - - private function processCedula(string $chatId, string $text): void - { - $state = $this->getState($chatId); - $state['data']['cedula'] = strtolower($text) === '/omitir' ? null : $text; $state['step'] = 'await_celular'; $this->setState($chatId, $state); $this->send($chatId, "Tu número de celular (o escribe /omitir para saltarlo):");