public function add(Closure $event, $checker = null)
    {
        $this->events[] = !is_null($checker) ? new Event($event, $checker)
            : new Event($event, function () {
            });

        return $this;
    }
public function add(Closure $event, $checker = null)
    {
        $this->events[] = !is_null($checker) ? new Event($event, $checker)
            : new Event($event, function () {
            });

        return $this;
    }
public function add ( Closure $ event , $ checker = null ) { $ this -> events [ ] = ! is_null ( $ checker ) ? new Event ( $ event , $ checker ) : new Event ( $ event , function ( ) { } ) ; return $ this ; }
Add new event to collection

@param Closure $event
@param Closure|null $checker

@return \TelegramBot\Api\Events\EventCollection
Add new event to collection