nexus-fca 3.2.1 → 3.2.2
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 +6 -8
- package/package.json +1 -1
- package/src/sendMessage.js +9 -4
package/README.md
CHANGED
|
@@ -2,18 +2,16 @@
|
|
|
2
2
|
<img src="https://i.ibb.co/Sk61FGg/Dragon-Fruit-1.jpg" alt="Nexus-FCA" width="520" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
# Nexus-FCA v3.2.
|
|
5
|
+
# Nexus-FCA v3.2.2 🚀
|
|
6
6
|
|
|
7
|
-
> **
|
|
8
|
-
> *
|
|
9
|
-
|
|
10
|
-

|
|
11
|
-
|
|
12
|
-
## ⚡ What's New in v3.2.1? (High-Load Update)
|
|
7
|
+
> **High-Performance, Stable, Safe Facebook Messenger API**
|
|
8
|
+
> *Now with Stable Reconnects & Quoted Replies*
|
|
13
9
|
|
|
10
|
+
## 🔥 New in v3.2.2
|
|
11
|
+
- **💬 Fixed Reply Quoting**: Messages now correctly quote the original message using updated `reply_metadata`.
|
|
14
12
|
- **🏎️ Async Event Engine**: Non-blocking message processing prevents event loop starvation even under 1000+ msgs/min load.
|
|
15
13
|
- **🛡️ Smart Keepalive**: Adaptive 60s heartbeats with 45s pings ensure connection stays alive during CPU spikes.
|
|
16
|
-
- **🔄
|
|
14
|
+
- **🔄 Stable Reconnects**: Automatically detects and resets 'stuck' connections (Stable Mode), ensuring 24/7 reliability.
|
|
17
15
|
- **💾 Memory Optimized**: 50% lighter core memory footprint compared to legacy FCA versions.
|
|
18
16
|
- **✨ Stability**: 99.99% uptime guaranteed in high-traffic groups.
|
|
19
17
|
|
package/package.json
CHANGED
package/src/sendMessage.js
CHANGED
|
@@ -198,11 +198,11 @@ module.exports = function (defaultFuncs, api, ctx) {
|
|
|
198
198
|
form["audio_ids"] = [];
|
|
199
199
|
|
|
200
200
|
if (utils.getType(msg.attachment) !== "Array") msg.attachment = [msg.attachment];
|
|
201
|
-
if (msg.attachment.every(e
|
|
201
|
+
if (msg.attachment.every(e => /_id$/.test(e[0]))) {
|
|
202
202
|
//console.log(msg.attachment)
|
|
203
|
-
msg.attachment.map(e=>form[`${e[0]}s`].push(e[1]));
|
|
203
|
+
msg.attachment.map(e => form[`${e[0]}s`].push(e[1]));
|
|
204
204
|
return cb();
|
|
205
|
-
|
|
205
|
+
}
|
|
206
206
|
uploadAttachment(msg.attachment, function (err, files) {
|
|
207
207
|
if (err) return callback(err);
|
|
208
208
|
files.forEach(function (file) {
|
|
@@ -307,7 +307,12 @@ module.exports = function (defaultFuncs, api, ctx) {
|
|
|
307
307
|
manual_retry_cnt: "0",
|
|
308
308
|
has_attachment: !!(msg.attachment || msg.url || msg.sticker),
|
|
309
309
|
signatureID: utils.getSignatureID(),
|
|
310
|
-
replied_to_message_id: replyToMessage
|
|
310
|
+
replied_to_message_id: replyToMessage,
|
|
311
|
+
reply_metadata: replyToMessage ? {
|
|
312
|
+
reply_source_id: replyToMessage,
|
|
313
|
+
reply_source_type: 1, // 1: Message
|
|
314
|
+
reply_type: 0 // 0: Reply
|
|
315
|
+
} : undefined
|
|
311
316
|
};
|
|
312
317
|
|
|
313
318
|
handleLocation(msg, form, callback, () =>
|