Skip to content

fpetrov/BotNet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BotNet

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();
});

Features

  • .NET 5 support
  • Highly customizible
  • Easy to use
  • Supports Vk, Telegram and Discord out of the box

You can easily add bindings to social network you need.

Documentation

You can find the BotNet documentation at Wiki. (Soon)

License

BotNet is free software distributed under the terms of the MIT license.

About

A simple, modular and tiny bot framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages