The following changes were made by the replace_file_content tool to: /root/MayaXSenderbot/bridge.py. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -95,6 +95,17 @@ BACK_KB = [["🔙 Back to Menu"]] OTP_KB = [["🔁 Resend Code"], ["🔙 Back to Menu"]] +SIM_KB = [["0️⃣ SIM 1", "1️⃣ SIM 2"], ["🔙 Back to Menu"]] + + +def parse_sim_choice(text: str) -> Optional[str]: + t = text.strip() + if t in ("0", "0️⃣ SIM 1", "SIM 1", "sim 1", "Sim 1", "0️⃣") or t.lower() in ("sim1", "slot1"): + return "0" + if t in ("1", "1️⃣ SIM 2", "SIM 2", "sim 2", "Sim 2", "1️⃣") or t.lower() in ("sim2", "slot2"): + return "1" + return None + def ts() -> str: [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.