You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 12, 2025. It is now read-only.
@@ -144,7 +144,7 @@ Thanks for 外国热心网友 for Provision of Azure Servlet
144
144
<Summary>API</Summary>
145
145
146
146
| API | Support |
147
-
|--------------------------------| :-----: |
147
+
|------------------------------| :-----: |
148
148
|[/send_private_msg]| 🟢 |
149
149
|[/send_group_msg]| 🟢 |
150
150
|[/send_msg]| 🟢 |
@@ -291,86 +291,85 @@ Thanks for 外国热心网友 for Provision of Azure Servlet
291
291
292
292
```json
293
293
{
294
-
"Logging": {
295
-
"LogLevel": {
296
-
"Default": "Information",
297
-
"Microsoft": "Warning",
298
-
"Microsoft.Hosting.Lifetime": "Information"
299
-
}
300
-
},
301
-
"SignServerUrl": "",
302
-
"Account": {
303
-
"Uin": 0,
304
-
"Password": "",
305
-
"Protocol": "Linux",
306
-
"AutoReconnect": true,
307
-
"GetOptimumServer": true
308
-
},
309
-
"Message": {
310
-
"IgnoreSelf": true,
311
-
"StringPost": false
312
-
},
313
-
"QrCode": {
314
-
"ConsoleCompatibilityMode": false
315
-
},
316
-
"Implementations": [
317
-
{
318
-
"Type": "ReverseWebSocket",
319
-
"Host": "127.0.0.1",
320
-
"Port": 8080,
321
-
"Suffix": "/onebot/v11/ws",
322
-
"ReconnectInterval": 5000,
323
-
"HeartBeatInterval": 5000,
324
-
"HeartBeatEnable": true,
325
-
"AccessToken": ""
294
+
"Logging": {
295
+
"LogLevel": {
296
+
"Default": "Information",
297
+
"Microsoft": "Warning",
298
+
"Microsoft.Hosting.Lifetime": "Information"
299
+
}
326
300
},
327
-
{
328
-
"Type": "ForwardWebSocket",
329
-
"Host": "*",
330
-
"Port": 8081,
331
-
"HeartBeatInterval": 5000,
332
-
"HeartBeatEnable": true,
333
-
"AccessToken": ""
301
+
"SignServerUrl": "",
302
+
"Account": {
303
+
"Uin": 0, // Only used to create lagrange-{uin}.db and qr-{uin}.png
304
+
"Protocol": "Linux",
305
+
"AutoReconnect": true,
306
+
"GetOptimumServer": true
334
307
},
335
-
{
336
-
"Type": "HttpPost",
337
-
"Host": "127.0.0.1",
338
-
"Port": 8082,
339
-
"Suffix": "/",
340
-
"HeartBeatInterval": 5000,
341
-
"HeartBeatEnable": true,
342
-
"AccessToken": ""
308
+
"Message": {
309
+
"IgnoreSelf": true,
310
+
"StringPost": false
343
311
},
344
-
{
345
-
"Type": "Http",
346
-
"Host": "*",
347
-
"Port": 8083,
348
-
"AccessToken": ""
349
-
}
350
-
]
312
+
"QrCode": {
313
+
"ConsoleCompatibilityMode": false
314
+
},
315
+
"Implementations": [
316
+
{
317
+
"Type": "ReverseWebSocket",
318
+
"Host": "127.0.0.1",
319
+
"Port": 8080,
320
+
"Suffix": "/onebot/v11/ws",
321
+
"ReconnectInterval": 5000,
322
+
"HeartBeatInterval": 5000,
323
+
"HeartBeatEnable": true,
324
+
"AccessToken": ""
325
+
},
326
+
{
327
+
"Type": "ForwardWebSocket",
328
+
"Host": "*",
329
+
"Port": 8081,
330
+
"HeartBeatInterval": 5000,
331
+
"HeartBeatEnable": true,
332
+
"AccessToken": ""
333
+
},
334
+
{
335
+
"Type": "HttpPost",
336
+
"Host": "127.0.0.1",
337
+
"Port": 8082,
338
+
"Suffix": "/",
339
+
"HeartBeatInterval": 5000,
340
+
"HeartBeatEnable": true,
341
+
"AccessToken": ""
342
+
},
343
+
{
344
+
"Type": "Http",
345
+
"Host": "*",
346
+
"Port": 8083,
347
+
"AccessToken": ""
348
+
}
349
+
]
351
350
}
352
351
```
353
352
354
353
> [!WARNING]
355
354
> Currently, `ForwardWebSocket` and `Http` are implemented based on `HttpListener`, which has the following problems:
356
-
>
355
+
>
357
356
> 1. On Linux, the `Host` header of an Http request must match the value of `Prefix` unless it is `+` or `*`, so configure the `Host` of `ForwardWebSocket` and `Http` to be the domain name or IP you are using to access it.
358
-
>
357
+
>
359
358
> 2. On Windows, the `HttpListener` is based on the `http.sys` implementation, so you need to register `urlacl` before using it. see [netsh](https://learn.microsoft.com/en-us/windows-server/networking/technologies/netsh/netsh-http). You can also start `Lagrange.OneBot` using the administrator, at which point `HttpListener` will automatically register the required `urlacl`.
360
359
361
360
## NOTICE BEFORE LOGIN
362
361
363
-
- The NewDeviceLogin feature has not been implemented yet. It is recommended to use QRCode login for now.
364
-
- Currently, only the signature server implementation for Linux protocol is available. It is recommended to use the Linux protocol.
362
+
-The NewDeviceLogin feature has not been implemented yet. It is recommended to use QRCode login for now.
363
+
-Currently, only the signature server implementation for Linux protocol is available. It is recommended to use the Linux protocol.
365
364
366
365
## Known Problem
367
366
368
-
-~~[] Signature Service is currently not established, so the login tend to be failed and return code may be 45, you can establish your own sign service by rewriting the `Signature` static class.~~
367
+
-~~[] Signature Service is currently not established, so the login tend to be failed and return code may be 45, you can establish your own sign service by rewriting the `Signature` static class.~~
369
368
370
369
~~Thanks KonataDev/TheSnowfield for Provision of Signature API~~
371
370
372
371
~~Signature API is now not provided, you may need to find it somewhere and inherit `SignProvider` class for `CustomSignProvider` in `BotConfig`~~
373
372
374
-
-~~Built-in SignServer is now provided, Enjoy!~~
373
+
-~~Built-in SignServer is now provided, Enjoy!~~
375
374
376
-
- Signature of Windows and macOS is missing, you need to figure out by your self
375
+
-Signature of Windows and macOS is missing, you need to figure out by your self
0 commit comments