fix(cron): support Telegram topic/thread ID in delivery target

When delivering cron job output to Telegram, the 'to' field now supports
specifying a topic (forum thread) ID in addition to the chat ID.

Supported formats:
- chatId (plain chat ID or @username)
- chatId:topicId (chat ID with numeric topic ID)
- chatId:topic:topicId (alternative format with explicit marker)

This enables cron jobs to deliver messages to specific forum topics
rather than always going to the main/general topic.

Adds parseTelegramTarget helper function with unit tests.

(cherry picked from commit 24a6595e81d6d1824b2657d714b212c587c3ee8e)
This commit is contained in:
Gregor's Bot
2026-01-08 11:50:44 +01:00
committed by Peter Steinberger
parent f63496b389
commit 2afb75d508

Diff Content Not Available