Add support for GIFs sent as document

This commit is contained in:
Leandro Toledo 2015-07-19 22:05:22 -03:00
parent ae0283f98d
commit 82f1496d4a

View file

@ -145,7 +145,7 @@ class InputFile(object):
if file_type:
file_content = data[file_type[0]]
if file_type[0] == 'photo':
if file_type[0] == 'photo' or file_type[0] == 'document':
return isinstance(file_content, file) or \
str(file_content).startswith('http')