Skip to content

Dippere/Telegraph.Sharp

Repository files navigation

Telegraph.Sharp

package

Simple to use API client for Telegra.ph on .NET 10.

Quickstart

Sample code to create a new page:

using Telegraph.Sharp;
using Telegraph.Sharp.Types;

// Create client
ITelegraphClient telegraphClient = new TelegraphClient();

// Or with API access token for access to all methods
ITelegraphClient telegraphClient = new TelegraphClient("<ACCESS TOKEN>");

// Create Telegraph account
Account account = await telegraphClient.CreateAccountAsync("Short Name", "Author name", "Author URL");

// Create new page
var pageContent = new List<Node>
{
    Node.H3("Hello world!"),
    Node.P("Test page")
};

Page page = await telegraphClient.CreatePageAsync("Title", pageContent);

About

dotnet library to use for Telegra.ph API.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages