pyro-api icon indicating copy to clipboard operation
pyro-api copied to clipboard

How webhooks work

Open psd24 opened this issue 2 years ago • 2 comments

What is the operation of Webhooks?

In what phase of the application are they sent?

I would like to be able to create a bot for Telegram and my idea is to collect information from a Webhook when there is an alert from the application.

If there is more information about this I would like to know it.

Thank you,

psd24 avatar Jun 05 '23 10:06 psd24

@frgfm @blenzi :)

fe51 avatar Jun 06 '23 11:06 fe51

Hey there :wave:

Depends what you mean by that precisely, but the "webhook" table is meant to add post-route actions freely. Only admins can create some and manage the subscriptions.

For your Telegram bot:

  • if a HTTP post request can send the message, that can easily be added to the API without adding dependencies
  • if you need specific dependencies, I would suggest creating another service routing alert notifications to the right channel

frgfm avatar Oct 08 '23 16:10 frgfm

Closing this as this seems to have answered your question :) Feel free to reopen, but it would be more suited as a discussion (not a bug or feature request)

frgfm avatar Jan 17 '25 10:01 frgfm