From ca54b62f636b8b1fa3b50517682079410eb6cff9 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 10 Mar 2018 15:21:31 +0100 Subject: [PATCH] Strip "+" away from phone numbers when logging in --- pyrogram/client/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyrogram/client/client.py b/pyrogram/client/client.py index 5a834ee7..b382a1fd 100644 --- a/pyrogram/client/client.py +++ b/pyrogram/client/client.py @@ -572,6 +572,8 @@ class Client: elif confirm in ("n", "2"): self.phone_number = input("Enter phone number: ") + self.phone_number = self.phone_number.strip("+") + try: r = self.send( functions.auth.SendCode(