Skip to content
For LLMsView as Markdown·

Telegram ​

Send messages, manage groups, and build bots with the Telegram Bot API.

DetailValue
CategoryCommunication
Base URLhttps://api.telegram.org/bot{bot_token}
AuthenticationBearer Token
Endpoints6
Connector keytelegram

Using Telegram in a workflow ​

  1. Go to Connections and click New Connection.
  2. Pick Telegram from the marketplace.
  3. Enter your credentials (see Authentication above for what's expected).
  4. In a workflow, drop an API Call node and select this connection.
  5. Pick the operation you need from the Operation dropdown. The full list is below.

Available endpoints ​

EndpointSummary
POST /sendMessageSend a text message
GET /getUpdatesGet incoming updates
GET /getMeGet bot information
POST /sendPhotoSend a photo
POST /setWebhookSet webhook URL for updates
GET /getChatGet chat information

Each endpoint is documented in full below. Use the outline on the right to jump to one.

POST /sendMessage ​

Send a text message

DetailValue
Operation IDmessaging.sendMessage
MethodPOST
Path/sendMessage

Parameters ​

No parameters.

Request Body ​

FieldType
chat_idstring
textstring
parse_modestring

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Telegram connection from the Connection dropdown.
  3. In the Operation dropdown, select messaging.sendMessage.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Telegram API reference.

GET /getUpdates ​

Get incoming updates

DetailValue
Operation IDmessaging.getUpdates
MethodGET
Path/getUpdates

Parameters ​

NameLocationTypeRequired
offsetqueryintegerNo
limitqueryintegerNo

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Telegram connection from the Connection dropdown.
  3. In the Operation dropdown, select messaging.getUpdates.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Telegram API reference.

GET /getMe ​

Get bot information

DetailValue
Operation IDmessaging.getMe
MethodGET
Path/getMe

Parameters ​

No parameters.

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Telegram connection from the Connection dropdown.
  3. In the Operation dropdown, select messaging.getMe.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Telegram API reference.

POST /sendPhoto ​

Send a photo

DetailValue
Operation IDmessaging.sendPhoto
MethodPOST
Path/sendPhoto

Parameters ​

No parameters.

Request Body ​

FieldType
chat_idstring
photostring
captionstring

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Telegram connection from the Connection dropdown.
  3. In the Operation dropdown, select messaging.sendPhoto.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Telegram API reference.

POST /setWebhook ​

Set webhook URL for updates

DetailValue
Operation IDmessaging.setWebhook
MethodPOST
Path/setWebhook

Parameters ​

No parameters.

Request Body ​

FieldType
urlstring

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Telegram connection from the Connection dropdown.
  3. In the Operation dropdown, select messaging.setWebhook.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Telegram API reference.

GET /getChat ​

Get chat information

DetailValue
Operation IDmessaging.getChat
MethodGET
Path/getChat

Parameters ​

NameLocationTypeRequired
chat_idquerystringYes

Using this endpoint in a workflow ​

  1. Add an API Call node to your workflow.
  2. Pick your Telegram connection from the Connection dropdown.
  3. In the Operation dropdown, select messaging.getChat.
  4. Fill in the parameter fields that appear. Use {{...}} to reference upstream values.

Required fields are marked: fill them or the call will fail at runtime.

What it returns ​

The API Call node writes the response to the workflow context:

{
  status: 200,
  success: true,
  data: { ...response body from the API... },
  latencyMs: 142
}

Reference response fields downstream as {{nodeId.data.path}}. The exact response shape is documented on the upstream Telegram API reference.