lockOnRun property
bool
lockOnRun
Desktop and web Telegram client both has issue: fast double-click on an button produces multiple equivalent events to occur, before the button will be hidden by code or blocked by client.
This flag enables by default 3-seconds lock for command execution. Use also lock and unlock functions to enable or disable the command manually. Use lockDuration to specify another time period then 3 seconds
Implementation
bool get lockOnRun => false;