@wppconnect/wa-js 2.17.0 → 2.18.1

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 (30) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/chat/events/eventTypes.d.ts +10 -0
  3. package/dist/chat/events/index.d.ts +1 -0
  4. package/dist/chat/events/registerPollEvent.d.ts +16 -0
  5. package/dist/chat/functions/getReactions.d.ts +48 -0
  6. package/dist/chat/functions/getVotes.d.ts +33 -0
  7. package/dist/chat/functions/index.d.ts +2 -0
  8. package/dist/group/functions/addParticipants.d.ts +17 -1
  9. package/dist/group/functions/canAdd.d.ts +11 -0
  10. package/dist/group/functions/canDemote.d.ts +11 -0
  11. package/dist/group/functions/canPromote.d.ts +11 -0
  12. package/dist/group/functions/canRemove.d.ts +11 -0
  13. package/dist/group/functions/create.d.ts +35 -4
  14. package/dist/whatsapp/functions/createGroup.d.ts +28 -0
  15. package/dist/whatsapp/functions/getReactions.d.ts +37 -0
  16. package/dist/whatsapp/functions/getVotes.d.ts +22 -0
  17. package/dist/whatsapp/functions/index.d.ts +8 -0
  18. package/dist/whatsapp/functions/joinGroupViaInvite.d.ts +22 -0
  19. package/dist/whatsapp/functions/queryGroupInviteCode.d.ts +22 -0
  20. package/dist/whatsapp/functions/resetGroupInviteCode.d.ts +22 -0
  21. package/dist/whatsapp/functions/sendCreateGroup.d.ts +10 -4
  22. package/dist/whatsapp/functions/sendGroupParticipants.d.ts +7 -2
  23. package/dist/whatsapp/functions/upsertVotes.d.ts +29 -0
  24. package/dist/whatsapp/misc/index.d.ts +0 -1
  25. package/dist/whatsapp/models/MsgModel.d.ts +7 -0
  26. package/dist/whatsapp/models/index.d.ts +0 -1
  27. package/dist/wppconnect-wa.js +1 -1
  28. package/package.json +21 -21
  29. package/dist/whatsapp/misc/Features.d.ts +0 -68
  30. package/dist/whatsapp/models/WebCallModel.d.ts +0 -43
package/CHANGELOG.md CHANGED
@@ -1 +1 @@
1
- # 2.17.0 (2022-12-06)
1
+ ## 2.18.1 (2023-01-12)
@@ -135,4 +135,14 @@ export interface ChatEventTypes {
135
135
  shortName: string;
136
136
  }[];
137
137
  };
138
+ /**
139
+ * On Poll response
140
+ */
141
+ 'chat.poll_response': {
142
+ msgId: MsgKey;
143
+ chatId: Wid;
144
+ selectedOptions: number[];
145
+ timestamp: number;
146
+ sender: Wid;
147
+ };
138
148
  }
@@ -16,6 +16,7 @@
16
16
  import './registerAckMessageEvent';
17
17
  import './registerLiveLocationUpdateEvent';
18
18
  import './registerNewMessageEvent';
19
+ import './registerPollEvent';
19
20
  import './registerPresenceChange';
20
21
  import './registerRevokeMessageEvent';
21
22
  import './registerReactionsEvent';
@@ -0,0 +1,16 @@
1
+ /*!
2
+ * Copyright 2022 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
+ export {};
@@ -0,0 +1,48 @@
1
+ /*!
2
+ * Copyright 2022 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 { MsgKey } from '../../whatsapp';
17
+ /**
18
+ * Get all reactions in a message
19
+ * @example
20
+ * ```javascript
21
+ * WPP.chat.getReactions('true_[number]@c.us_ABCDEF');
22
+ * ```
23
+ * @category Chat
24
+ */
25
+ export declare function getReactions(msgId: string): Promise<{
26
+ reactionByMe: {
27
+ id: MsgKey;
28
+ orphan: number;
29
+ msgId: MsgKey;
30
+ reactionText: string;
31
+ read: boolean;
32
+ senderUserJid: string;
33
+ timestamp: number;
34
+ };
35
+ reactions: {
36
+ aggregateEmoji: string;
37
+ hasReactionByMe: boolean;
38
+ senders: {
39
+ id: MsgKey;
40
+ orphan: number;
41
+ msgId: MsgKey;
42
+ reactionText: string;
43
+ read: boolean;
44
+ senderUserJid: string;
45
+ timestamp: number;
46
+ }[];
47
+ }[];
48
+ }>;
@@ -0,0 +1,33 @@
1
+ /*!
2
+ * Copyright 2022 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 { MsgKey, Wid } from '../../whatsapp';
17
+ /**
18
+ * Get votes of a poll
19
+ * @example
20
+ * ```javascript
21
+ * WPP.chat.getVotes('true_[number]@c.us_ABCDEF');
22
+ * ```
23
+ * @category Chat
24
+ */
25
+ export declare function getVotes(id: string | MsgKey): Promise<{
26
+ msgId: MsgKey;
27
+ chatId: Wid;
28
+ votes: {
29
+ selectedOptions: number[];
30
+ timestamp: number;
31
+ sender: Wid;
32
+ }[];
33
+ }>;
@@ -31,6 +31,8 @@ export { getMessageACK } from './getMessageACK';
31
31
  export { getMessageById } from './getMessageById';
32
32
  export { getMessages, GetMessagesOptions } from './getMessages';
33
33
  export { getPlatformFromMessage } from './getPlatformFromMessage';
34
+ export { getReactions } from './getReactions';
35
+ export { getVotes } from './getVotes';
34
36
  export { ChatListOptions, list } from './list';
35
37
  export { markIsComposing } from './markIsComposing';
36
38
  export { markIsPaused } from './markIsPaused';
@@ -21,13 +21,29 @@ import { Wid } from '../../whatsapp';
21
21
  *
22
22
  * @example
23
23
  * ```javascript
24
- * await WPP.group.addParticipants('[group@g.us]', [number@c.us]);
24
+ * const result = await WPP.group.addParticipants('[group@g.us]', [number@c.us]);
25
+ *
26
+ * // Get participant result:
27
+ * console.log(result['123@c.us'].code);
28
+ * console.log(result['123@c.us'].invite_code);
29
+ * console.log(result['123@c.us'].invite_code_exp);
30
+ * console.log(result['123@c.us'].message);
31
+ * console.log(result['123@c.us'].wid);
32
+ *
33
+ * const memberResult = result['123@c.us']; // To a variable
34
+ * // or
35
+ * const memberResult = Object.values(result)[0]; // Always the first member result
36
+ *
37
+ * // How to send a custom invite link
38
+ * const link = 'https://chat.whatsapp.com/' + result['123@c.us'].invite_code;
39
+ * console.log(link);
25
40
  * ```
26
41
  *
27
42
  * @category Group
28
43
  */
29
44
  export declare function addParticipants(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[]): Promise<{
30
45
  [key: `${number}@c.us`]: {
46
+ wid: string;
31
47
  code: number;
32
48
  message: string;
33
49
  invite_code: string | null;
@@ -14,4 +14,15 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
+ /**
18
+ * Check if your account is allowed to add new participants
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * const result = await WPP.group.canAdd('group@g.us');
23
+ * console.log(result);
24
+ * ```
25
+ *
26
+ * @category Group
27
+ */
17
28
  export declare function canAdd(groupId: string | Wid): Promise<boolean>;
@@ -14,4 +14,15 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
+ /**
18
+ * Check if your account is allowed to demote participants
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * await WPP.group.canDemote('group@g.us');
23
+ * console.log(result);
24
+ * ```
25
+ *
26
+ * @category Group
27
+ */
17
28
  export declare function canDemote(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[]): Promise<boolean>;
@@ -14,4 +14,15 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
+ /**
18
+ * Check if your account is allowed to promote participants
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * await WPP.group.canPromote('group@g.us');
23
+ * console.log(result);
24
+ * ```
25
+ *
26
+ * @category Group
27
+ */
17
28
  export declare function canPromote(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[]): Promise<boolean>;
@@ -14,4 +14,15 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
+ /**
18
+ * Check if your account is allowed to remove participants
19
+ *
20
+ * @example
21
+ * ```javascript
22
+ * const result = await WPP.group.canRemove('group@g.us');
23
+ * console.log(result);
24
+ * ```
25
+ *
26
+ * @category Group
27
+ */
17
28
  export declare function canRemove(groupId: string | Wid, participantsIds: (string | Wid) | (string | Wid)[]): Promise<boolean>;
@@ -14,12 +14,43 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { Wid } from '../../whatsapp';
17
+ /**
18
+ * Create a new group
19
+ *
20
+ * The method return a object with the result of each participant as the key
21
+ *
22
+ * @example
23
+ * ```javascript
24
+ * const result = await WPP.group.create('Test Group', ['number@c.us']);
25
+ *
26
+ * console.log(result.gid.toString()); // Get the group ID
27
+ *
28
+ * // Get participant result:
29
+ * console.log(result['number@c.us'].code);
30
+ * console.log(result['number@c.us'].invite_code);
31
+ * console.log(result['number@c.us'].invite_code_exp);
32
+ * console.log(result['number@c.us'].message);
33
+ * console.log(result['number@c.us'].wid);
34
+ *
35
+ * const memberResult = result['number@c.us']; // To a variable
36
+ * // or
37
+ * const memberResult = Object.values(result)[0]; // Always the first member result
38
+ *
39
+ * // How to send a custom invite link
40
+ * const link = 'https://chat.whatsapp.com/' + result['number@c.us'].invite_code;
41
+ * console.log(link);
42
+ * ```
43
+ *
44
+ * @category Group
45
+ */
17
46
  export declare function create(groupName: string, participantsIds: (string | Wid) | (string | Wid)[]): Promise<{
18
47
  gid: Wid;
19
48
  participants: {
20
- [key: string]: {
21
- code: string;
49
+ [key: `${number}@c.us`]: {
50
+ wid: string;
51
+ code: number;
52
+ invite_code: string | null;
53
+ invite_code_exp: number | null;
22
54
  };
23
- }[];
24
- status: number;
55
+ };
25
56
  }>;
@@ -0,0 +1,28 @@
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 247355
19
+ */
20
+ export declare function createGroup(groupName: string, participants: Wid[], ephemeral?: number, dogfooding?: boolean): Promise<{
21
+ wid: Wid;
22
+ participants: {
23
+ wid: Wid;
24
+ error: string;
25
+ invite_code: string | null;
26
+ invite_code_exp: string | null;
27
+ }[];
28
+ }>;
@@ -0,0 +1,37 @@
1
+ /*!
2
+ * Copyright 2022 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 { MsgKey } from '../misc';
17
+ /**
18
+ * @whatsapp 297673
19
+ * @whatsapp 297673 >= 2.2232.6
20
+ */
21
+ export interface ReactionReturn {
22
+ reactionByMe: any;
23
+ reactions: {
24
+ aggregateEmoji: string;
25
+ hasReactionByMe: boolean;
26
+ senders: {
27
+ msgKey: MsgKey;
28
+ orphan: number;
29
+ parentMsgKey: MsgKey;
30
+ reactionText: string;
31
+ read: boolean;
32
+ senderUserJid: string;
33
+ timestamp: number;
34
+ }[];
35
+ }[];
36
+ }
37
+ export declare function getReactions(msgId: string): Promise<ReactionReturn>;
@@ -0,0 +1,22 @@
1
+ /*!
2
+ * Copyright 2022 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 { MsgKey } from '../misc';
17
+ import { VoteData } from './upsertVotes';
18
+ /**
19
+ * @whatsapp 816349
20
+ * @whatsapp 816349 >= 2.2232.6
21
+ */
22
+ export declare function getVotes(id: MsgKey): Promise<VoteData[]>;
@@ -19,6 +19,7 @@ export * from './calculateFilehashFromBlob';
19
19
  export * from './canEditMessage';
20
20
  export * from './canReplyMsg';
21
21
  export * from './collections';
22
+ export * from './createGroup';
22
23
  export * from './createMsgProtobuf';
23
24
  export * from './createOrUpdateReactions';
24
25
  export * from './editBusinessProfile';
@@ -34,13 +35,16 @@ export * from './getFanOutList';
34
35
  export * from './getGroupSenderKeyList';
35
36
  export * from './getHistorySyncProgress';
36
37
  export * from './getQuotedMsgObj';
38
+ export * from './getReactions';
37
39
  export * from './getSearchContext';
40
+ export * from './getVotes';
38
41
  export * from './groupParticipants';
39
42
  export * from './handleAck';
40
43
  export * from './isAnimatedWebp';
41
44
  export * from './isAuthenticated';
42
45
  export * from './isRegistered';
43
46
  export * from './isUnreadTypeMsg';
47
+ export * from './joinGroupViaInvite';
44
48
  export * from './markSeen';
45
49
  export * from './mediaTypeFromProtobuf';
46
50
  export * from './msgFindQuery';
@@ -48,8 +52,10 @@ export * from './processRawSticker';
48
52
  export * from './products';
49
53
  export * from './productVisibilitySet';
50
54
  export * from './profilePic';
55
+ export * from './queryGroupInviteCode';
51
56
  export * from './randomHex';
52
57
  export * from './randomId';
58
+ export * from './resetGroupInviteCode';
53
59
  export * from './sendCallSignalingMsg';
54
60
  export * from './sendClear';
55
61
  export * from './sendCreateGroup';
@@ -59,6 +65,7 @@ export * from './sendGroupParticipants';
59
65
  export * from './sendJoinGroupViaInvite';
60
66
  export * from './sendQueryExists';
61
67
  export * from './sendQueryGroupInvite';
68
+ export * from './sendQueryGroupInviteCode';
62
69
  export * from './sendReactionToMsg';
63
70
  export * from './sendRevokeGroupInviteCode';
64
71
  export * from './sendTextMsgToChat';
@@ -73,3 +80,4 @@ export * from './updateDBForGroupAction';
73
80
  export * from './updateParticipants';
74
81
  export * from './uploadProductImage';
75
82
  export * from './uploadThumbnail';
83
+ export * from './upsertVotes';
@@ -0,0 +1,22 @@
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 153438 >= 2.2301.5
19
+ */
20
+ export declare function joinGroupViaInvite(groupId: Wid): Promise<{
21
+ gid: Wid;
22
+ }>;
@@ -0,0 +1,22 @@
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 153438
19
+ */
20
+ export declare function queryGroupInviteCode(groupId: Wid): Promise<{
21
+ code: string;
22
+ }>;
@@ -0,0 +1,22 @@
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 153438 >= 2.2301.5
19
+ */
20
+ export declare function resetGroupInviteCode(groupId: Wid): Promise<{
21
+ code: string;
22
+ }>;
@@ -17,10 +17,16 @@ import { Wid } from '..';
17
17
  /** @whatsapp 79583 */
18
18
  export declare function sendCreateGroup(groupName: string, participants: Wid[], ephemeral?: number, dogfooding?: boolean): Promise<{
19
19
  gid: Wid;
20
- participants: {
21
- [key: string]: {
20
+ participants: ({
21
+ [key: `${number}@c.us`]: {
22
22
  code: string;
23
+ invite_code: string | null;
24
+ invite_code_exp: string | null;
23
25
  };
24
- }[];
25
- status: number;
26
+ } | {
27
+ userWid: Wid;
28
+ code: string;
29
+ invite_code: string | null;
30
+ invite_code_exp: string | null;
31
+ })[];
26
32
  }>;
@@ -18,13 +18,18 @@ import { Wid } from '..';
18
18
  * @whatsapp 437722 >= 2.2222.8
19
19
  */
20
20
  export declare function sendAddParticipants(group: Wid, participants: Wid[]): Promise<{
21
- participants?: {
21
+ participants?: ({
22
22
  [key: `${number}@c.us`]: {
23
23
  code: string;
24
24
  invite_code: string | null;
25
25
  invite_code_exp: string | null;
26
26
  };
27
- }[];
27
+ } | {
28
+ userWid: Wid;
29
+ code: string;
30
+ invite_code: string | null;
31
+ invite_code_exp: string | null;
32
+ })[];
28
33
  status: number;
29
34
  [key: `${number}@c.us`]: number;
30
35
  }>;
@@ -0,0 +1,29 @@
1
+ /*!
2
+ * Copyright 2022 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 { MsgKey, Wid } from '../misc';
17
+ export interface VoteData {
18
+ ack: number;
19
+ msgKey: MsgKey;
20
+ parentMsgKey: MsgKey;
21
+ selectedOptionLocalIds: number[];
22
+ sender: Wid;
23
+ senderTimestampMs: number;
24
+ }
25
+ /**
26
+ * @whatsapp 479261
27
+ * @whatsapp 479261 >= 2.2230
28
+ */
29
+ export declare function upsertVotes(args: VoteData[]): Promise<any>;
@@ -20,7 +20,6 @@ export * from './Cmd';
20
20
  export * from './Conn';
21
21
  export * from './Constants';
22
22
  export * from './EventEmitter';
23
- export * from './Features';
24
23
  export * from './ImageUtils';
25
24
  export * from './Locale';
26
25
  export * from './MediaBlobCache';
@@ -267,6 +267,8 @@ interface Derived {
267
267
  asImage?: any;
268
268
  asVideo?: any;
269
269
  asMms?: any;
270
+ asPollCreation?: any;
271
+ asPollUpdate?: any;
270
272
  asUrl?: any;
271
273
  asRevoked?: any;
272
274
  asViewOnce?: any;
@@ -301,6 +303,11 @@ interface Derived {
301
303
  hasBodyOrFooter: boolean;
302
304
  initialPageSize?: any;
303
305
  productListHeaderImage?: any;
306
+ pollInvalidated?: boolean;
307
+ pollName?: string;
308
+ pollOptions?: any;
309
+ pollSelectableOptionsCount?: number;
310
+ pollUpdateParentKey?: any;
304
311
  }
305
312
  /** @whatsapp 17304 */
306
313
  export declare interface MsgModel extends ModelProxy<Props, Session, Derived> {
@@ -68,4 +68,3 @@ export * from './StickerPackModel';
68
68
  export * from './StreamModel';
69
69
  export * from './TemplateButtonModel';
70
70
  export * from './UnreadMentionModel';
71
- export * from './WebCallModel';