Product Hunt

The best new products in tech

Go to site

Integrate the Product Hunt API with the Telegram Bot API

Setup the Product Hunt API trigger to run a workflow which integrates with the Telegram Bot API. Pipedream's integration platform allows you to integrate Product Hunt and Telegram Bot remarkably fast. Free for developers.

Send Telegram Message

Sends a message using the sendMessage API method: https://core.telegram.org/bots/api#sendmessage

 
Try it

Connect Product Hunt

const data = {
  "query": `{ 
    viewer { 
      user { 
        id
        username 
      } 
    } 
  }`,
}
return await require("@pipedreamhq/platform").axios(this, {
  method: "post",
  url: `https://api.producthunt.com/v2/api/graphql`,
  headers: {
    Authorization: `Bearer ${auths.product_hunt.oauth_access_token}`,
  },
  data,
})

Connect Telegram Bot

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://api.telegram.org/bot${auths.telegram_bot_api.token}/getMe`,
})