Skip to content

Commit 4567de3

Browse files
committed
🏷️ type updates
1 parent a044353 commit 4567de3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/api/Client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Chat, LiveLocationChangedEvent, ChatState, ChatMuteDuration, GroupChatC
44
import { Contact, NumberCheck } from './model/contact';
55
import { Message, MessageInfo, PollData } from './model/message';
66
import { default as axios, AxiosRequestConfig} from 'axios';
7-
import { NewCommunityGroup, ParticipantChangedEventModel, GenericGroupChangeEvent } from './model/group-metadata';
7+
import { NewCommunityGroup, ParticipantChangedEventModel, GenericGroupChangeEvent, GroupMetadata } from './model/group-metadata';
88
import { useragent } from '../config/puppeteer.config'
99
import { ConfigObject, STATE, LicenseType, Webhook, OnError, EventPayload } from './model';
1010
import { PageEvaluationTimeout, CustomError, ERROR_NAME, AddParticipantError } from './model/errors';

src/api/model/message.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { ChatId, ContactId, MessageId } from "./aliases";
22
import { Button, Row, Section } from "./button";
33
import { Chat } from "./chat";
44
import { Contact } from "./contact";
5+
import { GroupChatId } from '../../../types-only/dist/api/model/aliases';
56

67
export interface Message {
78
/**
@@ -157,7 +158,7 @@ export interface Message {
157158
*
158159
* If this is `true` then you need to determine within your own code whether or not to accept the user to the group which is indicated with `quotedRemoteJid` using `addParticipant`.
159160
*/
160-
isGroupJoinRequest ?: boolean;
161+
isGroupJoinRequest ?: GroupChatId;
161162
/**
162163
* The ID of the message sender
163164
*/
@@ -169,7 +170,7 @@ export interface Message {
169170
/**
170171
* The parent group ID (community ID - communities are just groups made up of other groups) of the group represented by `quotedRemoteJid`
171172
*/
172-
quotedParentGroupJid ?: string,
173+
quotedParentGroupJid ?: GroupChatId,
173174
mediaData: unknown;
174175
shareDuration: number;
175176
isAnimated: boolean;

0 commit comments

Comments
 (0)