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.
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