Ejemplo n.º 1
0
 /**
  * Use this method to add an event.
  * If second closure will return true (or if you are passed null instead of closure), first one will be executed.
  *
  * @param \Closure $event
  * @param \Closure|null $checker
  *
  * @return \TelegramBot\Api\Client
  */
 public function on(Closure $event, Closure $checker = null)
 {
     $this->events->add($event, $checker);
     return $this;
 }