数据库模型字段添加;数据模型添加;utils_message传参控制

This commit is contained in:
UnCLAS-Prommer
2026-03-06 22:45:47 +08:00
parent baae2df154
commit c2b75a03d7
4 changed files with 68 additions and 1 deletions

View File

@@ -145,6 +145,7 @@ class MessageUtils:
@staticmethod
async def build_readable_message(
messages: List["SessionMessage"],
*,
anonymize: bool = False,
show_lineno: bool = False,
extract_pictures: bool = False,
@@ -437,6 +438,7 @@ class MessageUtils:
]
return component
# TODO: 这个函数的实现非常临时后续需要替换为更完善的实现比如直接从配置文件中读取机器人自己的ID或者通过API获取机器人自己的信息等
def is_bot_self(user_id: str) -> bool:
"""