@hbmodsofc/baileys 2.3.0 → 2.5.0

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.
@@ -1,6 +1,7 @@
1
+ // dugong.d.ts
1
2
  import { proto } from '../../WAProto';
2
3
 
3
- declare namespace hbmodsofc {
4
+ declare namespace hbmodofc {
4
5
  interface MediaUploadOptions {
5
6
  fileEncSha256?: Buffer;
6
7
  mediaType?: string;
@@ -189,65 +190,65 @@ declare namespace hbmodsofc {
189
190
  }
190
191
  }
191
192
 
192
- declare class hbmodsofc {
193
+ declare class hbmodofc {
193
194
  constructor(
194
- utils: hbmodsofc.Utils,
195
- waUploadToServer: hbmodsofc.WAMediaUploadFunction,
195
+ utils: hbmodofc.Utils,
196
+ waUploadToServer: hbmodofc.WAMediaUploadFunction,
196
197
  relayMessageFn?: (jid: string, content: any, options?: any) => Promise<any>
197
198
  );
198
199
 
199
- detectType(content: hbmodsofc.MessageContent): 'PAYMENT' | 'PRODUCT' | 'INTERACTIVE' | 'ALBUM' | 'EVENT' | 'POLL_RESULT' | 'GROUP_STORY' | null;
200
+ detectType(content: hbmodofc.MessageContent): 'PAYMENT' | 'PRODUCT' | 'INTERACTIVE' | 'ALBUM' | 'EVENT' | 'POLL_RESULT' | 'GROUP_STORY' | null;
200
201
 
201
202
  handlePayment(
202
- content: { requestPaymentMessage: hbmodsofc.PaymentMessage },
203
+ content: { requestPaymentMessage: hbmodofc.PaymentMessage },
203
204
  quoted?: proto.IWebMessageInfo
204
205
  ): Promise<{ requestPaymentMessage: proto.Message.RequestPaymentMessage }>;
205
206
 
206
207
  handleProduct(
207
- content: { productMessage: hbmodsofc.ProductMessage },
208
+ content: { productMessage: hbmodofc.ProductMessage },
208
209
  jid: string,
209
210
  quoted?: proto.IWebMessageInfo
210
211
  ): Promise<{ viewOnceMessage: proto.Message.ViewOnceMessage }>;
211
212
 
212
213
  handleInteractive(
213
- content: { interactiveMessage: hbmodsofc.InteractiveMessage },
214
+ content: { interactiveMessage: hbmodofc.InteractiveMessage },
214
215
  jid: string,
215
216
  quoted?: proto.IWebMessageInfo
216
217
  ): Promise<{ interactiveMessage: proto.Message.InteractiveMessage }>;
217
218
 
218
219
  handleAlbum(
219
- content: { albumMessage: hbmodsofc.AlbumItem[] },
220
+ content: { albumMessage: hbmodofc.AlbumItem[] },
220
221
  jid: string,
221
222
  quoted?: proto.IWebMessageInfo
222
223
  ): Promise<any>;
223
224
 
224
225
  handleEvent(
225
- content: { eventMessage: hbmodsofc.EventMessage },
226
+ content: { eventMessage: hbmodofc.EventMessage },
226
227
  jid: string,
227
228
  quoted?: proto.IWebMessageInfo
228
229
  ): Promise<any>;
229
230
 
230
231
  handlePollResult(
231
- content: { pollResultMessage: hbmodsofc.PollResultMessage },
232
+ content: { pollResultMessage: hbmodofc.PollResultMessage },
232
233
  jid: string,
233
234
  quoted?: proto.IWebMessageInfo
234
235
  ): Promise<any>;
235
236
 
236
237
  handleGroupStory(
237
- content: { groupStatusMessage: hbmodsofc.GroupStatusMessage },
238
+ content: { groupStatusMessage: hbmodofc.GroupStatusMessage },
238
239
  jid: string,
239
240
  quoted?: proto.IWebMessageInfo
240
241
  ): Promise<any>;
241
242
 
242
243
  buildMessageContent(
243
244
  content: any,
244
- opts?: hbmodsofc.WAMessageContentGenerationOptions
245
+ opts?: hbmodofc.WAMessageContentGenerationOptions
245
246
  ): Promise<any>;
246
247
 
247
- utils: hbmodsofc.Utils;
248
+ utils: hbmodofc.Utils;
248
249
  relayMessage: (jid: string, content: any, options?: any) => Promise<any>;
249
- waUploadToServer: hbmodsofc.WAMediaUploadFunction;
250
- bail: hbmodsofc.BailUtils;
250
+ waUploadToServer: hbmodofc.WAMediaUploadFunction;
251
+ bail: hbmodofc.BailUtils;
251
252
  }
252
253
 
253
- export = hbmodsofc;
254
+ export = hbmodofc;