@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.
- package/README.md +10 -12
- package/lib/core/binding.js +23 -2
- package/lib/core/connection.js +23 -2
- package/lib/core/instance.js +23 -2
- package/lib/core/message-util.js +23 -2
- package/lib/core/message-util.js.map +1 -1
- package/lib/core/message.js +23 -2
- package/lib/core/message.js.map +1 -1
- package/lib/core/polyfill.js +23 -2
- package/lib/core/private.js +23 -2
- package/lib/core/serialize.js +23 -2
- package/lib/core/storage.js +23 -2
- package/lib/listeners/group-update.js +23 -2
- package/lib/listeners/index.js +23 -2
- package/lib/listeners/messages-inbound.js +23 -2
- package/lib/listeners/messages-outbound.js +23 -2
- package/lib/listeners/messages-receipt.js +23 -2
- package/lib/listeners/presence.js +23 -2
- package/lib/memory/index.js +23 -2
- package/lib/memory/localy-store.js +23 -2
- package/lib/memory/temporary-store.js +23 -2
- package/lib/proxy/index.js +23 -2
- package/lib/proxy/proxy-json.js +23 -2
- package/lib/proxy/proxy-mongo.js +23 -2
- package/lib/proxy/proxy-mysql.js +23 -2
- package/lib/proxy/proxy-postgresql.js +23 -2
- package/lib/proxy/proxy-redis.js +23 -2
- package/lib/proxy/proxy-sqlite.js +23 -2
- package/lib/types/index.js +23 -2
- package/lib/utils/caching.js +23 -2
- package/lib/utils/chiper.js +23 -2
- package/lib/utils/converter.js +23 -2
- package/lib/utils/cooldown.js +23 -2
- package/lib/utils/functions.js +23 -2
- package/lib/utils/functions.js.map +1 -1
- package/lib/utils/loader.js +23 -2
- package/lib/utils/logger.js +23 -2
- package/lib/utils/resolver.js +23 -2
- package/lib/utils/security.js +23 -2
- package/lib/utils/spam.js +23 -2
- 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
|
+
```
|