nonebot.adapters.onebot.v11.message

OneBot v11 ๆถˆๆฏ็ฑปๅž‹ใ€‚

class MessageSegment(<auto>)

  • ่ฏดๆ˜Ž: OneBot v11 ๅ่ฎฎ MessageSegment ้€‚้…ใ€‚ๅ…ทไฝ“ๆ–นๆณ•ๅ‚่€ƒๅ่ฎฎๆถˆๆฏๆฎต็ฑปๅž‹ๆˆ–ๆบ็ ใ€‚

  • ๅ‚ๆ•ฐ

    auto

classmethod get_message_class()

  • ๅ‚ๆ•ฐ

    empty

  • ่ฟ”ๅ›ž

    • type[Message]

method to_rich_text(truncate=70)

  • ๅ‚ๆ•ฐ

    • truncate (int | None)
  • ่ฟ”ๅ›ž

    • str

method is_text()

  • ๅ‚ๆ•ฐ

    empty

  • ่ฟ”ๅ›ž

    • bool

classmethod anonymous(ignore_failure=None)

  • ๅ‚ๆ•ฐ

    • ignore_failure (bool | None)
  • ่ฟ”ๅ›ž

    • Self

classmethod at(user_id)

  • ๅ‚ๆ•ฐ

    • user_id (int | str)
  • ่ฟ”ๅ›ž

    • Self

classmethod contact(type_, id)

  • ๅ‚ๆ•ฐ

    • type_ (str)

    • id (int)

  • ่ฟ”ๅ›ž

    • Self

classmethod contact_group(group_id)

  • ๅ‚ๆ•ฐ

    • group_id (int)
  • ่ฟ”ๅ›ž

    • Self

classmethod contact_user(user_id)

  • ๅ‚ๆ•ฐ

    • user_id (int)
  • ่ฟ”ๅ›ž

    • Self

classmethod dice()

  • ๅ‚ๆ•ฐ

    empty

  • ่ฟ”ๅ›ž

    • Self

classmethod face(id_)

  • ๅ‚ๆ•ฐ

    • id_ (int)
  • ่ฟ”ๅ›ž

    • Self

classmethod forward(id_)

  • ๅ‚ๆ•ฐ

    • id_ (str)
  • ่ฟ”ๅ›ž

    • Self

classmethod image(file, type_=None, cache=True, proxy=True, timeout=None)

  • ๅ‚ๆ•ฐ

    • file (str | bytes | BytesIO | Path)

    • type_ (str | None)

    • cache (bool)

    • proxy (bool)

    • timeout (int | None)

  • ่ฟ”ๅ›ž

    • Self

classmethod json(data)

  • ๅ‚ๆ•ฐ

    • data (str)
  • ่ฟ”ๅ›ž

    • Self

classmethod location(latitude, longitude, title=None, content=None)

  • ๅ‚ๆ•ฐ

    • latitude (float)

    • longitude (float)

    • title (str | None)

    • content (str | None)

  • ่ฟ”ๅ›ž

    • Self

classmethod music(type_, id_)

  • ๅ‚ๆ•ฐ

    • type_ (str)

    • id_ (int)

  • ่ฟ”ๅ›ž

    • Self

classmethod music_custom(url, audio, title, content=None, img_url=None)

  • ๅ‚ๆ•ฐ

    • url (str)

    • audio (str)

    • title (str)

    • content (str | None)

    • img_url (str | None)

  • ่ฟ”ๅ›ž

    • Self

classmethod node(id_)

  • ๅ‚ๆ•ฐ

    • id_ (int)
  • ่ฟ”ๅ›ž

    • Self

classmethod node_custom(user_id, nickname, content)

  • ๅ‚ๆ•ฐ

    • user_id (int)

    • nickname (str)

    • content (str | Message)

  • ่ฟ”ๅ›ž

    • Self

classmethod poke(type_, id_)

  • ๅ‚ๆ•ฐ

    • type_ (str)

    • id_ (str)

  • ่ฟ”ๅ›ž

    • Self

classmethod record(file, magic=None, cache=None, proxy=None, timeout=None)

  • ๅ‚ๆ•ฐ

    • file (str | bytes | BytesIO | Path)

    • magic (bool | None)

    • cache (bool | None)

    • proxy (bool | None)

    • timeout (int | None)

  • ่ฟ”ๅ›ž

    • Self

classmethod reply(id_)

  • ๅ‚ๆ•ฐ

    • id_ (int)
  • ่ฟ”ๅ›ž

    • Self

classmethod rps()

  • ๅ‚ๆ•ฐ

    empty

  • ่ฟ”ๅ›ž

    • Self

classmethod shake()

  • ๅ‚ๆ•ฐ

    empty

  • ่ฟ”ๅ›ž

    • Self

classmethod share(url="", title="", content=None, image=None)

  • ๅ‚ๆ•ฐ

    • url (str)

    • title (str)

    • content (str | None)

    • image (str | None)

  • ่ฟ”ๅ›ž

    • Self

classmethod text(text)

  • ๅ‚ๆ•ฐ

    • text (str)
  • ่ฟ”ๅ›ž

    • Self

classmethod video(file, cache=None, proxy=None, timeout=None)

  • ๅ‚ๆ•ฐ

    • file (str | bytes | BytesIO | Path)

    • cache (bool | None)

    • proxy (bool | None)

    • timeout (int | None)

  • ่ฟ”ๅ›ž

    • Self

classmethod xml(data)

  • ๅ‚ๆ•ฐ

    • data (str)
  • ่ฟ”ๅ›ž

    • Self

class Message(<auto>)

  • ่ฏดๆ˜Ž: OneBot v11 ๅ่ฎฎ Message ้€‚้…ใ€‚

  • ๅ‚ๆ•ฐ

    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