alertmanager-bot icon indicating copy to clipboard operation
alertmanager-bot copied to clipboard

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

Open lapo-luchini opened this issue 4 years ago • 4 comments

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)

lapo-luchini avatar Sep 20 '21 13:09 lapo-luchini

The same problem

maxpain avatar Jan 03 '22 17:01 maxpain

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

kj89 avatar Mar 31 '22 10:03 kj89

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.

metalmatze avatar Mar 31 '22 10:03 metalmatze

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}

kj89 avatar Mar 31 '22 15:03 kj89