TelegramClient
class TelegramClient (View source)
Class TelegramClient
Constants
BASE_BOT_URL |
|
DEFAULT_REQUEST_TIMEOUT |
|
DEFAULT_FILE_UPLOAD_REQUEST_TIMEOUT |
|
DEFAULT_VIDEO_UPLOAD_REQUEST_TIMEOUT |
|
Methods
__construct(
HttpClientInterface $httpClientHandler = null)
Instantiates a new TelegramClient object.
setHttpClientHandler(
HttpClientInterface $httpClientHandler)
Sets the HTTP client handler.
getHttpClientHandler()
Returns the HTTP client handler.
string
getBaseBotUrl()
Returns the base Bot URL.
array
prepareRequest(
TelegramRequest $request)
Prepares the API request for sending to the client handler.
sendRequest(
TelegramRequest $request)
Send an API request and process the result.
Details
at line 43
__construct(
HttpClientInterface $httpClientHandler = null)
Instantiates a new TelegramClient object.
at line 53
setHttpClientHandler(
HttpClientInterface $httpClientHandler)
Sets the HTTP client handler.
at line 63
HttpClientInterface
getHttpClientHandler()
Returns the HTTP client handler.
at line 73
string
getBaseBotUrl()
Returns the base Bot URL.
at line 85
array
prepareRequest(
TelegramRequest $request)
Prepares the API request for sending to the client handler.
at line 107
TelegramResponse
sendRequest(
TelegramRequest $request)
Send an API request and process the result.