@deathnaitsa/wa-api 1.0.6 → 1.0.8

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.
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@deathnaitsa/wa-api",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Multi Session Whatsapp Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -5,7 +5,7 @@ Leichte Bibliothek zur Verwaltung mehrerer WhatsApp-Sessions – mit **einer** u
5
5
  ## 📦 Installation
6
6
 
7
7
  ```bash
8
- npm install @DeathNaitsa/wa-api@latest
8
+ npm install @deathnaitsa/wa-api@latest
9
9
  ```
10
10
 
11
11
  ## 🔌 Import & Setup
@@ -14,10 +14,10 @@ Verwende den klassischen Import-Stil:
14
14
 
15
15
  ```js
16
16
  // CommonJS
17
- const wa = require('@DeathNaitsa/wa-api');
17
+ const wa = require('@deathnaitsa/wa-api');
18
18
 
19
19
  // ES Module
20
- import * as wa from '@DeathNaitsa/wa-api';
20
+ import * as wa from '@deathnaitsa/wa-api';
21
21
  ```
22
22
 
23
23
  Danach stehen dir alle Funktionen unter dem Namespace `wa` zur Verfügung.
@@ -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
- '491234567890@c.us', // JID oder Telefonnummer
52
+ '49123342524523@s.whatsapp.net', // JID oder Telefonnummer
53
53
  content, // AnyMessageContent-Objekt
54
54
  options // MiscMessageGenerationOptions (optional)
55
55
  );
@@ -105,4 +105,4 @@ try {
105
105
 
106
106
  ---
107
107
 
108
- © 2025 `@DeathNaitsa/wa-api` • Support: [sebloidl13@gmail.com](mailto:sebloidl13@gmail.com)
108
+ © 2025 `@deathnaitsa/wa-api` • Support: [sebloidl13@gmail.com](mailto:sebloidl13@gmail.com)