From 4a8b19b0bef186e2b4058ce6961a9f65ea65c460 Mon Sep 17 00:00:00 2001 From: YouTwitFace Date: Mon, 28 Oct 2019 13:12:47 -0400 Subject: [PATCH] Remove @ya from valid usernames (#1306) --- telethon/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/utils.py b/telethon/utils.py index 9f18da29..0505a215 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -63,7 +63,7 @@ TG_JOIN_RE = re.compile( # See https://telegram.org/blog/inline-bots#how-does-it-work VALID_USERNAME_RE = re.compile( r'^([a-z]((?!__)[\w\d]){3,30}[a-z\d]' - r'|gif|vid|pic|bing|wiki|imdb|bold|vote|like|coub|ya)$', + r'|gif|vid|pic|bing|wiki|imdb|bold|vote|like|coub)$', re.IGNORECASE )