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

# BotMemoryFact

> Protobuf class BotMemoryFact generated from WAProto.

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

## Implements

* [`IBotMemoryFact`](/proto-reference/interfaces/IBotMemoryFact)

## Constructors

### new BotMemoryFact()

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

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

#### Parameters

##### p?

[`IBotMemoryFact`](/proto-reference/interfaces/IBotMemoryFact)

#### Returns

[`BotMemoryFact`](/proto-reference/classes/BotMemoryFact)

## Properties

### fact?

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

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

#### Implementation of

[`IBotMemoryFact`](/proto-reference/interfaces/IBotMemoryFact).[`fact`](/proto-reference/interfaces/IBotMemoryFact#fact)

***

### factId?

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

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

#### Implementation of

[`IBotMemoryFact`](/proto-reference/interfaces/IBotMemoryFact).[`factId`](/proto-reference/interfaces/IBotMemoryFact#factid)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IBotMemoryFact`](/proto-reference/interfaces/IBotMemoryFact)

#### Returns

[`BotMemoryFact`](/proto-reference/classes/BotMemoryFact)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`BotMemoryFact`](/proto-reference/classes/BotMemoryFact)

***

### encode()

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

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

#### Parameters

##### m

[`IBotMemoryFact`](/proto-reference/interfaces/IBotMemoryFact)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`BotMemoryFact`](/proto-reference/classes/BotMemoryFact)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`BotMemoryFact`](/proto-reference/classes/BotMemoryFact)

##### o?

`IConversionOptions`

#### Returns

`object`
