summaryrefslogtreecommitdiff
path: root/Omni/Agent/Telegram/IncomingQueue.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/IncomingQueue.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/IncomingQueue.hs')
-rw-r--r--Omni/Agent/Telegram/IncomingQueue.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Omni/Agent/Telegram/IncomingQueue.hs b/Omni/Agent/Telegram/IncomingQueue.hs
index 16a16a3..875fbf3 100644
--- a/Omni/Agent/Telegram/IncomingQueue.hs
+++ b/Omni/Agent/Telegram/IncomingQueue.hs
@@ -106,7 +106,8 @@ mkTestMessage chatId usrId chatType txt =
Types.tmDocument = Nothing,
Types.tmPhoto = Nothing,
Types.tmVoice = Nothing,
- Types.tmReplyTo = Nothing
+ Types.tmReplyTo = Nothing,
+ Types.tmThreadId = Nothing
}
data QueuedMsg = QueuedMsg