Class TelegramControllerConfiguration
java.lang.Object
io.micronaut.chatbots.http.ControllerConfigurationProperties
io.micronaut.chatbots.telegram.http.TelegramControllerConfiguration
- All Implemented Interfaces:
ControllerConfiguration
,io.micronaut.core.util.Toggleable
@Requires(property="micronaut.chatbots.telegram.endpoint.enabled",
notEquals="false",
defaultValue="true")
@ConfigurationProperties("micronaut.chatbots.telegram.endpoint")
public class TelegramControllerConfiguration
extends ControllerConfigurationProperties
TelegramController
configuration.- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from class io.micronaut.chatbots.http.ControllerConfigurationProperties
DEFAULT_ENABLED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setEnabled
(boolean enabled) Enables the controller.void
Path to the controller.Methods inherited from class io.micronaut.chatbots.http.ControllerConfigurationProperties
getPath, isEnabled
-
Field Details
-
PREFIX
- See Also:
-
DEFAULT_PATH
The default path.- See Also:
-
-
Constructor Details
-
TelegramControllerConfiguration
public TelegramControllerConfiguration()
-
-
Method Details
-
setEnabled
public void setEnabled(boolean enabled) Enables the controller. Default value true .- Overrides:
setEnabled
in classControllerConfigurationProperties
- Parameters:
enabled
- True if it is enabled
-
setPath
Path to the controller. Default value "/telegram" .- Overrides:
setPath
in classControllerConfigurationProperties
- Parameters:
path
- The path
-