FileUploadInfo Class

Information about the file to be uploaded.

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

FileUploadInfo(*, name: str | None = None, uploadUrl: str | None = None, contentUrl: str | None = None, uniqueId: str | None = None, fileType: str | None = None, **extra_data: Any)

Keyword-Only Parameters

Name Description
name
Default value: None
uploadUrl
Default value: None
contentUrl
Default value: None
uniqueId
Default value: None
fileType
Default value: None

Attributes

content_url

URL to file.

content_url: str | None

file_type

Type of the file.

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}

name

Name of the file.

name: str | None

unique_id

ID that uniquely identifies the file.

unique_id: str | None

upload_url

URL to an upload session that the bot can use to set the file contents.

upload_url: str | None