Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/nonebot/nonebot2
/ is_text
Method
is_text
nonebot/internal/adapter/message.py:95–97 ·
view source on GitHub ↗
当前消息段是否为纯文本
(self)
Source
from the content-addressed store, hash-verified
93
94
@abc.abstractmethod
95
def
is_text(self) -> bool:
96
""
"当前消息段是否为纯文本"
""
97
raise
NotImplementedError
98
99
100
@custom_validation
Callers
5
get_value
Method · 0.45
__call__
Method · 0.45
extract_plain_text
Method · 0.45
_format
Method · 0.45
handle_echo
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected