PHP 인터페이스 Telegram\Bot\Commands\CommandInterface

파일 보기 프로젝트 열기: irazasyed/telegram-bot-sdk

공개 메소드들

메소드 설명
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