@deathnaitsa/wa-api 2.1.7 → 2.1.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/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