SendLocationRequest
Estrutura de dados do contrato OpenAPI.
Estrutura de dados do contrato OpenAPI.
Campos
| Campo | Tipo | Presença | Descrição |
|---|---|---|---|
number | string | obrigatório | Dígitos com DDI (8–15) ou identificador @s.whatsapp.net, @g.us ou @lid. Nunca inferir telefone de um LID. Comprimento mínimo: 1 |
replyid | string | opcional | ID de mensagem guardada para citação; desconhecida retorna 422 reply_not_found. |
delay | integer / string | opcional | Espera de digitação em milissegundos; o manager limita a 15000 ms. |
forward | boolean / string / integer / null | opcional | — |
latitude | number | obrigatório | Mínimo: -90. Máximo: 90 |
longitude | number | obrigatório | Mínimo: -180. Máximo: 180 |
name | string | opcional | Até 256 bytes. Comprimento máximo: 256 |
address | string | opcional | Até 512 bytes. Comprimento máximo: 512 |
Definição OpenAPI
json
{
"type": "object",
"properties": {
"number": {
"type": "string",
"description": "Dígitos com DDI (8–15) ou identificador @s.whatsapp.net, @g.us ou @lid. Nunca inferir telefone de um LID.",
"minLength": 1
},
"replyid": {
"type": "string",
"description": "ID de mensagem guardada para citação; desconhecida retorna 422 reply_not_found."
},
"delay": {
"oneOf": [
{
"type": "integer",
"minimum": 0
},
{
"type": "string",
"description": "Inteiro em formato decimal.",
"pattern": "^\\d+$"
}
],
"description": "Espera de digitação em milissegundos; o manager limita a 15000 ms."
},
"forward": {
"oneOf": [
{
"type": "boolean"
},
{
"type": "string",
"enum": [
"true",
"false",
"1",
"0",
""
]
},
{
"type": "integer",
"enum": [
0,
1
]
},
{
"type": "null"
}
]
},
"latitude": {
"type": "number",
"minimum": -90,
"maximum": 90
},
"longitude": {
"type": "number",
"minimum": -180,
"maximum": 180
},
"name": {
"type": "string",
"description": "Até 256 bytes.",
"maxLength": 256
},
"address": {
"type": "string",
"description": "Até 512 bytes.",
"maxLength": 512
}
},
"required": [
"number",
"latitude",
"longitude"
]
}