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
FieldsFields inherited from class io.micronaut.chatbots.http.ControllerConfigurationProperties
DEFAULT_ENABLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetEnabled(boolean enabled) Enables the controller.voidPath 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:
setEnabledin classControllerConfigurationProperties- Parameters:
enabled- True if it is enabled
-
setPath
Path to the controller. Default value "/telegram" .- Overrides:
setPathin classControllerConfigurationProperties- Parameters:
path- The path
-