diff --git a/telethon/utils.py b/telethon/utils.py index 7f5e3e23..8f21df17 100644 --- a/telethon/utils.py +++ b/telethon/utils.py @@ -899,7 +899,7 @@ def is_list_like(obj): enough. Things like ``open()`` are also iterable (and probably many other things), so just support the commonly known list-like objects. """ - return isinstance(obj, (list, tuple, set, dict, GeneratorType)) + return isinstance(obj, (list, tuple, set, dict, range, GeneratorType)) def parse_phone(phone):