mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-05 06:44:51 +00:00
Clean Document type
This commit is contained in:
parent
d5ebeef4be
commit
7765942fc9
1 changed files with 12 additions and 1 deletions
|
|
@ -41,12 +41,23 @@ class Document(Object):
|
|||
file_size (``int`` ``32-bit``, optional):
|
||||
File size.
|
||||
|
||||
date (``int``, optional):
|
||||
Date the document was sent in Unix time.
|
||||
"""
|
||||
ID = 0xb0700007
|
||||
|
||||
def __init__(self, file_id, thumb=None, file_name=None, mime_type=None, file_size=None):
|
||||
def __init__(
|
||||
self,
|
||||
file_id: str,
|
||||
thumb=None,
|
||||
file_name: str = None,
|
||||
mime_type: str = None,
|
||||
file_size: int = None,
|
||||
date: int = None
|
||||
):
|
||||
self.file_id = file_id # string
|
||||
self.thumb = thumb # flags.0?PhotoSize
|
||||
self.file_name = file_name # flags.1?string
|
||||
self.mime_type = mime_type # flags.2?string
|
||||
self.file_size = file_size # flags.3?int
|
||||
self.date = date # flags.3?int
|
||||
|
|
|
|||
Loading…
Reference in a new issue