@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.
@@ -7,5 +7,7 @@ export interface ParsedMessage {
7
7
  type: string;
8
8
  media?: string;
9
9
  caption?: string;
10
- originalPayload: any;
10
+ originalPayload: {
11
+ key: any;
12
+ };
11
13
  }
@@ -93,7 +93,7 @@ export interface SendLocation extends SendMessage {
93
93
  latitude: number;
94
94
  longitude: number;
95
95
  }
96
- export interface SendReaction extends SendMessage {
96
+ export interface SendReaction {
97
97
  key: {
98
98
  remoteJid: string;
99
99
  fromMe: boolean;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamastudio/sendwave-provider",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Librería para interactuar con Sendwave usando configuración dinámica.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -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
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamastudio/sendwave-provider",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "Librería para interactuar con Sendwave usando configuración dinámica.",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",