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 Modifier and Type Field Description static java.lang.String
DEFAULT_PATH
The default path.static java.lang.String
PREFIX
-
Fields inherited from class io.micronaut.chatbots.http.ControllerConfigurationProperties
DEFAULT_ENABLED
-
-
Constructor Summary
Constructors Constructor Description TelegramControllerConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setEnabled(boolean enabled)
Enables the controller.void
setPath(java.lang.String path)
Path to the controller.-
Methods inherited from class io.micronaut.chatbots.http.ControllerConfigurationProperties
getPath, isEnabled
-
-
-
-
Field Detail
-
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
-
DEFAULT_PATH
public static final java.lang.String DEFAULT_PATH
The default path.- See Also:
- Constant Field Values
-
-
Method Detail
-
setEnabled
public void setEnabled(boolean enabled)
Enables the controller. Default value true .- Overrides:
setEnabled
in classControllerConfigurationProperties
- Parameters:
enabled
- True if it is enabled
-
setPath
public void setPath(java.lang.String path)
Path to the controller. Default value "/telegram" .- Overrides:
setPath
in classControllerConfigurationProperties
- Parameters:
path
- The path
-
-