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: Optional["PhotoSize"] = None,
file_name: Optional[str] = None,
mime_type: Optional[str] = None,
file_size: Optional[int] = None,
**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