protected function sendRequestToTelegram(TelegramMethods $method, array $formData): PromiseInterface
    {
        $this->logger->debug('About to perform async HTTP call to Telegram\'s API');
        return $this->requestHandler->post($this->composeApiMethodUrl($method), $formData);
    }
protected function sendRequestToTelegram(TelegramMethods $method, array $formData): PromiseInterface
    {
        $this->logger->debug('About to perform async HTTP call to Telegram\'s API');
        return $this->requestHandler->post($this->composeApiMethodUrl($method), $formData);
    }
protected function sendRequestToTelegram ( TelegramMethods $ method , array $ formData ) : PromiseInterface { $ this -> logger -> debug ( 'About to perform async HTTP call to Telegram\'s API' ) ; return $ this -> requestHandler -> post ( $ this -> composeApiMethodUrl ( $ method ) , $ formData ) ; }
This is the method that actually makes the call, which can be easily overwritten so that our unit tests can work

@param TelegramMethods $method
@param array $formData

@return PromiseInterface
This is the method that actually makes the call which can be easily overwritten so that our unit tests can work