@usebridger/transport-baileys 0.1.0 → 0.2.1

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 +27 -0
  2. package/package.json +3 -3
package/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # @usebridger/transport-baileys
2
+
3
+ Transport do [Bridger](https://www.npmjs.com/package/@usebridger/core) para o WhatsApp, sobre o
4
+ [Baileys](https://github.com/WhiskeySockets/Baileys).
5
+
6
+ ```sh
7
+ npm install @usebridger/transport-baileys
8
+ ```
9
+
10
+ ```ts
11
+ import { createBot } from '@usebridger/core';
12
+ import { sqlite } from '@usebridger/storage-sqlite';
13
+ import { baileys } from '@usebridger/transport-baileys';
14
+
15
+ const bot = createBot({
16
+ transport: baileys(), // pareia por QR, que chega aos plugins no evento connection.qr
17
+ storage: sqlite({ path: 'data/bot.sqlite' }), // guarda as credenciais da sessão
18
+ plugins: [],
19
+ });
20
+ await bot.start();
21
+ ```
22
+
23
+ Requer Node 24 ou mais novo.
24
+
25
+ - [Documentação](https://github.com/murillous/usebridger/blob/main/packages/transport-baileys/docs/README.md)
26
+
27
+ Licença [Apache-2.0](https://github.com/murillous/usebridger/blob/main/LICENSE).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usebridger/transport-baileys",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Transport do Bridger para o WhatsApp via Baileys.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -25,11 +25,11 @@
25
25
  "dist"
26
26
  ],
27
27
  "dependencies": {
28
- "@usebridger/core": "^0.1.0",
28
+ "@usebridger/core": "^0.2.1",
29
29
  "baileys": "7.0.0-rc14"
30
30
  },
31
31
  "devDependencies": {
32
- "@usebridger/testing": "^0.1.0"
32
+ "@usebridger/testing": "^0.2.1"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"