curl --request POST \
--url https://api.notifique.dev/v1/telegram/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to": [
"@usuario"
],
"type": "text",
"payload": {
"message": "Olá!"
},
"from": "inst_abc"
}
'{
"success": true,
"data": {
"messageIds": [
"clxx_msg_1"
],
"count": 1,
"status": "QUEUED",
"scheduledAt": null,
"sandbox": false
}
}Enviar mensagem no Telegram
Envia mensagem para um ou vários destinatários no Telegram. Escreva o texto na hora ou use um template.
curl --request POST \
--url https://api.notifique.dev/v1/telegram/messages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"to": [
"@usuario"
],
"type": "text",
"payload": {
"message": "Olá!"
},
"from": "inst_abc"
}
'{
"success": true,
"data": {
"messageIds": [
"clxx_msg_1"
],
"count": 1,
"status": "QUEUED",
"scheduledAt": null,
"sandbox": false
}
}Autorizações
Authorization: Bearer sk_live_xxxxx
Corpo
chat_id ou @username
1 - 500 elementstext, image, video, audio, document, location, template Conforme type (message, mediaUrl, latitude/longitude, templateId/variables, etc.)
Show child attributes
Show child attributes
Instância Telegram: id ou nome.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Metadados em TelegramOutboundMessage.metadata (string→string). priority em options usa fila dedicada Telegram + fila prioritária de webhooks quando high.
Show child attributes
Show child attributes
Tradução por destinatário (manual ou IA). Campos traduzíveis: payload.message, payload.caption.
Show child attributes
Show child attributes
Mapa locale → string ou objeto com chaves por campo (message, caption, …). Usado com localization.mode=manual.
Variáveis para substituir placeholders {{chave}} em payload.message, payload.caption e options.autoReplyText.
Show child attributes
Show child attributes
Resposta
Mesmo corpo de sucesso de um envio anterior: você reutilizou Idempotency-Key ou x-idempotency-key e o servidor devolve o resultado já registrado (não duplica envio).
Esta página foi útil?

