Actions101
- š¤ Chatting Actions
- š„ļø Sessions Actions
- š Auth Actions
- š¼ļø Screenshot Actions
- š¢ Channels Actions
- š¢ Status Actions
- š¬ Chats Actions
- š¤ Contacts Actions
- š„ Groups Actions
- ā Presence Actions
- š·ļø Labels Actions
- š Observability Actions
Overview
This node operation sends a geographic location message in a chat session. It is useful for sharing precise locations such as meeting points, offices, or any place of interest within a chat conversation. For example, a user can send their current location or a landmark's coordinates to another user or group chat.
Use Case Examples
- Sending the office location to a client in a chat session.
- Sharing a meetup point's latitude and longitude with friends.
Properties
| Name | Meaning |
|---|---|
| Session | The chat session identifier to send the location message in. |
| Chat Id | The identifier of the chat where the location will be sent. |
| Latitude | The latitude coordinate of the location to send. |
| Longitude | The longitude coordinate of the location to send. |
| Title | A title or label for the location being sent. |
| Reply To | Optional message ID to reply to within the chat. |
| Request Options | Additional options for request handling such as batching, SSL validation, proxy, and timeout settings. |
Output
JSON
messageId- The unique identifier of the sent location message.status- The status of the send operation, e.g., success or failure.chatId- The chat identifier where the location was sent.latitude- The latitude coordinate sent.longitude- The longitude coordinate sent.title- The title or label of the location sent.
Dependencies
- Requires an active chat session and valid chat ID to send location messages.
Troubleshooting
- Ensure the session and chatId are valid and active; invalid IDs will cause failures.
- Latitude and longitude must be valid geographic coordinates; invalid values will cause errors.
- If using a proxy or ignoring SSL issues, verify network settings to avoid connection problems.
- Timeouts may occur if the server is unresponsive; adjust timeout settings accordingly.