ReplyMessage
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"text",
"image",
"video",
"audio",
"voice",
"document",
"location",
"contacts",
"poll",
"buttons",
"list",
"payment"
],
"description": "Tipo da mensagem. Os campos dele vão soltos, ao lado de `type`, no formato do envio."
}
},
"required": [
"type"
],
"description": "Mensagem da resposta rápida, no formato do [envio](/docs/enviar) (`type` e os campos do tipo), sem `to`. Tipos aceitos: `text`, `image`, `video`, `audio`, `voice`, `document`, `location`, `contacts`, `buttons`, `list`, `poll` e `payment`. `payment` só com a chave PIX (`pix`, sem `amount`), que sai como o botão de copiar a chave; `contacts` leva um contato. Arquivo em `base64` é guardado pela api (imagem 5 MB, áudio e vídeo 16 MB, documento 20 MB; 50 MB por inbox); por `url`, fica como foi enviado. Guarda só o texto (ou a legenda), o arquivo e o nome do arquivo: `view_once`, `animated`, `mime_type`, `thumbnail` e `link_preview` diferente do padrão respondem 400. Não aceita `mentions`, `mention_all` nem `forwarded`. Figurinha, vídeo redondo, carrossel, pedido de localização, evento, modelo e cobrança com valor respondem 400.",
"oneOf": [
{
"properties": {
"type": {
"const": "text"
}
},
"allOf": [
{
"$ref": "#/components/schemas/SendContentText"
}
]
},
{
"properties": {
"type": {
"const": "image"
}
},
"allOf": [
{
"$ref": "#/components/schemas/SendContentImage"
}
]
},
{
"properties": {
"type": {
"const": "video"
}
},
"allOf": [
{
"$ref": "#/components/schemas/SendContentVideo"
}
]
},
{
"properties": {
"type": {
"const": "audio"
}
},
"allOf": [
{
"$ref": "#/components/schemas/SendContentAudio"
}
]
},
{
"properties": {
"type": {
"const": "voice"
}
},
"allOf": [
{
"$ref": "#/components/schemas/SendContentVoice"
}
]
},
{
"properties": {
"type": {
"const": "document"
}
},
"allOf": [
{
"$ref": "#/components/schemas/SendContentDocument"
}
]
},
{
"properties": {
"type": {
"const": "location"
}
},
"allOf": [
{
"$ref": "#/components/schemas/SendContentLocation"
}
]
},
{
"properties": {
"type": {
"const": "contacts"
}
},
"allOf": [
{
"$ref": "#/components/schemas/SendContentContacts"
}
]
},
{
"properties": {
"type": {
"const": "poll"
}
},
"allOf": [
{
"$ref": "#/components/schemas/SendContentPoll"
}
]
},
{
"properties": {
"type": {
"const": "buttons"
}
},
"allOf": [
{
"$ref": "#/components/schemas/SendContentButtons"
}
]
},
{
"properties": {
"type": {
"const": "list"
}
},
"allOf": [
{
"$ref": "#/components/schemas/SendContentList"
}
]
},
{
"properties": {
"type": {
"const": "payment"
}
},
"allOf": [
{
"$ref": "#/components/schemas/SendContentPayment"
}
]
}
],
"unevaluatedProperties": false
}