> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# GroupInviteMessage

> Protobuf class GroupInviteMessage generated from WAProto.

Defined in: [WAProto/index.d.ts:6370](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6370)

## Implements

* [`IGroupInviteMessage`](/proto-reference/Message/interfaces/IGroupInviteMessage)

## Constructors

### new GroupInviteMessage()

> **new GroupInviteMessage**(`p`?): [`GroupInviteMessage`](/proto-reference/Message/classes/GroupInviteMessage)

Defined in: [WAProto/index.d.ts:6371](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6371)

#### Parameters

##### p?

[`IGroupInviteMessage`](/proto-reference/Message/interfaces/IGroupInviteMessage)

#### Returns

[`GroupInviteMessage`](/proto-reference/Message/classes/GroupInviteMessage)

## Properties

### caption?

> `optional` **caption**: `null` | `string`

Defined in: [WAProto/index.d.ts:6377](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6377)

#### Implementation of

[`IGroupInviteMessage`](/proto-reference/Message/interfaces/IGroupInviteMessage).[`caption`](/proto-reference/Message/interfaces/IGroupInviteMessage#caption)

***

### contextInfo?

> `optional` **contextInfo**: `null` | [`IContextInfo`](/proto-reference/interfaces/IContextInfo)

Defined in: [WAProto/index.d.ts:6378](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6378)

#### Implementation of

[`IGroupInviteMessage`](/proto-reference/Message/interfaces/IGroupInviteMessage).[`contextInfo`](/proto-reference/Message/interfaces/IGroupInviteMessage#contextinfo)

***

### groupJid?

> `optional` **groupJid**: `null` | `string`

Defined in: [WAProto/index.d.ts:6372](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6372)

#### Implementation of

[`IGroupInviteMessage`](/proto-reference/Message/interfaces/IGroupInviteMessage).[`groupJid`](/proto-reference/Message/interfaces/IGroupInviteMessage#groupjid)

***

### groupName?

> `optional` **groupName**: `null` | `string`

Defined in: [WAProto/index.d.ts:6375](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6375)

#### Implementation of

[`IGroupInviteMessage`](/proto-reference/Message/interfaces/IGroupInviteMessage).[`groupName`](/proto-reference/Message/interfaces/IGroupInviteMessage#groupname)

***

### groupType?

> `optional` **groupType**: `null` | [`GroupType`](/proto-reference/Message/GroupInviteMessage/enumerations/GroupType)

Defined in: [WAProto/index.d.ts:6379](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6379)

#### Implementation of

[`IGroupInviteMessage`](/proto-reference/Message/interfaces/IGroupInviteMessage).[`groupType`](/proto-reference/Message/interfaces/IGroupInviteMessage#grouptype)

***

### inviteCode?

> `optional` **inviteCode**: `null` | `string`

Defined in: [WAProto/index.d.ts:6373](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6373)

#### Implementation of

[`IGroupInviteMessage`](/proto-reference/Message/interfaces/IGroupInviteMessage).[`inviteCode`](/proto-reference/Message/interfaces/IGroupInviteMessage#invitecode)

***

### inviteExpiration?

> `optional` **inviteExpiration**: `null` | `number` | `Long`

Defined in: [WAProto/index.d.ts:6374](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6374)

#### Implementation of

[`IGroupInviteMessage`](/proto-reference/Message/interfaces/IGroupInviteMessage).[`inviteExpiration`](/proto-reference/Message/interfaces/IGroupInviteMessage#inviteexpiration)

***

### jpegThumbnail?

> `optional` **jpegThumbnail**: `null` | `Uint8Array`\<`ArrayBufferLike`>

Defined in: [WAProto/index.d.ts:6376](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6376)

#### Implementation of

[`IGroupInviteMessage`](/proto-reference/Message/interfaces/IGroupInviteMessage).[`jpegThumbnail`](/proto-reference/Message/interfaces/IGroupInviteMessage#jpegthumbnail)

## Methods

### create()

> `static` **create**(`properties`?): [`GroupInviteMessage`](/proto-reference/Message/classes/GroupInviteMessage)

Defined in: [WAProto/index.d.ts:6380](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6380)

#### Parameters

##### properties?

[`IGroupInviteMessage`](/proto-reference/Message/interfaces/IGroupInviteMessage)

#### Returns

[`GroupInviteMessage`](/proto-reference/Message/classes/GroupInviteMessage)

***

### decode()

> `static` **decode**(`r`, `l`?): [`GroupInviteMessage`](/proto-reference/Message/classes/GroupInviteMessage)

Defined in: [WAProto/index.d.ts:6382](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6382)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`GroupInviteMessage`](/proto-reference/Message/classes/GroupInviteMessage)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:6381](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6381)

#### Parameters

##### m

[`IGroupInviteMessage`](/proto-reference/Message/interfaces/IGroupInviteMessage)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`GroupInviteMessage`](/proto-reference/Message/classes/GroupInviteMessage)

Defined in: [WAProto/index.d.ts:6383](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6383)

#### Parameters

##### d

#### Returns

[`GroupInviteMessage`](/proto-reference/Message/classes/GroupInviteMessage)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:6386](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6386)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:6385](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6385)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:6384](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6384)

#### Parameters

##### m

[`GroupInviteMessage`](/proto-reference/Message/classes/GroupInviteMessage)

##### o?

`IConversionOptions`

#### Returns

`object`
