Skip to content

Latest commit

 

History

History
275 lines (229 loc) · 11.1 KB

README.md

File metadata and controls

275 lines (229 loc) · 11.1 KB

Lagrange.Kritor

Get Started

  1. Download .NET 8.0 Runtime from dotnet.microsoft.com

  2. Download the latest Artifacts from Actions

  3. Place appsettings.json in your working directory.

  4. Modify and write the following to appsettings.json

  5. Launch

{
    "Logging": {
        "LogLevel": {
            // Log level, please modify to `Trace` when providing feedback on issues
            "Default": "Information"
        }
    },
    "Core": {
        "Protocol": {
            // Protocol platform, please modify according to the Signer version
            // Type: String ("Windows", "MacOs", "Linux")
            // Default: "Linux"
            "Platform": "Linux",
            "Signer": {
                // Signer server url
                // Type: String (HTTP URL, HTTPS URL)
                "Url": "",
                // Signer server proxy
                // Type: String (HTTP URL)
                "Proxy": ""
            }
        },
        "Server": {
            // Whether to automatically reconnect to the TX server
            // Type: bool
            // Default: false
            "AutoReconnect": true,
            // Whether to get optimum server
            // Type: bool
            // Default: false
            "GetOptimumServer": true
        }
    },
    "Kritor": {
        "Network": {
            // Address of the Kritor service binding
            // Type: String (ip)
            "Address": "0.0.0.0",
            // Port of the Kritor service binding
            // Type: Number ([1-65535])
            "Port": 9000
        },
        "Authentication": {
            // Whether to enable authentication
            // Type: bool
            "Enabled": false,
            // Ticket with maximum privileges
            // Type: String
            "SuperTicket": "",
            // Ticket list
            // Type: String[]
            "Tickets": []
        },
        "Message": {
            // Whether to ignore your own messages
            // Type: bool
            "IgnoreSelf": false
        }
    }
}

Grpc Features

Authentication

Method Method
🟢 GetAuthenticationState 🔴 AddTicket
🟢 GetTicket 🔴 DeleteTicket

Core

Method Method
🟢 GetVersion 🔴 DownloadFile
🟢 GetCurrentAccount 🔴 SwitchAccount

Event

Method Method
🟢 RegisterActiveListener 🔴 RegisterPassiveListener

File

Method Method
🟢 DeleteFolder 🔴 CreateFolder
🟢 UploadFile 🔴 RenameFolder
🟢 DeleteFile
🟢 GetFileSystemInfo
🟢 GetFileList

Friend

Method Method
🟢 GetFriendList 🔴 SetProfileCard
🟢 GetFriendProfileCard 🔴 IsBlackListUser
🟢 GetStrangerProfileCard 🔴 GetUidByUin
🟢 VoteUser 🔴 GetUinByUid
🔴 UploadPrivateFile

Group

Method Method
🟢 BanMember 🔴 GetProhibitedUserList
🟢 PokeMember 🔴 GetRemainCountAtAll
🟢 KickMember 🔴 GetNotJoinedGroupInfo
🟢 LeaveGroup 🔴 GetGroupHonor
🟢 ModifyMemberCard 🔴 UploadGroupFile
🟢 ModifyGroupName
🟢 ModifyGroupRemark
🟢 SetGroupAdmin
🟢 SetGroupUniqueTitle
🟢 SetGroupWholeBan
🟢 GetGroupInfo
🟢 GetGroupList
🟢 GetGroupMemberInfo
🟢 GetGroupMemberList

Guild

Method Method
🔴 GetBotInfo
🔴 GetChannelList
🔴 GetGuildMetaByGuest
🔴 GetGuildChannelList
🔴 GetGuildMemberList
🔴 GetGuildMember
🔴 SendChannelMessage
🔴 GetGuildFeedList
🔴 GetGuildRoleList
🔴 DeleteGuildRole
🔴 SetGuildMemberRole
🔴 UpdateGuildRole
🔴 CreateGuildRole

Message

Method Method
🟢 SendMessage 🔴 SetMessageReaded
🟢 SendMessageByResId 🔴 UploadForwardMessage
🟢 RecallMessage 🔴 GetEssenceMessageList
🟢 ReactMessageWithEmoji 🔴 SetEssenceMessage
🟢 GetMessage 🔴 DeleteEssenceMessage
🟢 GetMessageBySeq
🟢 GetHistoryMessage
🟢 GetHistoryMessageBySeq
🟢 DownloadForwardMessage

Process

Method Method
🔴 SetFriendApplyResult
🔴 SetGroupApplyResult
🔴 SetInvitedJoinGroupResult

Reverse

Method Method
🔴 ReverseStream

Web

Method Method
🟢 GetCookies 🔴 GetCredentials
🔴 GetCSRFToken
🔴 GetHttpCookies

Event Features

Core

Event Event

Message

Event Event
🟢 Message

Notice

Event Event
🟢 PRIVATE_POKE 🔴 PRIVATE_FILE_UPLOADED
🟢 PRIVATE_RECALL 🔴 GROUP_FILE_UPLOADED
🟢 GROUP_POKE 🔴 GROUP_CARD_CHANGED
🟢 GROUP_RECALL 🔴 GROUP_MEMBER_UNIQUE_TITLE_CHANGED
🟢 GROUP_ESSENCE_CHANGED 🔴 GROUP_SIGN_IN
🟢 GROUP_MEMBER_INCREASE 🔴 GROUP_TRANSFER
🟢 GROUP_MEMBER_DECREASE 🔴 FRIEND_INCREASE
🟢 GROUP_ADMIN_CHANGED 🔴 FRIEND_DECREASE
🟢 GROUP_MEMBER_BAN
🟢 GROUP_WHOLE_BAN
🟢 GROUP_REACT_MESSAGE_WITH_EMOJI

Request

Event Event
🟢 FRIEND_APPLY
🟢 GROUP_APPLY
🟢 INVITED_GROUP

Element Features

Received

Element Element
🟢 TEXT 🔴 BUBBLE_FACE
🟢 AT 🔴 BASKETBALL
🟢 FACE 🔴 DICE
🟢 REPLY 🔴 RPS
🟢 IMAGE 🔴 MUSIC
🟢 VOICE 🔴 WEATHER
🟢 VIDEO 🔴 LOCATION
🟢 POKE 🔴 SHARE
🟢 FORWARD 🔴 GIFT
🟢 JSON 🔴 MARKET_FACE
🟢 XML 🔴 CONTACT
🔴 FILE
🔴 MARKDOWN
🔴 KEYBOARD

Send

Element Element
🟢 TEXT 🔴 BUBBLE_FACE
🟢 AT 🔴 BASKETBALL
🟢 FACE 🔴 DICE
🟢 REPLY 🔴 RPS
🟢 IMAGE 🔴 MUSIC
🟢 VOICE 🔴 WEATHER
🟢 VIDEO 🔴 LOCATION
🟢 POKE 🔴 SHARE
🟢 FORWARD 🔴 GIFT
🟢 JSON 🔴 MARKET_FACE
🟢 XML 🔴 CONTACT
🟢 MARKDOWN 🔴 FILE
🟢 KEYBOARD

File Data Features

Type Type
🟢 file 🔴 file_name
🟢 file_path
🟢 file_url