Python

Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.

Go to site

Integrate the Python API with the Telegram Bot API

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

Connect Python

from pipedream.script_helpers import (steps, export)

# Reference data from previous steps
print(steps["trigger"]["context"]["id"])

# Return data for use in future steps
export("foo", {"test":True})

Connect Telegram Bot

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    telegram_bot_api: {
      type: "app",
      app: "telegram_bot_api",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.telegram.org/bot${this.telegram_bot_api.$auth.token}/getMe`,
    })
  },
})