Problem
When a cron job (or any delivery) is configured to send to a specific Telegram topic via to: "chatId:topic:123", and that topic is deleted, the message fails with:
400: Bad Request: message thread not found
The message is lost with no fallback.
Proposed Solution
Add optional fallback behavior when topic delivery fails:
- Detect topic-related errors:
message thread not found, THREAD_ID_INVALID
- Fallback to main chat: Retry without
message_thread_id
- Log warning: Notify that fallback was used so user can update config
Configuration
{
channels: {
telegram: {
topicFallback: true // default: false (preserve current behavior)
}
}
}
Or per-cron:
{
cron: {
jobs: [{
to: "123:topic:456",
fallbackTo: "123" // explicit fallback target
}]
}
}
Use Cases
- Cron jobs for news digests to specific topics
- Automated notifications to forum topics
- Any scheduled delivery to topics that might be reorganized
Current Workaround
Manually update cron --to after deleting/recreating topics.
Environment
- Clawdbot: 2026.1.21
- Telegram Bot API with forum topics
Problem
When a cron job (or any delivery) is configured to send to a specific Telegram topic via
to: "chatId:topic:123", and that topic is deleted, the message fails with:The message is lost with no fallback.
Proposed Solution
Add optional fallback behavior when topic delivery fails:
message thread not found,THREAD_ID_INVALIDmessage_thread_idConfiguration
Or per-cron:
Use Cases
Current Workaround
Manually update cron
--toafter deleting/recreating topics.Environment