Class WebhookFetcher.

package Default

 Methods

WebhookFetcher constructor.

__construct(\TgBotApi\BotApiBase\NormalizerInterface $normalizer) 

Parameters

$normalizer

\TgBotApi\BotApiBase\NormalizerInterface

fetch()

fetch(\Psr\Http\Message\RequestInterface|string $request) : \TgBotApi\BotApiBase\Type\UpdateType
inherited_from \TgBotApi\BotApiBase\WebhookFetcherInterface::fetch()

Parameters

$request

\Psr\Http\Message\RequestInterfacestring

Exceptions

\TgBotApi\BotApiBase\Exception\BadRequestException

Returns

\TgBotApi\BotApiBase\Type\UpdateType

getContents()

getContents($request) : string

Parameters

$request

Exceptions

\TgBotApi\BotApiBase\Exception\BadRequestException

Returns

string

 Properties

 

$normalizer

$normalizer : \TgBotApi\BotApiBase\NormalizerInterface

Default