Skip to main content
Defined in: testing/createTestBot.ts:57 What createTestBot returns.

Properties

bot

Defined in: testing/createTestBot.ts:58

provider

Defined in: testing/createTestBot.ts:60 The MockProvider (drive inbound traffic and read outbox / journal here).

chat

Defined in: testing/createTestBot.ts:62 The default DM (user@s.whatsapp.net).

chaos?

Defined in: testing/createTestBot.ts:64 The chaos wrapper the bot talks to — present only when options.chaos was given.

Methods

dm()

Defined in: testing/createTestBot.ts:66 Another DM chat (chatId === senderId === userId).

Parameters

Returns

TestChat

group()

Defined in: testing/createTestBot.ts:68 A group chat driven by participant as (default 'user@s.whatsapp.net'); chat.as(other) adds participants.

Parameters

Returns

TestChat