How to Include an Image in a Twitter Post Using Discord as a Source?

This topic was automatically generated from Slack. You can find the original thread here.

Hey Everyone…
I am using a workflow to create a post on X(twitter). My source is a Discord channel. I am able to post the title and text from Discord, but cannot figure out how I can include an image in the message. I have a service that post a message with an image in Discord, and I need to replicate that to X(twitter). Any hints ideas on how to solve this?

, to create a tweet with media:

  1. First, you need to use the Upload Media action (1st image below). You’ll need to download the image to your Pipedream tmp directory (you can use the Helper Functions > Download File to /tmp action)
  2. After the Upload Media action is executed, a media id will be returned. Then you’ll add it to the Media IDs prop on the Create Tweet action

Here’s how to find the helper functions > download file to tmp