#21930: Validate Telegram delivery targets to reject invalid formats
size: S
Cluster:
Messaging Platform Improvements
## Summary
- **Problem:** Cron jobs with Telegram delivery targets using chatId/topicId format (e.g. `-10012345/6789`) were accepted but silently failed
- **Why it matters:** Users got confusing behavior with failed/incorrect deliveries
- **What changed:** Added validation that specifically rejects `-number/number` format while allowing t.me URLs, @username, and colon-delimited formats
- **What did NOT change:** Other channels unaffected; runtime Telegram parsing unchanged
## Change Type
- [x] Bug fix
## Scope
- [x] Gateway / orchestration
## User-visible / Behavior Changes
Error message now shows: `Invalid Telegram delivery target "-10012345/6789". Use colon (:) as delimiter for topics, not slash. Valid formats: -1001234567890, -1001234567890:123, -1001234567890:topic:123, @username, https://t.me/username`
## Security Impact
- All No
## Compatibility
- Backward compatible: Yes (only rejects invalid inputs that already didn't work)
- No config changes needed
## Risks
- None
Most Similar PRs
#16996: fix(cron): parse Telegram topic target format for announce delivery
by Glucksberg · 2026-02-15
67.4%
#9734: fix(telegram): correct sender identification for channel messages (...
by divol89 · 2026-02-05
63.0%
#14443: fix(telegram): skip General topic thread ID for all chat types (#14...
by lailoo · 2026-02-12
61.8%
#20204: fix(sessions): allow negative IDs and colon separators in session IDs
by zerone0x · 2026-02-18
61.5%
#16548: fix(telegram): enhance chat_id validation and diagnostics
by tanujbhaud · 2026-02-14
61.4%
#12758: fix(telegram): drop message_thread_id=1 for DM chats
by yukihamada · 2026-02-09
61.0%
#23062: Fix #22985: Record session meta from native slash commands
by drewdavisfineart · 2026-02-21
60.1%
#19050: fix(telegram): skip message_thread_id for private chats to prevent ...
by Limitless2023 · 2026-02-17
60.0%
#19471: fix(gateway): honor deliver param in chat.send
by kays0x · 2026-02-17
59.8%
#20589: Auto-reply: preserve Telegram DM newlines
by detecti1 · 2026-02-19
59.8%