TelegramResponseException
class TelegramResponseException extends TelegramSDKException (View source)
Class TelegramResponseException.
Methods
Creates a TelegramResponseException.
A factory for creating the appropriate exception based on the response from Telegram.
Returns the HTTP status code.
Returns the error type.
Returns the raw response used to create the exception.
Returns the decoded response used to create the exception.
Returns the response entity used to create the exception.
Details
at line 28
__construct(
TelegramResponse $response,
TelegramSDKException $previousException = null)
Creates a TelegramResponseException.
at line 46
static
TelegramResponseException
create(
TelegramResponse $response)
A factory for creating the appropriate exception based on the response from Telegram.
at line 83
int
getHttpStatusCode()
Returns the HTTP status code.
at line 93
string
getErrorType()
Returns the error type.
at line 103
string
getRawResponse()
Returns the raw response used to create the exception.
at line 113
array
getResponseData()
Returns the decoded response used to create the exception.
at line 123
TelegramResponse
getResponse()
Returns the response entity used to create the exception.