-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added the telegram notifier #10
Conversation
iulianpascalau
commented
Apr 24, 2024
- added the telegram notifier
notifiers/telegramNotifier.go
Outdated
|
||
// OutputMessages will push the provided messages as error | ||
func (notifier *telegramNotifier) OutputMessages(messages ...core.OutputMessage) { | ||
log.Debug("notifier.OutputMessages sending telegram notification", "num messages", len(messages)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In other places, the log message contained the name of the actual struct. E.g. here it would be telegramNotifier.OutputMessages
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactored all log messages
notifiers/telegramNotifier_test.go
Outdated
expectedTitle string, | ||
numCalls *uint32, | ||
) *httptest.Server { | ||
response := &pushoverResponse{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This response object is specific to pushover. Maybe use one for TG?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copy-paste error. Removed