FileDownloadInfo Class

The content of a file.download.info attachment, describing an uploaded file received in a personal (1:1) chat. The file is fetched from the short-lived, pre-authorized download_url with a plain GET (no bearer token).

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Constructor

FileDownloadInfo(*, downloadUrl: str | None = None, uniqueId: str | None = None, fileType: str | None = None, etag: str | None = None, **extra_data: Any)

Keyword-Only Parameters

Name Description
downloadUrl
Default value: None
uniqueId
Default value: None
fileType
Default value: None
etag
Default value: None

Attributes

download_url

Pre-authorized, short-lived URL the file can be fetched from with a plain GET (no bearer token).

download_url: str | None

etag

A server-assigned version tag identifying this version of the file's contents, for detecting whether the file changed between reads. Read-only; populated when Teams provides it with the file.

etag: str | None

file_type

Type of file (extension, e.g. pdf, docx).

file_type: str | None

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_config: ClassVar[ConfigDict] = {'alias_generator': AliasGenerator(alias=None, validation_alias=<staticmethod(<function CustomBaseModel.validation_alias_generator>)>, serialization_alias=<staticmethod(<function CustomBaseModel.serialization_alias_generator>)>), 'arbitrary_types_allowed': True, 'extra': 'allow', 'populate_by_name': True, 'serialize_by_alias': True, 'validate_by_alias': True, 'validate_by_name': True}

unique_id

a

unique_id: str | None