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 () => {
|
it('should create a group', async () => {
|
||||||
const response = await client.groupCreate('Cool Test Group', [testJid])
|
const response = await client.groupCreate('Cool Test Group', [testJid])
|
||||||
gid = response.gid
|
gid = response.gid
|
||||||
console.log('created group: ' + gid)
|
console.log('created group: ' + JSON.stringify(response))
|
||||||
})
|
})
|
||||||
it('should retreive group invite code', async () => {
|
it('should retreive group invite code', async () => {
|
||||||
const code = await client.groupInviteCode(gid)
|
const code = await client.groupInviteCode(gid)
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export type WAMessageContent = proto.IMessage
|
|||||||
export interface WAGroupCreateResponse {
|
export interface WAGroupCreateResponse {
|
||||||
status: number
|
status: number
|
||||||
gid?: string
|
gid?: string
|
||||||
participants?: { [key: string]: any }
|
participants?: [{ [key: string]: any }]
|
||||||
}
|
}
|
||||||
export interface WAGroupMetadata {
|
export interface WAGroupMetadata {
|
||||||
id: string
|
id: string
|
||||||
|
|||||||
Reference in New Issue
Block a user