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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionallowedUpdates(Updates[] allowed_updates) Optionalcertificate(File certificate) OptionaldropPendingUpdates(Boolean drop_pending_updates) OptionalOptionalmaxConnections(int max_connections) OptionalsecretToken(String secret_token) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequestexec
- 
Constructor Details- 
SetWebhook
 
- 
- 
Method Details- 
certificateOptional- Parameters:
- certificate- Upload your public key certificate so that the root certificate in use can be checked.
- Returns:
- SetWebhook
- See Also:
 
- 
ipAddressOptional- Parameters:
- ip_address- The fixed IP address which will be used to send webhook requests instead of the IP address resolved through DNS
- Returns:
- SetWebhook
 
- 
maxConnectionsOptional- Parameters:
- max_connections- 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
 
- 
allowedUpdatesOptional- Parameters:
- allowed_updates- A JSON-serialized list of the update types you want your bot to receive.
- Returns:
- SetWebhook
 
- 
dropPendingUpdatesOptional- Parameters:
- drop_pending_updates- Pass True to drop all pending updates
- Returns:
- SetWebhook
 
- 
secretTokenOptional- Parameters:
- secret_token- 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
 
 
-