mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-09-20 10:52:39 +03:00
Merge 7beb4bca64
into fde0d60f72
This commit is contained in:
commit
8e06bc1a06
|
@ -873,7 +873,7 @@ class TelegramClient(TelegramBareClient):
|
||||||
"""
|
"""
|
||||||
# First check if the user passed an iterable, in which case
|
# First check if the user passed an iterable, in which case
|
||||||
# we may want to send as an album if all are photo files.
|
# we may want to send as an album if all are photo files.
|
||||||
if hasattr(file, '__iter__'):
|
if not isinstance(file, str) and hasattr(file, '__iter__'):
|
||||||
# Convert to tuple so we can iterate several times
|
# Convert to tuple so we can iterate several times
|
||||||
file = tuple(x for x in file)
|
file = tuple(x for x in file)
|
||||||
if all(utils.is_image(x) for x in file):
|
if all(utils.is_image(x) for x in file):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user