Skip to main content

Interface: ChannelContext

Defined in: .source/wunderland/src/channels/chat/types.ts:15

Channel context passed through the tool execution pipeline.

Properties​

chatId​

chatId: string

Defined in: .source/wunderland/src/channels/chat/types.ts:19

Chat/conversation ID on the platform.


group?​

optional group?: object

Defined in: .source/wunderland/src/channels/chat/types.ts:27

Group metadata, when the adapter can supply it (drives GroupPolicy).

botUserId?​

optional botUserId?: string

isGroup?​

optional isGroup?: boolean

mentions?​

optional mentions?: string[]

senderIsBot?​

optional senderIsBot?: boolean

supportsMentions?​

optional supportsMentions?: boolean


platform​

platform: string

Defined in: .source/wunderland/src/channels/chat/types.ts:17

Platform identifier (telegram, whatsapp, discord, slack, etc).


replyFn​

replyFn: (text) => Promise<void>

Defined in: .source/wunderland/src/channels/chat/types.ts:25

Send a text reply to the current chat.

Parameters​

text​

string

Returns​

Promise<void>


sendFileFn​

sendFileFn: (filePath, caption?) => Promise<void>

Defined in: .source/wunderland/src/channels/chat/types.ts:23

Send a file to the current chat.

Parameters​

filePath​

string

caption?​

string

Returns​

Promise<void>


userId​

userId: string

Defined in: .source/wunderland/src/channels/chat/types.ts:21

Sender user ID on the platform.