PHP Интерфейс Telegram\Bot\Commands\CommandInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

getAliases() публичный Метод

Helpful when you want to trigger command with more than one name.
public getAliases ( ) : array
Результат array

getDescription() публичный Метод

The Telegram command description.
public getDescription ( ) : string
Результат string

getName() публичный Метод

The name of the Telegram command. Ex: help - Whenever the user sends /help, this would be resolved.
public getName ( ) : string
Результат string

make() публичный Метод

Process Inbound Command.
public make ( Api $telegram, string $arguments, Update $update ) : mixed
$telegram Telegram\Bot\Api
$arguments string
$update Telegram\Bot\Objects\Update
Результат mixed