Remove cedula step from Telegram registration flow
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
17382a907a
commit
b0c1407f2d
@@ -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):");
|
||||
|
||||
Reference in New Issue
Block a user