@wppconnect/wa-js 2.7.2 → 2.7.3

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.
Files changed (166) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/contact/functions/getStatus.d.ts +1 -1
  3. package/dist/group/functions/addParticipants.d.ts +20 -1
  4. package/dist/whatsapp/collections/AggReactionsCollection.d.ts +3 -1
  5. package/dist/whatsapp/collections/BaseCollection.d.ts +4 -2
  6. package/dist/whatsapp/collections/BlocklistCollection.d.ts +3 -1
  7. package/dist/whatsapp/collections/BusinessCategoriesResultCollection.d.ts +3 -1
  8. package/dist/whatsapp/collections/BusinessProfileCollection.d.ts +3 -1
  9. package/dist/whatsapp/collections/CallCollection.d.ts +1 -0
  10. package/dist/whatsapp/collections/CartCollection.d.ts +3 -1
  11. package/dist/whatsapp/collections/CartItemCollection.d.ts +3 -1
  12. package/dist/whatsapp/collections/CatalogCollection.d.ts +3 -1
  13. package/dist/whatsapp/collections/ChatCollection.d.ts +3 -1
  14. package/dist/whatsapp/collections/ChatstateCollection.d.ts +3 -1
  15. package/dist/whatsapp/collections/Collection.d.ts +6 -2
  16. package/dist/whatsapp/collections/ContactCollection.d.ts +5 -4
  17. package/dist/whatsapp/collections/EmojiVariantCollection.d.ts +3 -1
  18. package/dist/whatsapp/collections/GroupMetadataCollection.d.ts +3 -1
  19. package/dist/whatsapp/collections/LabelCollection.d.ts +3 -1
  20. package/dist/whatsapp/collections/LabelItemCollection.d.ts +3 -1
  21. package/dist/whatsapp/collections/LiveLocationCollection.d.ts +3 -1
  22. package/dist/whatsapp/collections/MsgCollection.d.ts +3 -1
  23. package/dist/whatsapp/collections/MsgInfoCollection.d.ts +3 -1
  24. package/dist/whatsapp/collections/OrderCollection.d.ts +3 -1
  25. package/dist/whatsapp/collections/OrderItemCollection.d.ts +3 -1
  26. package/dist/whatsapp/collections/ParticipantCollection.d.ts +1 -0
  27. package/dist/whatsapp/collections/PresenceCollection.d.ts +3 -1
  28. package/dist/whatsapp/collections/ProductCollCollection.d.ts +3 -1
  29. package/dist/whatsapp/collections/ProductCollection.d.ts +3 -1
  30. package/dist/whatsapp/collections/ProductImageCollection.d.ts +3 -1
  31. package/dist/whatsapp/collections/ProfilePicThumbCollection.d.ts +3 -1
  32. package/dist/whatsapp/collections/QuickReplyCollection.d.ts +3 -1
  33. package/dist/whatsapp/collections/ReactionsCollection.d.ts +3 -1
  34. package/dist/whatsapp/collections/ReactionsSendersCollection.d.ts +3 -1
  35. package/dist/whatsapp/collections/RecentEmojiCollection.d.ts +3 -1
  36. package/dist/whatsapp/collections/RecentStickerCollection.d.ts +1 -0
  37. package/dist/whatsapp/collections/StarredMsgCollection.d.ts +3 -1
  38. package/dist/whatsapp/collections/StatusV3Collection.d.ts +3 -1
  39. package/dist/whatsapp/collections/StickerCollection.d.ts +3 -1
  40. package/dist/whatsapp/collections/StickerPackCollection.d.ts +1 -0
  41. package/dist/whatsapp/collections/StickerSearchCollection.d.ts +3 -1
  42. package/dist/whatsapp/collections/TemplateButtonCollection.d.ts +3 -1
  43. package/dist/whatsapp/enums/ACK.d.ts +3 -0
  44. package/dist/whatsapp/enums/CALL_STATES.d.ts +1 -0
  45. package/dist/whatsapp/enums/GROUP_SETTING_TYPE.d.ts +1 -0
  46. package/dist/whatsapp/enums/LogoutReason.d.ts +1 -0
  47. package/dist/whatsapp/enums/MSG_TYPE.d.ts +2 -0
  48. package/dist/whatsapp/enums/SendMsgResult.d.ts +3 -1
  49. package/dist/whatsapp/functions/addAndSendMsgToChat.d.ts +3 -1
  50. package/dist/whatsapp/functions/blockContact.d.ts +6 -2
  51. package/dist/whatsapp/functions/createMsgProtobuf.d.ts +3 -1
  52. package/dist/whatsapp/functions/createOrUpdateReactions.d.ts +3 -1
  53. package/dist/whatsapp/functions/encryptAndSendGroupMsg.d.ts +1 -0
  54. package/dist/whatsapp/functions/encryptAndSendMsg.d.ts +1 -0
  55. package/dist/whatsapp/functions/fetchLinkPreview.d.ts +1 -0
  56. package/dist/whatsapp/functions/findChat.d.ts +3 -1
  57. package/dist/whatsapp/functions/findFirstWebLink.d.ts +1 -0
  58. package/dist/whatsapp/functions/genMinimalLinkPreview.d.ts +1 -0
  59. package/dist/whatsapp/functions/generateVideoThumbsAndDuration.d.ts +2 -1
  60. package/dist/whatsapp/functions/getFanOutList.d.ts +1 -0
  61. package/dist/whatsapp/functions/getGroupSenderKeyList.d.ts +1 -0
  62. package/dist/whatsapp/functions/getOrGenerate.d.ts +1 -0
  63. package/dist/whatsapp/functions/groupParticipants.d.ts +12 -4
  64. package/dist/whatsapp/functions/handleAck.d.ts +12 -3
  65. package/dist/whatsapp/functions/index.d.ts +1 -0
  66. package/dist/whatsapp/functions/isAuthenticated.d.ts +2 -0
  67. package/dist/whatsapp/functions/markSeen.d.ts +3 -1
  68. package/dist/whatsapp/functions/mediaTypeFromProtobuf.d.ts +1 -0
  69. package/dist/whatsapp/functions/products.d.ts +12 -4
  70. package/dist/whatsapp/functions/randomId.d.ts +1 -0
  71. package/dist/whatsapp/functions/sendClear.d.ts +3 -1
  72. package/dist/whatsapp/functions/sendDelete.d.ts +3 -1
  73. package/dist/whatsapp/functions/sendExitGroup.d.ts +3 -1
  74. package/dist/whatsapp/functions/sendGroupParticipants.d.ts +42 -0
  75. package/dist/whatsapp/functions/sendJoinGroupViaInvite.d.ts +3 -1
  76. package/dist/whatsapp/functions/sendQueryGroupInvite.d.ts +3 -1
  77. package/dist/whatsapp/functions/sendReactionToMsg.d.ts +3 -1
  78. package/dist/whatsapp/functions/sendRevokeGroupInviteCode.d.ts +3 -1
  79. package/dist/whatsapp/functions/sendTextMsgToChat.d.ts +3 -1
  80. package/dist/whatsapp/functions/setArchive.d.ts +1 -0
  81. package/dist/whatsapp/functions/setGroup.d.ts +9 -3
  82. package/dist/whatsapp/functions/setPin.d.ts +1 -0
  83. package/dist/whatsapp/functions/status.d.ts +2 -0
  84. package/dist/whatsapp/functions/typeAttributeFromProtobuf.d.ts +3 -1
  85. package/dist/whatsapp/functions/uploadProductImage.d.ts +3 -1
  86. package/dist/whatsapp/functions/uploadThumbnail.d.ts +1 -0
  87. package/dist/whatsapp/misc/Base64.d.ts +3 -1
  88. package/dist/whatsapp/misc/Browser.d.ts +1 -0
  89. package/dist/whatsapp/misc/ChatPresence.d.ts +3 -1
  90. package/dist/whatsapp/misc/Cmd.d.ts +2 -0
  91. package/dist/whatsapp/misc/Conn.d.ts +3 -1
  92. package/dist/whatsapp/misc/Constants.d.ts +1 -0
  93. package/dist/whatsapp/misc/EventEmitter.d.ts +1 -0
  94. package/dist/whatsapp/misc/Features.d.ts +1 -0
  95. package/dist/whatsapp/misc/ImageUtils.d.ts +1 -0
  96. package/dist/whatsapp/misc/Locale.d.ts +1 -0
  97. package/dist/whatsapp/misc/MediaBlobCache.d.ts +6 -2
  98. package/dist/whatsapp/misc/MediaEntry.d.ts +2 -1
  99. package/dist/whatsapp/misc/MediaObject.d.ts +3 -1
  100. package/dist/whatsapp/misc/MediaObjectUtil.d.ts +3 -1
  101. package/dist/whatsapp/misc/MediaPrep.d.ts +3 -1
  102. package/dist/whatsapp/misc/MediaUtils.d.ts +3 -1
  103. package/dist/whatsapp/misc/MsgKey.d.ts +1 -0
  104. package/dist/whatsapp/misc/MsgLoadState.d.ts +6 -2
  105. package/dist/whatsapp/misc/OpaqueData.d.ts +6 -2
  106. package/dist/whatsapp/misc/Socket.d.ts +3 -1
  107. package/dist/whatsapp/misc/Stream.d.ts +3 -1
  108. package/dist/whatsapp/misc/UserPrefs.d.ts +1 -0
  109. package/dist/whatsapp/misc/VCard.d.ts +1 -0
  110. package/dist/whatsapp/misc/Wap.d.ts +2 -0
  111. package/dist/whatsapp/misc/Wid.d.ts +1 -0
  112. package/dist/whatsapp/misc/WidFactory.d.ts +1 -0
  113. package/dist/whatsapp/models/AggReactionsModel.d.ts +2 -0
  114. package/dist/whatsapp/models/AttachMediaModel.d.ts +6 -2
  115. package/dist/whatsapp/models/BlocklistModel.d.ts +6 -2
  116. package/dist/whatsapp/models/BusinessCategoriesResultModel.d.ts +6 -2
  117. package/dist/whatsapp/models/BusinessProfileModel.d.ts +6 -2
  118. package/dist/whatsapp/models/CallModel.d.ts +2 -0
  119. package/dist/whatsapp/models/CallParticipantModel.d.ts +2 -0
  120. package/dist/whatsapp/models/CartItemModel.d.ts +6 -2
  121. package/dist/whatsapp/models/CartModel.d.ts +6 -2
  122. package/dist/whatsapp/models/CatalogModel.d.ts +6 -2
  123. package/dist/whatsapp/models/ChatPreferenceModel.d.ts +6 -2
  124. package/dist/whatsapp/models/ChatstateModel.d.ts +6 -2
  125. package/dist/whatsapp/models/ConnModel.d.ts +6 -2
  126. package/dist/whatsapp/models/ContactModel.d.ts +6 -2
  127. package/dist/whatsapp/models/ConversionTupleModel.d.ts +6 -2
  128. package/dist/whatsapp/models/EmojiVariantModel.d.ts +6 -2
  129. package/dist/whatsapp/models/GroupMetadataModel.d.ts +6 -2
  130. package/dist/whatsapp/models/LabelItemModel.d.ts +6 -2
  131. package/dist/whatsapp/models/LabelModel.d.ts +6 -2
  132. package/dist/whatsapp/models/LiveLocationParticipantModel.d.ts +6 -2
  133. package/dist/whatsapp/models/MediaDataModel.d.ts +6 -2
  134. package/dist/whatsapp/models/Model.d.ts +3 -1
  135. package/dist/whatsapp/models/ModelChatBase.d.ts +3 -1
  136. package/dist/whatsapp/models/MsgButtonReplyMsgModel.d.ts +6 -2
  137. package/dist/whatsapp/models/MsgInfoModel.d.ts +6 -2
  138. package/dist/whatsapp/models/MuteModel.d.ts +6 -2
  139. package/dist/whatsapp/models/OrderItemModel.d.ts +6 -2
  140. package/dist/whatsapp/models/OrderModel.d.ts +6 -2
  141. package/dist/whatsapp/models/ParticipantModel.d.ts +6 -2
  142. package/dist/whatsapp/models/PresenceModel.d.ts +6 -2
  143. package/dist/whatsapp/models/ProductCollModel.d.ts +6 -2
  144. package/dist/whatsapp/models/ProductImageModel.d.ts +6 -2
  145. package/dist/whatsapp/models/ProductMessageListModel.d.ts +6 -2
  146. package/dist/whatsapp/models/ProductModel.d.ts +6 -2
  147. package/dist/whatsapp/models/ProfilePicThumbModel.d.ts +6 -2
  148. package/dist/whatsapp/models/QuickReplyModel.d.ts +6 -2
  149. package/dist/whatsapp/models/ReactionsModel.d.ts +2 -0
  150. package/dist/whatsapp/models/ReactionsSendersModel.d.ts +2 -0
  151. package/dist/whatsapp/models/RecentStickerModel.d.ts +6 -2
  152. package/dist/whatsapp/models/ReplyButtonModel.d.ts +6 -2
  153. package/dist/whatsapp/models/StatusModel.d.ts +6 -2
  154. package/dist/whatsapp/models/StatusV3Model.d.ts +6 -2
  155. package/dist/whatsapp/models/StickerModel.d.ts +2 -0
  156. package/dist/whatsapp/models/StickerPackModel.d.ts +6 -2
  157. package/dist/whatsapp/models/StreamModel.d.ts +6 -2
  158. package/dist/whatsapp/models/TemplateButtonModel.d.ts +6 -2
  159. package/dist/whatsapp/models/UnreadMentionModel.d.ts +6 -2
  160. package/dist/whatsapp/models/WebCallModel.d.ts +2 -0
  161. package/dist/whatsapp/multidevice/adv.d.ts +1 -0
  162. package/dist/whatsapp/multidevice/waNoiseInfo.d.ts +1 -0
  163. package/dist/whatsapp/multidevice/waSignalStore.d.ts +1 -0
  164. package/dist/whatsapp/stores.d.ts +76 -25
  165. package/dist/wppconnect-wa.js +1 -1
  166. package/package.json +4 -4
@@ -23,5 +23,7 @@ export interface ReactionData {
23
23
  senderUserJid: string;
24
24
  timestamp: number;
25
25
  }
26
- /** @whatsapp 7394 */
26
+ /** @whatsapp 7394
27
+ * @whatsapp 307394 >= 2.2222.8
28
+ */
27
29
  export declare function createOrUpdateReactions(data: ReactionData[]): Promise<any>;
@@ -16,5 +16,6 @@
16
16
  import { MsgModel } from '../models';
17
17
  /**
18
18
  * @whatsapp 51974
19
+ * @whatsapp 951974 >= 2.2222.8
19
20
  */
20
21
  export declare function encryptAndSendGroupMsg(message: MsgModel, protobuf: any): Promise<any>;
@@ -16,5 +16,6 @@
16
16
  import { MsgModel } from '../models';
17
17
  /**
18
18
  * @whatsapp 95547
19
+ * @whatsapp 695547 >= 2.2222.8
19
20
  */
20
21
  export declare function encryptAndSendMsg(message: MsgModel): Promise<any>;
@@ -27,5 +27,6 @@ export interface LinkPreviewResult {
27
27
  }
28
28
  /** @whatsapp 19146
29
29
  * @whatsapp 75820 >= 2.2204.13
30
+ * @whatsapp 519146 >= 2.2222.8
30
31
  */
31
32
  export declare function fetchLinkPreview(url: string): Promise<null | LinkPreviewResult>;
@@ -15,5 +15,7 @@
15
15
  */
16
16
  import { Wid } from '..';
17
17
  import { ChatModel } from '../models';
18
- /** @whatsapp 50101 */
18
+ /** @whatsapp 50101
19
+ * @whatsapp 650101 >= 2.2222.8
20
+ */
19
21
  export declare function findChat(wid: Wid): Promise<ChatModel>;
@@ -15,5 +15,6 @@
15
15
  */
16
16
  /** @whatsapp 29929
17
17
  * @whatsapp 31042 >= 2.2204.13
18
+ * @whatsapp 829929 >= 2.2222.8
18
19
  */
19
20
  export declare function findFirstWebLink(message: string): undefined | string;
@@ -16,6 +16,7 @@
16
16
  import { LinkPreviewResult } from './fetchLinkPreview';
17
17
  /**
18
18
  * @whatsapp 92375
19
+ * @whatsapp 692375 >= 2.2222.8
19
20
  */
20
21
  export declare function genMinimalLinkPreview(data: {
21
22
  anchor: undefined;
@@ -15,7 +15,8 @@
15
15
  */
16
16
  /**
17
17
  * @whatsapp 51428
18
- * */
18
+ * @whatsapp 551428 >= 2.2222.8
19
+ */
19
20
  export declare function generateVideoThumbsAndDuration(data: {
20
21
  file: Blob;
21
22
  maxDimensions: number[];
@@ -16,6 +16,7 @@
16
16
  import { Wid } from '../misc';
17
17
  /**
18
18
  * @whatsapp 16104
19
+ * @whatsapp 416104 >= 2.2222.8
19
20
  */
20
21
  export declare function getFanOutList(param: {
21
22
  wids: Wid[];
@@ -16,6 +16,7 @@
16
16
  import { Wid } from '../misc';
17
17
  /**
18
18
  * @whatsapp 43201
19
+ * @whatsapp 543201 >= 2.2222.8
19
20
  */
20
21
  export declare function getGroupSenderKeyList(wid: Wid): Promise<{
21
22
  skList: Wid[];
@@ -16,5 +16,6 @@
16
16
  /** @whatsapp 98250
17
17
  * @whatsapp 16413 >= 2.2204.13
18
18
  * @whatsapp 66333 >= 2.2218.4
19
+ * @whatsapp 266333 >= 2.2222.8
19
20
  */
20
21
  export declare function getOrGenerate(): string;
@@ -14,11 +14,19 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel, ParticipantModel } from '..';
17
- /** @whatsapp 89389 */
17
+ /** @whatsapp 89389
18
+ * @whatsapp 389389 >= 2.2222.8
19
+ */
18
20
  export declare function addParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
19
- /** @whatsapp 89389 */
21
+ /** @whatsapp 89389
22
+ * @whatsapp 389389 >= 2.2222.8
23
+ */
20
24
  export declare function removeParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
21
- /** @whatsapp 89389 */
25
+ /** @whatsapp 89389
26
+ * @whatsapp 389389 >= 2.2222.8
27
+ */
22
28
  export declare function promoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
23
- /** @whatsapp 89389 */
29
+ /** @whatsapp 89389
30
+ * @whatsapp 389389 >= 2.2222.8
31
+ */
24
32
  export declare function demoteParticipants(group: ChatModel, participants: ParticipantModel[]): Promise<void>;
@@ -30,21 +30,30 @@ export interface SimpleAckData {
30
30
  /**
31
31
  * @whatsapp 90756
32
32
  * @deprecated
33
+ * @whatsapp 590756 >= 2.2222.8
33
34
  */
34
35
  export declare function handleStatusSimpleAck(ackData: SimpleAckData): Promise<any>;
35
36
  /**
36
37
  * @whatsapp 48309
37
38
  * @deprecated
39
+ * @whatsapp 648309 >= 2.2222.8
38
40
  */
39
41
  export declare function handleChatSimpleAck(ackData: SimpleAckData): Promise<any>;
40
42
  /**
41
43
  * @whatsapp 84947
42
44
  * @deprecated
45
+ * @whatsapp 284947 >= 2.2222.8
43
46
  */
44
47
  export declare function handleGroupSimpleAck(ackData: SimpleAckData): Promise<any>;
45
- /** @whatsapp 90756 */
48
+ /** @whatsapp 90756
49
+ * @whatsapp 590756 >= 2.2222.8
50
+ */
46
51
  export declare function handleStatusSimpleReceipt(ackData: SimpleAckData): Promise<any>;
47
- /** @whatsapp 48309 */
52
+ /** @whatsapp 48309
53
+ * @whatsapp 648309 >= 2.2222.8
54
+ */
48
55
  export declare function handleChatSimpleReceipt(ackData: SimpleAckData): Promise<any>;
49
- /** @whatsapp 84947 */
56
+ /** @whatsapp 84947
57
+ * @whatsapp 284947 >= 2.2222.8
58
+ */
50
59
  export declare function handleGroupSimpleReceipt(ackData: SimpleAckData): Promise<any>;
@@ -42,6 +42,7 @@ export * from './sendClear';
42
42
  export * from './sendCreateGroup';
43
43
  export * from './sendDelete';
44
44
  export * from './sendExitGroup';
45
+ export * from './sendGroupParticipants';
45
46
  export * from './sendJoinGroupViaInvite';
46
47
  export * from './sendQueryExists';
47
48
  export * from './sendQueryGroupInvite';
@@ -16,10 +16,12 @@
16
16
  /**
17
17
  * @whatsapp 13194
18
18
  * @whatsapp 9530 >= 2.2210.9
19
+ * @whatsapp 909530 >= 2.2222.8
19
20
  */
20
21
  export declare function isAuthenticated(): boolean;
21
22
  /**
22
23
  * @whatsapp 13194 >= 2.2208.11
23
24
  * @whatsapp 9530 >= 2.2210.9
25
+ * @whatsapp 909530 >= 2.2222.8
24
26
  */
25
27
  export declare function isLoggedIn(): boolean;
@@ -18,7 +18,9 @@ import { ChatModel, MsgModel } from '../models';
18
18
  export declare function markUnread(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
19
19
  /** @whatsapp 9609 */
20
20
  export declare function sendSeen(chat: ChatModel, whenAvailable: boolean): Promise<ChatModel>;
21
- /** @whatsapp 30734 */
21
+ /** @whatsapp 30734
22
+ * @whatsapp 730734 >= 2.2222.8
23
+ */
22
24
  export declare function markPlayed(msg: MsgModel): Promise<void>;
23
25
  /**
24
26
  * @whatsapp 2.2146.9:64850
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /** @whatsapp 95318
17
17
  * @whatsapp 58853 >= 2.2218.4
18
+ * @whatsapp 458853 >= 2.2222.8
18
19
  */
19
20
  export declare function mediaTypeFromProtobuf(protoMessage: {
20
21
  [key: string]: any;
@@ -16,11 +16,19 @@
16
16
  import { ProductModel } from '..';
17
17
  /** @whatsapp 2.2144.10:35339 */
18
18
  export declare function createBusinessCatalog(): Promise<any>;
19
- /** @whatsapp 96519 */
19
+ /** @whatsapp 96519
20
+ * @whatsapp 196519 >= 2.2222.8
21
+ */
20
22
  export declare function addProduct(product: ProductModel, imageWidth?: number, imageHeight?: number): Promise<any>;
21
- /** @whatsapp 96519 */
23
+ /** @whatsapp 96519
24
+ * @whatsapp 196519 >= 2.2222.8
25
+ */
22
26
  export declare function editProduct(product: ProductModel, imageWidth?: number, imageHeight?: number): Promise<any>;
23
- /** @whatsapp 96519 */
27
+ /** @whatsapp 96519
28
+ * @whatsapp 196519 >= 2.2222.8
29
+ */
24
30
  export declare function deleteProducts(productIds: string[]): Promise<any>;
25
- /** @whatsapp 96519 */
31
+ /** @whatsapp 96519
32
+ * @whatsapp 196519 >= 2.2222.8
33
+ */
26
34
  export declare function sendProductToChat(...args: any[]): Promise<any>;
@@ -15,5 +15,6 @@
15
15
  */
16
16
  /** @whatsapp 65212
17
17
  * @whatsapp 15860 >= 2.2204.13
18
+ * @whatsapp 465212 >= 2.2222.8
18
19
  */
19
20
  export declare function randomMessageId(): string;
@@ -14,5 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '..';
17
- /** @whatsapp 83802 */
17
+ /** @whatsapp 83802
18
+ * @whatsapp 483802 >= 2.2222.8
19
+ */
18
20
  export declare function sendClear(chat: ChatModel, keepStarred?: boolean): Promise<void>;
@@ -14,5 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '..';
17
- /** @whatsapp 20052 */
17
+ /** @whatsapp 20052
18
+ * @whatsapp 920052 >= 2.2222.8
19
+ */
18
20
  export declare function sendDelete(chat: ChatModel): Promise<void>;
@@ -14,5 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '..';
17
- /** @whatsapp 5501 */
17
+ /** @whatsapp 5501
18
+ * @whatsapp 605501 >= 2.2222.8
19
+ */
18
20
  export declare function sendExitGroup(group: ChatModel): Promise<void>;
@@ -0,0 +1,42 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ import { Wid } from '..';
17
+ /**
18
+ * @whatsapp 437722 >= 2.2222.8
19
+ */
20
+ export declare function sendAddParticipants(group: Wid, participants: Wid[]): Promise<{
21
+ participants?: {
22
+ [key: `${number}@c.us`]: {
23
+ code: string;
24
+ invite_code: string | null;
25
+ invite_code_exp: string | null;
26
+ };
27
+ }[];
28
+ status: number;
29
+ [key: `${number}@c.us`]: number;
30
+ }>;
31
+ /**
32
+ * @whatsapp 437722 >= 2.2222.8
33
+ */
34
+ export declare function sendRemoveParticipants(group: Wid, participants: Wid[]): Promise<void>;
35
+ /**
36
+ * @whatsapp 437722 >= 2.2222.8
37
+ */
38
+ export declare function sendPromoteParticipants(group: Wid, participants: Wid[]): Promise<void>;
39
+ /**
40
+ * @whatsapp 437722 >= 2.2222.8
41
+ */
42
+ export declare function sendDemoteParticipants(group: Wid, participants: Wid[]): Promise<void>;
@@ -14,5 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '..';
17
- /** @whatsapp 69586 */
17
+ /** @whatsapp 69586
18
+ * @whatsapp 769586 >= 2.2222.8
19
+ */
18
20
  export declare function sendJoinGroupViaInvite(code: string): Promise<Wid>;
@@ -40,5 +40,7 @@ export interface QueryGroupInviteResult {
40
40
  support: boolean;
41
41
  suspended: boolean;
42
42
  }
43
- /** @whatsapp 10790 */
43
+ /** @whatsapp 10790
44
+ * @whatsapp 810790 >= 2.2222.8
45
+ */
44
46
  export declare function sendQueryGroupInvite(inviteCode: string): Promise<QueryGroupInviteResult>;
@@ -14,5 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { MsgModel } from '../models';
17
- /** @whatsapp 21357 */
17
+ /** @whatsapp 21357
18
+ * @whatsapp 621357 >= 2.2222.8
19
+ */
18
20
  export declare function sendReactionToMsg(msg: MsgModel, reactionText: string): Promise<string>;
@@ -14,5 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '..';
17
- /** @whatsapp 69586 */
17
+ /** @whatsapp 69586
18
+ * @whatsapp 769586 >= 2.2222.8
19
+ */
18
20
  export declare function sendRevokeGroupInviteCode(groupId: Wid): Promise<string>;
@@ -13,5 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 5524 */
16
+ /** @whatsapp 5524
17
+ * @whatsapp 105524 >= 2.2222.8
18
+ */
17
19
  export declare function sendTextMsgToChat(chat: any, message: any, options: any): Promise<string>;
@@ -16,5 +16,6 @@
16
16
  import { ChatModel } from '../models';
17
17
  /**
18
18
  * @whatsapp 59992
19
+ * @whatsapp 259992 >= 2.2222.8
19
20
  */
20
21
  export declare function setArchive(chat: ChatModel, archive: boolean, id?: string): Promise<void>;
@@ -15,9 +15,15 @@
15
15
  */
16
16
  import { Wid } from '..';
17
17
  import { GROUP_SETTING_TYPE } from '../enums';
18
- /** @whatsapp 57490 */
18
+ /** @whatsapp 57490
19
+ * @whatsapp 357490 >= 2.2222.8
20
+ */
19
21
  export declare function sendSetGroupSubject(groupId: Wid, subject: string): Promise<void>;
20
- /** @whatsapp 57490 */
22
+ /** @whatsapp 57490
23
+ * @whatsapp 357490 >= 2.2222.8
24
+ */
21
25
  export declare function sendSetGroupDescription(groupId: Wid, description: string, tagId: string, previousTagId?: string): Promise<void>;
22
- /** @whatsapp 57490 */
26
+ /** @whatsapp 57490
27
+ * @whatsapp 357490 >= 2.2222.8
28
+ */
23
29
  export declare function sendSetGroupProperty(groupId: Wid, property: GROUP_SETTING_TYPE, value: number): Promise<void>;
@@ -16,5 +16,6 @@
16
16
  import { ChatModel } from '../models';
17
17
  /**
18
18
  * @whatsapp 10236
19
+ * @whatsapp 510236 >= 2.2222.8
19
20
  */
20
21
  export declare function setPin(chat: ChatModel, pin: boolean): Promise<void>;
@@ -16,6 +16,7 @@
16
16
  import { Wid } from '..';
17
17
  /** @whatsapp 46898
18
18
  * @whatsapp 51316 >= 2.2204.13
19
+ * @whatsapp 546898 >= 2.2222.8
19
20
  */
20
21
  export declare function getStatus(contactId: Wid): Promise<{
21
22
  id: Wid;
@@ -23,6 +24,7 @@ export declare function getStatus(contactId: Wid): Promise<{
23
24
  }>;
24
25
  /** @whatsapp 46898
25
26
  * @whatsapp 51316 >= 2.2204.13
27
+ * @whatsapp 546898 >= 2.2222.8
26
28
  */
27
29
  export declare function setMyStatus(status: string, seqId?: number): Promise<{
28
30
  status: number;
@@ -13,7 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 93650 */
16
+ /** @whatsapp 93650
17
+ * @whatsapp 193650 >= 2.2222.8
18
+ */
17
19
  export declare function typeAttributeFromProtobuf(protoMessage: {
18
20
  [key: string]: any;
19
21
  }): string;
@@ -14,5 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { OpaqueData } from '..';
17
- /** @whatsapp 78986 */
17
+ /** @whatsapp 78986
18
+ * @whatsapp 778986 >= 2.2222.8
19
+ */
18
20
  export declare function uploadProductImage(mediaBlob: OpaqueData, filehash: string): Promise<string>;
@@ -29,6 +29,7 @@ export interface ThumbnailData {
29
29
  }
30
30
  /**
31
31
  * @whatsapp 74460
32
+ * @whatsapp 474460 >= 2.2222.8
32
33
  */
33
34
  export declare function uploadThumbnail(data: ThumbnailData): Promise<{
34
35
  kind: string;
@@ -13,7 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 15688 */
16
+ /** @whatsapp 15688
17
+ * @whatsapp 615688 >= 2.2222.8
18
+ */
17
19
  export declare namespace Base64 {
18
20
  const BASE64_DATA_URL_SCHEME: 'data:image/jpeg;base64,';
19
21
  function encodeB64(data: ArrayLike<number> | ArrayBufferLike): string;
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /** @whatsapp 79264
17
17
  * @whatsapp 87045 >= 2.2204.13
18
+ * @whatsapp 379264 >= 2.2222.8
18
19
  */
19
20
  export declare namespace Browser {
20
21
  let promptUnloadGuards: number;
@@ -14,7 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ChatModel } from '..';
17
- /** @whatsapp 371 */
17
+ /** @whatsapp 371
18
+ * @whatsapp 800371 >= 2.2222.8
19
+ */
18
20
  export declare namespace ChatPresence {
19
21
  function markComposing(chat: ChatModel): Promise<void>;
20
22
  function markPaused(chat: ChatModel): Promise<void>;
@@ -18,6 +18,7 @@ import { MsgModel } from '../models';
18
18
  import { EventEmitter } from '.';
19
19
  /** @whatsapp 88102
20
20
  * @whatsapp 81572 >= 2.2218.4
21
+ * @whatsapp 781572 >= 2.2222.8
21
22
  */
22
23
  export declare class CmdClass extends EventEmitter {
23
24
  isMainLoaded: boolean;
@@ -152,5 +153,6 @@ export declare class CmdClass extends EventEmitter {
152
153
  }
153
154
  /** @whatsapp 88102
154
155
  * @whatsapp 81572 >= 2.2218.4
156
+ * @whatsapp 781572 >= 2.2222.8
155
157
  */
156
158
  export declare const Cmd: CmdClass;
@@ -14,5 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { ConnModel } from '../models';
17
- /** @whatsapp 17239 */
17
+ /** @whatsapp 17239
18
+ * @whatsapp 317239 >= 2.2222.8
19
+ */
18
20
  export declare const Conn: ConnModel;
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /** @whatsapp 64369
17
17
  * @whatsapp 69618 >= 2.2204.13
18
+ * @whatsapp 364369 >= 2.2222.8
18
19
  */
19
20
  export declare const Constants: {
20
21
  IMG_THUMB_MAX_EDGE: 100;
@@ -23,6 +23,7 @@ declare type Event = string | symbol;
23
23
  declare type Listener = (...args: any[]) => void;
24
24
  /** @whatsapp 76521
25
25
  * @whatsapp 34342 >= 2.2204.13
26
+ * @whatsapp 876521 >= 2.2222.8
26
27
  */
27
28
  export declare class EventEmitter {
28
29
  /**
@@ -62,6 +62,7 @@ declare class FeatureClass extends EventEmitter {
62
62
  }
63
63
  /** @whatsapp 7293
64
64
  * @whatsapp 38184 >= 2.2218.4
65
+ * @whatsapp 438184 >= 2.2222.8
65
66
  */
66
67
  export declare const Features: FeatureClass;
67
68
  export {};
@@ -15,6 +15,7 @@
15
15
  */
16
16
  /** @whatsapp 51428
17
17
  * @whatsapp 36638 >= 2.2204.13
18
+ * @whatsapp 551428 >= 2.2222.8
18
19
  */
19
20
  export declare namespace ImageUtils {
20
21
  function rotateAndResize(e: any, t: any, r: any): Promise<{
@@ -17,6 +17,7 @@ declare class LocaleClass {
17
17
  }
18
18
  /** @whatsapp 14296
19
19
  * @whatsapp 43725 >= 2.2204.13
20
+ * @whatsapp 914296 >= 2.2222.8
20
21
  */
21
22
  export declare const Locale: LocaleClass;
22
23
  export {};
@@ -13,7 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 84866 */
16
+ /** @whatsapp 84866
17
+ * @whatsapp 284866 >= 2.2222.8
18
+ */
17
19
  export declare class MediaBlobCacheImpl {
18
20
  is24h: boolean;
19
21
  getOrCreateURL(filehash: string): string;
@@ -26,5 +28,7 @@ export declare class MediaBlobCacheImpl {
26
28
  increaseUsageCount(filehash: string): void;
27
29
  decreaseUsageCount(filehash: string): void;
28
30
  }
29
- /** @whatsapp 84866 */
31
+ /** @whatsapp 84866
32
+ * @whatsapp 284866 >= 2.2222.8
33
+ */
30
34
  export declare const MediaBlobCache: MediaBlobCacheImpl;
@@ -15,7 +15,8 @@
15
15
  */
16
16
  /**
17
17
  * @whatsapp 80923
18
- * */
18
+ * @whatsapp 480923 >= 2.2222.8
19
+ */
19
20
  export declare class MediaEntry {
20
21
  useBackupUrl: boolean;
21
22
  deprecatedMms3Url?: string;
@@ -14,7 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { OpaqueData } from '.';
17
- /** @whatsapp 21009 */
17
+ /** @whatsapp 21009
18
+ * @whatsapp 721009 >= 2.2222.8
19
+ */
18
20
  export declare class MediaObject {
19
21
  entries: any;
20
22
  downloadStage: any;
@@ -14,7 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { MediaObject } from '.';
17
- /** @whatsapp 88297 */
17
+ /** @whatsapp 88297
18
+ * @whatsapp 988297 >= 2.2222.8
19
+ */
18
20
  export declare namespace MediaObjectUtil {
19
21
  function getOrCreateMediaObject(hash: string): MediaObject;
20
22
  }
@@ -16,7 +16,9 @@
16
16
  import { ChatModel, MediaDataModel, ModelPropertiesContructor, MsgModel } from '..';
17
17
  import { OUTWARD_TYPES, SendMsgResult } from '../enums';
18
18
  import { OpaqueData } from '.';
19
- /** @whatsapp 78986 */
19
+ /** @whatsapp 78986
20
+ * @whatsapp 778986 >= 2.2222.8
21
+ */
20
22
  export declare namespace MediaPrep {
21
23
  function prepRawMedia(data: OpaqueData, options: {
22
24
  isPtt?: boolean;
@@ -13,7 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /** @whatsapp 56406 */
16
+ /** @whatsapp 56406
17
+ * @whatsapp 756406 >= 2.2222.8
18
+ */
17
19
  export declare namespace MediaUtils {
18
20
  function getImageWidthHeight(): Promise<{
19
21
  width: number;
@@ -16,6 +16,7 @@
16
16
  import { Wid } from './Wid';
17
17
  /** @whatsapp 65212
18
18
  * @whatsapp 32219 >= 2.2204.13
19
+ * @whatsapp 465212 >= 2.2222.8
19
20
  */
20
21
  export declare class MsgKey {
21
22
  constructor(options: {