-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix: correçao do typebot não conseguir ouvir mensagens de input #1670
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
fix: correçao do typebot não conseguir ouvir mensagens de input #1670
Conversation
Reviewer's GuideEnsure the applyFormatting callback passed into processMessages is bound to the service instance so its internal context is preserved. Class diagram for TypebotService applyFormatting binding fixclassDiagram
class TypebotService {
+applyFormatting()
}
class processMessages {
<<function>>
+applyFormattingCallback
}
TypebotService --|> BaseChatbotService
TypebotService : calls processMessages(..., applyFormatting.bind(this), ...)
processMessages : uses applyFormattingCallback
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Isso resolve também a questão de quando é feito uma requisição por dentro do typebot e apartir desse retorno é criado algumas variáveis mapeando valores dessa requisição e mostrando no bubble de texto ele também não consegue exibir |
Não estou ciente desse problema.. Essa correção apenas resolve a questão que quando tem uma mensagem que o usuário precisa responder o bot para de funcionar. Exemplo: No seu fluxo você pergunta pro usuário qual o nome dele e aguarda ele a responder. Quando o usuário responde, o bot para de responder, pois da erro no servidor. Com essa correção o bot volta a responder normalmente |
Quando inicio o flow pelo chat do typebot aquele via navegador, mostra tranquilo. |
Hmm, esse aí não faço ideia eheh. Se puder me mandar mensagem no discord depois pra eu entender o discord é @Santosl2c |
Na v2.2.2 esse problema não ocorre |
Esse PR corrige o erro Cannot read properties of undefined (reading 'applyFormatting') que ocorre quando o Typebot envia mensagens que o usuário precisa inserir uma resposta.