nonebot.adapters.onebot.v12.adapter

OneBot v12 ้€‚้…ๅ™จใ€‚

class Adapter(driver, **kwargs)

  • ๅ‚ๆ•ฐ

    • driver (Driver)

    • **kwargs (Any)

classmethod get_name()

  • ๅ‚ๆ•ฐ

    empty

  • ่ฟ”ๅ›ž

    • str

classmethod add_custom_model(*model, impl=None, platform=None)

  • ๅ‚ๆ•ฐ

    • *model (type[Event])

    • impl (str | None)

    • platform (str | None)

  • ่ฟ”ๅ›ž

    • None

classmethod get_event_model(data, impl=None)

  • ่ฏดๆ˜Ž: ๆ นๆฎไบ‹ไปถ่Žทๅ–ๅฏนๅบ” Event Model ๅŠ FallBack Event Model ๅˆ—่กจใ€‚

  • ๅ‚ๆ•ฐ

    • data (dict[str, Any])

    • impl (str | None)

  • ่ฟ”ๅ›ž

    • Generator[type[Event], None, None]

classmethod add_custom_exception(exc)

classmethod get_exception(retcode)

classmethod json_to_event(json_data, impl=None)

  • ๅ‚ๆ•ฐ

    • json_data (Any)

    • impl (str | None)

  • ่ฟ”ๅ›ž

classmethod custom_send(send_func, impl=None, platform=None)

  • ่ฏดๆ˜Ž: ่‡ชๅฎšไน‰ Bot ็š„ๅ›žๅคๅ‡ฝๆ•ฐใ€‚

  • ๅ‚ๆ•ฐ

  • ่ฟ”ๅ›ž

    • None

classmethod get_send(impl=None, platform=None)