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.
Recommend OpenShamrock if applicable
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 | ๐ด | ||||
LightApp | ๐ข | 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 | ๐ข |
/send_like | ๐ข |
/set_group_kick | ๐ข |
/set_group_ban | ๐ข |
๐ด | |
/set_group_whole_ban | ๐ข |
/set_group_admin | ๐ข |
/set_group_anonymous | ๐ด |
/set_group_card | ๐ข |
/set_group_name | ๐ข |
/set_group_leave | ๐ข |
๐ด | |
/set_friend_add_request | ๐ด |
/set_group_add_request | ๐ด |
/get_login_info | ๐ข |
๐ด | |
/get_friend_list | ๐ข |
/get_group_info | ๐ข |
/get_group_list | ๐ข |
/get_group_member_info | ๐ข |
/get_group_member_list | ๐ข |
๐ด | |
/get_cookies | ๐ข |
๐ด | |
๐ด | |
/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": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"SignServerUrl": "",
"Account": {
"Uin": 0,
"Password": "",
"Protocol": "Linux",
"AutoReconnect": true,
"GetOptimumServer": true
},
"Message": {
"IgnoreSelf": true
},
"Implementations": [
{
"Type": "ReverseWebSocket",
"Host": "127.0.0.1",
"Port": 8080,
"Suffix": "/onebot/v11/ws",
"ReconnectInterval": 5000,
"HeartBeatInterval": 5000,
"AccessToken": ""
},
{
"Type": "ForwardWebSocket",
"Host": "127.0.0.1",
"Port": 8081,
"HeartBeatInterval": 5000,
"AccessToken": ""
}
]
}
- As the Password is empty here, this indicates that QRCode login is used
- After the QRCode Login, write Uin back to perform EasyLogin
- It is recommended that use QRCode Login for the first time as NewDeviceLogin is not implemented.
- Linux Protocol is recommended as only SignServer for such is provided
- After QRCode Login, write password and uin back to appsettings.json
[ ] 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 theSignature
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