Document

class bale.Document(file_id, file_unique_id, file_name, thumbnail, mime_type, file_size)

Bases: BaseFile

This object shows a Document.

file_id

Identifier for this file, which can be used to download or reuse the file.

Type:

str

file_unique_id

Unique identifier for this file, which is supposed to be the same over time and for different bots. Can’t be used to download or reuse the file.

Type:

str

thumbnail

document thumbnail as defined by sender.

Type:

Optional[bale.PhotoSize]

file_name

Original document filename as defined by sender.

Type:

Optional[str]

mime_type

MIME type of file as defined by sender.

Type:

Optional[str]

file_size

File size in bytes, if known.

Type:

Optional[int]