Skip to content

[CHATWOOT] - Sending message with Slash after update do Chatwoot 4.10.1 #1833

@mcabral2510

Description

@mcabral2510

After updating Chatwoot to the new version v4.10.1 to fix issues with receiving media via the Official API, a line break is now being misinterpreted.

The payload and screenshots are below.

Image Image

{
"jobData": {
"session": "My Session Name",
"app": "app_9lcNEx5V",
"body": {
"account": {
"id": 1,
"name": "My Company Name"
},
"additional_attributes": {},
"content_attributes": {},
"content_type": "text",
"content": "Hi \\ntext message \\nwith line \\nbreak",
"conversation": {
"additional_attributes": {},
"can_reply": true,
"channel": "Channel::Api",
"contact_inbox": {
"id": 12868,
"contact_id": 8017,
"inbox_id": 55,
"source_id": "60d2d8ad-2d15-49cf-ac2e-1816a786ece9",
"created_at": "2025-12-17T11:51:39.044Z",
"updated_at": "2025-12-17T11:51:39.044Z",
"hmac_verified": false,
"pubsub_token": "CFLCw53NeS8PGDaf7Ri6AdwQ"
},
"id": 1991,
"inbox_id": 55,
"messages": [
{
"id": 169029,
"content": "Hi \\ntext message \\nwith line \\nbreak",
"account_id": 1,
"inbox_id": 55,
"conversation_id": 1991,
"message_type": 1,
"created_at": 1769097865,
"updated_at": "2026-01-22T16:04:25.614Z",
"private": false,
"status": "sent",
"source_id": null,
"content_type": "text",
"content_attributes": {},
"sender_type": "User",
"sender_id": 1,
"external_source_ids": {},
"additional_attributes": {},
"processed_message_content": "Hi \\ntext message \\nwith line \\nbreak",
"sentiment": {},
"conversation": {
"assignee_id": null,
"unread_count": 0,
"last_activity_at": 1769097865,
"contact_inbox": {
"source_id": "60d2d8ad-2d15-49cf-ac2e-1816a786ece9"
}
},
"sender": {
"id": 1,
"name": "My Name",
"available_name": "My Name",
"avatar_url": "",
"type": "user",
"availability_status": null,
"thumbnail": ""
}
}
],
"labels": [],
"meta": {
"sender": {
"additional_attributes": {
"avatar_url_hash": "b27d72c5c9b71230d8d38f279ca49d38f245cef291f264cb1ac8d258f4ebe614",
"last_avatar_sync_at": "2025-12-17T11:51:40Z"
},
"custom_attributes": {
"waha_My Session Name_jid": "5521###612##@c.us",
"waha_My Session Name_lid": "#######139###@lid",
"waha_My Session Name_chat_id": "5521###612##@c.us"
},
"email": null,
"id": 8017,
"identifier": null,
"name": "My Name",
"phone_number": "+5521981461276",
"thumbnail": "https://mycwdomain.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBbVdUIiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--e860aa1d5d8b6e4ba6c23742c9f204c1bfaed348/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2RTNKbGMybDZaVjkwYjE5bWFXeHNXd2RwQWZvdyIsImV4cCI6bnVsbCwicHVyIjoidmFyaWF0aW9uIn19--31a1f63818a5159f71dca8446fe68168fe417ce5/473406826_632535296171777_4418669238161556350_n.jpg",
"blocked": false,
"type": "contact"
},
"assignee": null,
"assignee_type": null,
"team": null,
"hmac_verified": false
},
"status": "open",
"custom_attributes": {},
"snoozed_until": null,
"unread_count": 0,
"first_reply_created_at": "2025-12-18T14:38:26.753Z",
"priority": null,
"waiting_since": 0,
"agent_last_seen_at": 1769097865,
"contact_last_seen_at": 1769087859,
"last_activity_at": 1769097865,
"timestamp": 1769097865,
"created_at": 1765972299,
"updated_at": 1769097865.6341639,
"applied_sla": null,
"sla_events": [],
"sla_policy_id": null
},
"created_at": "2026-01-22T16:04:25.614Z",
"id": 169029,
"inbox": {
"id": 55,
"name": "My Session Name"
},
"message_type": "outgoing",
"private": false,
"sender": {
"id": 1,
"name": "My Name",
"email": "[email protected]",
"type": "user"
},
"source_id": null,
"event": "message_created"
}
},
"returnValue": [
{
"id": "true_5521###612##@c.us_3EB044A51C8185320A2F3C",
"_data": {
"Info": {
"Chat": "5521###612##@s.whatsapp.net",
"Sender": "5521###9755##:[email protected]",
"IsFromMe": true,
"IsGroup": false,
"AddressingMode": "",
"SenderAlt": "",
"RecipientAlt": "",
"BroadcastListOwner": "",
"BroadcastRecipients": null,
"ID": "3EB044A51C8185320A2F3C",
"ServerID": 0,
"Type": "",
"PushName": "",
"Timestamp": "2026-01-22T13:04:28-03:00",
"Category": "",
"Multicast": false,
"MediaType": "",
"Edit": "",
"MsgBotInfo": {
"EditType": "",
"EditTargetID": "",
"EditSenderTimestampMS": "0001-01-01T00:00:00Z"
},
"MsgMetaInfo": {
"TargetID": "",
"TargetSender": "",
"TargetChat": "",
"DeprecatedLIDSession": null,
"ThreadMessageID": "",
"ThreadMessageSenderJID": ""
},
"VerifiedName": null,
"DeviceSentMeta": null
},
"Message": {
"extendedTextMessage": {
"text": "My Name:\nHi \\ntext message \\nwith line \\nbreak"
}
},
"IsEphemeral": false,
"IsViewOnce": false,
"IsViewOnceV2": false,
"IsViewOnceV2Extension": false,
"IsDocumentWithCaption": false,
"IsLottieSticker": false,
"IsBotInvoke": false,
"IsEdit": false,
"SourceWebMsg": null,
"UnavailableRequestID": "",
"RetryCount": 0,
"NewsletterMeta": null,
"RawMessage": {
"extendedTextMessage": {
"text": "My Name:\nHi \\ntext message \\nwith line \\nbreak"
}
}
}
}
]
}

{
"version": "2026.01.03",
"engine": "GOWS",
"tier": "PLUS"
}




## Steps

**To Reproduce** Steps to reproduce the behavior:

To reproduce it, simply log into Chatwoot in version v4.10.1 and type a message with a line break.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions