Telegram Raw
AI-generatedSummary
Call any Telegram Bot API method using a raw JSON payload to send custom requests to the Telegram Bot API.
Inputs
- API Method (required) — The Telegram Bot API method to call, e.g., sendMessage, sendPhoto, getChat. Specify any valid method supported by the Telegram Bot API.
- JSON Body (required) — The raw JSON body to send with the request. It must be valid JSON specifying the parameters for the chosen API method, such as chat_id and text for sendMessage.
Output shape
a list of JSON objects, each containing the response from the Telegram Bot API for the corresponding input item
Each item in the input array results in one output item, preserving input order. If the API call fails and 'Continue On Fail' is enabled, the output contains an 'error' field with the error message instead of the API response.
Examples
Example 1: Send a message to a specific chat
API Method = 'sendMessage'; JSON Body = '{ "chat_id": "123456789", "text": "Hello from n8n!" }'