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 SummaryFieldsFields inherited from class io.micronaut.chatbots.http.ControllerConfigurationPropertiesDEFAULT_ENABLED
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidsetEnabled(boolean enabled) Enables the controller.voidPath to the controller.Methods inherited from class io.micronaut.chatbots.http.ControllerConfigurationPropertiesgetPath, isEnabled
- 
Field Details- 
PREFIX- See Also:
 
- 
DEFAULT_PATHThe default path.- See Also:
 
 
- 
- 
Constructor Details- 
TelegramControllerConfigurationpublic TelegramControllerConfiguration()
 
- 
- 
Method Details- 
setEnabledpublic void setEnabled(boolean enabled) Enables the controller. Default value true .- Overrides:
- setEnabledin class- ControllerConfigurationProperties
- Parameters:
- enabled- True if it is enabled
 
- 
setPathPath to the controller. Default value "/telegram" .- Overrides:
- setPathin class- ControllerConfigurationProperties
- Parameters:
- path- The path
 
 
-