summaryrefslogtreecommitdiff
path: root/Omni/Agent/Telegram/Reminders.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-12-13 15:03:11 -0500
committerBen Sima <ben@bensima.com>2025-12-13 15:03:11 -0500
commitc35ba7d248642386544a776f86815e01630eb50d (patch)
tree4624289fd86f0250179322d1581e16d0defd9d90 /Omni/Agent/Telegram/Reminders.hs
parent38c4ea7fcb86ea78448e7097fcd8689d37d78399 (diff)
feat: add Telegram topic (message_thread_id) support
- Parse message_thread_id from incoming messages - Include thread_id in sendMessage API calls - Pass thread_id through message queue system - Replies now go to the correct topic in supergroups
Diffstat (limited to 'Omni/Agent/Telegram/Reminders.hs')
-rw-r--r--Omni/Agent/Telegram/Reminders.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Omni/Agent/Telegram/Reminders.hs b/Omni/Agent/Telegram/Reminders.hs
index cc631a0..88aab0a 100644
--- a/Omni/Agent/Telegram/Reminders.hs
+++ b/Omni/Agent/Telegram/Reminders.hs
@@ -103,6 +103,6 @@ checkAndSendReminders = do
<> "\""
<> dueStr
<> "\nreply when you finish and i'll mark it complete."
- _ <- Messages.enqueueImmediate (Just uid) chatId msg (Just "reminder") Nothing
+ _ <- Messages.enqueueImmediate (Just uid) chatId Nothing msg (Just "reminder") Nothing
Todos.markReminderSent (Todos.todoId td)
putText <| "Queued reminder for todo " <> tshow (Todos.todoId td) <> " to chat " <> tshow chatId