Skip to main content

Interface: UpdateHandlerOptions<Args>

Options of ctx.handleUpdate and ctx.setDefaultUpdateHandler (05 §6, 11 §2.39).

Type Parameters​

Args​

Args

Properties​

description?​

optional description?: string


unfinishedPolicy?​

optional unfinishedPolicy?: HandlerUnfinishedPolicy

Default WARN_AND_ABANDON.


validate?​

optional validate?: (args) => void

Runs before the update is accepted, without changing the run; throw to reject it (nothing is written to history and the caller gets the error). It is skipped when a replay re-delivers an update that history accepted.

Parameters​

args​

Args

Returns​

void