mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Add missing file_reference to InputDocument
This commit is contained in:
parent
b0e0bc3701
commit
18f457a41d
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user