Spire - fast, easy-in-use, module-based Telegram Bot framework for .Net applications. It uses reflection for registering and invoking update handlers and commands.
Show framework structure
- Spire
- Core
- Hosting
Show framework packages descriptions
Library which contains all needed classes for building Telegram bot. Minimal implementation of Spire.Core and Spire.Core.Abstractions
Core library, contains base classes for building Telegram bot.
Abstractions for Spire.Core package.
Enables support for creating and handling commands.
Abstractions for Spire.Core.Commands package.
Enables support for customizable command arguments parsing.
Abstractions for Spire.Core.Commands package.
Adds markup builders (InlineKeyboardMarkupBuilder and ReplyKeyboardMarkupBuilder).
Abstractions for Spire.Core.Markups package.
Enables user sessions support.
Abstractions for Spire.Core.Sessions package.
Contains base classes for bot deployment as a console application.
Contains base classes for bot deployment in any workspace.
Check project's examples folder to see how it works. It shows basic framework functionality:
- Creating typed update handlers (E.g Message handlers, CallbackQuery handlers).
- Creating and handling typed commands with argument parsing.
- Interactivity with users (replacement for state-machine mechanism). E.g filling some form, etc.
Documentation is still in progress...