Skip to main content
Defined in: core/provider.ts:233 The single normalized inbound message. chatId/senderId are ALREADY stable and resolved — the stability contract (see IProvider) guarantees the same human yields the same senderId (and chat the same chatId) for the session, so ConversationRuntime.keyFor({chatId}:\{chatId\}:{senderId}) is safe for ANY conforming provider. Field names from/sender/body/type/isGroup are duplicated to match RuntimeMessage/MessageContext so the object flows into the dispatcher/runtime unchanged.

Type Parameters

Properties

ref

Defined in: core/provider.ts:240 ref.id MUST be unique per logical inbound message within its chat and stable across redelivery (webhook retry, reconnect replay), or '' when the transport cannot guarantee that. Core dedupes on chatId + ref.id (BotConfig.dedupe, on by default); see the INBOUND ID CONTRACT on IProvider.

chat

Defined in: core/provider.ts:241

senderInfo

Defined in: core/provider.ts:242

from

Defined in: core/provider.ts:245 Flattened, keyFor-ready aliases (identical values to chat.id / senderInfo.id).

sender

Defined in: core/provider.ts:246

chatId

Defined in: core/provider.ts:247

senderId

Defined in: core/provider.ts:248

isGroup

Defined in: core/provider.ts:250

isBroadcast

Defined in: core/provider.ts:251

fromMe

Defined in: core/provider.ts:252

type

Defined in: core/provider.ts:254

body

Defined in: core/provider.ts:255

timestamp

Defined in: core/provider.ts:261 When the message was sent, in epoch milliseconds (every provider: transports that report seconds multiply by 1000; one that reports none uses the receive time, never 0). Checked by assertInboundContract from @botmesh/core/testing.

mentions

Defined in: core/provider.ts:263

quoted?

Defined in: core/provider.ts:264

media?

Defined in: core/provider.ts:265

location?

Defined in: core/provider.ts:270 The shared location of a type: 'location' message, when the transport sends coordinates. body stays the place name/address (or '') for text matching.

raw

Defined in: core/provider.ts:273 Provider-native payload (proto.IWebMessageInfo, webhook JSON, gateway obj).