A simple, modular and tiny bot framework for .NET platform.
var commands = new BotCommands<BotOptions, BotPayload>()
.SetCommand("/start", (bot, payload) => bot.SendMessage("Hello, I am a bot!", payload))
.SetCommand("/token", (bot, payload) => bot.SendMessage($"Current token: {bot.Options.Token}", payload))
.SetCommand("/document", (bot, payload) => bot.SendDocument("https://website.com/document.word", payload));
var bot = new TelegramBot(commands);
await bot
.Configure(options => {
options.Token = "Place your token here";
})
.Start();
});
You can easily add bindings to social network you need.
You can find the BotNet documentation at Wiki. (Soon)
BotNet is free software distributed under the terms of the MIT license.