Skip to content

Client for HTTP-based interface created for developers keen on building bots for Telegram

License

Notifications You must be signed in to change notification settings

xakpc/TelegramBot.Client

Repository files navigation

#TelegramBot Client C# client library to consume Telegram Bots api https://core.telegram.org/bots/api

##Usage Install via NuGet https://www.nuget.org/packages/Xakpc.TelegramBot.Client/

PM> Install-Package Xakpc.TelegramBot.Client

Most of usage can be peeked in tests. To make tests work set your bot token in BotApiTests.cs

protected static ITelegramBotApiClient ConstructClient()
{
  return new TelegramBotApiClient("bot-token");
}

Usage of API is pretty straightforward

{
  var apiClient = new TelegramBotApiClient("bot-token");
  var meUser = await apiClient.GetMeAsync();
}

##Remarks This client is one-to-one wrapper around Telegram bot API. It does not provide functional to control update's offset or recieve webhooked updates.

##License GPLv3

About

Client for HTTP-based interface created for developers keen on building bots for Telegram

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages