Skip to content
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

Merged
merged 4 commits into from
Apr 30, 2024
Merged

Added the telegram notifier #10

merged 4 commits into from
Apr 30, 2024

Conversation

iulianpascalau
Copy link
Contributor

  • added the telegram notifier

@iulianpascalau iulianpascalau marked this pull request as ready for review April 24, 2024 12:43
@andreibancioiu andreibancioiu self-requested a review April 24, 2024 14:48

// 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))

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refactored all log messages

expectedTitle string,
numCalls *uint32,
) *httptest.Server {
response := &pushoverResponse{

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy-paste error. Removed

miiu96
miiu96 previously approved these changes Apr 25, 2024
@iulianpascalau iulianpascalau merged commit 79b27f9 into main Apr 30, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants