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') {
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
"changelog:preview": "conventional-changelog -p angular -u",
|
||||
"changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
||||
"example": "node --inspect -r ts-node/register Example/example.ts",
|
||||
"example:mobile": "node --inspect -r ts-node/register Example/example.ts --mobile",
|
||||
"gen:protobuf": "sh WAProto/GenerateStatics.sh",
|
||||
"lint": "eslint src --ext .js,.ts,.jsx,.tsx",
|
||||
"lint:fix": "eslint src --fix --ext .js,.ts,.jsx,.tsx",
|
||||
|
||||
Reference in New Issue
Block a user