Files
simplex-chat/packages/simplex-chat-nodejs/docs/bot.Function.subscribeChatItems.md
EvgenyandEvgeny @ SimpleX Chat 46b2cf9f85 nodejs: add tests to library (#7694)
* nodejs: add tests to library

* new tests

* remove message splitting

* fix race

* docs

* replace extract-zip with yauzl that it wraps (high severity issue)

* fix ci tests

* skip server tests on macos and win unless SMP_SERVER is set

* fix win test

* fix win test

---------

Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
2026-10-19 19:49:44 +01:00

556 B

simplex-chat


simplex-chat / bot / subscribeChatItems

Function: subscribeChatItems()

subscribeChatItems(bot, onMessage, commands): void

Defined in: src/bot.ts:110

Parameters

bot

ChatApi

onMessage

((chatItem, content, chat) => void | Promise<void>) | undefined

commands

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

Returns

void