bot.onIdle(). ctx is the chat’s LAST processed inbound message, so
ctx.reply('¿Sigues ahí?') answers in the right chat. Errors go to the bot 'error' event.
Parameters
Returns
unknown | Promise<unknown>Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Type alias exported by @botmesh/core.
type IdleHandler = (ctx, event) => unknown | Promise<unknown>;
bot.onIdle(). ctx is the chat’s LAST processed inbound message, so
ctx.reply('¿Sigues ahí?') answers in the right chat. Errors go to the bot 'error' event.
| Parameter | Type |
|---|---|
ctx | MessageContext |
event | IdleEvent |
unknown | Promise<unknown>