Merge pull request #1230 from Kataick/update_send_msg

docs(message): 更新发送私信文档(wbi)
This commit is contained in:
z0z0r4 2025-04-17 13:51:22 +08:00 committed by GitHub
commit 917a90a531
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1253,10 +1253,22 @@ curl 'https://api.vc.bilibili.com/session_svr/v1/session_svr/update_ack' \
认证方式CookieSESSDATA
鉴权方式:[Wbi 签名](../misc/sign/wbi.md)
**仅支持发送 `msg[msg_type]``1`、`2` 或 `5` 的私信**
调用该接口同时会将该会话设置为已读
**URL参数:**
| 参数名 | 类型 | 内容 | 必要性 | 备注 |
| --- | --- | --- | --- | --- |
| w_sender_uid | num | 发送者mid | 必要 | 必须为自己的 mid |
| w_receiver_id | num | 接收者id | 必要 | `w_receiver_id``1` 时表示用户 mid`2` 时表示粉丝团 id |
| w_dev_id | str | 设备id | 必要 | 实质上即 UUID版本 4**生成方式见下** |
| w_rid | str | Wbi 签名 | 必要 | 参见 [Wbi 签名](../misc/sign/wbi.md) |
| wts | str | UNIX 秒级时间戳 | 必要 | 参见 [Wbi 签名](../misc/sign/wbi.md) |
**正文参数application/x-www-form-urlencoded**
| 参数名 | 类型 | 内容 | 必要性 | 备注 |