Skip to main content

Location Message

POST 

/message/sendLocation

Send simple location messages with built-in buttons.

To send the location message, you need to inform at least the longitude and latitude, according to the examples below.

You can only send one type of inline buttons per message, if you pass both types of buttons by parameter, the commonButtons type will be disregarded.

Request

Body

required
    numbers string[]required

    required

    options object
    delay number

    The delay property can receive either a single integer value or an array of two-position integers.

    quoted object

    Inform the id of the message you want to quote, remembering that you can only quote one message at a time in the chat.

    messageId stringrequired
    mentions object

    Mention people in groups or simple chats.

    everyone boolean

    Default value: false

    Pass this property to "true" to mention everyone in a group
    default: false

    ghostMention boolean

    Default value: false

    Mention all participants in a group without directly referencing them
    default: false

    mentioned string[]

    The mention of participants is valid only for groups

    presence Presence

    Default value: paused | composing | unavailable | available | recording

    Set your status in chat

    locationMessage object
    caption caption - description - title
    mediaType Type of media message to be sent
    fileName File namerequired

    Enter the file name along with its extension.

    urlOrId Pass the media url being of the specified typerequired

Responses

Schema
    queueId string
Loading...