@gamastudio/sendwave-provider 0.0.8 → 0.0.10
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/build/package.json +1 -1
- package/build/provider/sender.js +4 -3
- package/package.json +1 -1
package/build/package.json
CHANGED
package/build/provider/sender.js
CHANGED
|
@@ -156,13 +156,14 @@ class SenderMessage {
|
|
|
156
156
|
mediaType = result.mediaType;
|
|
157
157
|
}
|
|
158
158
|
return await ((_c = this.sendwaveApi) === null || _c === void 0 ? void 0 : _c.post(`/message/sendMedia/${(_d = this.globalVendorArgs) === null || _d === void 0 ? void 0 : _d.name}`, {
|
|
159
|
+
// ...this.globalVendorArgs,
|
|
159
160
|
number: data.from.split("@")[0],
|
|
160
|
-
caption: data.text,
|
|
161
161
|
mediatype: mediaType,
|
|
162
162
|
mimetype: mimeType,
|
|
163
|
+
fileName: data.fileName || `${crypto.randomUUID()}.${mimeType.split("/")[1]}`,
|
|
163
164
|
media: media,
|
|
164
|
-
|
|
165
|
-
|
|
165
|
+
caption: data.text,
|
|
166
|
+
delay: data.delay || 0,
|
|
166
167
|
}));
|
|
167
168
|
}
|
|
168
169
|
catch (e) {
|