diff options
| author | Ben Sima <ben@bensima.com> | 2025-12-13 15:03:11 -0500 |
|---|---|---|
| committer | Ben Sima <ben@bensima.com> | 2025-12-13 15:03:11 -0500 |
| commit | c35ba7d248642386544a776f86815e01630eb50d (patch) | |
| tree | 4624289fd86f0250179322d1581e16d0defd9d90 /Omni/Agent/Telegram/IncomingQueue.hs | |
| parent | 38c4ea7fcb86ea78448e7097fcd8689d37d78399 (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.hs | 3 |
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 |
