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

Telegram notifications from AWX #8317

Open
amg-web opened this issue Oct 4, 2020 · 10 comments
Open

Telegram notifications from AWX #8317

amg-web opened this issue Oct 4, 2020 · 10 comments

Comments

@amg-web
Copy link

amg-web commented Oct 4, 2020

  • Feature Idea
    Please add Telegram Notifications to AWX

Now available in AWX 15.0:
email, Grafana, IRC, Mettermost, Pagerduty, Rocket.chat, Slack, Twilio, webhook

@Colonizator1
Copy link

Colonizator1 commented Feb 1, 2023

You can easily use the webhook type.
Example:

  • target url: https://api.telegram.org/botYOUR_BOT_ID/sendMessage
  • HTTP Headers: { "Content-Type": "application/json" }
  • HTTP Method: POST
  • Customize messages… turn on
  • Success message body (or start/error):
{
    "chat_id": "YOUR_CHAT_ID",
    "text": "success - \"{{ job_friendly_name }}\""
}

@souovan
Copy link

souovan commented Apr 14, 2023

You can easily use the webhook type. Example:

* target url: `https://api.telegram.org/botYOUR_BOT_ID/sendMessage`

* HTTP Headers: `{ "Content-Type": "application/json" }`

* HTTP Method: POST

* Customize messages… **turn on**

* Success message body (or start/error):
{
    "chat_id": "YOUR_CHAT_ID",
    "text": "success - \"{{ job_friendly_name }}\""
}

Hi @Colonizator1 does this still work ? i've tried without success

@Colonizator1
Copy link

@souovan Hi, we are using such telegram notifications right now. Any errors? Did you check your request manually, with postman, for example?

@souovan
Copy link

souovan commented Apr 17, 2023

Is there a way to debbug this on AWX ? i only got this when i test the notification
image

@Colonizator1
Copy link

Colonizator1 commented Apr 17, 2023

If you are sure that your request URL and data are correct, try to attache notification to some simple template.
I guess you tried to test the notification with the Test button. I failed with it too. But it works well for templates.

@souovan
Copy link

souovan commented Apr 17, 2023

Yeah, i've tried with the Test button, i will try attaching on some template.

@LeoSpyke
Copy link

Any news on this?

@Colonizator1
Copy link

@LeoSpyke it's working as webhook type, read my message above

@amg-web
Copy link
Author

amg-web commented Jul 21, 2023

it works strange
I can not edit text message, it does not save it.

@LeoSpyke
Copy link

@LeoSpyke it's working as webhook type, read my message above

Yes I've seen your message, but I mean that this is not an integration, rather it is a "collateral" workaround that works.
Another native approach would allow to write the token in a specific password field, like the Token for Twilio or Pagerduty, rather than in plain text in the Target URL field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants