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
