Skip to content

Commit ded68ea

Browse files
Added notification when errors are resolved
1 parent c0b73d8 commit ded68ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

urlwatcher/Sources/urlwatcher/main.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ do {
233233
let notifiedFile = "\(entryPath)/.notified"
234234
if fileManager.fileExists(atPath: notifiedFile) {
235235
try fileManager.removeItem(atPath: notifiedFile)
236+
// Notify the user, that the error resolved
237+
try sendTelegramMessage("The errors with entry '\(entry.name)' have been resolved.", to: Int(entry.chatID))
236238
}
237239
}
238240

0 commit comments

Comments
 (0)