Actions24
- Chat Actions
- Callback Actions
- File Actions
- Message Actions
Overview
This node sends a location message to a specified Telegram chat. It is useful for sharing geographic coordinates with users or groups in Telegram, such as sending a meeting point, event location, or any place of interest. The node supports specifying latitude and longitude, and allows additional interface options like reply markup to customize user interaction.
Use Case Examples
- Sending a location to a group chat to indicate a meetup spot.
- Sharing a user's current location with a support chat for assistance.
Properties
| Name | Meaning |
|---|---|
| Chat ID | Unique identifier for the target chat or username of the target channel 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 to customize the message interface, such as inline keyboard or force reply. |
| Force Reply | Options to configure force reply behavior, including selective reply from specific users only. |
| Inline Keyboard | Defines rows and buttons for an inline keyboard that appears next to the message. |
| Reply Keyboard | Defines rows and buttons for a custom reply keyboard. |
| Reply Keyboard Options | Options to resize keyboard, make it one-time, or selective for specific users. |
| Reply Keyboard Remove | Options to remove the custom keyboard selectively. |
| 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
chat_id- The chat identifier where the location was sent.latitude- Latitude of the sent location.longitude- Longitude of the sent location.message_id- Identifier of the sent message containing the location.
Dependencies
- Telegram 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.
- If using reply markup options, ensure the JSON structure is valid and matches Telegram API requirements.
- Common errors include invalid chat ID, missing required parameters, or insufficient bot permissions.
Links
- Telegram Bot API - sendLocation - Official Telegram API documentation for sending location messages.