@arcaelas/whatsapp 7.3.0 → 7.4.0
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.
|
@@ -22,12 +22,14 @@ interface Options {
|
|
|
22
22
|
/** Descargar el historial de mensajes al vincular; contactos, credenciales, LID mappings y tctokens se sincronizan siempre. / Download the message history on link; contacts, credentials, LID mappings and tctokens always sync. */
|
|
23
23
|
sync?: boolean;
|
|
24
24
|
/**
|
|
25
|
-
* Nombre con el que esta sesión aparece en «Dispositivos vinculados» del teléfono
|
|
26
|
-
* una cuenta tiene varias sesiones
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
25
|
+
* Nombre con el que esta sesión aparece en «Dispositivos vinculados» del teléfono; por
|
|
26
|
+
* defecto `Chrome`. Cuando una cuenta tiene varias sesiones es lo ÚNICO que permite
|
|
27
|
+
* distinguirlas para cerrar la correcta: con el valor por defecto todas se ven iguales
|
|
28
|
+
* —y iguales a un navegador real—, así que quien abra más de una debería nombrarlas.
|
|
29
|
+
* Name this session shows under the phone's «Linked devices»; defaults to `Chrome`. When an
|
|
30
|
+
* account holds several sessions it is the ONLY thing telling them apart to close the right
|
|
31
|
+
* one: with the default they all look alike —and alike to a real browser—, so whoever opens
|
|
32
|
+
* more than one should name them.
|
|
31
33
|
*/
|
|
32
34
|
device?: string;
|
|
33
35
|
}
|
|
@@ -126,7 +126,7 @@ class WhatsApp {
|
|
|
126
126
|
},
|
|
127
127
|
},
|
|
128
128
|
},
|
|
129
|
-
browser: baileys_1.Browsers.
|
|
129
|
+
browser: baileys_1.Browsers.windows(device ?? 'Chrome'),
|
|
130
130
|
logger: (0, pino_1.default)({ level: 'silent' }),
|
|
131
131
|
syncFullHistory: sync,
|
|
132
132
|
shouldSyncHistoryMessage: ({ syncType }) => sync || syncType !== baileys_1.proto.HistorySync.HistorySyncType.FULL,
|
|
@@ -22,12 +22,14 @@ interface Options {
|
|
|
22
22
|
/** Descargar el historial de mensajes al vincular; contactos, credenciales, LID mappings y tctokens se sincronizan siempre. / Download the message history on link; contacts, credentials, LID mappings and tctokens always sync. */
|
|
23
23
|
sync?: boolean;
|
|
24
24
|
/**
|
|
25
|
-
* Nombre con el que esta sesión aparece en «Dispositivos vinculados» del teléfono
|
|
26
|
-
* una cuenta tiene varias sesiones
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
25
|
+
* Nombre con el que esta sesión aparece en «Dispositivos vinculados» del teléfono; por
|
|
26
|
+
* defecto `Chrome`. Cuando una cuenta tiene varias sesiones es lo ÚNICO que permite
|
|
27
|
+
* distinguirlas para cerrar la correcta: con el valor por defecto todas se ven iguales
|
|
28
|
+
* —y iguales a un navegador real—, así que quien abra más de una debería nombrarlas.
|
|
29
|
+
* Name this session shows under the phone's «Linked devices»; defaults to `Chrome`. When an
|
|
30
|
+
* account holds several sessions it is the ONLY thing telling them apart to close the right
|
|
31
|
+
* one: with the default they all look alike —and alike to a real browser—, so whoever opens
|
|
32
|
+
* more than one should name them.
|
|
31
33
|
*/
|
|
32
34
|
device?: string;
|
|
33
35
|
}
|
|
@@ -88,7 +88,7 @@ export default class WhatsApp {
|
|
|
88
88
|
},
|
|
89
89
|
},
|
|
90
90
|
},
|
|
91
|
-
browser: Browsers.
|
|
91
|
+
browser: Browsers.windows(device ?? 'Chrome'),
|
|
92
92
|
logger: pino({ level: 'silent' }),
|
|
93
93
|
syncFullHistory: sync,
|
|
94
94
|
shouldSyncHistoryMessage: ({ syncType }) => sync || syncType !== proto.HistorySync.HistorySyncType.FULL,
|