MAKE: connect Algobot with Telegram

  1. Create a new account on https://www.make.com/en/register?pc=algobot
  2. Create a new scenario on the top right of the page
  3. Add a new webhook module
  4. Choose “Custom webhook”
  5. Click “Create a webhook” and MAKE will generate a random webhook address
  6. Give the webhook a name, for example “AlgoBot”
  7. Click “Save” and your private webhook address is created
  8. Add a new Telegram Bot module
  9. Choose “Send a text message or a reply”
  10. First we need to add a new connection name, for example “Algobot”
  11. To get the private token we need to open Telegram on our computer or smartphone.
  12. In your Telegram app search for “Botfather” or click on https://telegram.me/BotFather
  13. To create a new bot type “/newbot” in the message box and press enter, then follow the procedure on the screen. PS: please give your bot a different name than displayed on the screenshot. All bots need unique names.
  14. You have received a message from BotFather containing the token, which you can use to connect the Telegram Bot to MAKE. Fill in the token in the correct field.
  15. Next we have to get the Chat ID from our newly created channel in order for the AlgoBotOffical_bot to send the signals to the correct channel.
  16. Go to Telegram and create your new channel where you want the TradingView signals to be posted.
  17. Name it as you like, in this example we name it “AlgoBot”.
  18. When you go into the channel settings, click on “Administrators”
  19. Add your previous created bot (@AlgoBotOffical_bot) to your channel as an admin
    Set permissions
  20. Click again on “Add Admin” and search “tradingview”

  21. Add the TradingView To Telegram Bot (https://t.me/tradingviewtobot) and click done
  22. Go back to your channel and type “/chatid”
  23. The channel will give you a 13 number code back with the format “-100XXXXXXXXXX”
  24. Copy this code in your “Chat ID” field on the make website.
  25. The next procedure is to get the correct value for the “Text” field.
  26. In order to be able to close this Telegram Bot window, fill in the text field as below and choose “ExecutionID”, we will change this later when we have completed the test alert in Tradingview.
  27. Go back to your Webhook module in MAKE and click “Redetermine data structure”.
  28. In the meantime go to your Tradingview chart and create a test alert (for example a “Greater then” alert that will trigger immediately, for example BTC > 1000)
  29. Go to the notifications tab and paste the webhook address we created before.
  30. Create the alert
  31. The alert should trigger immediately because the value you put in is true (BTC > 1000), then MAKE should detect the alert coming in displaying a SUCESS message.

  32. Now navigate back to the Telegram module and find the “Text” field from 26). Remove the “Execution ID” and replace it by clicking on “Value”. This “Value” did not appear before since we hadn’t trigger the alert yet. Now it does appear and we can use it.
  33. Don’t forget to save the scenario and turn it on after you saved it so it’s ready to receive incoming alerts.
  34. When the webhook module and Telegram module are set up, don’t forget to add the error handler. It will reduce problems and errors because Tradingview sometimes sends an empty payload to the webhook at the moment of creation, and the error handler prevents the scenario from stopping in that case. Right click the Telegram module and add error handler.
  35. Select the “ignore” option.

  36. Only now we are sure the connection between our Tradingview signals and our Telegram channel works because we set up MAKE in a correct way.