@deathnaitsa/wa-api 1.0.7 → 1.0.9
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/LICENSE +2 -21
- package/dist/Messaging/index.js +1 -1
- package/package.json +2 -1
- package/readme.md +1 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Muhammad Imam Choirudin
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
Copyright (c) 2023 Deathnaitsa
|
|
2
|
+
Kopiergeschützt. Alle Rechte vorbehalten.
|
package/dist/Messaging/index.js
CHANGED
|
@@ -109,7 +109,7 @@ async function sendMessage(sessionId, jid, content, options) {
|
|
|
109
109
|
return await session.sendMessage(destJid, content, options || {});
|
|
110
110
|
} catch (err) {
|
|
111
111
|
// Wrap Baileys errors into WhatsappError for consistency
|
|
112
|
-
throw new WhatsappError(
|
|
112
|
+
throw new Error_1.WhatsappError(
|
|
113
113
|
`Failed to send message to ${destJid}: ${err.message}`,
|
|
114
114
|
{ cause: err }
|
|
115
115
|
);
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deathnaitsa/wa-api",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Multi Session Whatsapp Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"licenses": "MIT",
|
|
7
8
|
"repository": {
|
|
8
9
|
"type": "git",
|
|
9
10
|
"url": "git+https://github.com/DeathNaitsa/wa-api.git"
|
package/readme.md
CHANGED
|
@@ -49,7 +49,7 @@ Eine **einzige** Funktion für **Text**, **Media**, **Polls**, **Reaktionen**, *
|
|
|
49
49
|
```js
|
|
50
50
|
await wa.sendMessage(
|
|
51
51
|
'meineSession', // sessionId
|
|
52
|
-
'
|
|
52
|
+
'49123342524523@s.whatsapp.net', // JID oder Telefonnummer
|
|
53
53
|
content, // AnyMessageContent-Objekt
|
|
54
54
|
options // MiscMessageGenerationOptions (optional)
|
|
55
55
|
);
|