TelegramForbiddenException
extends TelegramApiException
in package
Table of Contents
Properties
- $detail : string
- $method : TelegramMethod
- $url : string|null
- Subclasses set this in their constructor before the message is rendered.
- $label : string
Methods
- __construct() : mixed
- __toString() : string
- Lazy URL augmentation — mirrors aiogram's `DetailedAiogramError.__str__`.
Properties
$detail read-only
public
string
$detail
$method read-only
public
TelegramMethod
$method
$url
Subclasses set this in their constructor before the message is rendered.
public
string|null
$url
= null
$label
protected
string
$label
= 'Telegram server says'
Methods
__construct()
public
__construct(TelegramMethod<string|int, mixed> $method, string $message) : mixed
Parameters
- $method : TelegramMethod<string|int, mixed>
- $message : string
__toString()
Lazy URL augmentation — mirrors aiogram's `DetailedAiogramError.__str__`.
public
__toString() : string
getMessage() keeps the raw detail; stringifying the exception appends
the documentation URL if the subclass set one.