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

# MediaTooLargeError

> Class exported by @botmesh/core.

Defined in: [core/provider.ts:777](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/provider.ts#L777)

Inbound media over the `maxBytes` cap of [loadMediaOf](https://botmesh.afaya.com.co/api/core/functions/loadMediaOf.md). `bytes` is the
declared size when the provider reported one (nothing was downloaded), or the
bytes read before the download was cut.

## Extends

* [`PayloadTooLargeError`](https://botmesh.afaya.com.co/api/core/classes/PayloadTooLargeError)

## Constructors

### Constructor

```ts theme={null}
new MediaTooLargeError(bytes, maxBytes): MediaTooLargeError;
```

Defined in: [core/provider.ts:778](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/provider.ts#L778)

#### Parameters

| Parameter | Type |
| - | - |
| `bytes` | `number` |
| `maxBytes` | `number` |

#### Returns

`MediaTooLargeError`

#### Overrides

[`PayloadTooLargeError`](https://botmesh.afaya.com.co/api/core/classes/PayloadTooLargeError).[`constructor`](https://botmesh.afaya.com.co/api/core/classes/PayloadTooLargeError#constructor)

## Properties

### bytes

```ts theme={null}
readonly bytes: number;
```

Defined in: [core/provider.ts:778](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/provider.ts#L778)

***

### maxBytes

```ts theme={null}
readonly maxBytes: number;
```

Defined in: [core/provider.ts:778](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/provider.ts#L778)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.