← Telegram Bot + Discord Webhook integrations

Send Message (Advanced) with Discord Webhook API on New Updates (Instant) from Telegram Bot API

Pipedream makes it easy to connect APIs for Discord Webhook, Telegram Bot and 800+ other apps remarkably fast.

Trigger workflow on
New Updates (Instant) from the Telegram Bot API
Next, do this
Send Message (Advanced) with the Discord Webhook API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

This integration creates a workflow with a Telegram Bot trigger and Discord Webhook action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Updates (Instant) trigger
    1. Connect your Telegram Bot account
    2. Optional- Select one or more Update Types
  3. Configure the Send Message (Advanced) action
    1. Connect your Discord Webhook account
    2. Optional- Configure Message
    3. Optional- Configure Thread ID
    4. Optional- Configure Username
    5. Optional- Configure Avatar URL
    6. Optional- Configure Include link to workflow
    7. Optional- Configure Embeds
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger


This integration uses pre-built, open source components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.


Description:Emit new event for each new Telegram event.

Trigger Code

import base from "../common/webhooks.mjs";

export default {
  key: "telegram_bot_api-new-updates",
  name: "New Updates (Instant)",
  description: "Emit new event for each new Telegram event.",
  version: "0.1.0",
  type: "source",
  dedupe: "unique",
  props: {
    updateTypes: {
      propDefinition: [
  methods: {
    getMeta(event) {
      const {
        update_id: id,
      } = event;
      const eventType = Object.keys(eventDetails).pop();
      const summary = `New ${eventType} update: ${id}`;
      const ts = eventDetails[eventType].edit_date ?? eventDetails[eventType].date;

      return {
    getEventTypes() {
      return this.updateTypes;
    processEvent(event) {
      this.$emit(event, this.getMeta(event));

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
Telegram BottelegramBotApiappThis component uses the Telegram Bot app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.
N/Ahttp$.interface.httpThis component uses $.interface.http to generate a unique URL when the component is first instantiated. Each request to the URL will trigger the run() method of the component.
Update TypesupdateTypesstring[]Select a value from the drop down menu:{ "label": "Message", "value": "message" }{ "label": "Edited Message", "value": "edited_message" }{ "label": "Channel Post", "value": "channel_post" }{ "label": "Edited Channel Post", "value": "edited_channel_post" }{ "label": "Inline Query", "value": "inline_query" }{ "label": "Chosen Inline Result", "value": "chosen_inline_result" }{ "label": "Callback Query", "value": "callback_query" }{ "label": "Shipping Query", "value": "shipping_query" }{ "label": "Pre Checkout Query", "value": "pre_checkout_query" }{ "label": "Poll", "value": "poll" }{ "label": "Poll Answer", "value": "poll_answer" }

Trigger Authentication

Telegram Bot uses API keys for authentication. When you connect your Telegram Bot account, Pipedream securely stores the keys so you can easily authenticate to Telegram Bot APIs in both code and no-code steps.

To use the Telegram Bot API, you must first create a new bot by chatting with the BotFather.

Telegram Bot how to

After you create your bot, copy the bot token and add it below.

About Telegram Bot

Telegram is a cloud-based instant messaging and voice over IP service


Description:Send a simple or structured message (using embeds) to a Discord channel

Action Code

import common from "../send-message-common.mjs";

export default {
  key: "discord_webhook-send-message-advanced",
  name: "Send Message (Advanced)",
  description: "Send a simple or structured message (using embeds) to a Discord channel",
  version: "0.3.0",
  type: "action",
  props: {
    message: {
      propDefinition: [
      optional: true,
    embeds: {
      propDefinition: [
  async run({ $ }) {
    const {
    } = this;

    if (!message && !embeds) {
      throw new Error("This action requires at least 1 message OR embeds object. Please enter one or the other above.");

    try {
      // No interesting data is returned from Discord
      await this.discordWebhook.sendMessage({
        content: includeSentViaPipedream
          ? this.appendPipedreamText(message ?? "")
          : message,
      $.export("$summary", "Message sent successfully");
    } catch (err) {
      const unsentMessage = this.getUserInputProps();
      $.export("unsent", unsentMessage);
      throw err;

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

Discord WebhookdiscordWebhookappThis component uses the Discord Webhook app.

Enter a simple message up to 2000 characters. This is the most commonly used field. However, it's optional if you pass embed content.

Thread IDthreadIDstring

If provided, the message will be posted to this thread


Overrides the current username of the webhook

Avatar URLavatarURLstring

If used, it overrides the default avatar of the webhook

Include link to workflowincludeSentViaPipedreamboolean

Defaults to true, includes a link to this workflow at the end of your Discord message.


Optionally pass an array of embed objects. E.g., {{ [{"description":"Use markdown including *Italic* **bold** __underline__ ~~strikeout~~ [hyperlink](https://google.com) `code`"}] }}. To pass data from another step, enter a reference using double curly brackets (e.g., {{steps.mydata.$return_value}}).
Tip: Construct the embeds array in a Node.js code step, return it, and then pass the return value to this step.

Action Authentication

Discord Webhook uses OAuth authentication. When you connect your Discord Webhook account, Pipedream will open a popup window where you can sign into Discord Webhook and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Discord Webhook API.

Pipedream requests the following authorization scopes when you connect your account:


About Discord Webhook

Use this app to send messages to a channel using Discord's incoming webhooks

More Ways to Connect Discord Webhook + Telegram Bot