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
  • Field Details

    • url

      public String url
      Webhook URL, may be empty if webhook is not set up
    • ip_address

      public String ip_address
      Optional. Currently used webhook IP address
    • last_error_message

      public String last_error_message
      Optional. Error message in human-readable format for the most recent error that happened when trying to deliver an update via webhook
    • pending_update_count

      public Integer pending_update_count
      Number of updates awaiting delivery
    • last_synchronization_error_date

      public Integer last_synchronization_error_date
      Optional. Unix time of the most recent error that happened when trying to synchronize available updates with Telegram datacenters
    • max_connections

      public Integer max_connections
      Optional. The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery
    • has_custom_certificate

      public Boolean has_custom_certificate
      True, if a custom certificate was provided for webhook certificate checks
    • allowed_updates

      public List<Updates> allowed_updates
      Optional. A list of update types the bot is subscribed to. Defaults to all update types except chat_member
  • Constructor Details

    • WebhookInfo

      public WebhookInfo()