mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-31 22:35:36 +00:00
Allow passing phone numbers with white spaces
E.g.: "+39 123 456 7890"
This commit is contained in:
@@ -961,7 +961,7 @@ class Client:
|
||||
except (AttributeError, binascii.Error, struct.error):
|
||||
pass
|
||||
|
||||
peer_id = peer_id.lower().strip("@+")
|
||||
peer_id = re.sub(r"[@+\s]", "", peer_id.lower())
|
||||
|
||||
try:
|
||||
int(peer_id)
|
||||
|
Reference in New Issue
Block a user