From 82f1496d4a18ddb7d18048dcf66f0070b687b639 Mon Sep 17 00:00:00 2001 From: Leandro Toledo Date: Sun, 19 Jul 2015 22:05:22 -0300 Subject: [PATCH] Add support for GIFs sent as document --- telegram/inputfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/inputfile.py b/telegram/inputfile.py index 33e6ca5a1..7caaa255d 100644 --- a/telegram/inputfile.py +++ b/telegram/inputfile.py @@ -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')