@gamastudio/sendwave-provider 0.0.5 → 0.0.7
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
CHANGED
|
@@ -48,6 +48,7 @@ export declare class SendWaveProvider extends ProviderClass<SendWaveCore> {
|
|
|
48
48
|
sendButton(...args: Parameters<SenderMessage["sendButton"]>): Promise<import("axios").AxiosResponse<any, any, {}> | undefined>;
|
|
49
49
|
sendReaction(...args: Parameters<SenderMessage["sendReaction"]>): Promise<import("axios").AxiosResponse<any, any, {}> | undefined>;
|
|
50
50
|
sendLocation(...args: Parameters<SenderMessage["sendLocation"]>): Promise<import("axios").AxiosResponse<any, any, {}> | undefined>;
|
|
51
|
+
sendMedia(...args: Parameters<SenderMessage["sendMedia"]>): Promise<import("axios").AxiosResponse<any, any, {}> | undefined>;
|
|
51
52
|
/**
|
|
52
53
|
* Reset user timeout for queue flow system
|
|
53
54
|
*/
|
|
@@ -314,6 +314,9 @@ class SendWaveProvider extends bot_1.ProviderClass {
|
|
|
314
314
|
sendLocation(...args) {
|
|
315
315
|
return this.sender.sendLocation(...args);
|
|
316
316
|
}
|
|
317
|
+
sendMedia(...args) {
|
|
318
|
+
return this.sender.sendMedia(...args);
|
|
319
|
+
}
|
|
317
320
|
// Queue Flow Management Methods
|
|
318
321
|
/**
|
|
319
322
|
* Reset user timeout for queue flow system
|
package/build/provider/sender.js
CHANGED
|
@@ -219,7 +219,6 @@ class SenderMessage {
|
|
|
219
219
|
var _a, _b;
|
|
220
220
|
try {
|
|
221
221
|
return await ((_a = this.sendwaveApi) === null || _a === void 0 ? void 0 : _a.post(`/message/sendReaction/${(_b = this.globalVendorArgs) === null || _b === void 0 ? void 0 : _b.name}`, {
|
|
222
|
-
number: data.from.split("@")[0],
|
|
223
222
|
key: data.key,
|
|
224
223
|
reaction: data.reaction,
|
|
225
224
|
...this.globalVendorArgs,
|