nonebot.adapters.onebot.v12.message
OneBot v12 ๆถๆฏ็ฑปๅใ
class MessageSegment(<auto>)
่ฏดๆ: OneBot v12 ๅ่ฎฎ MessageSegment ้้ ใๅ ทไฝๆนๆณๅ่ๅ่ฎฎๆถๆฏๆฎต็ฑปๅๆๆบ็ ใ
ๅๆฐ
auto
classmethod get_message_class()
ๅๆฐ
empty
่ฟๅ
- type[Message]
method to_rich_text(truncate=70)
ๅๆฐ
truncate
(int | None)
่ฟๅ
- str
method is_text()
ๅๆฐ
empty
่ฟๅ
- bool
staticmethod text(text, **kwargs)
ๅๆฐ
text
(str)**kwargs
่ฟๅ
- MessageSegment
staticmethod mention(user_id, **kwargs)
ๅๆฐ
user_id
(str)**kwargs
่ฟๅ
- MessageSegment
staticmethod mention_all(**kwargs)
ๅๆฐ
**kwargs
่ฟๅ
- MessageSegment
staticmethod image(file_id, **kwargs)
ๅๆฐ
file_id
(str)**kwargs
่ฟๅ
- MessageSegment
staticmethod voice(file_id, **kwargs)
ๅๆฐ
file_id
(str)**kwargs
่ฟๅ
- MessageSegment
staticmethod audio(file_id, **kwargs)
ๅๆฐ
file_id
(str)**kwargs
่ฟๅ
- MessageSegment
staticmethod video(file_id, **kwargs)
ๅๆฐ
file_id
(str)**kwargs
่ฟๅ
- MessageSegment
staticmethod file(file_id, **kwargs)
ๅๆฐ
file_id
(str)**kwargs
่ฟๅ
- MessageSegment
staticmethod location(latitude, longitude, title, content, **kwargs)
ๅๆฐ
latitude
(float)longitude
(float)title
(str)content
(str)**kwargs
่ฟๅ
- MessageSegment
staticmethod reply(message_id, **kwargs)
ๅๆฐ
message_id
(str)**kwargs
(Any)
่ฟๅ
- MessageSegment
class Message(<auto>)
ๅๆฐ
auto
classmethod get_segment_class()
ๅๆฐ
empty
่ฟๅ
- type[MessageSegment]
method to_rich_text(truncate=70)
ๅๆฐ
truncate
(int | None)
่ฟๅ
- str
method extract_plain_text()
ๅๆฐ
empty
่ฟๅ
- str
method reduce()
ๅๆฐ
empty
่ฟๅ
- None