Source code for pyrobale.objects.document
from typing import TYPE_CHECKING, Optional
if TYPE_CHECKING:
from .utils import build_api_url
from .photosize import PhotoSize
[docs]
class Document:
"""Represents a general file to be sent without any special properties."""
def __init__(
self,
file_id: str,
file_unique_id: str,
thumbnail: "PhotoSize",
file_name: str,
mime_type: str,
file_size: int,
**kwargs
):
[docs]
self.file_unique_id = file_unique_id
[docs]
self.thumbnail = thumbnail
[docs]
self.file_name = file_name
[docs]
self.mime_type = mime_type
[docs]
self.file_size = file_size