Repository navigation
Description
Summary
In a private chat with a bot in threaded mode, editForumTopic succeeds and saves the new title/icon, but existing Telegram clients keep displaying the original title/icon. A newly authorized Telegram Web K session displays the updated values.
I have not established whether the fault is missing server updates or client cache invalidation. I am reporting it here because it reproduces through the public Bot API and also through a direct MTProto bot request.
Reproduction
-
Enable threaded mode for a bot and open its private chat in a Telegram client.
-
Call
createForumTopicwith a name such asTopic A. The client displays the new topic with that name. -
Rename that topic through the public cloud Bot API:
curl -sS -X POST "https://api.telegram.org/bot${BOT_TOKEN}/editForumTopic" \ --data-urlencode "chat_id=${USER_ID}" \ --data-urlencode "message_thread_id=${TOPIC_ID}" \ --data-urlencode "name=Topic B"
-
The API returns
{"ok":true,"result":true}, but the client still displaysTopic A. Fully closing and reopening the existing clients did not help in our tests. -
From an authorized session of the same user, read that bot's topics through
messages.getForumTopicsandmessages.getForumTopicsByID. Both returnTopic Bfor the exact topic ID. -
Open the same bot in a newly authorized Telegram Web K session. The new session displays
Topic B.
Additional checks
- Topic creation reaches the existing client. Subsequent renames of that same bot-created topic do not appear there.
- The problem also affects user-created topics and native icon changes using IDs from
getForumTopicIconStickers. - Sending only
name, withouticon_custom_emoji_id, produces the same visible failure. - It reproduces for both
title_missing=trueandtitle_missing=false, so that flag alone does not explain it. - The bot identity, user identity, topic root message and current messages'
reply_to_top_idwere checked against the reported conversation. - A direct
messages.editForumTopicrequest from a separately authenticated, memory-only session of the same bot changes the diagnostic topic's title, but returnsUpdates(updates=[], seq=0). - No topic-edit service update was observed in bounded user-session observation windows of 18 and 22 seconds. This is a limited observation, not proof that no other connection received an update.
- As a control, pinning and unpinning the same topic from the user session returned
UpdatePinnedForumTopic. The original pin state was restored.
Expected behavior
Existing clients should receive or fetch the changed title/icon after a successful edit, without requiring a new account session. The forum documentation describes topic modifications as generating messageActionTopicEdit service messages.
Environment
- Observed on November 1 and 2, 2026.
- Public cloud Bot API at
api.telegram.org, not a self-hosted server. - Private bot chat with threaded mode enabled, not a supergroup forum.
- The user reports the stale values across their existing clients, including iOS. Exact client build numbers have not yet been collected.
- Independently verified in a newly authorized Telegram Web K session: updated names and icons are visible there.
- Integration: OpenClaw. The user reports that automatic renaming and native icons worked consistently within seconds of the first topic message before an OpenClaw update roughly 2 to 3 days before November 1. The failure appeared after that update. Exact last-good/first-bad versions have not yet been isolated. An integration regression remains a possibility; no client-side or server-side root cause is claimed.
Is this a known limitation or a missing update on the private bot topic edit path? If this belongs in another Telegram tracker, please point me to the right place.
Activity
artdaal commentedon Nov 1, 2026
Additional checks against older OpenClaw code:
This reproduces the stale display using older sending code as well. It is not a full environment rollback test: the host, Node runtime and account were unchanged. I am not treating the timing of the integration update as proof of the cause.
Ambboy commentedon Nov 2, 2026
Additional reproduction: Hermes
We have observed a closely matching failure in a different integration (Hermes with a custom topic-styling plugin).
Observations from our own tests
We have not established whether the failure is in server-side update generation, delivery, or client application of an update. We are not treating the timing of integration changes as proof of causation. Rewriting the local name/icon selection logic did not establish a repair for this visible symptom.
Is there a supported read-only observation that would distinguish missing private-topic update generation from incorrect client-side topic-key handling? Are there any additional diagnostics that would help without replaying edits or requiring a new user login?
levlam commentedon Nov 2, 2026
This will be fixed after updates of user apps. There is no way to fix this from the bot's side.
aspalagin commentedon Nov 4, 2026
Independent reproduction from another OpenClaw installation (public cloud Bot API, private bot chat with topics enabled), with two additions: the same thing happens when the user renames the topic from their own account, and an explanation of why Telegram for Android specifically never catches up.
1. The server stores the new title but creates no service message and no update for it
Timeline, 2026-11-04 (UTC):
createForumTopicwith name… · A. A second MTProto session of the same user account, running as a passive observer, receivesupdateNewMessagewithmessageActionTopicCreate(title A).editForumTopic(A → B) through api.telegram.org, response{"ok":true,"result":true}.messages.editForumTopic(peer=<bot>, topic_id=…, title="… · C"). The server answersUpdates(updates=[], seq=0). An immediatemessages.getForumTopicsByIDfrom the same session returns… · C.messageActionTopicCreateservice message with title A. NomessageActionTopicEditexists for either rename, so there is nothing for any client to receive; this is not a delivery problem of a single connection.For supergroup forums the same edit produces
messageActionTopicEdit(https://core.telegram.org/api/forum#managing-topics); the private bot topic path does not.2. Why Telegram for Android keeps the old title (13.1.1, build 7237, direct APK from telegram.org)
The phone still showed
… · Aafter both renames (screenshot at 18:40 UTC). From the source of that exact build (TelegramMessenger/Telegram-Android@3de37c8, "update to 13.1.1 (7237)"):messageActionTopicEditservice message: MessagesStorage.java#L13330-L13350 →updateTopicData(TOPIC_FLAG_TITLE)→TopicsController.updateTopicInUi.messages.getForumTopics/getForumTopicsByID),TopicsController.processTopicsmerges onlyclosedinto a topic that is already intopicsMap(theelse if (!newTopic.isShort)branch);titleandicon_emoji_idfrom the server response are ignored. A topic takes the server title only when it is not yet known locally.topicstable and loaded from it on start, so restarting the app replays the stale title. They are dropped only byclearLocalDatabase()(Settings → Data and Storage → Storage Usage → Clear Local Database), logout or reinstall. This matches the "a new session sees the new title" observation above.So with (1) + (2) there is no sequence of Bot API calls that makes an existing Android client display a new title for a topic it already has. Only the name passed to
createForumTopicis reliably visible, becausemessageActionTopicCreateis delivered.3. Desktop / iOS (from source only, not tested live)
Forum::applyReceivedTopics→ForumTopic::applyTopic→applyTitle, and opening a bot topic callsForum::requestTopic, so Desktop should pick the new title up when the topic is opened or the list is reloaded.info.titlefrom thegetForumTopicsresponse in_internal_loadMessageHistoryThreads, so iOS should refresh when the list is reloaded.Question
Is the absence of
messageActionTopicEdit/ any update for private bot topic edits intended server behaviour, so that clients are expected to re-readtitle/icon_emoji_idfromgetForumTopics? If so, the Android fix is inTopicsController.processTopics(mergetitle/icon_emoji_idfor known topics, not onlyclosed). If the server will also start emitting the service message, Android would be fixed without a client change. Knowing which it is would help bot developers decide whethereditForumTopicon existing private topics is usable at all until users update.Workaround until then: set the final name in
createForumTopic, and treateditForumTopicon an existing private topic as invisible to Android users who already have the topic cached.fix: Mini App tables scroll sideways; rename reply notes Telegram's s…
docs(messaging): a renamed topic keeps its old name in the Telegram a…