mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-04 20:20:23 +03:00
Fixed username regex
Username max length is 1+31 = 32
This commit is contained in:
parent
a93abed737
commit
8fe6724448
|
@ -284,7 +284,7 @@ class UsernameInvalidError(BadRequestError):
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, **kwargs):
|
||||||
super(Exception, self).__init__(
|
super(Exception, self).__init__(
|
||||||
self,
|
self,
|
||||||
'Unacceptable username. Must match r"[a-zA-Z][\w\d]{4,32}"'
|
'Unacceptable username. Must match r"[a-zA-Z][\w\d]{4,31}"'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user