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

# AlbumMessage

> Protobuf class AlbumMessage generated from WAProto.

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

## Implements

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

## Constructors

### new AlbumMessage()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### contextInfo?

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

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

#### Implementation of

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

***

### expectedImageCount?

> `optional` **expectedImageCount**: `null` | `number`

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

#### Implementation of

[`IAlbumMessage`](/proto-reference/Message/interfaces/IAlbumMessage).[`expectedImageCount`](/proto-reference/Message/interfaces/IAlbumMessage#expectedimagecount)

***

### expectedVideoCount?

> `optional` **expectedVideoCount**: `null` | `number`

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

#### Implementation of

[`IAlbumMessage`](/proto-reference/Message/interfaces/IAlbumMessage).[`expectedVideoCount`](/proto-reference/Message/interfaces/IAlbumMessage#expectedvideocount)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
