mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
group create response fix
This commit is contained in:
@@ -155,7 +155,7 @@ WAClientTest('Groups', (client) => {
|
||||
it('should create a group', async () => {
|
||||
const response = await client.groupCreate('Cool Test Group', [testJid])
|
||||
gid = response.gid
|
||||
console.log('created group: ' + gid)
|
||||
console.log('created group: ' + JSON.stringify(response))
|
||||
})
|
||||
it('should retreive group invite code', async () => {
|
||||
const code = await client.groupInviteCode(gid)
|
||||
|
||||
@@ -38,7 +38,7 @@ export type WAMessageContent = proto.IMessage
|
||||
export interface WAGroupCreateResponse {
|
||||
status: number
|
||||
gid?: string
|
||||
participants?: { [key: string]: any }
|
||||
participants?: [{ [key: string]: any }]
|
||||
}
|
||||
export interface WAGroupMetadata {
|
||||
id: string
|
||||
|
||||
Reference in New Issue
Block a user