WebhookInfo
class WebhookInfo
Describes the current status of a webhook.
Methods
No description
Webhook URL, may be empty if webhook is not set up.
True, if a custom certificate was provided for webhook certificate checks.
Number of updates awaiting delivery.
Optional. Currently used webhook IP address.
Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook.
Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook.
Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters.
Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery.
Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member.
Details
at line 21
__construct(string $url, bool $has_custom_certificate, int $pending_update_count, string|null $ip_address = null, int|null $last_error_date = null, string|null $last_error_message = null, int|null $last_synchronization_error_date = null, int|null $max_connections = null, string[]|null $allowed_updates = null)
No description
at line 37
string
getUrl()
Webhook URL, may be empty if webhook is not set up.
at line 45
bool
getHasCustomCertificate()
True, if a custom certificate was provided for webhook certificate checks.
at line 53
int
getPendingUpdateCount()
Number of updates awaiting delivery.
at line 61
string|null
getIpAddress()
Optional. Currently used webhook IP address.
at line 69
int|null
getLastErrorDate()
Optional. Unix time for the most recent error that happened when trying to deliver an update via webhook.
at line 77
string|null
getLastErrorMessage()
Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook.
at line 85
int|null
getLastSynchronizationErrorDate()
Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters.
at line 93
int|null
getMaxConnections()
Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery.
at line 103
array|null
getAllowedUpdates()
Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member.