Skip to main content
Defined in: conversations/ConversationRuntime.ts:42 The message shape conversations work with. Every MessageContext satisfies it.

Properties

from

Defined in: conversations/ConversationRuntime.ts:43

sender

Defined in: conversations/ConversationRuntime.ts:43

body

Defined in: conversations/ConversationRuntime.ts:43

type

Defined in: conversations/ConversationRuntime.ts:43

isGroup

Defined in: conversations/ConversationRuntime.ts:43

user?

Defined in: conversations/ConversationRuntime.ts:47 Sender profile when the message came through a Bot (userOf(ctx) gives a non-optional handle).

lang?

Defined in: conversations/ConversationRuntime.ts:49 Resolved language when the message came through a Bot (see MessageContext.lang).

sharedLocation?

Defined in: conversations/ConversationRuntime.ts:53 Normalized shared location, when the message is one (see MessageContext.sharedLocation).

Methods

reply()

Defined in: conversations/ConversationRuntime.ts:45 opts is honored by bot contexts (pacing, cancelIf); other implementations may ignore it.

Parameters

Returns

Promise<unknown>

t()?

Defined in: conversations/ConversationRuntime.ts:51 Bound translator when the message came through a Bot (see MessageContext.t).

Parameters

Returns

string