Amount Dialog
Overview
Key Features
How It Works
let smartAmountDialog = new SmartAmountDialog({
min: 10, // Minimum acceptable amount
max: 100, // Maximum acceptable amount
curValue: 50, // Current amount (e.g., user's balance)
onlyInteger: true, // Requires only integer numbers
skipZero: false, // Don't skip zero values
dialogErrors: { // Error messages
invalid: "Not a number",
zero: "Your balance is zero",
notEnough: "Not enough funds",
small: "Amount too small",
big: "Amount too large",
notInteger: false // accept float on false and integer only on true
}
});Usage
Using with SmartBot
Template
Field
Description
Initialization
Last updated