1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-07 11:40:23 +08:00

add channel patch/delete

This commit is contained in:
源文雨
2023-10-10 22:02:52 +09:00
parent f04743c7a5
commit 30554f4ffc
9 changed files with 268 additions and 51 deletions

View File

@@ -9,10 +9,7 @@ func (bot *Bot) GetGeneralWSSGateway() (string, error) {
U string `json:"url"`
}{}
err := bot.GetOpenAPI("/gateway", &resp)
if err != nil {
return "", err
}
return resp.U, nil
return resp.U, err
}
// ShardWSSGateway 带分片 WSS 接入点响应数据