Create a Telegram chat history entry
Save chat history items of a Replica belonging to the logged in user.
Path parameters
-
replicaUUID
string(uuid) Required The UUID of the Replica
Body
-
content
string Required Content of the message
Minimum length is
1
. -
telegram_data
object Required Telegram information about the message
Additional properties are NOT allowed.
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" \
--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
{
"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
}