Actions24
- Chat Actions
- Callback Actions
- File Actions
- Message Actions
Overview
This node operation sends a location message to a specified Telegram chat. It allows users to share geographic coordinates (latitude and longitude) with a chat identified by a unique chat ID or username. This is useful for scenarios where you want to share a physical location, such as meeting points, event venues, or any place of interest, directly within a Telegram conversation.
Use Case Examples
- Sending a location of a meeting point to a group chat.
- Sharing the coordinates of a restaurant with a friend via Telegram.
Properties
| Name | Meaning |
|---|---|
| Chat ID | Unique identifier for the target chat or username where the location will be sent. |
| Latitude | Latitude coordinate of the location to send. |
| Longitude | Longitude coordinate of the location to send. |
| Reply Markup | Additional interface options for the message, such as Force Reply, Inline Keyboard, Reply Keyboard, or Reply Keyboard Remove. |
| Force Reply | Options to configure the Force Reply interface, including whether to force reply and whether to apply it selectively to specific users. |
| Inline Keyboard | Configuration for inline keyboard rows and buttons, including button text and additional fields like callback data, URL, and web app URL. |
| Reply Keyboard | Configuration for custom reply keyboard rows and buttons, including button text and additional fields like request contact, request location, and web app URL. |
| Reply Keyboard Options | Options for the reply keyboard such as resizing, one-time display, and selective display to specific users. |
| Reply Keyboard Remove | Options to remove the custom keyboard and whether to apply it selectively to specific users. |
| Additional Fields | Additional optional parameters for the message such as caption, disable notification, parse mode, reply to message ID, message thread ID, and custom JSON fields for advanced Telegram API options. |
Output
JSON
result- The response from the Telegram API after sending the location message, containing details about the sent message.
Dependencies
- Telegram API with an API key credential
Troubleshooting
- Ensure the chat ID is correct and the bot has permission to send messages to the chat.
- Latitude must be between -90 and 90, and longitude between -180 and 180; invalid coordinates will cause errors.
- If using reply markup options, ensure the JSON structure is valid and matches Telegram API requirements.
- File name is required if sending binary data; missing file name will cause an error.
Links
- Telegram Bot API - sendLocation - Official Telegram API documentation for sending location messages.