WebhookConfig.custom constructor

const WebhookConfig.custom({
  1. String? webhookUrl,
  2. String? secretToken,
  3. List<UpdateType>? allowedUpdates,
  4. bool dropPendingUpdates = false,
  5. int maxConcurrentUpdates = 20,
})

Creates a configuration for custom web server integration.

Use this when you want to integrate with your existing web server.

Implementation

const WebhookConfig.custom({
  this.webhookUrl,
  this.secretToken,
  super.allowedUpdates,
  super.dropPendingUpdates = false,
  super.maxConcurrentUpdates = 20,
}) : useBuiltInServer = false,
     port = null,
     bindAddress = null,
     webhookPath = '/webhook',
     healthCheckPath = null,
     corsEnabled = false,
     certificate = null,
     ipAddress = null,
     maxConnections = null,
     deleteWebhookOnStop = false;