inCaller / prometheus_bot

Telegram bot for prometheus alerting
MIT License
397 stars 183 forks source link

Add send_only config #55

Closed idsulik closed 3 years ago

idsulik commented 3 years ago

Add send_only: false config to use bot only to send messages and stop listening for updates.
It's useful for example if you want to use one bot in multiple projects, without send_only: true you cann't do it because telegram throws error because multiple instances listening for the bot updates

idsulik commented 3 years ago

resolve #53

idsulik commented 3 years ago

With send_only: true image

Without: image the reason of the error - multiple instances use one bot to send message, there is no needs to listen to messages

hryamzik commented 3 years ago

LGTM, ty!

sshaikh commented 3 years ago

Just a comment on the docs:

send_only: false # use bot only to send messages.

Is a bit confusing as it suggests using false to use bot only to send messages.