The Lagrange.Core project, including its developers, contributors, and affiliated individuals or entities, hereby explicitly disclaim any association with, support for, or endorsement of any form of illegal behavior. This disclaimer extends to any use or application of the Lagrange.Core project that may be contrary to local, national, or international laws, regulations, or ethical guidelines.
Lagrange.Core is an open-source software project designed to facilitate lawful and ethical applications in its intended use cases. It is the responsibility of each user to ensure that their usage of Lagrange.Core complies with all applicable laws and regulations in their jurisdiction.
The developers and contributors of Lagrange.Core assume no liability whatsoever for any actions taken by users that violate the law or engage in any form of illicit activity. Users are solely responsible for their own actions and any consequences that may arise from the use of Lagrange.Core.
Furthermore, any discussions, suggestions, or guidance provided by the Lagrange.Core community, including its developers, contributors, and users, should not be interpreted as legal advice. It is strongly recommended that users seek independent legal counsel to understand the legal implications of their actions and ensure compliance with the relevant laws and regulations.
By using or accessing Lagrange.Core, the user acknowledges and agrees to release the developers, contributors, and affiliated individuals or entities from any and all liability arising from the use or misuse of the project, including any legal consequences incurred as a result of their actions.
Please use Lagrange.Core responsibly and in accordance with the law.
Protocol | Support | Login | Support | Messages | Support | Operations | Support | Events | Support |
---|---|---|---|---|---|---|---|---|---|
Windows | π’ | QrCode | π’ | Images | π’ | π΄ | Captcha | π’ | |
macOS | π’ | Password | π’ | Text / At | π’ | Recall | π‘ | BotOnline | π’ |
Linux | π’ | EasyLogin | π’ | Records | π‘ | Leave Group | π’ | BotOffline | π’ |
UnusalDevice Password |
π΄ | QFace | π’ | π΄ | Message | π’ | |||
UnusalDevice Easy |
π’ | Json | π‘ | Kick Member | π’ | π΄ | |||
NewDeviceVerify | π΄ | Xml | π’ | Mute Member | π’ | MessageRecall | π΄ | ||
Forward | π’ | Set Admin | π’ | GroupMemberDecrease | π’ | ||||
Video | π‘ | Friend Request | π΄ | GroupMemberIncrease | π’ | ||||
Reply. | π’ | Group Request | π’ | GroupPromoteAdmin | π’ | ||||
File | π‘ | π΄ | GroupInvite | π’ | |||||
Poke | π’ | Client Key | π’ | GroupRequestJoin | π΄ | ||||
Cookies | π’ | FriendRequest | π’ | ||||||
Send Message | π’ | π΄ | |||||||
π΄ |
Message Segement
Message Segement | Support |
---|---|
Text | π’ |
Face | π’ |
Image | π’ |
Record | π‘ |
Video | π‘ |
At | π’ |
Rps | π΄ |
Dice | π΄ |
Shake | π΄ |
Poke | π’ |
Anonymous | π΄ |
Share | π΄ |
Contact | π΄ |
Location | π΄ |
Music | π΄ |
Reply | π΄ |
Forward | π’ |
Node | π’ |
Xml | π΄ |
Json | π΄ |
API
API | Support |
---|---|
/send_private_msg | π’ |
/send_group_msg | π’ |
/send_msg | π’ |
/delete_msg | π‘ |
/get_msg | π’ |
/get_forward_msg | π’ |
π’ | |
/set_group_kick | π’ |
/set_group_ban | π’ |
/set_group_anonymous_ban | π΄ |
/set_group_whole_ban | π’ |
/set_group_admin | π’ |
/set_group_anonymous | π΄ |
/set_group_card | π’ |
/set_group_name | π’ |
/set_group_leave | π’ |
/set_group_special_title | π΄ |
/set_friend_add_request | π΄ |
/set_group_add_request | π΄ |
/get_login_info | π’ |
/get_stranger_info | π΄ |
/get_friend_list | π’ |
/get_group_info | π’ |
/get_group_list | π’ |
/get_group_member_info | π’ |
/get_group_member_list | π’ |
/get_group_honor_info | π΄ |
/get_cookies | π’ |
/get_csrf_token | π΄ |
/get_credentials | π΄ |
/get_record | π΄ |
/get_image | π΄ |
/can_send_image | π’ |
/can_send_record | π’ |
/get_status | π΄ |
/get_version_info | π’ |
/set_restart | π’ |
/clean_cache | π΄ |
Event
PostType | EventName | Support |
---|---|---|
Message | Private Message | π΄ |
Message | Group Message | π’ |
Notice | Group File Upload | π΄ |
Notice | Group Admin Change | π’ |
Notice | Group Member Decrease | π’ |
Notice | Group Member Increase | π’ |
Notice | Group Mute | π’ |
Notice | Friend Add | π΄ |
Notice | Group Recall Message | π΄ |
Notice | Friend Recall Message | π΄ |
Notice | Group Poke | π΄ |
Notice | Group red envelope luck king | π΄ |
Notice | Group Member Honor Changed | π΄ |
Request | Add Friend Request | π’ |
Request | Group Request/Invitations | π΄ |
Meta | LifeCycle | π’ |
Meta | Heartbeat | π’ |
Communication
CommunicationType | Support |
---|---|
Http | π΄ |
Http-Post | π΄ |
ForwardWebSocket | π’ |
ReverseWebSocket | π’ |
{
"Logging": {
"LogLevel": {
"Default": "Trace",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"SignServerUrl": "",
"Account": {
"Uin": 0,
"Password": "",
"Protocol": "Linux",
"AutoReconnect": true,
"GetOptimumServer": true
},
"Message": {
"IgnoreSelf": true
},
"Implementation": {
"ForwardWebSocket": {
"Host": "127.0.0.1",
"Port": 8081,
"HeartBeatInterval": 5000,
"AccessToken": ""
},
"ReverseWebSocket": {
"Host": "127.0.0.1",
"Port": 8080,
"Suffix": "/onebot/v11/ws",
"ReconnectInterval": 5000,
"HeartBeatInterval": 5000,
"AccessToken": ""
},
"Http": {
"Host": "",
"Port": 0,
"EventEnabled": false
},
"HttpPost": {
"Host": "127.0.0.1",
"Port": 8080,
"Suffix": "/onebot/v11/http",
"Timeout": 0
}
}
}
- Create a file named 'appsettings.json' under Lagrange.OneBot executable directory
- As the Password is empty here, this indicates that QRCode login is used
- After the QRCode Login, write Uin back to perform EasyLogin
- If you want a multi connection, remove the 'Implementation' Part and add
{ "Implementations": [
{
"Type": "ReverseWebSocket",
"Host": "127.0.0.1",
"Port": 8080,
"Suffix": "/onebot/v11/ws",
"ReconnectInterval": 5000,
"HeartBeatInterval": 5000,
"AccessToken": ""
},
{
"Type": "ReverseWebSocket",
"Host": "127.0.0.1",
"Port": 8081,
"HeartBeatInterval": 5000,
"AccessToken": ""
}
]
}
- [ ] 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.
Thanks KonataDev/TheSnowfield for Provision of Signature API
Signature API is now not provided, you may need to find it somewhere and inherit SignProvider
class for CustomSignProvider
in BotConfig
- Signature of Windows and macOS is missing, you need to figure out by your self