French web developer mainly but touches everything. Volunteer mod here at DEV. I learn Nuxt at this moment and databases. — Addict to Cappuccino and Music
You need to upload the image using madia/upload post request of Twitter API. The response will include a media id.
Then make statuses/update post request with media id from previous one.
Here are links from Twitter API website to make the idea more clear Media/upload post request Statuses/update post request
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello ! I would like to send a new tweet but with a image. How I can create that?
You need to upload the image using madia/upload post request of Twitter API. The response will include a media id.
Then make statuses/update post request with media id from previous one.
Here are links from Twitter API website to make the idea more clear
Media/upload post request
Statuses/update post request