feat: Returns an object with information about the invite code's group (#1562)

* feat: Returns an object with information about the invite code's group

* refactor: more information in metadata group
This commit is contained in:
LeonardoBein
2022-06-13 12:04:01 -03:00
committed by GitHub
parent 1fc5f67584
commit 227cab2f95
3 changed files with 18 additions and 0 deletions

View File

@@ -8,6 +8,10 @@ export interface GroupMetadata {
id: string
owner: string | undefined
subject: string
/** group subject owner */
subjectOwner?: string
/** group subject modification date */
subjectTime?: number
creation: number
desc?: string
descOwner?: string
@@ -16,6 +20,8 @@ export interface GroupMetadata {
restrict?: boolean
/** is set when the group only allows admins to write messages */
announce?: boolean
/** number of group participants */
size?: number
// Baileys modified array
participants: GroupParticipant[]
ephemeralDuration?: number