understanding commited on
Commit
eb3ee88
·
verified ·
1 Parent(s): 623a28f

Update bot/ui/callbacks.py

Browse files
Files changed (1) hide show
  1. bot/ui/callbacks.py +5 -3
bot/ui/callbacks.py CHANGED
@@ -19,15 +19,17 @@ MENU_HELP = "menu_help"
19
  MENU_AUTH = "menu_auth"
20
  MENU_PROFILES = "menu_profiles"
21
 
22
- # ✅ Keep old + new names compatible
23
  MENU_SPEEDTEST = "menu_speedtest"
24
- MENU_SPEED = MENU_SPEEDTEST # handlers.py expects MENU_SPEED
25
 
26
  # upload confirm actions
27
  UP_GO = "up_go"
28
  UP_EDIT = "up_edit"
29
  UP_PRIV = "up_priv"
30
- UP_CANCEL = "up_cancel"
 
 
31
 
32
  # filename selection actions (link-archive)
33
  NAME_ORIGINAL = "n_orig"
 
19
  MENU_AUTH = "menu_auth"
20
  MENU_PROFILES = "menu_profiles"
21
 
22
+ # ✅ compat: handlers.py uses MENU_SPEED, keyboards use MENU_SPEEDTEST
23
  MENU_SPEEDTEST = "menu_speedtest"
24
+ MENU_SPEED = MENU_SPEEDTEST
25
 
26
  # upload confirm actions
27
  UP_GO = "up_go"
28
  UP_EDIT = "up_edit"
29
  UP_PRIV = "up_priv"
30
+
31
+ UP_CANCEL = "up_cancel" # used by keyboards.py
32
+ UP_DEL = UP_CANCEL # ✅ handlers.py expects UP_DEL (same meaning)
33
 
34
  # filename selection actions (link-archive)
35
  NAME_ORIGINAL = "n_orig"