From 21addfb947902acf940c15a180551ed1f9b526da Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sun, 15 Jun 2025 16:56:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20message.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/schemas/message.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/schemas/message.py b/app/schemas/message.py index 5971c0b6..f535efc1 100644 --- a/app/schemas/message.py +++ b/app/schemas/message.py @@ -160,7 +160,7 @@ class ChannelCapabilities: """ channel: MessageChannel capabilities: Set[ChannelCapability] - max_buttons_per_row: int = 2 + max_buttons_per_row: int = 5 max_button_rows: int = 10 max_button_text_length: int = 30 fallback_enabled: bool = True @@ -285,7 +285,7 @@ class ChannelCapabilityManager: 获取每行最大按钮数 """ channel_caps = cls.get_capabilities(channel) - return channel_caps.max_buttons_per_row if channel_caps else 4 + return channel_caps.max_buttons_per_row if channel_caps else 5 @classmethod def get_max_button_rows(cls, channel: MessageChannel) -> int: @@ -293,7 +293,7 @@ class ChannelCapabilityManager: 获取最大按钮行数 """ channel_caps = cls.get_capabilities(channel) - return channel_caps.max_button_rows if channel_caps else 5 + return channel_caps.max_button_rows if channel_caps else 10 @classmethod def get_max_button_text_length(cls, channel: MessageChannel) -> int: