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

# HookContextMap

> Interface exported by @botmesh/core.

Defined in: [core/types.ts:165](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L165)

Context type of each built-in hook event. Augment it (declaration merging) to type the
hooks of a plugin's custom event:

```ts theme={null}
declare module '@botmesh/core' {
  interface HookContextMap { 'crm.lead': { leadId: string } }
}
bot.after('crm.lead', (lead) => lead.leadId) // typed
```

## Properties

### message

```ts theme={null}
message: MessageContext;
```

Defined in: [core/types.ts:166](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L166)

***

### send

```ts theme={null}
send: SendHookContext;
```

Defined in: [core/types.ts:167](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L167)

***

### connection

```ts theme={null}
connection: ConnectionUpdate;
```

Defined in: [core/types.ts:168](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L168)

***

### group

```ts theme={null}
group: GroupEvent;
```

Defined in: [core/types.ts:169](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L169)

***

### call

```ts theme={null}
call: CallEvent;
```

Defined in: [core/types.ts:170](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L170)

***

### presence

```ts theme={null}
presence: PresenceEvent;
```

Defined in: [core/types.ts:171](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L171)

***

### reaction

```ts theme={null}
reaction: InboundReaction;
```

Defined in: [core/types.ts:172](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L172)

***

### poll

```ts theme={null}
poll: PollVote;
```

Defined in: [core/types.ts:173](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L173)

***

### status

```ts theme={null}
status: DeliveryStatus;
```

Defined in: [core/types.ts:174](https://github.com/andresayac/botmesh/blob/main/packages/core/src/core/types.ts#L174)


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