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

# typeTrigger()

> Function exported by @botmesh/core.

```ts theme={null}
function typeTrigger(...types): TypeTrigger;
```

Defined in: [core/triggers.ts:114](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/triggers.ts#L114)

Build a type trigger for one or more inbound kinds.

## Parameters

| Parameter | Type |
| - | - |
| ...`types` | [`MessageType`](https://botmesh.afaya.com.co/api/core/type-aliases/MessageType)\[] |

## Returns

[`TypeTrigger`](https://botmesh.afaya.com.co/api/core/interfaces/TypeTrigger)

## Example

```ts theme={null}
// any visual media, but not audio/documents
bot.when(typeTrigger('image', 'video'), (ctx) => ctx.reply('¡Qué buena toma!'))
```


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