v11.handle¶
v11 处理流相关接口¶
- melobot.protocols.onebot.v11.handle.on_event(checker: ~melobot.utils.check.base.Checker | None | ~melobot.typ.base.SyncOrAsyncCallable[(<class 'melobot.protocols.onebot.v11.adapter.event.Event'>,), bool] = None, priority: int = 0, block: bool = False, temp: bool = False, decos: ~typing.Sequence[~typing.Callable[[~typing.Callable], ~typing.Callable]] | None = None, rule: ~melobot.session.option.Rule[~melobot.protocols.onebot.v11.adapter.event.Event] | None = None) FlowDecorator [源代码]¶
- melobot.protocols.onebot.v11.handle.on_message(checker: ~melobot.utils.check.base.Checker | None | ~melobot.typ.base.SyncOrAsyncCallable[(<class 'melobot.protocols.onebot.v11.adapter.event.MessageEvent'>,), bool] = None, matcher: ~melobot.utils.match.base.Matcher | None = None, parser: ~melobot.utils.parse.base.Parser | None = None, priority: int = 0, block: bool = False, temp: bool = False, decos: ~typing.Sequence[~typing.Callable[[~typing.Callable], ~typing.Callable]] | None = None, legacy_session: bool = False) FlowDecorator [源代码]¶
- 参数:
- 返回类型:
- melobot.protocols.onebot.v11.handle.on_at_qq(qid: int | None = None, checker: ~melobot.utils.check.base.Checker | None | ~melobot.typ.base.SyncOrAsyncCallable[(<class 'melobot.protocols.onebot.v11.adapter.event.MessageEvent'>,), bool] = None, matcher: ~melobot.utils.match.base.Matcher | None = None, parser: ~melobot.utils.parse.base.Parser | None = None, priority: int = 0, block: bool = False, temp: bool = False, decos: ~typing.Sequence[~typing.Callable[[~typing.Callable], ~typing.Callable]] | None = None, legacy_session: bool = False) FlowDecorator [源代码]¶
- melobot.protocols.onebot.v11.handle.on_request(checker: ~melobot.utils.check.base.Checker | None | ~melobot.typ.base.SyncOrAsyncCallable[(<class 'melobot.protocols.onebot.v11.adapter.event.RequestEvent'>,), bool] = None, priority: int = 0, block: bool = False, temp: bool = False, decos: ~typing.Sequence[~typing.Callable[[~typing.Callable], ~typing.Callable]] | None = None, rule: ~melobot.session.option.Rule[~melobot.protocols.onebot.v11.adapter.event.Event] | None = None) FlowDecorator [源代码]¶
- melobot.protocols.onebot.v11.handle.on_notice(checker: ~melobot.utils.check.base.Checker | None | ~melobot.typ.base.SyncOrAsyncCallable[(<class 'melobot.protocols.onebot.v11.adapter.event.NoticeEvent'>,), bool] = None, priority: int = 0, block: bool = False, temp: bool = False, decos: ~typing.Sequence[~typing.Callable[[~typing.Callable], ~typing.Callable]] | None = None, rule: ~melobot.session.option.Rule[~melobot.protocols.onebot.v11.adapter.event.Event] | None = None) FlowDecorator [源代码]¶
- melobot.protocols.onebot.v11.handle.on_meta(checker: ~melobot.utils.check.base.Checker | None | ~melobot.typ.base.SyncOrAsyncCallable[(<class 'melobot.protocols.onebot.v11.adapter.event.MetaEvent'>,), bool] = None, priority: int = 0, block: bool = False, temp: bool = False, decos: ~typing.Sequence[~typing.Callable[[~typing.Callable], ~typing.Callable]] | None = None, rule: ~melobot.session.option.Rule[~melobot.protocols.onebot.v11.adapter.event.Event] | None = None) FlowDecorator [源代码]¶