mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-23 04:22:02 -06:00
Merge pull request #233 from gabrielpastori1/typebot-auto-create-session
Add session creation for typebot service
This commit is contained in:
commit
f8d874453c
@ -69,6 +69,20 @@ export class TypebotService {
|
||||
session.status = status;
|
||||
}
|
||||
});
|
||||
} else {
|
||||
const session: Session = {
|
||||
remoteJid: remoteJid,
|
||||
sessionId: Math.floor(Math.random() * 10000000000).toString(),
|
||||
status: status,
|
||||
createdAt: Date.now(),
|
||||
updateAt: Date.now(),
|
||||
prefilledVariables: {
|
||||
remoteJid: remoteJid,
|
||||
pushName: '',
|
||||
additionalData: {},
|
||||
},
|
||||
};
|
||||
findData.sessions.push(session);
|
||||
}
|
||||
|
||||
const typebotData = {
|
||||
|
Loading…
Reference in New Issue
Block a user