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

# HydratedURLButton

> Protobuf class HydratedURLButton generated from WAProto.

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

## Implements

* [`IHydratedURLButton`](/proto-reference/HydratedTemplateButton/interfaces/IHydratedURLButton)

## Constructors

### new HydratedURLButton()

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

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

#### Parameters

##### p?

[`IHydratedURLButton`](/proto-reference/HydratedTemplateButton/interfaces/IHydratedURLButton)

#### Returns

[`HydratedURLButton`](/proto-reference/HydratedTemplateButton/classes/HydratedURLButton)

## Properties

### consentedUsersUrl?

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

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

#### Implementation of

[`IHydratedURLButton`](/proto-reference/HydratedTemplateButton/interfaces/IHydratedURLButton).[`consentedUsersUrl`](/proto-reference/HydratedTemplateButton/interfaces/IHydratedURLButton#consentedusersurl)

***

### displayText?

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

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

#### Implementation of

[`IHydratedURLButton`](/proto-reference/HydratedTemplateButton/interfaces/IHydratedURLButton).[`displayText`](/proto-reference/HydratedTemplateButton/interfaces/IHydratedURLButton#displaytext)

***

### url?

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

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

#### Implementation of

[`IHydratedURLButton`](/proto-reference/HydratedTemplateButton/interfaces/IHydratedURLButton).[`url`](/proto-reference/HydratedTemplateButton/interfaces/IHydratedURLButton#url)

***

### webviewPresentation?

> `optional` **webviewPresentation**: `null` | [`WebviewPresentationType`](/proto-reference/HydratedTemplateButton/HydratedURLButton/enumerations/WebviewPresentationType)

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

#### Implementation of

[`IHydratedURLButton`](/proto-reference/HydratedTemplateButton/interfaces/IHydratedURLButton).[`webviewPresentation`](/proto-reference/HydratedTemplateButton/interfaces/IHydratedURLButton#webviewpresentation)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IHydratedURLButton`](/proto-reference/HydratedTemplateButton/interfaces/IHydratedURLButton)

#### Returns

[`HydratedURLButton`](/proto-reference/HydratedTemplateButton/classes/HydratedURLButton)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`HydratedURLButton`](/proto-reference/HydratedTemplateButton/classes/HydratedURLButton)

***

### encode()

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

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

#### Parameters

##### m

[`IHydratedURLButton`](/proto-reference/HydratedTemplateButton/interfaces/IHydratedURLButton)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`HydratedURLButton`](/proto-reference/HydratedTemplateButton/classes/HydratedURLButton)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`HydratedURLButton`](/proto-reference/HydratedTemplateButton/classes/HydratedURLButton)

##### o?

`IConversionOptions`

#### Returns

`object`
