bot.on(name, listener), e.g. bot.on('ready', () => …) or bot.on('error', (err) => …).
Properties
ready
'ready'.
qr
connection
message
error
error
ctx?
started
start() finishes.
stopping
stop() of a running bot, right after inbound is closed and BEFORE the
drain and the transport stop: cancel long work here (model calls, downloads) while the
transport can still deliver what is in flight. A throwing listener is reported on 'error'.
stopped
stop() finishes.
command:unknown
/xyz command.
ctx
command
reaction
poll
call
group
presence
status
handoff
bot.handoff() / ctx.handoff()).
resume
bot.resume()).
conversation:started
bot.trigger(), dormant resume, c.goto()).
conversation:ended
coordination:leader
coordination): this replica was elected for a singleton (provider:<id>) and starts it.
name
fence
coordination:follower
name
reason?
coordination:lease-lost
Type Declaration
reason
coordination:handover
coordination.handover): a conversation another replica ran was taken
over on this one — resumed, or handled by the hand-over fallback (see outcome).
durability:dead
BotConfig.durability): an inbound event or a send was dead-lettered after its
retries (id is the inbox record id or the outbox key). Replay/retry it through bot.durability.
kind
id
chatId?
error
durability:ambiguous
durability.outbox.onAmbiguous.