@deathnaitsa/wa-api 2.1.6 → 2.1.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.
- package/README.md +6 -0
- package/dist/WhatsAppClient.cjs +1 -1
- package/dist/WhatsAppClient.js +1 -1
- package/dist/auth/sqliteAuthState.cjs +1 -1
- package/dist/auth/sqliteAuthState.js +1 -1
- package/dist/config-helper.cjs +86 -8
- package/dist/config-helper.js +86 -8
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -179,6 +179,12 @@ const { code } = await startSessionWithPairingCode('bot1', '491234567890');
|
|
|
179
179
|
console.log('Gib diesen Code in WhatsApp ein:', code);
|
|
180
180
|
// Telefonnummer ohne +, z.B. "491234567890" statt "+49 123 456 7890"
|
|
181
181
|
|
|
182
|
+
// Optional: eigenen 8-stelligen Pairing Code vorgeben
|
|
183
|
+
const { code: customCode } = await startSessionWithPairingCode('bot2', '491234567890', {
|
|
184
|
+
pairingCode: 'ABCD1234'
|
|
185
|
+
});
|
|
186
|
+
console.log('Verwendeter eigener Pairing Code:', customCode);
|
|
187
|
+
|
|
182
188
|
// Session mit SQLite Auth (empfohlen für Production!)
|
|
183
189
|
await startSession('bot1', { sql: true });
|
|
184
190
|
|