Project targets .NET Standard 2.
SB.TelegramBot is available on [NuGet]. You can install the package using:
PM> Install-Package SB.TelegramBot
using SB.TelegramBot;public static void Main()
{
TelegramBotApplication.Run("teleram bot token here");
Console.WriteLine("Telegram bot started!");
Console.WriteLine("Press enter to close!");
Console.ReadLine();
}using SB.TelegramBot;
[TelegramBotCommandName("/hello")]
public class HelloCommand : TelegramBotPublicCommand
{
public override void Execute()
{
MessageService.SendMessage("Hello Telegram Bot");
}
}
