mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Pr/627 (#643)
* Update validate-connection.ts * Update index.ts * Update package.json * Update example.ts * Update package.json --------- Co-authored-by: Bob <115008575+bobslavtriev@users.noreply.github.com> Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
@@ -120,6 +120,7 @@ const startSock = async() => {
|
||||
|
||||
async function askForOTP() {
|
||||
if (!registration.method) {
|
||||
await delay(2000)
|
||||
let code = await question('How would you like to receive the one time code for registration? "sms" or "voice"\n')
|
||||
code = code.replace(/["']/g, '').trim().toLowerCase()
|
||||
if(code !== 'sms' && code !== 'voice') {
|
||||
|
||||
Reference in New Issue
Block a user