C# library to talk to Telegrams Bot API (https://core.telegram.org/bots/api)
static async void testApiAsync()
{
var Bot = new Telegram.Bot.Api("your API access Token");
var me = await Bot.GetMe();
System.Console.WriteLine("Hello my name is " + me.FirstName);
}
static void testApi()
{
var Bot = new Telegram.Bot.Api("your API access Token");
var me = Bot.GetMe().Result;
System.Console.WriteLine("Hello my name is " + me.FirstName);
}
Install as NuGet package:
Install-Package Telegram.Bot
There are functions for all available API methods. (2015-12-14) Missing: Making requests when getting updates