Add missing file_reference to InputDocument

This commit is contained in:
Lonami Exo 2018-12-25 01:04:27 +01:00
parent b0e0bc3701
commit 18f457a41d

View File

@ -246,7 +246,8 @@ def get_input_document(document):
if isinstance(document, types.Document):
return types.InputDocument(
id=document.id, access_hash=document.access_hash)
id=document.id, access_hash=document.access_hash,
file_reference=document.file_reference)
if isinstance(document, types.DocumentEmpty):
return types.InputDocumentEmpty()