POST /sendLocation

Use this method to send point on the map. On success, the sent Message is returned.

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
heading Integer No

For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.

proximity_alert_radius Integer No

For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.

reply_markup No

Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.

longitude Number Yes

Longitude of the location

disable_notification Boolean No

Sends the message silently. Users will receive a notification with no sound.

allow_sending_without_reply Boolean No

Pass True, if the message should be sent even if the specified replied-to message is not found

horizontal_accuracy Number No

The radius of uncertainty for the location, measured in meters; 0-1500

chat_id Yes

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

live_period Integer No

Period in seconds for which the location will be updated (see Live Locations, should be between 60 and 86400.

latitude Number Yes

Latitude of the location

reply_to_message_id Integer No

If the message is a reply, ID of the original message

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.