Skip to content

Webhook Examples Telegram

amccook edited this page Aug 23, 2023 · 2 revisions

Pre-Requisites

Create a Telegram Bot: https://core.telegram.org/bots#how-do-i-create-a-bot

Tips & Tricks

Telegram API documentation for sendMessage: https://telegram-bot-sdk.readme.io/reference/sendmessage

Examples

For each example, the following details will be shared:

  • Screenshot of example
  • Variables used from Turbonomic's Action DTO
  • User Variables you must supply
  • Link to JSON Workflow DTO to add webhook to your Turbonomic instance

All Actions

This Workflow DTO was written to accommodate all actions. To be sure, you can confirm the action DTO has the same variables.

image

  • Action DTO Variables

    • $action.details
    • $action.risk.description
  • User Variables:

    • Add your Bot API Token where it says <YOUR_BOT_API_TOKEN>
    • Add your Chat ID where it says <YOUR_CHAT_ID>
  • Workflow DTO: All Actions