lib/mutx/models/alert.rb in mutx-0.2.7 vs lib/mutx/models/alert.rb in mutx-0.2.8

- old
+ new

@@ -166,11 +166,10 @@ notify_email(self.email, info) if self.email end def notify_telegram(group_id, info) return unless group_id - Notification.send_telegram(group_id, message: "Alert #{name} is #{status.upcase}") - Notification.send_telegram(group_id, message: info) + Notification.send_telegram(group_id, message: "Alert *#{name}* is *#{status.upcase}*\n#{info}") end def notify_email(mail_to, info) return unless mail_to Notification.send_email(mail_to, subject: "Alert #{name} is #{status.upcase}", body: info) \ No newline at end of file