> For the complete documentation index, see [llms.txt](https://seoden2136.gitbook.io/tweet-js/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://seoden2136.gitbook.io/tweet-js/methods/uploadmedia.md).

# uploadMedia()

uploadMedia() is there to help you upload images and videos to Twitter easily\
\
\ <br>

```bash
options :

alt_text: alt text(required)
tweet_message: a tweet message (optional)
```

## uploading using a file in the system

```
bot.uploadMedia('path/to/file.png', {... here are the options ... })
```

{% hint style="info" %}
include the option tweet\_message to send a tweet with the image attached
{% endhint %}

## Sending a image/vid from a Url&#x20;

You can use this to upload images that are not on the system but hosted on a website\
the link should be a valid link like this <https://www.google.com/images/srpr/logo10w.png>\
\ <br>

```
bot.uploadMedia('https://www.google.com/images/srpr/logo10w.png', {options here})
```

this would out put something similar to this \ <br>

```
✔️--finished downloading!
[Node-tweet]-Posting your downloaded images
```
