# File

File object is a JSON attached to a message that contains information about an attachment.

<pre class="language-javascript"><code class="lang-javascript"><strong>{
</strong>    type: "image",
    url: "https://urltofile.com/image.jpeg",
    size: "2 MB",
    name: "Assignment Notes"
<strong>}
</strong></code></pre>

<table><thead><tr><th width="159">Field</th><th width="155.33333333333331">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>type</code></td><td><code>string</code></td><td><p>The type of the file. </p><p><code>image</code> | <code>video</code> | <code>file</code> | <code>gif</code></p></td></tr><tr><td>url</td><td><code>string</code></td><td>The url to the file</td></tr><tr><td><code>size</code></td><td><code>string</code></td><td>The size of the file.</td></tr><tr><td><code>name</code></td><td><code>string</code></td><td>The name of the file</td></tr></tbody></table>
