mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-01-03 09:49:21 +01:00
Add support for GIFs sent as document
This commit is contained in:
parent
ae0283f98d
commit
82f1496d4a
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue