Class ApiClient.
package | Default |
---|
__construct(\Psr\Http\Message\RequestFactoryInterface $requestFactory, \Psr\Http\Message\StreamFactoryInterface $streamFactory, \Psr\Http\Client\ClientInterface $client)
send(\TgBotApi\BotApiBase\string $method, \TgBotApi\BotApiBase\BotApiRequestInterface $apiRequest) : mixed
inherited_from | \TgBotApi\BotApiBase\ApiClientInterface::send() |
---|
\Psr\Http\Client\ClientExceptionInterface |
---|
mixed
setBotKey(\TgBotApi\BotApiBase\string $botKey)
inherited_from | \TgBotApi\BotApiBase\ApiClientInterface::setBotKey() |
---|
setEndpoint(\TgBotApi\BotApiBase\string $endPoint)
inherited_from | \TgBotApi\BotApiBase\ApiClientInterface::setEndpoint() |
---|
createDataStream($boundary, $name, $value)
createFileStream($boundary, $name, \TgBotApi\BotApiBase\Type\InputFileType $file)
createStreamBody(mixed $boundary, \TgBotApi\BotApiBase\BotApiRequestInterface $request)
mixed
generateUri(\TgBotApi\BotApiBase\string $method)
$botKey : string
$client : \Psr\Http\Client\ClientInterface
$endPoint : string
$requestFactory : \Psr\Http\Message\RequestFactoryInterface
$streamFactory : \Psr\Http\Message\StreamFactoryInterface