bot.metrics(). Plain JSON — safe to serialise.
Properties
startedAt?
start(); undefined while the bot is not running.
uptimeMs
start(); 0 while the bot is not running.
uptime
'3d 4h', '5m 12s'.
conversations
Type Declaration
active
flows
messages
in
out
outFailed
dropped
duplicate
BotConfig.dedupe.
blocked
handoff
echo?
BotConfig.echoFilter (present only with the filter on).
presenceSkipped
ctx.typing()/recording(), the automatic typing indicator,
ctx.markRead()) skipped because the transport was disconnected (best-effort policy).
typing
markRead
triggered
bot.trigger() calls that started a conversation.
errors
'error' channel.