QR 登录类型
QR 登录 API 响应模型。
定义 poll、fetch_device_uin 和 push_qr API 响应的 TypedDict。
-
class qqqr.qr.type.PollResp(**data)
QR 轮询 API 的响应。
-
code: int
状态码(参见 StatusCode)
-
url: HttpUrl | str
认证后的回调 URL
-
msg: str
结果消息
-
nickname: str
用户昵称
-
cookies: RedirectCookies | None
重定向 cookie
-
model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
class qqqr.qr.type.FetchDevUinResp(**data)
fetch_device_uin API 的响应。
-
code: int
结果码
-
uin_list: List[int]
设备 QQ 号列表
-
model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
-
class qqqr.qr.type.PushQrResp(**data)
推送 QR API 的响应。
-
code: int
结果码
-
message: str
结果消息
-
model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].