mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-03 19:00:21 +03:00
Stop sending gifs as images
This is often not the case, most gifs are animated and when sent as images inside albums they lose the animation.
This commit is contained in:
parent
45b7318f08
commit
d7ef0f5e09
|
@ -322,7 +322,7 @@ def is_image(file):
|
|||
if not isinstance(file, str):
|
||||
return False
|
||||
_, ext = os.path.splitext(file)
|
||||
return re.match(r'\.(png|jpe?g|gif)', ext, re.IGNORECASE)
|
||||
return re.match(r'\.(png|jpe?g)', ext, re.IGNORECASE)
|
||||
|
||||
|
||||
def is_audio(file):
|
||||
|
|
Loading…
Reference in New Issue
Block a user