@vielhuber/wahelper 1.3.7 → 1.4.0

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 +6 -14
  2. package/package.json +1 -1
package/README.MD CHANGED
@@ -33,32 +33,24 @@ composer require vielhuber/wahelper
33
33
 
34
34
  ```sh
35
35
  npx wahelper \
36
- --disable-warning=ExperimentalWarning \
37
36
  --device "xxxxxxxxxxxx" \
38
37
  ...
39
38
 
39
+ # fetch messages
40
40
  --action "fetch_messages" \
41
41
  --limit 42
42
42
 
43
+ # send message to user
43
44
  --action "send_user" \
44
45
  --number "xxxxxxxxxxxx" \
45
46
  --message "This is a test! 🚀"
47
+ --attachments "/full/path/to/file.pdf,/full/path/to/image.png"
46
48
 
49
+ # send message to group
47
50
  --action "send_group" \
48
51
  --name "Group name" \
49
52
  --message "This is a test! 🚀"
50
-
51
- --action "send_user" \
52
- --number "xxxxxxxxxxxx" \
53
- --message "This is a test! 🚀" \
54
53
  --attachments "/full/path/to/file.pdf,/full/path/to/image.png"
55
-
56
- sqlite3 \
57
- -header \
58
- -column \
59
- whatsapp.sqlite \
60
- "SELECT text FROM messages ORDER BY timestamp ASC" | \
61
- tail -10
62
54
  ```
63
55
 
64
56
  ### php
@@ -98,8 +90,8 @@ $wahelper->sendGroup(
98
90
  {
99
91
  "mcpServers": {
100
92
  "whatsapp": {
101
- "command": "/root/.nvm/versions/node/v22.20.0/bin/node",
102
- "args": ["/var/www/project/node_modules/@vielhuber/wahelper/mcp.js"]
93
+ "command": "/usr/bin/php8.1",
94
+ "args": ["/var/www/project/vendor/vielhuber/wahelper/mcp.php"]
103
95
  }
104
96
  }
105
97
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vielhuber/wahelper",
3
- "version": "1.3.7",
3
+ "version": "1.4.0",
4
4
  "description": "Lightweight whatsapp integration layer.",
5
5
  "main": "wahelper.js",
6
6
  "files": [