PHP Interface Telegram\Bot\Commands\CommandInterface

Afficher le fichier Open project: irazasyed/telegram-bot-sdk

Méthodes publiques

Méthode Description
getAliases ( ) : array Get Command Aliases
getDescription ( ) : string Get Command Description.
getName ( ) : string Get Command Name.
make ( Api $telegram, string $arguments, Update $update ) : mixed Process Inbound Command.

Method Details

getAliases() public méthode

Helpful when you want to trigger command with more than one name.
public getAliases ( ) : array
Résultat array

getDescription() public méthode

The Telegram command description.
public getDescription ( ) : string
Résultat string

getName() public méthode

The name of the Telegram command. Ex: help - Whenever the user sends /help, this would be resolved.
public getName ( ) : string
Résultat string

make() public méthode

Process Inbound Command.
public make ( Api $telegram, string $arguments, Update $update ) : mixed
$telegram Telegram\Bot\Api
$arguments string
$update Telegram\Bot\Objects\Update
Résultat mixed