/telegram.bot

.NET Client for Telegram Bot API

Primary LanguageC#MIT LicenseMIT

.NET Client for Telegram Bot API

Telegram Chat

NuGet Build Test MyGet License
NuGet Release Build status Test Status MyGet license
NuGet Build status Test Status MyGet license

.NET client for Telegram Bot API. The Bot API is an HTTP-based interface created for developers keen on building bots for Telegram.

Join our super group on Telegram: @tgbots_dotnet

Our official product is Telegram.Bot NuGet package. However, due to some issues, Telegram.Bot.Core package is also maintained and gets the latest updates faster. You can target Telegram.Bot.Core NuGet package for now and hopefully, we would again work only on the Telegram.Bot package soon.

Getting Started

First, talk to BotFather on Telegram to get an API token. Place your token in method below and call the method.

static async Task TestApiAsync()
{
    var botClient = new Telegram.Bot.TelegramBotClient("your API access Token");
    var me = await botClient.GetMeAsync();
    System.Console.WriteLine("Hello! My name is " + me.FirstName);
}

Learning More

If you don't know how to use this project or what is available for a Telegram bot, check the Systems Integration tests which are running examples of API methods.

Before submitting issues please consult following resources:

Installation

Install as NuGet package:

Package manager:

Install-Package Telegram.Bot

.NET CLI:

dotnet add package Telegram.Bot

For testing you can use the MyGet feed with automated builds.

API Coverage

Missing / TODO (last check 23.07.2017):