Coder Social home page Coder Social logo

gugumur / lagrange.core Goto Github PK

View Code? Open in Web Editor NEW

This project forked from konatadev/lagrange.core

0.0 0.0 0.0 873 KB

An Implementation of NTQQ Protocol, with Pure C#, Derived from Konata.Core

License: GNU General Public License v3.0

C# 99.93% Dockerfile 0.07%

lagrange.core's Introduction

Lagrange.Core

Core OneBot C# C#

License Telegram

Linwenxuan05%2FLagrange.Core | Trendshift

An Implementation of NTQQ Protocol, with Pure C#, Derived from Konata.Core

Currently out of Updating

Disclaimer

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.

Features List

Protocol Support Login Support Messages Support Operations Support Events Support
Windows ๐ŸŸข QrCode ๐ŸŸข Images ๐ŸŸข Poke ๐Ÿ”ด Captcha ๐ŸŸข
macOS ๐ŸŸข Password ๐ŸŸข Text / At ๐ŸŸข Recall ๐ŸŸก BotOnline ๐ŸŸข
Linux ๐ŸŸข EasyLogin ๐ŸŸข Records ๐Ÿ”ด Leave Group ๐ŸŸข BotOffline ๐ŸŸข
UnusalDevice
Password
๐Ÿ”ด QFace ๐ŸŸข Special Title ๐Ÿ”ด Message ๐ŸŸข
UnusalDevice
Easy
๐ŸŸข Json ๐ŸŸก Kick Member ๐ŸŸข Poke ๐Ÿ”ด
NewDeviceVerify ๐Ÿ”ด Xml ๐ŸŸข Mute Member ๐ŸŸข MessageRecall ๐Ÿ”ด
Forward ๐ŸŸข Set Admin ๐ŸŸข GroupMemberDecrease ๐ŸŸข
Video ๐Ÿ”ด Friend Request ๐Ÿ”ด GroupMemberIncrease ๐ŸŸข
Flash Image ๐Ÿ”ด Group Request ๐ŸŸข GroupPromoteAdmin ๐ŸŸข
Reply ๐ŸŸข Voice Call ๐Ÿ”ด GroupInvite ๐ŸŸข
File ๐ŸŸก Client Key ๐ŸŸข GroupRequestJoin ๐Ÿ”ด
Cookies ๐ŸŸข FriendRequest ๐ŸŸข
Send Message ๐ŸŸข FriendTyping ๐Ÿ”ด
FriendVoiceCall ๐Ÿ”ด

Lagrange.OneBot

Implementation - OneBot v11

The Binary for development could be found in Actions Artifacts

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_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 ๐ŸŸข

appsettings.json Example

{
    "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": ""
      }
    ]
}
    

Known Problem

- [ ] 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

lagrange.core's People

Contributors

awbugl avatar cracktc avatar darkcwk avatar dreamail avatar endymx avatar eric2788 avatar executor-cheng avatar imaxct avatar linwenxuan05 avatar luooooob avatar muuushin avatar myot233 avatar neppure avatar nscrosu avatar photonspk avatar spadelushen avatar thesnowfield avatar yukari316 avatar zaitonn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.