getCommandConfig() 공개 메소드

Get command config
public getCommandConfig ( string $command ) : array
$command string
리턴 array
예제 #1
0
 public function __construct(Telegram $telegram)
 {
     $this->telegram = $telegram;
     $this->config = $telegram->getCommandConfig($this->name);
 }
예제 #2
0
 /**
  * Constructor
  *
  * @param \Longman\TelegramBot\Telegram        $telegram
  * @param \Longman\TelegramBot\Entities\Update $update
  */
 public function __construct(Telegram $telegram, Update $update = null)
 {
     $this->telegram = $telegram;
     $this->setUpdate($update);
     $this->config = $telegram->getCommandConfig($this->name);
 }