From 1935a7d4deab557c9aa781163f1086f8638d4c52 Mon Sep 17 00:00:00 2001 From: Joshua Frank Date: Fri, 13 Mar 2026 20:24:00 -0500 Subject: [PATCH] fix: stop renaming user-created Telegram topics on bind --- src/ccbot/bot.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/ccbot/bot.py b/src/ccbot/bot.py index f8270732..87ca30b7 100644 --- a/src/ccbot/bot.py +++ b/src/ccbot/bot.py @@ -1063,17 +1063,6 @@ async def _create_and_bind_window( user.id, pending_thread_id, created_wid, window_name=created_wname ) - # Rename the topic to match the window name - resolved_chat = session_manager.resolve_chat_id(user.id, pending_thread_id) - try: - await context.bot.edit_forum_topic( - chat_id=resolved_chat, - message_thread_id=pending_thread_id, - name=created_wname, - ) - except Exception as e: - logger.debug(f"Failed to rename topic: {e}") - status = "Resumed" if resume_session_id else "Created" await safe_edit( query, @@ -1461,17 +1450,6 @@ async def callback_handler(update: Update, context: ContextTypes.DEFAULT_TYPE) - user.id, thread_id, selected_wid, window_name=display ) - # Rename the topic to match the window name - resolved_chat = session_manager.resolve_chat_id(user.id, thread_id) - try: - await context.bot.edit_forum_topic( - chat_id=resolved_chat, - message_thread_id=thread_id, - name=display, - ) - except Exception as e: - logger.debug(f"Failed to rename topic: {e}") - await safe_edit( query, f"✅ Bound to window `{display}`",