Skip to content

How to use new Updater with webhook and flask #160

@accodev

Description

@accodev

The examples are not clear on how to use flask in conjunction with the new updater logic.
With the new Updater, I am supposed to use the method start_webhook pointing at an address, which I don't have since I am running flask with uwsgi.
uwsgi writes on a .sock file and then dispatches the requests to the flask workers.
In flask, the app behaves as a normal web service, I have a route setup to intercept my bot requests like this:

@webapp.route('/telegram/<token>', methods=['POST'])
def telegram_hook(token):
    ...
    ...

How am I supposed to use the new Updater logic with these premises?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions