-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tech-feat: adapt botonic code to use new flow builder backend endpoints #2972
base: master-lts
Are you sure you want to change the base?
tech-feat: adapt botonic code to use new flow builder backend endpoints #2972
Conversation
35cea74
to
303daee
Compare
const updatedRequest = newApi.request | ||
newApi.flowUrl = options.flowUrl.replace( | ||
'{bot_id}', | ||
updatedRequest.session.bot.id | ||
) | ||
newApi.flow = options.flow ?? (await newApi.getFlow(options.accessToken)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to make it work correctly in local, we should retrieve botId from userInfo, not from incoming session.bot.user.id, because it will be the default for webchat dev ('00000')
This should be refactored at some point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this logic could be inside the if of line 36
Description
Context
Approach taken / Explain the design
To document / Usage example
Testing
The pull request...