Skip to content

HemenRohani/telegram.bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Bot Api Library

C# library to talk to Telegrams Bot API (https://core.telegram.org/bots/api)

Usage

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);
}

see telegram.bot.examples

Installation

Install as NuGet package:

Install-Package Telegram.Bot

API Coverage

There are functions for all available API methods. (2016-01-05) incl. Inline mode

Missing: Making requests when getting updates

About

Telegram Bot Api C# Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%