mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +00: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:
@@ -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):
|
||||
|
Reference in New Issue
Block a user