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

# DraftOptions

> Interface exported by @botmesh/core.

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

Options of one [IProvider.sendDraft](https://botmesh.afaya.com.co/api/core/interfaces/IProvider.md#senddraft) call.

## Properties

### canStop?

```ts theme={null}
canStop?: boolean;
```

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

Show the user a button to stop the generation (Telegram `can_stop`).

***

### keepOnStop?

```ts theme={null}
keepOnStop?: boolean;
```

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

Keep the draft visible when the user presses stop (Telegram `keep_on_stop`).

***

### onStop?

```ts theme={null}
onStop?: () => void;
```

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

Called (at most once) when the user stops this draft. Providers without a
stop control never call it.

#### Returns

`void`

***

### platformData?

```ts theme={null}
platformData?: Record<string, unknown>;
```

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

Transport-native passthrough (e.g. Telegram `message_thread_id`).


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