mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-29 02:34:15 +03:00
Remove uses of gif external
Since it has been removed in layer 116.
This commit is contained in:
parent
57b38b24dd
commit
95ea2fb40c
|
@ -728,8 +728,6 @@ class UploadMethods:
|
||||||
elif re.match('https?://', file):
|
elif re.match('https?://', file):
|
||||||
if as_image:
|
if as_image:
|
||||||
media = types.InputMediaPhotoExternal(file)
|
media = types.InputMediaPhotoExternal(file)
|
||||||
elif not force_document and utils.is_gif(file):
|
|
||||||
media = types.InputMediaGifExternal(file, '')
|
|
||||||
else:
|
else:
|
||||||
media = types.InputMediaDocumentExternal(file)
|
media = types.InputMediaDocumentExternal(file)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user