tock / ai.tock.bot.connector.media / MediaFileDescriptor

# MediaFileDescriptor

`data class MediaFileDescriptor` (source)

A file descriptor.

### Constructors

#### <init> | A file descriptor. `MediaFileDescriptor(suffix: String, name: String, id: String = Dice.newId(), type: AttachmentType = UploadedFilesService.attachmentType(suffix), externalUrl: String? = null)`

### Properties

#### externalUrl | `val externalUrl: String?`
#### id | `val id: String`
#### name | `val name: String`
#### suffix | `val suffix: String`
#### type | `val type: AttachmentType`

### Functions

#### toMessage | Creates a MediaMessage for the specified BotBus. `fun toMessage(bus: BotBus): MediaFile`