Class WebhookInfo

java.lang.Object
io.github.natanimn.telebof.types.web.WebhookInfo

public class WebhookInfo extends Object
Describes the current status of a webhook.
Since:
3 March 2025
Author:
Natanim
  • Field Details

    • url

      private String url
      Webhook URL, may be empty if webhook is not set up
    • ipAddress

      @SerializedName("ip_address") private String ipAddress
      Optional. Currently used webhook IP address
    • lastErrorMessage

      @SerializedName("last_error_message") private String lastErrorMessage
      Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
    • pendingUpdateCount

      @SerializedName("pending_update_count") private Integer pendingUpdateCount
      Number of updates awaiting delivery
    • lastSynchronizationErrorDate

      @SerializedName("last_synchronization_error_date") private Integer lastSynchronizationErrorDate
      Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters
    • maxConnections

      @SerializedName("max_connections") private Integer maxConnections
      Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
    • hasCustomCertificate

      @SerializedName("has_custom_certificate") private Boolean hasCustomCertificate
      True, if a custom certificate was provided for webhook certificate checks
    • allowedUpdates

      @SerializedName("allowed_updates") private List<Updates> 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

      public String getUrl()
    • getIpAddress

      public String getIpAddress()
    • getLastErrorMessage

      public String getLastErrorMessage()
    • getPendingUpdateCount

      public Integer getPendingUpdateCount()
    • getLastSynchronizationErrorDate

      public Integer getLastSynchronizationErrorDate()
    • getMaxConnections

      public Integer getMaxConnections()
    • getHasCustomCertificate

      public Boolean getHasCustomCertificate()
    • getAllowedUpdates

      public List<Updates> getAllowedUpdates()