mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-08-16 00:01:02 +00:00
test(tgbot): detect open-coded keypad transitions (#6214)
Co-authored-by: n0ctal <293235942+n0ctal@users.noreply.github.com>
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
package tgbot
|
||||
|
||||
// updateNumericInput applies one key from the shared inline number pad.
|
||||
// Key -2 clears the value, -1 removes the last decimal digit, and 0..9 append
|
||||
// a digit. Callers retain their own validation and keyboard labels.
|
||||
// updateNumericInput applies one number-pad key: -2 clears, -1 backspaces, and 0..9 append.
|
||||
// Callers retain their own validation and keyboard labels.
|
||||
func updateNumericInput(value, key int) int {
|
||||
switch key {
|
||||
case -2:
|
||||
|
||||
Reference in New Issue
Block a user