metalmatze / alertmanager-bot

[deprecated] Bot for Prometheus' Alertmanager
MIT License
661 stars 148 forks source link

"/alerts" doesn't seem to work…? #193

Open lapo-luchini opened 2 years ago

lapo-luchini commented 2 years ago

Each time I send an /alerts comment I get:

This chat hasn't been setup to receive any alerts yet... 😕
Ask an administrator of the Alertmanager to add a webhook with /webhooks/telegram/(123456) as URL.

…and I have that webhook in my config. (also, I'm receiving alerts correctly, it's just /alerts that thinks I don't)

maxpain commented 2 years ago

The same problem

kj89 commented 2 years ago

Same problem here. I have set up webhook correctly and am receiving alerts but /alerts does not work image

metalmatze commented 2 years ago

The user who's adminID is passed to the bot needs to write /start in that chat once, so that the bot is allowed to read and write into that chat and has the state of that chat in its DB.

kj89 commented 2 years ago

The user who's adminID is passed to the bot needs to write /start in that chat once, so that the bot is allowed to read and write into that chat and has the state of that chat in its DB.

I already have done that before. I can find this entry in my bot.db. This does not help to solve the problem. Bot still asks to setup webhook

alertmanagertelegram/chats/409831755{"id":409831755,"title":"","first_name":"kjnodes 🇱🇻","last_name":"","username":"kjnodes","type":"private","photo":{"small_file_id":"","big_file_id":""},"description":"","invite_link":"","all_members_are_administrators":false,"pinned_message":null}