Package | Branch | Build | Test |
---|---|---|---|
NuGet | master |
||
MyGet | develop |
.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 but if you need the latest features, use MyGet feed (auto deployed fromdevelop
branch) until we update the NuGet package.
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);
}
If you don't know how to use this project or what is available for a Telegram bot, check the self-documented Systems Integration tests which are runnable examples of API methods.
Before submitting issues please consult following resources:
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.
- Inline Mode
- Bot API 3.3
- Payments (Needs some testing)
- Games
Missing / TODO (last check 23.07.2017):