> ## 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.

# MessageHandler

> Type alias exported by @botmesh/core.

```ts theme={null}
type MessageHandler = (ctx) => unknown | Promise<unknown>;
```

Defined in: [core/Bot.ts:104](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/Bot.ts#L104)

A user message handler — receives the full inbound [MessageContext](https://botmesh.afaya.com.co/api/core/interfaces/MessageContext.md).

## Parameters

| Parameter | Type |
| - | - |
| `ctx` | [`MessageContext`](https://botmesh.afaya.com.co/api/core/interfaces/MessageContext) |

## Returns

`unknown` | `Promise`\<`unknown`>


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