pypm 在 microsoft copilot 中发帖
是基于websocket的,似乎有玩的:
// 1. 建立 WebSocket 连接
const url = "wss://copilot.microsoft.com/c/api/chat?api-version=2";
// 在cookie中查找 __Host-copilot-anon
const cookie = "__Host-copilot-anon=xxx"
// 在Messages中找event为send的conversationId
const conversationId = "xxx"
const messageText = "简介linux do社区"
const ws = new WebSocket(url, {
headers: {
Cookie: cookie,
Origin: "https://copilot.microsoft.co...