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