@neoxr/zapo 1.0.2 → 1.0.4

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 (41) hide show
  1. package/README.md +10 -12
  2. package/lib/core/binding.js +23 -2
  3. package/lib/core/connection.js +23 -2
  4. package/lib/core/instance.js +23 -2
  5. package/lib/core/message-util.js +23 -2
  6. package/lib/core/message-util.js.map +1 -1
  7. package/lib/core/message.js +23 -2
  8. package/lib/core/message.js.map +1 -1
  9. package/lib/core/polyfill.js +23 -2
  10. package/lib/core/private.js +23 -2
  11. package/lib/core/serialize.js +23 -2
  12. package/lib/core/storage.js +23 -2
  13. package/lib/listeners/group-update.js +23 -2
  14. package/lib/listeners/index.js +23 -2
  15. package/lib/listeners/messages-inbound.js +23 -2
  16. package/lib/listeners/messages-outbound.js +23 -2
  17. package/lib/listeners/messages-receipt.js +23 -2
  18. package/lib/listeners/presence.js +23 -2
  19. package/lib/memory/index.js +23 -2
  20. package/lib/memory/localy-store.js +23 -2
  21. package/lib/memory/temporary-store.js +23 -2
  22. package/lib/proxy/index.js +23 -2
  23. package/lib/proxy/proxy-json.js +23 -2
  24. package/lib/proxy/proxy-mongo.js +23 -2
  25. package/lib/proxy/proxy-mysql.js +23 -2
  26. package/lib/proxy/proxy-postgresql.js +23 -2
  27. package/lib/proxy/proxy-redis.js +23 -2
  28. package/lib/proxy/proxy-sqlite.js +23 -2
  29. package/lib/types/index.js +23 -2
  30. package/lib/utils/caching.js +23 -2
  31. package/lib/utils/chiper.js +23 -2
  32. package/lib/utils/converter.js +23 -2
  33. package/lib/utils/cooldown.js +23 -2
  34. package/lib/utils/functions.js +23 -2
  35. package/lib/utils/functions.js.map +1 -1
  36. package/lib/utils/loader.js +23 -2
  37. package/lib/utils/logger.js +23 -2
  38. package/lib/utils/resolver.js +23 -2
  39. package/lib/utils/security.js +23 -2
  40. package/lib/utils/spam.js +23 -2
  41. package/package.json +1 -1
package/README.md CHANGED
@@ -197,6 +197,15 @@ waSocket.ev.on('stanza_error', (update) => console.log(update))
197
197
  // declaration variable sock
198
198
  const client = waSocket.sock
199
199
 
200
+ // send relay/raw message like baileys
201
+ client.relayMessage(m.chat, {
202
+ extentedTextMessage: { text: 'Hi' }
203
+ }, {
204
+ additionalAttributes: {},
205
+ additionalNodes: [],
206
+ ...options
207
+ })
208
+
200
209
  // send a text message (auto tagged)
201
210
  client.reply(m.chat, `Test!`, m)
202
211
 
@@ -699,15 +708,4 @@ client.sendMetaMsg(m.chat, [
699
708
  }], m, {
700
709
  title: global.header
701
710
  })
702
- ```
703
-
704
- ### Exclusive Message
705
-
706
- This feature can be enabled simply by adding the `{ exclusive: true }` parameter. It allows messages to be sent within a group, but the message can only be seen by the sender. Other members of the group cannot see it.
707
-
708
-
709
- ```Javascript
710
- client.reply(m.chat, 'Hi, this message can only be seen by you.', m, { exclusive: true })
711
- ```
712
-
713
- The `m` (quoted message) parameter is required and must always be provided when using this feature.
711
+ ```