From b9133567af2186a32bd810704849a63ee2e012f7 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 27 Feb 2019 12:51:09 +0100 Subject: [PATCH] Remove weird map chr range from aggressive iter_participants --- telethon/client/chats.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telethon/client/chats.py b/telethon/client/chats.py index 83f8ce5e..fbd17454 100644 --- a/telethon/client/chats.py +++ b/telethon/client/chats.py @@ -1,4 +1,5 @@ import itertools +import string from .users import UserMethods from .. import utils @@ -47,7 +48,7 @@ class _ParticipantsIter(RequestIter): offset=0, limit=200, hash=0 - ) for x in (search or map(chr, range(ord('a'), ord('z') + 1)))] + ) for x in (search or string.ascii_lowercase)] else: self.requests = [functions.channels.GetParticipantsRequest( channel=entity,