This commit is contained in:
jxxghp
2025-06-15 16:31:09 +08:00
parent be8054e81e
commit 8672bd12c4
2 changed files with 2 additions and 3 deletions

View File

@@ -149,8 +149,7 @@ class TelegramModule(_ModuleBase, _MessageBase[Telegram]):
return self._handle_callback_query(message, client_config)
# 处理普通消息
elif "message" in message:
return self._handle_text_message(message, client_config, client)
return self._handle_text_message(message, client_config, client)
return None

View File

@@ -285,7 +285,7 @@ class ChannelCapabilityManager:
获取每行最大按钮数
"""
channel_caps = cls.get_capabilities(channel)
return channel_caps.max_buttons_per_row if channel_caps else 1
return channel_caps.max_buttons_per_row if channel_caps else 4
@classmethod
def get_max_button_rows(cls, channel: MessageChannel) -> int: