Class SetWebhook.Builder
java.lang.Object
org.teleight.teleightbots.api.methods.SetWebhook.Builder
- Enclosing class:
SetWebhook
-
Method Summary
Modifier and TypeMethodDescriptionallowedUpdates(@Nullable String[] allowedUpdates) build()certificate(@Nullable InputFile certificate) dropPendingUpdates(boolean dropPendingUpdates) maxConnections(@IntRange(from=1L,to=100L) int maxConnections) secretToken(@MatchesRegex("^[A-Za-z0-9_-]{1,256}$") @Nullable String secretToken) toString()
-
Method Details
-
url
- Returns:
this.
-
certificate
- Returns:
this.
-
ipAddress
- Returns:
this.
-
maxConnections
- Returns:
this.
-
allowedUpdates
- Returns:
this.
-
dropPendingUpdates
- Returns:
this.
-
secretToken
public SetWebhook.Builder secretToken(@Nullable @MatchesRegex("^[A-Za-z0-9_-]{1,256}$") @Nullable String secretToken) - Returns:
this.
-
build
-
toString
-