whalibmob 5.40.43 → 5.40.44
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.
- package/README.md +24 -26
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,38 +27,12 @@ code, and bring the account into being. Both transports, one API.
|
|
|
27
27
|
[](https://github.com/Kunboruto20/whalibmob/blob/main/docs/messaging.md#sending-messages)
|
|
28
28
|
[](https://github.com/Kunboruto20/whalibmob/blob/main/docs/events-history.md#handling-events)
|
|
29
29
|
|
|
30
|
-
[](https://github.com/Kunboruto20/whalibmob/blob/main/docs/interactive-buttons.md)
|
|
31
|
-
|
|
32
30
|
[](https://github.com/Kunboruto20/whalibmob/blob/main/docs/attestation.md#device-attestation--play-integrity-and-app-attest)
|
|
33
31
|
|
|
34
32
|
[](https://github.com/Kunboruto20/whalibmob/blob/main/docs/accounts.md#why-registration-can-be-blocked--the-anti-abuse-landscape)
|
|
35
33
|
|
|
36
34
|
</div>
|
|
37
35
|
|
|
38
|
-
> [!NOTE]
|
|
39
|
-
> **🆕 whalibmob now supports interactive button messages.**
|
|
40
|
-
>
|
|
41
|
-
> Send a "card" message with up to **three tappable buttons** — a **link** button
|
|
42
|
-
> (opens a URL), a **call** button (dials a number), a **copy** button (copies a
|
|
43
|
-
> code), or a **quick-reply** — with an optional header image. One call does it,
|
|
44
|
-
> from both the Node API and the `wa` CLI, and it works the **same on a
|
|
45
|
-
> mobile-registered number and a linked web/companion session** (a WhatsApp
|
|
46
|
-
> message is encoded identically on both).
|
|
47
|
-
>
|
|
48
|
-
> ```js
|
|
49
|
-
> await client.sendInteractive('14155552671', {
|
|
50
|
-
> body: 'Check this out!',
|
|
51
|
-
> footer: 'whalibmob',
|
|
52
|
-
> buttons: [
|
|
53
|
-
> { text: 'Open site', url: 'https://example.com' }, // link button
|
|
54
|
-
> { text: 'Call us', phone: '14155552671' }, // call button
|
|
55
|
-
> { text: 'Copy code', copy: 'PROMO2026' } // copy button
|
|
56
|
-
> ]
|
|
57
|
-
> });
|
|
58
|
-
> ```
|
|
59
|
-
>
|
|
60
|
-
> 👉 **Full guide, all button types and the CLI command: [docs/interactive-buttons.md](https://github.com/Kunboruto20/whalibmob/blob/main/docs/interactive-buttons.md)**
|
|
61
|
-
|
|
62
36
|
> [!TIP]
|
|
63
37
|
> **Registration not working on some numbers? Here is the 100% success route.**
|
|
64
38
|
>
|
|
@@ -185,6 +159,30 @@ main().catch(err => { console.error(err.message || err); process.exit(1) })
|
|
|
185
159
|
|
|
186
160
|
The client reconnects by itself after a dropped connection — do not create a new one on `disconnected`. Prefer no code at all? The [CLI](https://github.com/Kunboruto20/whalibmob/blob/main/docs/cli-getting-started.md#cli--getting-started) does the same in a few commands: request the code, register, connect, then `/send`. A brand-new account is watched closely by WhatsApp's anti-abuse checks, so send the first messages to people who have your number saved — see [Accounts](https://github.com/Kunboruto20/whalibmob/blob/main/docs/accounts.md#why-registration-can-be-blocked--the-anti-abuse-landscape).
|
|
187
161
|
|
|
162
|
+
> [!NOTE]
|
|
163
|
+
> **🆕 whalibmob now supports interactive button messages.**
|
|
164
|
+
>
|
|
165
|
+
> Send a "card" message with up to **three tappable buttons** — a **link** button
|
|
166
|
+
> (opens a URL), a **call** button (dials a number), a **copy** button (copies a
|
|
167
|
+
> code), or a **quick-reply** — with an optional header image. One call does it,
|
|
168
|
+
> from both the Node API and the `wa` CLI, and it works the **same on a
|
|
169
|
+
> mobile-registered number and a linked web/companion session** (a WhatsApp
|
|
170
|
+
> message is encoded identically on both).
|
|
171
|
+
>
|
|
172
|
+
> ```js
|
|
173
|
+
> await client.sendInteractive('14155552671', {
|
|
174
|
+
> body: 'Check this out!',
|
|
175
|
+
> footer: 'whalibmob',
|
|
176
|
+
> buttons: [
|
|
177
|
+
> { text: 'Open site', url: 'https://example.com' }, // link button
|
|
178
|
+
> { text: 'Call us', phone: '14155552671' }, // call button
|
|
179
|
+
> { text: 'Copy code', copy: 'PROMO2026' } // copy button
|
|
180
|
+
> ]
|
|
181
|
+
> });
|
|
182
|
+
> ```
|
|
183
|
+
>
|
|
184
|
+
> 👉 **Full guide, all button types and the CLI command: [docs/interactive-buttons.md](https://github.com/Kunboruto20/whalibmob/blob/main/docs/interactive-buttons.md)**
|
|
185
|
+
|
|
188
186
|
|
|
189
187
|
## Approving a Companion Device
|
|
190
188
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "whalibmob",
|
|
3
|
-
"version": "5.40.
|
|
3
|
+
"version": "5.40.44",
|
|
4
4
|
"description": "Node.js library for WhatsApp — register a number over SMS, or link as a companion by QR. Signal E2E encryption, media, groups, channels.",
|
|
5
5
|
"author": "Kunboruto20",
|
|
6
6
|
"main": "index.js",
|