Interface: UpdateHandlerOptions<Args>
Options of ctx.handleUpdate and ctx.setDefaultUpdateHandler (05 §6, 11 §2.39).
Type Parameters
Args
Args
Properties
description?
optionaldescription?:string
unfinishedPolicy?
optionalunfinishedPolicy?:HandlerUnfinishedPolicy
Default WARN_AND_ABANDON.
validate?
optionalvalidate?: (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