@dongdev/fca-unofficial 3.0.15 → 3.0.17

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/CHANGELOG.md CHANGED
@@ -167,3 +167,6 @@ Too lazy to write changelog, sorry! (will write changelog in the next release, t
167
167
 
168
168
  ## v3.0.12 - 2025-12-05
169
169
  - Hotfix / auto bump
170
+
171
+ ## v3.0.15 - 2025-12-12
172
+ - Hotfix / auto bump
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dongdev/fca-unofficial",
3
- "version": "3.0.15",
3
+ "version": "3.0.17",
4
4
  "description": "Unofficial Facebook Chat API for Node.js - Interact with Facebook Messenger programmatically",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -24,9 +24,9 @@ module.exports = function (defaultFuncs, api, ctx) {
24
24
  async function uploadAttachment(streams) {
25
25
  const uploads = streams.map(stream => {
26
26
  if (!isReadableStream(stream)) throw { error: "Attachment should be a readable stream and not " + getType(stream) + "." };
27
- const form = { upload_1024: stream, voice_clip: "true" };
27
+ const form = { farr: stream };
28
28
  return defaultFuncs
29
- .postFormData("https://upload.facebook.com/ajax/mercury/upload.php", ctx.jar, form, {})
29
+ .postFormData("https://www.facebook.com/ajax/mercury/upload.php", ctx.jar, form, {})
30
30
  .then(parseAndCheckLogin(ctx, defaultFuncs))
31
31
  .then(resData => {
32
32
  if (resData.error) throw resData;
@@ -20,14 +20,13 @@ module.exports = function(defaultFuncs, api, ctx) {
20
20
  }
21
21
 
22
22
  const form = {
23
- upload_1024: attachments[i],
24
- voice_clip: "true"
23
+ farr: attachments[i]
25
24
  };
26
25
 
27
26
  uploads.push(
28
27
  defaultFuncs
29
28
  .postFormData(
30
- "https://upload.facebook.com/ajax/mercury/upload.php",
29
+ "https://www.facebook.com/ajax/mercury/upload.php",
31
30
  ctx.jar,
32
31
  form,
33
32
  {}