Dependency injections PyWA and FastAPI #93
Replies: 1 comment 1 reply
-
This shouldn't work out of the box |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am building a chatbot in whatsapp and I would like to incorporate data from my database around the user interacting with the bot into the bots behaviour.
In FastAPI I would normally pass the SQL Session object as a dependency to the endpoint. For example
I was wondering if anyone had any examples of how they would do something equivalent within the PyWA framework?
Beta Was this translation helpful? Give feedback.
All reactions