QR 登录类型

QR 登录 API 响应模型。

定义 poll、fetch_device_uin 和 push_qr API 响应的 TypedDict。

class qqqr.qr.type.PollResp(*, code, url, msg, nickname, cookies=None)

QR 轮询 API 的响应。

code: int

状态码(参见 StatusCode)

url: Union[HttpUrl, str]

认证后的回调 URL

msg: str

结果消息

nickname: str

用户昵称

cookies: Optional[RedirectCookies]

重定向 cookie

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class qqqr.qr.type.FetchDevUinResp(*, errcode, data=<factory>)

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(*, ec, em='')

推送 QR API 的响应。

code: int

结果码

message: str

结果消息

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].