Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

License

NotificationsYou must be signed in to change notification settings

SpamWatch/spamwatch-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Install from Nuget

NugetNuget

$ dotnet add package SpamWatch --version 1.1.2

Build from source

$ git clone https://github.com/SpamWatch$ cd SpamWatch/src/SpamWatch$ dotnet restore$ dotnet build

Basic Usage

varclient=newClient(_token,baseUrl:"https://sapi.spamwat.ch/");// Get your token detailsvarself=client.GetSelf();// You can also use any method asyncself=awaitclient.GetSelfAsync();Console.WriteLine($"Current token permission:{self.UserId}");// You can also get any type as JSON stringsConsole.WriteLine(self.SerializeObject());// Get a Token using the token idvartoken=client.GetToken(self.Id);// Get all created TokensvarlistTokens=client.GetTokens();// Create a tokenvarnewToken=newToken(){UserId=638997860,Permission=Permissions.User};token=client.CreateToken(newToken);// Delete a specific Tokenclient.DeleteToken(token.Id);// Orclient.DeleteToken(token);// Get a specific banvarban=client.GetBan(638997860);// Get a list with all the bansvarallBans=client.GetBans();// Get a list with all banned idsvarallIdsBanned=client.GetBansMin();// Add a banvarnewBan=newBan(){UserId=638997860,Reason="Ban Reason",Message="Telegram Message that got the user banned"};client.AddBan(newBan);// Delete a banclient.DeleteBan(638997860);// orclient.DeleteBan(newBan);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp