Skip to content Skip to sidebar Skip to footer

How To Send An Image In Direct Message?

I'm trying to send an image in direct message using python + tweepy but no luck. It showed as a link in incoming messages. imgurl = 'https://t.co/***' api.send_direct_message(scree

Solution 1:

At the moment, you are sending a link. Literally a status message where the text is a URL.

Sadly, Twitter don't provide API access for uploading images via DM.

If you are able to use Twitter's private API, you should be able to attach a media_id to your DM. But other than that, you're out of luck.

Sorry.


Post a Comment for "How To Send An Image In Direct Message?"