chore: Add notification emoji for failed and success message

This commit is contained in:
Jonas Kaninda
2024-09-28 09:22:28 +02:00
parent e4d2d69fa0
commit 39890e71a9
2 changed files with 2 additions and 75 deletions

View File

@@ -223,7 +223,7 @@ func NotifySuccess(fileName string) {
//Telegram notification
err := CheckEnvVars(vars)
if err == nil {
message := "PostgreSQL Backup \n" +
message := "[✅ PostgreSQL Backup ]\n" +
"Database has been backed up \n" +
"Backup name is " + fileName
sendMessage(message)
@@ -238,7 +238,7 @@ func NotifyError(error string) {
//Telegram notification
err := CheckEnvVars(vars)
if err == nil {
message := "PostgreSQL Backup \n" +
message := "[🔴 PostgreSQL Backup ]\n" +
"An error occurred during database backup \n" +
"Error: " + error
sendMessage(message)