Send Location
telegram.send_location
ActionChat & messagingconnection required
Calls the Telegram API with the connection's credentials.
Send a point on the map, optionally as a live location that updates.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Telegram
- Secret shape
- the bot token, or {"token": "…"}
- Resolved by
- config.connection_id, else node.connection_id
Configuration
12 fields, 3 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
chat_id The chat to send to: a numeric chat/user id, or an @channelusername. | string | Yes | — | — | — |
latitude Latitude of the point, in degrees. | number | Yes | — | -90–90 | — |
longitude Longitude of the point, in degrees. | number | Yes | — | -180–180 | — |
horizontal_accuracy Radius of uncertainty around the point, in metres. | number | No | — | 0–1500 | — |
live_period Seconds the location keeps updating as a live location, 60-86400. | integer | No | — | 60–86400 | — |
heading Direction of travel in degrees, 1-360; live locations only. | integer | No | — | 1–360 | — |
proximity_alert_radius Metres within which to alert about an approaching member; live only. | integer | No | — | 1–100000 | — |
disable_notification Deliver silently — the recipient sees the message but their device stays quiet. | boolean | No | — | — | — |
protect_content Stop recipients forwarding or saving the message. | boolean | No | — | — | — |
reply_to_message_id Id of a message in the same chat to reply to; sent as reply_parameters.message_id. | integer | No | — | ≥ 1 | — |
message_thread_id Topic id inside a forum supergroup; leave blank for the main thread. | integer | No | — | ≥ 1 | — |
reply_markup Keyboard or markup for the message, as the JSON object Telegram documents (inline_keyboard, keyboard, remove_keyboard or force_reply). A JSON string is accepted too and parsed for you. | object | No | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
ok True when Telegram accepted the call. | boolean | true |
message_id Id of the message Telegram created. | number | — |
chat_id Id of the chat the message landed in. | string | — |
date Unix time Telegram recorded for the message. | number | — |
message The full Telegram Message object, as returned. | object | — |
{
"chat_id": "",
"date": 0,
"message": {},
"message_id": 0,
"ok": true
}Notes
- chat_id is a numeric chat/user id or an @channelusername. A bot can only message a user who started it, or a group/channel it has been added to.
- The bot token sits in the request URL, so it is redacted out of every error message and dry-run report these nodes produce.
- Telegram answers HTTP 200 even for failures; the node reads the {'ok': …} envelope and raises on ok:false with Telegram's own description.
See Send Location run in a workflow.
In a technical demo we add the Telegram connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.