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

# UGCBot

> Protobuf class UGCBot generated from WAProto.

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

## Implements

* [`IUGCBot`](/proto-reference/SyncActionValue/interfaces/IUGCBot)

## Constructors

### new UGCBot()

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

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

#### Parameters

##### p?

[`IUGCBot`](/proto-reference/SyncActionValue/interfaces/IUGCBot)

#### Returns

[`UGCBot`](/proto-reference/SyncActionValue/classes/UGCBot)

## Properties

### definition?

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

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

#### Implementation of

[`IUGCBot`](/proto-reference/SyncActionValue/interfaces/IUGCBot).[`definition`](/proto-reference/SyncActionValue/interfaces/IUGCBot#definition)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IUGCBot`](/proto-reference/SyncActionValue/interfaces/IUGCBot)

#### Returns

[`UGCBot`](/proto-reference/SyncActionValue/classes/UGCBot)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`UGCBot`](/proto-reference/SyncActionValue/classes/UGCBot)

***

### encode()

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

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

#### Parameters

##### m

[`IUGCBot`](/proto-reference/SyncActionValue/interfaces/IUGCBot)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`UGCBot`](/proto-reference/SyncActionValue/classes/UGCBot)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`UGCBot`](/proto-reference/SyncActionValue/classes/UGCBot)

##### o?

`IConversionOptions`

#### Returns

`object`
