context
本模块创建了 Ariadne 中的上下文变量
enter_context 🔗
enter_context(app: Ariadne | None = None, event: Dispatchable | None = None)
进入事件上下文
Parameters:
-
app
(
Ariadne
) –Ariadne 实例.
-
event
(
Dispatchable
) –当前事件
Source code in src/graia/ariadne/context.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
|
enter_message_send_context 🔗
enter_message_send_context(method: UploadMethod)
进入消息发送上下文
Parameters:
-
method
(
UploadMethod
) –消息上下文的枚举对象
Source code in src/graia/ariadne/context.py
33 34 35 36 37 38 39 40 41 42 |
|