From 0e570bbf4060f55d7092c8bd48f46681e15111b1 Mon Sep 17 00:00:00 2001 From: hachi Date: Fri, 1 May 2026 18:35:19 -0700 Subject: [PATCH] fix: use _message_thread_id_for_send in send_model_picker send_model_picker used raw int(thread_id) conversion, bypassing the _message_thread_id_for_send helper that maps the General topic (thread_id=1) to None. This caused 'Message thread not found' errors from the Telegram API in forum groups when /model was used in the General topic, falling back to the text list instead of showing interactive inline keyboard buttons. --- gateway/platforms/telegram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/platforms/telegram.py b/gateway/platforms/telegram.py index cbee25393e35a..1548c059b624c 100644 --- a/gateway/platforms/telegram.py +++ b/gateway/platforms/telegram.py @@ -1568,7 +1568,7 @@ def get_label(slug): text=text, parse_mode=ParseMode.MARKDOWN, reply_markup=keyboard, - message_thread_id=int(thread_id) if thread_id else None, + message_thread_id=self._message_thread_id_for_send(thread_id), **self._link_preview_kwargs(), )