TeleBot is a lightweight asynchronous wrapper for the Telegram API written in C# for the .NET platform. TeleBot has a focus on ease-of-use and attempts to abstract away the difficulties of communicating with a web service, allowing you to focus on building your applications.
Appveyor | Travis-CI | |
---|---|---|
Master | ||
Develop |
using TeleBot;
using TeleBot.API.Message
public static void Main()
{
InitializeBot().Wait();
}
public static async Task InitializeBot()
{
//Creates a new instance of a bot, with the provided
//Telegram Bot API Token.
var bot = new Bot("api_token");
//Send s getMe GET Request, to check if the bot is
//authenticating correctly.
var userbot = await bot.SendGetMeAsync(); //
await bot.SendMessageAsync(new TextMessage("chatid", "testtext"));
Console.ReadLine();
}
}
}
TODO Add to NuGet
Copyright © 2016 contributors to TeleBot. Code released under the MIT License.