Command processors

Command processor is a basic unit, intended for processing a command and it's arguments with user-defined business logic.

Usage

In order to define your command processor, you need to use

as a base class, where TCommand is a particular type of command.

So, as you can see every type of CommandProcessor is strictly linked with a particular type of Command.

Command name

Your command class name should consist of 2 parts: CommandName Command

For example: if you need to process a command

your class name deliberatively should be TestCommand !

Example

(see https://github.com/devgopher/botticelli/blob/develop/TelegramAiSample/AiCommandProcessor.cs)

Table of Contents