__construct() public méthode

Instantiates a new Telegram super-class object.
public __construct ( string $token = null, boolean $async = false, Telegram\Bot\HttpClients\HttpClientInterface $httpClientHandler = null )
$token string The Telegram Bot API Access Token.
$async boolean (Optional) Indicates if the request to Telegram will be asynchronous (non-blocking).
$httpClientHandler Telegram\Bot\HttpClients\HttpClientInterface (Optional) Custom HTTP Client Handler.
 /**
  * Client constructor.
  */
 public function __construct($token)
 {
     parent::__construct($token);
     $container = new Container();
     self::setContainer($container);
     $this->addCommand(StartCommand::class);
     $this->addCommand(RouteCommand::class);
     $this->addCommand(StopCommand::class);
     $this->addCommand(GetCommand::class);
     $this->addCommand(EnableUpdatesCommand::class);
     $this->addCommand(StopUpdatesCommand::class);
     $this->addCommand(ResetCommand::class);
     $this->addCommand(SaveFavCommand::class);
     $this->addCommand(LoadFavCommand::class);
     $this->addCommand(FavsCommand::class);
     $this->addCommand(DelFavCommand::class);
     $this->addCommand(GetLinkCommand::class);
     $this->addCommand(RoutesCommand::class);
     $this->addCommand(CreditsCommand::class);
 }