PHP Class Longman\TelegramBot\Commands\UserCommands\CancelCommand

This command cancels the currently active conversation and returns a message to let the user know which conversation it was. If no conversation is active, the returned message says so.
Inheritance: extends Longman\TelegramBot\Commands\UserCommand
Datei anzeigen Open project: akalongman/php-telegram-bot

Protected Properties

Property Type Description
$description string
$name string
$need_mysql boolean
$usage string
$version string

Public Methods

Method Description
execute ( ) : ServerResponse Command execute method
executeNoDb ( ) : ServerResponse Execute no db

Private Methods

Method Description
removeKeyboard ( string $text ) : ServerResponse Remove the keyboard and output a text

Method Details

execute() public method

Command execute method
public execute ( ) : ServerResponse
return Longman\TelegramBot\Entities\ServerResponse

executeNoDb() public method

Execute no db
public executeNoDb ( ) : ServerResponse
return Longman\TelegramBot\Entities\ServerResponse

Property Details

$description protected_oe property

protected string $description
return string

$name protected_oe property

protected string $name
return string

$need_mysql protected_oe property

protected bool $need_mysql
return boolean

$usage protected_oe property

protected string $usage
return string

$version protected_oe property

protected string $version
return string