mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-14 01:41:24 -06:00
fix: Fixed chatwoot line wrap issue
This commit is contained in:
parent
de676041df
commit
4c006970a2
@ -1,3 +1,9 @@
|
|||||||
|
# 1.4.4 (homolog)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Fixed chatwoot line wrap issue
|
||||||
|
|
||||||
# 1.4.3 (2023-07-25 10:51)
|
# 1.4.3 (2023-07-25 10:51)
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "evolution-api",
|
"name": "evolution-api",
|
||||||
"version": "1.4.3",
|
"version": "1.4.4",
|
||||||
"description": "Rest api for communication with WhatsApp",
|
"description": "Rest api for communication with WhatsApp",
|
||||||
"main": "./dist/src/main.js",
|
"main": "./dist/src/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1125,12 +1125,12 @@ export class ChatwootService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (body.message_type === 'template' && body.event === 'message_created') {
|
if (body.message_type === 'template' && body.event === 'message_created') {
|
||||||
this.logger.verbose('check if is csat');
|
this.logger.verbose('check if is template');
|
||||||
|
|
||||||
const data: SendTextDto = {
|
const data: SendTextDto = {
|
||||||
number: chatId,
|
number: chatId,
|
||||||
textMessage: {
|
textMessage: {
|
||||||
text: body.content,
|
text: body.content.replace(/\\\r\n|\\\n|\n/g, '\n'),
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
delay: 1200,
|
delay: 1200,
|
||||||
|
Loading…
Reference in New Issue
Block a user