Skip to main content
Defined in: streaming/types.ts:104 The sink streamText renders into. ctx.stream() builds one from the bot; tests and custom integrations can provide their own.

Properties

capabilities?

Defined in: streaming/types.ts:105

isPrivate?

Defined in: streaming/types.ts:107 false for groups/channels: native drafts are attempted only when not false.

shutdown?

Defined in: streaming/types.ts:118 Aborted when the transport shuts down (bot.stop()): the stream is cancelled and touches the target no more — no flush, no discard, no rate-limit wait.

Methods

send()

Defined in: streaming/types.ts:108

Parameters

Returns

Promise<SentMessage<unknown>>

edit()?

Defined in: streaming/types.ts:109

Parameters

Returns

Promise<unknown>

delete()?

Defined in: streaming/types.ts:111 Deletes a message this stream sent (used by onCancel: 'discard').

Parameters

Returns

Promise<void>

draft()?

Defined in: streaming/types.ts:112

Parameters

Returns

Promise<void>

typing()?

Defined in: streaming/types.ts:113

Returns

Promise<void>