How can I build a Telegram bot using Pipedream?

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

Mazin’s Creations : Hello,How can I connect my telegram bot with pipedream
When a user send message and it’s should send Hi replying his message
How ?

Dylan Sather (Pipedream) : Hi , take a look at this workflow: Respond to Telegram Bot message - Pipedream .

Just Copy the workflow in the top-right, and you’ll be asked to link your Telegram Bot’s token to the trigger step and the step where the bot sends a message.

You can modify the Message text to include any message you’d like. Let me know if that makes sense!

Mazin’s Creations : Thanks :blush:

Mazin’s Creations : I want a api for creating it in my app

Dylan Sather (Pipedream) : you’d like an API for creating the workflow?

Mazin’s Creations : Yup

Dylan Sather (Pipedream) : Are you familiar with Node.js?

You can’t create workflows via API today (tracking here), but I have another suggestion.

Mazin’s Creations : No,I don’t know coding
I’m creating my app with kodular platform (no coding)

Dylan Sather (Pipedream) : Got it. Are you able to create the workflow manually for now and integrate it into your app? Feel free to +1 / track that issue to get notified for when we support the API

Mazin’s Creations : I want when a user send a link to the bot, the pipedream starts getting Rebrandly shorten url and sends the shorten url to the human

Mazin’s Creations : will try

Mazin’s Creations : What is the difference between tg bot api and pipedream tg bot api ?

Mazin’s Creations :

Dylan Sather (Pipedream) : great thanks. Check out this workflow. We provide a Send HTTP Request action. which you can use to make an API request to ReBrandly’s API. You’ll see the response data returned from the step, which you can reference in the Telegram step using the object inspector just below the Message text field.

In my example workflow, I make an HTTP request to a mock service and simply print the description returned by that API:

Hello! Status is {{steps.send_http_request.$return_value.description}}

{{steps.send_http_request.$return_value.description}} is a reference to the data returned fro the Send HTTP request step.

Our integration simply allows you to talk to the Telegram Bot API. Once you enter your bot’s token, you can hit any of the API endpoints from their API docs.

Mazin’s Creations : Thanks