Environment
- Cloud Bot API (api.telegram.org), Bot API 10.3, grammY on Node.
- The bot has Threaded Mode enabled in the @Botfather Mini App, with "Disallow users to create new threads" on.
- The bot creates topics in its private chat with one user (a support desk: one topic per customer). Several hundred topics so far, topic ids around 47,000. Most topics work normally.
What happens (sporadic: 3 occurrences between 2026-09-25 and 2026-09-28)
createForumTopic(chat_id=<user>, name, icon_custom_emoji_id) → ok, returns message_thread_id (e.g. 47280).
- The first write,
sendMessage(chat_id=<user>, text, message_thread_id=47280), milliseconds later → 400 Bad Request: message thread not found.
deleteForumTopic(chat_id=<user>, 47280) → 400 Bad Request: TOPIC_ID_INVALID.
- The topic is visible in the user's app (iOS): it is listed with "No messages here yet", and its "… was created" service message appears in the general area, not inside the topic.
- Messages the user types in that topic reach the bot as normal topic messages carrying
message_thread_id = 47280. Every bot write into it keeps failing with message thread not found: seen 1h 19 min after creation, and 5+ hours after creation in another case.
Timeline
- 2026-09-25: one topic dead from creation (first write 13 ms after
createForumTopic), still dead 5+ hours later. Other topics created that day worked.
- 2026-09-26: a topic that had worked for 31 hours started answering
message thread not found. Two replacement topics created right away (130 ms apart) were both dead from creation. A topic created ~10 minutes later worked, while the old one was still "not found".
- 2026-09-28 18:46 UTC: two topics created back to back (ids 47280 and 47281), both dead from creation;
deleteForumTopic → TOPIC_ID_INVALID for both. A topic created earlier that day (47166) works normally.
Expected
A topic returned by createForumTopic accepts sendMessage with its message_thread_id or createForumTopic fails.
Notes
Environment
What happens (sporadic: 3 occurrences between 2026-09-25 and 2026-09-28)
createForumTopic(chat_id=<user>, name, icon_custom_emoji_id)→ ok, returnsmessage_thread_id(e.g. 47280).sendMessage(chat_id=<user>, text, message_thread_id=47280), milliseconds later →400 Bad Request: message thread not found.deleteForumTopic(chat_id=<user>, 47280)→400 Bad Request: TOPIC_ID_INVALID.message_thread_id= 47280. Every bot write into it keeps failing withmessage thread not found: seen 1h 19 min after creation, and 5+ hours after creation in another case.Timeline
createForumTopic), still dead 5+ hours later. Other topics created that day worked.message thread not found. Two replacement topics created right away (130 ms apart) were both dead from creation. A topic created ~10 minutes later worked, while the old one was still "not found".deleteForumTopic→TOPIC_ID_INVALIDfor both. A topic created earlier that day (47166) works normally.Expected
A topic returned by
createForumTopicacceptssendMessagewith itsmessage_thread_idorcreateForumTopicfails.Notes
sendMessagewithmessage_thread_idfails for private chat topics after Bot API 10.0 rollout #847 (same one-way symptom: incoming topic messages work, outgoing are refused) but per topic and without a global outage, and to the cache issues mentioned inmessage_thread_idis silently ignored when the target topic was deleted (in private chat) #854.