@periskope/baileys 6.7.16-alpha.8 → 6.7.16-alpha.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.
@@ -58,6 +58,15 @@ const makeMessagesRecvSocket = (config) => {
58
58
  if (tag === 'message' && (0, WABinary_1.getBinaryNodeChild)({ tag, attrs, content }, 'unavailable')) {
59
59
  stanza.attrs.from = authState.creds.me.id;
60
60
  }
61
+ if (tag === 'receipt') {
62
+ ev.emit('broadcast-receipt.update', {
63
+ id: attrs.id,
64
+ participant: attrs.participant,
65
+ timestamp: Number(attrs.t),
66
+ broadcast: attrs.from,
67
+ type: attrs.type
68
+ });
69
+ }
61
70
  logger.debug({ recv: { tag, attrs }, sent: stanza.attrs }, 'sent ack');
62
71
  await sendNode(stanza);
63
72
  };
@@ -107,6 +107,14 @@ export type BaileysEventMap = {
107
107
  association: LabelAssociation;
108
108
  type: 'add' | 'remove';
109
109
  };
110
+ 'call.outgoing': proto.SyncActionValue.ICallLogAction;
111
+ 'broadcast-receipt.update': {
112
+ id: string;
113
+ participant: string;
114
+ timestamp: number;
115
+ broadcast: string;
116
+ type: 'read' | 'receipt';
117
+ };
110
118
  };
111
119
  export type BufferedEventData = {
112
120
  historySets: {
@@ -723,6 +723,9 @@ const processSyncAction = (syncAction, ev, me, initialSyncOpts, logger) => {
723
723
  }
724
724
  });
725
725
  }
726
+ else if (action === null || action === void 0 ? void 0 : action.callLogAction) {
727
+ ev.emit('call.outgoing', action.callLogAction);
728
+ }
726
729
  else {
727
730
  logger === null || logger === void 0 ? void 0 : logger.debug({ syncAction, id }, 'unprocessable update');
728
731
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@periskope/baileys",
3
- "version": "6.7.16-alpha.8",
3
+ "version": "6.7.16-alpha.9",
4
4
  "description": "WhatsApp API", "keywords": [
5
5
  "whatsapp",
6
6
  "automation"