Skip to content

Commit f5eeb16

Browse files
committed
Adjustment to start typebot, added startSession parameter
1 parent c35c5fa commit f5eeb16

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM node:20.7.0-alpine
22

3-
LABEL version="1.5.2" description="Api to control whatsapp features through http requests."
3+
LABEL version="1.5.3" description="Api to control whatsapp features through http requests."
44
LABEL maintainer="Davidson Gomes" git="https://github.com/DavidsonGomes"
55
LABEL contact="contato@agenciadgcode.com"
66

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "evolution-api",
3-
"version": "1.5.2",
3+
"version": "1.5.3",
44
"description": "Rest api for communication with WhatsApp",
55
"main": "./dist/src/main.js",
66
"scripts": {

src/whatsapp/services/typebot.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export class TypebotService {
111111

112112
const prefilledVariables = {
113113
remoteJid: remoteJid,
114+
instanceName: instance.instanceName,
114115
};
115116

116117
variables.forEach((variable) => {
@@ -525,7 +526,7 @@ export class TypebotService {
525526
return;
526527
}
527528

528-
if (content.toLowerCase() === keyword_finish.toLowerCase()) {
529+
if (keyword_finish && content.toLowerCase() === keyword_finish.toLowerCase()) {
529530
sessions.splice(sessions.indexOf(session), 1);
530531

531532
const typebotData = {

0 commit comments

Comments
 (0)