diff --git a/tg/config.py b/tg/config.py index 9b4b176..50278b5 100644 --- a/tg/config.py +++ b/tg/config.py @@ -76,7 +76,12 @@ else: os.makedirs(directory, exist_ok=True) if not PHONE: + print( + "Enter your phone number in international format (including country code)" + ) PHONE = input("phone> ") + if not PHONE.startswith("+"): + PHONE = "+" + PHONE with open(CONFIG_FILE, "w") as f: f.write(f"PHONE = '{PHONE}'\n")