class HelpCommand extends Command (View source)

Class HelpCommand

Methods

string
getName()

Get Command Name.

from  Command
setName($name)

Set Command Name.

from  Command
string
getDescription()

Get Command Description.

from  Command
setDescription($description)

Set Command Description.

from  Command
Api
getTelegram()

Returns Telegram Instance.

from  Command
getUpdate()

Returns Original Update.

from  Command
string
getArguments()

Get Arguments passed to the command.

from  Command
getCommandBus()

Returns an instance of Command Bus.

from  Command
mixed
make($telegram, $arguments, $update)

No description

from  Command
mixed
handle($arguments)

No description

mixed|string
__call($method, $arguments)

Magic Method to handle all ReplyWith Methods.

from  Command
mixed
replyWithMessage($use_sendMessage_parameters)

Reply Chat with a message. You can use all the sendMessage() parameters except chat_id.

from  Command
mixed
replyWithPhoto($use_sendPhoto_parameters)

Reply Chat with a Photo. You can use all the sendPhoto() parameters except chat_id.

from  Command
mixed
replyWithAudio($use_sendAudio_parameters)

Reply Chat with an Audio message. You can use all the sendAudio() parameters except chat_id.

from  Command
mixed
replyWithVideo($use_sendVideo_parameters)

Reply Chat with a Video. You can use all the sendVideo() parameters except chat_id.

from  Command
mixed
replyWithVoice($use_sendVoice_parameters)

Reply Chat with a Voice message. You can use all the sendVoice() parameters except chat_id.

from  Command
mixed
replyWithDocument($use_sendDocument_parameters)

Reply Chat with a Document. You can use all the sendDocument() parameters except chat_id.

from  Command
mixed
replyWithSticker($use_sendSticker_parameters)

Reply Chat with a Sticker. You can use all the sendSticker() parameters except chat_id.

from  Command
mixed
replyWithLocation($use_sendLocation_parameters)

Reply Chat with a Location. You can use all the sendLocation() parameters except chat_id.

from  Command
mixed
replyWithChatAction($use_sendChatAction_parameters)

Reply Chat with a Chat Action. You can use all the sendChatAction() parameters except chat_id.

from  Command

Details

in Command at line 58
string getName()

Get Command Name.

Return Value

string

in Command at line 70
Command setName($name)

Set Command Name.

Parameters

$name

Return Value

Command

in Command at line 82
string getDescription()

Get Command Description.

Return Value

string

in Command at line 94
Command setDescription($description)

Set Command Description.

Parameters

$description

Return Value

Command

in Command at line 106
Api getTelegram()

Returns Telegram Instance.

Return Value

Api

in Command at line 116
Update getUpdate()

Returns Original Update.

Return Value

Update

in Command at line 126
string getArguments()

Get Arguments passed to the command.

Return Value

string

in Command at line 136
CommandBus getCommandBus()

Returns an instance of Command Bus.

Return Value

CommandBus

in Command at line 144
mixed make($telegram, $arguments, $update)

Parameters

$telegram
$arguments
$update

Return Value

mixed

at line 25
mixed handle($arguments)

Parameters

$arguments

Return Value

mixed

in Command at line 179
mixed|string __call($method, $arguments)

Magic Method to handle all ReplyWith Methods.

Parameters

$method
$arguments

Return Value

mixed|string

in Command at line 23
mixed replyWithMessage($use_sendMessage_parameters)

Reply Chat with a message. You can use all the sendMessage() parameters except chat_id.

Parameters

$use_sendMessage_parameters

Return Value

mixed

in Command at line 23
mixed replyWithPhoto($use_sendPhoto_parameters)

Reply Chat with a Photo. You can use all the sendPhoto() parameters except chat_id.

Parameters

$use_sendPhoto_parameters

Return Value

mixed

in Command at line 23
mixed replyWithAudio($use_sendAudio_parameters)

Reply Chat with an Audio message. You can use all the sendAudio() parameters except chat_id.

Parameters

$use_sendAudio_parameters

Return Value

mixed

in Command at line 23
mixed replyWithVideo($use_sendVideo_parameters)

Reply Chat with a Video. You can use all the sendVideo() parameters except chat_id.

Parameters

$use_sendVideo_parameters

Return Value

mixed

in Command at line 23
mixed replyWithVoice($use_sendVoice_parameters)

Reply Chat with a Voice message. You can use all the sendVoice() parameters except chat_id.

Parameters

$use_sendVoice_parameters

Return Value

mixed

in Command at line 23
mixed replyWithDocument($use_sendDocument_parameters)

Reply Chat with a Document. You can use all the sendDocument() parameters except chat_id.

Parameters

$use_sendDocument_parameters

Return Value

mixed

in Command at line 23
mixed replyWithSticker($use_sendSticker_parameters)

Reply Chat with a Sticker. You can use all the sendSticker() parameters except chat_id.

Parameters

$use_sendSticker_parameters

Return Value

mixed

in Command at line 23
mixed replyWithLocation($use_sendLocation_parameters)

Reply Chat with a Location. You can use all the sendLocation() parameters except chat_id.

Parameters

$use_sendLocation_parameters

Return Value

mixed

in Command at line 23
mixed replyWithChatAction($use_sendChatAction_parameters)

Reply Chat with a Chat Action. You can use all the sendChatAction() parameters except chat_id.

Parameters

$use_sendChatAction_parameters

Return Value

mixed