Files
simplex-chat/packages/simplex-chat-nodejs/docs/bot.Interface.BotConfig.md
T
2026-09-25 09:33:05 +00:00

1.2 KiB

simplex-chat


simplex-chat / bot / BotConfig

Interface: BotConfig

Defined in: src/bot.ts:36

Properties

dbOpts

dbOpts: BotDbOpts

Defined in: src/bot.ts:38


events?

optional events?: EventSubscribers

Defined in: src/bot.ts:45


onCommands?

optional onCommands?: object

Defined in: src/bot.ts:42

Index Signature

[key: string]: ((chatItem, command, chat) => void | Promise<void>) | undefined


onMessage?

optional onMessage?: (chatItem, content, chat) => void | Promise<void>

Defined in: src/bot.ts:40

Parameters

chatItem

AChatItem

content

MsgContent

chat

ChatApi

Returns

void | Promise<void>


options

options: BotOptions

Defined in: src/bot.ts:39


profile

profile: Profile

Defined in: src/bot.ts:37