From c35ba7d248642386544a776f86815e01630eb50d Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sat, 13 Dec 2025 15:03:11 -0500 Subject: 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 --- Omni/Agent/Telegram/IncomingQueue.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Omni/Agent/Telegram/IncomingQueue.hs') 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 -- cgit v1.2.3