6/16/2023 0 Comments Python slack webhook![]() ![]() You should look to deploy with a production WSGI server like gunicorn in the long run. This issue woudln't have happened before, as prior to putting webhook support in your bot, it didn't need to receive HTTP traffic because the other method uses 'polling' where the process connects to telegram's servers as a client.Īlthough be aware that this is still Flask's dev server. ![]() With this in mind, your error: No web processes running suggests you should change your Procfile to contain: web: python "telegrampiu24.py" If your app includes a web server, you should declare it as your app’s web process. I don't get what I'm doing wrong, any help is very appreciated! Thanks in advance AnswersĪ Heroku app’s web process type is special: it’s the only process type that can receive external HTTP traffic from Heroku’s routers. Access Slack’s API methods requires an OAuth token see the Tokens & Authentication section for more on how Slack uses OAuth tokens as well as best practices. T13:13:02.086234+00:00 heroku: at=error code=H14 desc="No web processes running" method=POST path="/" host= request_id=54bdbd45bdf fwd="IP" dyno= connect= service= status=503 bytes= protocol=https The Slack Web API allows you to build applications that interact with Slack in more complex ways than the integrations we provide out of the box. ![]() Do not use it in a production deployment. I'm stuck here since if i send a message to my bot and see the logs on heroku i always get errors T13:12:24.889213+00:00 app: * Serving Flask app "telegrampiu24" (lazy loading) Set the webhook with (obviously with my correct token).Here's what i did:īot = telepot.Bot("123456789:abcdefghijklmnopqrstuvwxyz") I wanted to use webhooks to handle messages but i can't understand how to do it. I've created a bot and it works fine with heroku.
0 Comments
Leave a Reply. |