Class WebhookInfo
java.lang.Object
io.github.natanimn.telebof.types.web.WebhookInfo
Describes the current status of a webhook.
- Since:
- 3 March 2025
- Author:
- Natanim
-
Field Summary
FieldsModifier and TypeFieldDescriptionOptional.private BooleanTrue, if a custom certificate was provided for webhook certificate checksprivate StringOptional.private StringOptional.private IntegerOptional.private IntegerOptional.private IntegerNumber of updates awaiting deliveryprivate StringWebhook URL, may be empty if webhook is not set up -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
url
Webhook URL, may be empty if webhook is not set up -
ipAddress
Optional. Currently used webhook IP address -
lastErrorMessage
Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook -
pendingUpdateCount
Number of updates awaiting delivery -
lastSynchronizationErrorDate
Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters -
maxConnections
Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery -
hasCustomCertificate
True, if a custom certificate was provided for webhook certificate checks -
allowedUpdates
Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member
-
-
Constructor Details
-
WebhookInfo
public WebhookInfo()
-
-
Method Details
-
getUrl
-
getIpAddress
-
getLastErrorMessage
-
getPendingUpdateCount
-
getLastSynchronizationErrorDate
-
getMaxConnections
-
getHasCustomCertificate
-
getAllowedUpdates
-