Create a Telegram chat history entry
Save chat history items of a Replica belonging to the logged in user.
POST
/v1/replicas/{replicaUUID}/chat/history/telegram
curl \
--request POST 'https://api.sensay.io/v1/replicas/03db5651-cb61-4bdf-9ef0-89561f7c9c53/chat/history/telegram' \
--header "X-ORGANIZATION-SECRET: $API_KEY" \
--header "X-USER-ID: $API_KEY" \
--header "Content-Type: application/json" \
--header "X-API-Version: 2025-03-25" \
--data '{"content":"How did you handle the immense pressure during the Civil War?","telegram_data":{"chat_type":"string","chat_id":42.0,"user_id":42.0,"username":"string","message_id":42.0,"message_thread_id":42.0}}'
Request examples
# Headers
X-API-Version: 2025-03-25
# Payload
{
"content": "How did you handle the immense pressure during the Civil War?",
"telegram_data": {
"chat_type": "string",
"chat_id": 42.0,
"user_id": 42.0,
"username": "string",
"message_id": 42.0,
"message_thread_id": 42.0
}
}
Response examples (200)
{
"success": true
}