Skip to content
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

Provide the customwebhookbot.py example with different frameworks #3717

Closed
clot27 opened this issue May 24, 2023 · 0 comments · Fixed by #3820
Closed

Provide the customwebhookbot.py example with different frameworks #3717

clot27 opened this issue May 24, 2023 · 0 comments · Fixed by #3820

Comments

@clot27
Copy link
Member

clot27 commented May 24, 2023

What kind of feature are you missing? Where do you notice a shortcoming of PTB?

Currently, we provide an example of setting up a custom webhook for bots using Starlette. While this helps many people write their own custom webhook implementations, we also frequently receive questions about Flask and Django in our Telegram group. People face difficulties writing their own custom webhook implementations with these frameworks because they have to manage the startup-execution-shutdown logic on their own (see also this wiki section).

Describe the solution you'd like

Adding variaents of the customwebhookbot.py example to the documentation for those two frameworks and other well known webserver frameworks would help people better understand how to integrate them with PTB.

Describe alternatives you've considered

No response

Additional context

It would be a cool UX improvement to allow users to choose the framework in the rendered documentation.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
1 participant