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

# IdleHandler

> Type alias exported by @botmesh/core.

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

Defined in: [core/idle.ts:51](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/idle.ts#L51)

Handler of `bot.onIdle()`. `ctx` is the chat's LAST processed inbound message, so
`ctx.reply('¿Sigues ahí?')` answers in the right chat. Errors go to the bot `'error'` event.

## Parameters

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

## Returns

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


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