@dongdev/fca-unofficial 3.0.25 → 3.0.28

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 (35) hide show
  1. package/.gitattributes +2 -0
  2. package/CHANGELOG.md +196 -190
  3. package/DOCS.md +3 -6
  4. package/Fca_Database/database.sqlite +0 -0
  5. package/LICENSE-MIT +1 -1
  6. package/README.md +1 -1
  7. package/index.d.ts +745 -746
  8. package/module/config.js +29 -33
  9. package/module/login.js +133 -136
  10. package/module/loginHelper.js +1240 -1048
  11. package/module/options.js +44 -45
  12. package/package.json +81 -82
  13. package/src/api/messaging/changeAdminStatus.js +56 -56
  14. package/src/api/messaging/changeGroupImage.js +2 -1
  15. package/src/api/messaging/changeThreadEmoji.js +47 -47
  16. package/src/api/messaging/createPoll.js +25 -25
  17. package/src/api/messaging/deleteMessage.js +110 -30
  18. package/src/api/messaging/forwardAttachment.js +28 -28
  19. package/src/api/messaging/removeUserFromGroup.js +28 -73
  20. package/src/api/messaging/sendMessage.js +15 -17
  21. package/src/api/messaging/sendTypingIndicator.js +23 -23
  22. package/src/api/messaging/setMessageReaction.js +57 -60
  23. package/src/api/messaging/setTitle.js +47 -47
  24. package/src/api/messaging/uploadAttachment.js +471 -73
  25. package/src/api/socket/core/connectMqtt.js +250 -250
  26. package/src/api/socket/core/emitAuth.js +1 -1
  27. package/src/api/socket/core/getSeqID.js +322 -40
  28. package/src/api/socket/core/parseDelta.js +368 -377
  29. package/src/api/socket/listenMqtt.js +371 -360
  30. package/src/utils/client.js +2 -312
  31. package/src/utils/cookies.js +68 -0
  32. package/src/utils/format.js +117 -90
  33. package/src/utils/loginParser.js +347 -0
  34. package/src/utils/messageFormat.js +1173 -0
  35. package/src/api/socket/core/markDelivery.js +0 -12
package/.gitattributes ADDED
@@ -0,0 +1,2 @@
1
+ # Auto detect text files and perform LF normalization
2
+ * text=auto
package/CHANGELOG.md CHANGED
@@ -1,190 +1,196 @@
1
- # Changelog
2
- Too lazy to write changelog, sorry! (will write changelog in the next release, through.)
3
- ## v1.0.10 - 2025-04-24
4
- - Hotfix / auto bump
5
-
6
- ## v1.0.11 - 2025-04-24
7
- - Hotfix / auto bump
8
-
9
- ## v1.0.12 - 2025-04-28
10
- - Hotfix / auto bump
11
-
12
- ## v1.0.13 - 2025-04-28
13
- - Hotfix / auto bump
14
-
15
- ## v1.0.14 - 2025-04-28
16
- - Hotfix / auto bump
17
-
18
- ## v1.0.15 - 2025-05-03
19
- - Hotfix / auto bump
20
-
21
- ## v1.0.16 - 2025-05-07
22
- - Hotfix / auto bump
23
-
24
- ## v1.0.17 - 2025-05-07
25
- - Hotfix / auto bump
26
-
27
- ## v1.0.18 - 2025-05-22
28
- - Hotfix / auto bump
29
-
30
- ## v1.0.19 - 2025-05-23
31
- - Hotfix / auto bump
32
-
33
- ## v2.0.0 - 2025-10-05
34
- - Hotfix / auto bump
35
-
36
- ## v2.0.1 - 2025-10-05
37
- - Hotfix / auto bump
38
-
39
- ## v2.0.2 - 2025-10-05
40
- - Hotfix / auto bump
41
-
42
- ## v2.0.3 - 2025-10-05
43
- - Hotfix / auto bump
44
-
45
- ## v2.0.4 - 2025-10-05
46
- - Hotfix / auto bump
47
-
48
- ## v2.0.5 - 2025-10-06
49
- - Now you can turn on/off autoLogin in config file.
50
- - Added autoUpdate feature.
51
- ## v2.0.6-beta - 2025-10-06
52
- - Hotfix / auto bump
53
-
54
- ## v2.0.7 - 2025-10-06
55
- - Hotfix / auto bump
56
-
57
- ## v2.0.8 - 2025-10-07
58
- - Hotfix / auto bump
59
-
60
- ## v2.0.9 - 2025-10-07
61
- - Hotfix / auto bump
62
-
63
- ## v2.0.9 - 2025-10-07
64
- - Hotfix / auto bump
65
-
66
- ## v2.0.10 - 2025-10-07
67
- - Hotfix / auto bump
68
-
69
- ## v2.0.10 - 2025-10-07
70
- - Hotfix / auto bump
71
-
72
- ## v2.0.11 - 2025-10-07
73
- - Hotfix / auto bump
74
-
75
- ## v2.0.12 - 2025-10-07
76
- - Hotfix / auto bump
77
-
78
- ## v2.0.13 - 2025-10-07
79
- - Hotfix / auto bump
80
-
81
- ## v2.0.14 - 2025-10-07
82
- - Hotfix / auto bump
83
-
84
- ## v2.0.15 - 2025-10-07
85
- - Hotfix / auto bump
86
-
87
- ## v2.0.16 - 2025-10-07
88
- - Hotfix / auto bump
89
-
90
- ## v2.0.17 - 2025-10-07
91
- - Hotfix / auto bump
92
-
93
- ## v2.0.18 - 2025-10-07
94
- - Hotfix / auto bump
95
-
96
- ## v2.0.19 - 2025-10-07
97
- - Hotfix / auto bump
98
-
99
- ## v2.0.20 - 2025-10-08
100
- - Hotfix / auto bump
101
-
102
- ## v2.0.21 - 2025-10-08
103
- - Hotfix / auto bump
104
-
105
- ## v2.0.22 - 2025-10-09
106
- - Hotfix / auto bump
107
-
108
- ## v2.0.23 - 2025-10-11
109
- - Hotfix / auto bump
110
-
111
- ## v2.0.24 - 2025-10-11
112
- - Hotfix / auto bump
113
-
114
- ## v2.0.25 - 2025-10-12
115
- - Hotfix / auto bump
116
-
117
- ## v2.0.26 - 2025-10-16
118
- - Hotfix / auto bump
119
-
120
- ## v2.0.27 - 2025-10-18
121
- - Hotfix / auto bump
122
-
123
- ## v2.0.28 - 2025-10-18
124
- - Hotfix / auto bump
125
-
126
- ## v2.0.29 - 2025-10-19
127
- - Hotfix / auto bump
128
-
129
- ## v2.0.30 - 2025-10-19
130
- - Hotfix / auto bump
131
-
132
- ## v2.0.31 - 2025-10-27
133
- - Hotfix / auto bump
134
-
135
- ## v2.0.32 - 2025-10-30
136
- - Hotfix / auto bump
137
-
138
- ## v3.0.2 - 2025-11-27
139
- - Hotfix / auto bump
140
-
141
- ## v3.0.3 - 2025-11-27
142
- - Hotfix / auto bump
143
-
144
- ## v3.0.4 - 2025-11-27
145
- - Hotfix / auto bump
146
-
147
- ## v3.0.5 - 2025-11-27
148
- - Hotfix / auto bump
149
-
150
- ## v3.0.6 - 2025-11-27
151
- - Hotfix / auto bump
152
-
153
- ## v3.0.7 - 2025-11-27
154
- - Hotfix / auto bump
155
-
156
- ## v3.0.8 - 2025-11-27
157
- - Hotfix / auto bump
158
-
159
- ## v3.0.9 - 2025-12-05
160
- - Hotfix / auto bump
161
-
162
- ## v3.0.10 - 2025-12-05
163
- - Hotfix / auto bump
164
-
165
- ## v3.0.11 - 2025-12-05
166
- - Hotfix / auto bump
167
-
168
- ## v3.0.12 - 2025-12-05
169
- - Hotfix / auto bump
170
-
171
- ## v3.0.15 - 2025-12-12
172
- - Hotfix / auto bump
173
-
174
- ## v3.0.17 - 2025-12-16
175
- - Hotfix / auto bump
176
-
177
- ## v3.0.19 - 2025-12-31
178
- - Hotfix / auto bump
179
-
180
- ## v3.0.20 - 2025-12-31
181
- - Hotfix / auto bump
182
-
183
- ## v3.0.21 - 2025-12-31
184
- - Hotfix / auto bump
185
-
186
- ## v3.0.22 - 2026-01-07
187
- - Hotfix / auto bump
188
-
189
- ## v3.0.23 - 2026-01-30
190
- - Hotfix / auto bump
1
+ # Changelog
2
+ Too lazy to write changelog, sorry! (will write changelog in the next release, through.)
3
+ ## v1.0.10 - 2025-04-24
4
+ - Hotfix / auto bump
5
+
6
+ ## v1.0.11 - 2025-04-24
7
+ - Hotfix / auto bump
8
+
9
+ ## v1.0.12 - 2025-04-28
10
+ - Hotfix / auto bump
11
+
12
+ ## v1.0.13 - 2025-04-28
13
+ - Hotfix / auto bump
14
+
15
+ ## v1.0.14 - 2025-04-28
16
+ - Hotfix / auto bump
17
+
18
+ ## v1.0.15 - 2025-05-03
19
+ - Hotfix / auto bump
20
+
21
+ ## v1.0.16 - 2025-05-07
22
+ - Hotfix / auto bump
23
+
24
+ ## v1.0.17 - 2025-05-07
25
+ - Hotfix / auto bump
26
+
27
+ ## v1.0.18 - 2025-05-22
28
+ - Hotfix / auto bump
29
+
30
+ ## v1.0.19 - 2025-05-23
31
+ - Hotfix / auto bump
32
+
33
+ ## v2.0.0 - 2025-10-05
34
+ - Hotfix / auto bump
35
+
36
+ ## v2.0.1 - 2025-10-05
37
+ - Hotfix / auto bump
38
+
39
+ ## v2.0.2 - 2025-10-05
40
+ - Hotfix / auto bump
41
+
42
+ ## v2.0.3 - 2025-10-05
43
+ - Hotfix / auto bump
44
+
45
+ ## v2.0.4 - 2025-10-05
46
+ - Hotfix / auto bump
47
+
48
+ ## v2.0.5 - 2025-10-06
49
+ - Now you can turn on/off autoLogin in config file.
50
+ - Added autoUpdate feature.
51
+ ## v2.0.6-beta - 2025-10-06
52
+ - Hotfix / auto bump
53
+
54
+ ## v2.0.7 - 2025-10-06
55
+ - Hotfix / auto bump
56
+
57
+ ## v2.0.8 - 2025-10-07
58
+ - Hotfix / auto bump
59
+
60
+ ## v2.0.9 - 2025-10-07
61
+ - Hotfix / auto bump
62
+
63
+ ## v2.0.9 - 2025-10-07
64
+ - Hotfix / auto bump
65
+
66
+ ## v2.0.10 - 2025-10-07
67
+ - Hotfix / auto bump
68
+
69
+ ## v2.0.10 - 2025-10-07
70
+ - Hotfix / auto bump
71
+
72
+ ## v2.0.11 - 2025-10-07
73
+ - Hotfix / auto bump
74
+
75
+ ## v2.0.12 - 2025-10-07
76
+ - Hotfix / auto bump
77
+
78
+ ## v2.0.13 - 2025-10-07
79
+ - Hotfix / auto bump
80
+
81
+ ## v2.0.14 - 2025-10-07
82
+ - Hotfix / auto bump
83
+
84
+ ## v2.0.15 - 2025-10-07
85
+ - Hotfix / auto bump
86
+
87
+ ## v2.0.16 - 2025-10-07
88
+ - Hotfix / auto bump
89
+
90
+ ## v2.0.17 - 2025-10-07
91
+ - Hotfix / auto bump
92
+
93
+ ## v2.0.18 - 2025-10-07
94
+ - Hotfix / auto bump
95
+
96
+ ## v2.0.19 - 2025-10-07
97
+ - Hotfix / auto bump
98
+
99
+ ## v2.0.20 - 2025-10-08
100
+ - Hotfix / auto bump
101
+
102
+ ## v2.0.21 - 2025-10-08
103
+ - Hotfix / auto bump
104
+
105
+ ## v2.0.22 - 2025-10-09
106
+ - Hotfix / auto bump
107
+
108
+ ## v2.0.23 - 2025-10-11
109
+ - Hotfix / auto bump
110
+
111
+ ## v2.0.24 - 2025-10-11
112
+ - Hotfix / auto bump
113
+
114
+ ## v2.0.25 - 2025-10-12
115
+ - Hotfix / auto bump
116
+
117
+ ## v2.0.26 - 2025-10-16
118
+ - Hotfix / auto bump
119
+
120
+ ## v2.0.27 - 2025-10-18
121
+ - Hotfix / auto bump
122
+
123
+ ## v2.0.28 - 2025-10-18
124
+ - Hotfix / auto bump
125
+
126
+ ## v2.0.29 - 2025-10-19
127
+ - Hotfix / auto bump
128
+
129
+ ## v2.0.30 - 2025-10-19
130
+ - Hotfix / auto bump
131
+
132
+ ## v2.0.31 - 2025-10-27
133
+ - Hotfix / auto bump
134
+
135
+ ## v2.0.32 - 2025-10-30
136
+ - Hotfix / auto bump
137
+
138
+ ## v3.0.2 - 2025-11-27
139
+ - Hotfix / auto bump
140
+
141
+ ## v3.0.3 - 2025-11-27
142
+ - Hotfix / auto bump
143
+
144
+ ## v3.0.4 - 2025-11-27
145
+ - Hotfix / auto bump
146
+
147
+ ## v3.0.5 - 2025-11-27
148
+ - Hotfix / auto bump
149
+
150
+ ## v3.0.6 - 2025-11-27
151
+ - Hotfix / auto bump
152
+
153
+ ## v3.0.7 - 2025-11-27
154
+ - Hotfix / auto bump
155
+
156
+ ## v3.0.8 - 2025-11-27
157
+ - Hotfix / auto bump
158
+
159
+ ## v3.0.9 - 2025-12-05
160
+ - Hotfix / auto bump
161
+
162
+ ## v3.0.10 - 2025-12-05
163
+ - Hotfix / auto bump
164
+
165
+ ## v3.0.11 - 2025-12-05
166
+ - Hotfix / auto bump
167
+
168
+ ## v3.0.12 - 2025-12-05
169
+ - Hotfix / auto bump
170
+
171
+ ## v3.0.15 - 2025-12-12
172
+ - Hotfix / auto bump
173
+
174
+ ## v3.0.17 - 2025-12-16
175
+ - Hotfix / auto bump
176
+
177
+ ## v3.0.19 - 2025-12-31
178
+ - Hotfix / auto bump
179
+
180
+ ## v3.0.20 - 2025-12-31
181
+ - Hotfix / auto bump
182
+
183
+ ## v3.0.21 - 2025-12-31
184
+ - Hotfix / auto bump
185
+
186
+ ## v3.0.22 - 2026-01-07
187
+ - Hotfix / auto bump
188
+
189
+ ## v3.0.23 - 2026-01-30
190
+ - Hotfix / auto bump
191
+
192
+ ## v3.0.25 - 2026-02-05
193
+ - Hotfix / auto bump
194
+
195
+ ## v3.0.27 - 2026-02-22
196
+ - Hotfix / auto bump
package/DOCS.md CHANGED
@@ -142,9 +142,6 @@ api.setOptions({
142
142
  // Auto mark messages as read
143
143
  autoMarkRead: false,
144
144
 
145
- // Auto mark as delivered
146
- autoMarkDelivery: false,
147
-
148
145
  // Online status (true/false)
149
146
  online: true,
150
147
 
@@ -1568,7 +1565,7 @@ Add reaction (like, love, haha, wow, sad, angry) to message.
1568
1565
 
1569
1566
  #### Syntax:
1570
1567
  ```javascript
1571
- api.setMessageReaction(reaction, messageID, threadID, callback, forceCustomReaction);
1568
+ api.setMessageReaction(reaction, messageID, threadID, callback, forceCustomReaction);
1572
1569
  ```
1573
1570
 
1574
1571
  #### Example:
@@ -1587,7 +1584,7 @@ api.listenMqtt((err, event) => {
1587
1584
  if (err) return console.error(err);
1588
1585
 
1589
1586
  if (event.type === "message" && event.body === "React me") {
1590
- api.setMessageReaction("❤️", event.messageID, event.threadID, (err) => {
1587
+ api.setMessageReaction("❤️", event.messageID, event.threadID, (err) => {
1591
1588
  if (err) {
1592
1589
  console.error("React error:", err);
1593
1590
  return;
@@ -1598,7 +1595,7 @@ api.listenMqtt((err, event) => {
1598
1595
  });
1599
1596
 
1600
1597
  // Remove reaction
1601
- api.setMessageReaction("", "mid.xxx", "1234567890", (err) => {
1598
+ api.setMessageReaction("", "mid.xxx", "1234567890", (err) => {
1602
1599
  if (err) return console.error(err);
1603
1600
  console.log("Reaction removed!");
1604
1601
  });
Binary file
package/LICENSE-MIT CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 DongDev
3
+ Copyright (c) 2026 DongDev (Donix-VN)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -343,7 +343,7 @@ api.deleteMessage(messageID, callback);
343
343
  api.unsendMessage(messageID, callback);
344
344
 
345
345
  // Set message reaction
346
- api.setMessageReaction(reaction, messageID, threadID, callback, forceCustomReaction);
346
+ api.setMessageReaction(reaction, messageID, threadID, callback, forceCustomReaction);
347
347
 
348
348
  // Forward attachment
349
349
  api.forwardAttachment(attachmentID, threadID, callback);