whalibmob 5.12.14 → 5.12.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +26 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -300,6 +300,10 @@ WA_OS=android WA_DEVICE=samsung-s24-ultra wa registration --request-code 9196348
300
300
  Set `WA_OS=android` in a `.env` file instead and the plain command is enough.
301
301
  `--debug` prints every request and reply, which is worth having the first time.
302
302
 
303
+ The variables only matter for the command that *creates* the session. What a
304
+ session registered as is written into it, so the confirmation step and every
305
+ later connect follow the session, not whatever the shell carries at the time.
306
+
303
307
  The CLI sends the code request, prints the result, and then **stays open** in the interactive shell. You will see:
304
308
 
305
309
  ```
@@ -1342,6 +1346,28 @@ registered session saved to /home/user/.waSession/919634847671.json
1342
1346
  now run: /connect 919634847671
1343
1347
  ```
1344
1348
 
1349
+ **Registering as Android from the shell** works the same way, but `WA_OS` has to
1350
+ be set when the shell *starts* — the `wa>` prompt is already inside a running
1351
+ process, and nothing typed at it can change the environment that process was
1352
+ launched with:
1353
+
1354
+ ```sh
1355
+ WA_OS=android WA_DEVICE=samsung-s24-ultra wa
1356
+ ```
1357
+ ```sh
1358
+ wa> /reg code 919634847671
1359
+ no Android token material yet — fetching the WhatsApp APK from Google Play
1360
+ ...
1361
+ status sent
1362
+ wa> /reg confirm 919634847671 123456
1363
+ ```
1364
+
1365
+ A `.env` file with `WA_OS=android` in the directory you start from does the same
1366
+ and saves the typing. Either way it only matters for the command that *creates*
1367
+ the session: what a session registered as is written into it, and every later
1368
+ step — the confirmation, a reconnect from a different shell tomorrow — follows
1369
+ the session rather than the environment.
1370
+
1345
1371
  ---
1346
1372
 
1347
1373
  ### Connection Commands (in-shell)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whalibmob",
3
- "version": "5.12.14",
3
+ "version": "5.12.15",
4
4
  "description": "WhatsApp library for interaction with WhatsApp Mobile API and web ",
5
5
  "author": "Kunboruto20",
6
6
  "main": "index.js",