数据库模型字段添加;数据模型添加;utils_message传参控制
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user