aboutsummaryrefslogtreecommitdiffstats
path: root/internal/notifier
diff options
context:
space:
mode:
authorLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-07 00:31:19 -0400
committerLibravatar Mo Tarbin <mhed.t91@gmail.com>2024-07-07 00:31:19 -0400
commit2004031055b58c8152ff0a5441ee7e5337c1acbc (patch)
tree29838e7fbbcd0cc25b4f5e8cf134cf08d085af8a /internal/notifier
parent010db330a46ad32daf30400283971cd4e9835e1d (diff)
downloaddonetick-2004031055b58c8152ff0a5441ee7e5337c1acbc.tar.gz
donetick-2004031055b58c8152ff0a5441ee7e5337c1acbc.tar.bz2
donetick-2004031055b58c8152ff0a5441ee7e5337c1acbc.zip
Update chore notification messages to use markdown formatting
Diffstat (limited to '')
-rw-r--r--internal/notifier/service/planner.go4
-rw-r--r--internal/notifier/telegram/telegram.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/internal/notifier/service/planner.go b/internal/notifier/service/planner.go
index c8b4ea6..615fa0d 100644
--- a/internal/notifier/service/planner.go
+++ b/internal/notifier/service/planner.go
@@ -86,7 +86,7 @@ func generateDueNotifications(chore *chModel.Chore, users []*cModel.UserCircleDe
TypeID: 1,
UserID: user.ID,
TargetID: fmt.Sprint(user.ChatID),
- Text: fmt.Sprintf("📅 Reminder: '%s' is due today and assigned to %s.", chore.Name, assignee.DisplayName),
+ Text: fmt.Sprintf("📅 Reminder: *%s* is due today and assigned to %s.", chore.Name, assignee.DisplayName),
}
notifications = append(notifications, notification)
}
@@ -141,7 +141,7 @@ func generateOverdueNotifications(chore *chModel.Chore, users []*cModel.UserCirc
TypeID: 2,
UserID: user.ID,
TargetID: fmt.Sprint(user.ChatID),
- Text: fmt.Sprintf("🚨 '%s' is now %d hours overdue. Please complete it as soon as possible. (Assigned to %s)", chore.Name, hours, assignee.DisplayName),
+ Text: fmt.Sprintf("🚨 *%s* is now %d hours overdue. Please complete it as soon as possible. (Assigned to %s)", chore.Name, hours, assignee.DisplayName),
}
notifications = append(notifications, notification)
}
diff --git a/internal/notifier/telegram/telegram.go b/internal/notifier/telegram/telegram.go
index e35f0c8..54c0905 100644
--- a/internal/notifier/telegram/telegram.go
+++ b/internal/notifier/telegram/telegram.go
@@ -55,7 +55,7 @@ func (tn *TelegramNotifier) SendChoreCompletion(c context.Context, chore *chMode
if user.ChatID == 0 {
continue
}
- text := fmt.Sprintf("🎉 '%s' is completed! is off the list, %s! 🌟 ", chore.Name, user.DisplayName)
+ text := fmt.Sprintf("🎉 *%s* is completed! is off the list, %s! 🌟 ", chore.Name, user.DisplayName)
msg := tgbotapi.NewMessage(user.ChatID, text)
msg.ParseMode = "Markdown"
_, err := tn.bot.Send(msg)