Class SetWebhook
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<SetWebhook,Boolean>
io.github.natanimn.telebof.requests.set.SetWebhook
SetWebhook class. Returns True on success.
- Since:
- 3 March 2025
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallowedUpdates(Updates[] allowedUpdates) Optionalcertificate(File certificate) OptionaldropPendingUpdates(Boolean dropPendingUpdates) OptionalOptionalmaxConnections(int maxConnections) OptionalsecretToken(String secretToken) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
SetWebhook
Required- Parameters:
url- urlapi- api
-
-
Method Details
-
certificate
Optional- Parameters:
certificate- Upload your public key certificate so that the root certificate in use can be checked.- Returns:
SetWebhook- See Also:
-
ipAddress
Optional- Parameters:
ipAddress- The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS- Returns:
SetWebhook
-
maxConnections
Optional- Parameters:
maxConnections- The maximum allowed number of simultaneous HTTPS connections to the webhook for update delivery, 1-100. Defaults to 40. Use lower values to limit the load on your bot's server, and higher values to increase your bot's throughput.- Returns:
SetWebhook
-
allowedUpdates
Optional- Parameters:
allowedUpdates- A JSON-serialized list of the update types you want your bot to receive.- Returns:
SetWebhook
-
dropPendingUpdates
Optional- Parameters:
dropPendingUpdates- Pass True to drop all pending updates- Returns:
SetWebhook
-
secretToken
Optional- Parameters:
secretToken- A secret token to be sent in a header “X-Telegram-Bot-Api-Secret-Token” in every webhook request, 1-256 characters. Only characters A-Z, a-z, 0-9, _ and - are allowed. The header is useful to ensure that the request comes from a webhook set by you.- Returns:
SetWebhook
-