PhpBotFramework  2.0.2
A framework for Telegram Bots' APIs.
Classes | Functions
Commands

Bots command and usage. More...

Classes

class  PhpBotFramework\Commands\AdminCommand
 
class  PhpBotFramework\Commands\CallbackCommand
 
class  PhpBotFramework\Commands\MessageCommand
 
class  PhpBotFramework\Commands\MessageRegexCommand
 
class  PhpBotFramework\Commands\MultiCharacterCommand
 

Functions

 PhpBotFramework\Commands\CommandHandler::initCommands ()
 
bool PhpBotFramework\Commands\CommandHandler::processCommands (array $update)
 
 PhpBotFramework\Commands\CommandHandler::addCommand (BasicCommand $command)
 Add a command to the bot. More...
 
static int PhpBotFramework\Commands\CommandHandler::sortingPrior ($a, $b)
 

Detailed Description

Bots command and usage.

Function Documentation

◆ addCommand()

PhpBotFramework\Commands\CommandHandler::addCommand ( BasicCommand  $command)

Add a command to the bot.

Parameters
BasicCommand$commandCommand to add. Must be an object that inherits BasicCommand class.