Thor77 / sensu-telegram-handler

Sensu Go Telegram Handler
MIT License
3 stars 2 forks source link

working out of the box #2

Closed Igors5 closed 4 years ago

Igors5 commented 4 years ago

please change chat_id to int64 type, because it has positive value for private chats and negative value for multiple people chats, also change default message markup from

"**{{.Entity.Name}}/{{.Check.Name}}**: {{.Check.State}}\n`{{.Check.Output}}`"

to

"*{{.Entity.Name}}/{{.Check.Name}}*: {{.Check.State}}\n`{{.Check.Output}}`"

telegram markup bold is *text*, not **text**, and it throws markup error if its **text**

thanks

ichilton commented 4 years ago

I'm having the problem with needing a negative value for group chats too - anyone looked at this or got a workaround?