Class TelegramHttpChatBot
java.lang.Object
io.micronaut.starter.feature.chatbots.ChatBots
io.micronaut.starter.feature.chatbots.telegram.TelegramHttpChatBot
- All Implemented Interfaces:
io.micronaut.core.naming.Described
,io.micronaut.core.naming.Named
,io.micronaut.core.order.Ordered
,ChatBotsFeature
,CodeContributingFeature
,Feature
Adds support for Telegram chatbots as Google Cloud Functions.
- Since:
- 4.3.0
- Author:
- Tim Yates
-
Field Summary
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addConfigurations
(GeneratorContext generatorContext) protected void
addDependencies
(GeneratorContext generatorContext) protected String
getBuildCommand
(BuildTool buildTool) @NonNull String
getName()
The name of the feature.getTitle()
protected void
renderTemplates
(GeneratorContext generatorContext) rootReadMeTemplate
(GeneratorContext generatorContext) boolean
supports
(ApplicationType applicationType) This method must be implemented to ensure it is only selectable for the desired application types.Methods inherited from class io.micronaut.starter.feature.chatbots.ChatBots
apply, getMicronautDocumentation, processSelectedFeatures
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.starter.feature.chatbots.ChatBotsFeature
getCategory
Methods inherited from interface io.micronaut.core.naming.Described
getDescription
Methods inherited from interface io.micronaut.starter.feature.Feature
getOrder, getThirdPartyDocumentation, isCommunity, isPreview, isVisible
-
Field Details
-
NAME
- See Also:
-
CHATBOTS_TELEGRAM_HTTP
-
-
Constructor Details
-
TelegramHttpChatBot
-
-
Method Details
-
supports
Description copied from interface:Feature
This method must be implemented to ensure it is only selectable for the desired application types. This method is not used for determining if a default feature should be applied.- Parameters:
applicationType
- The application type- Returns:
- True if the feature can be selected by the user
-
renderTemplates
-
getName
Description copied from interface:Feature
The name of the feature. It must be unique.- Returns:
- the name of the feature
-
getTitle
- Returns:
- The title of the feature
-
getDescription
-
addDependencies
- Specified by:
addDependencies
in classChatBots
-
rootReadMeTemplate
- Specified by:
rootReadMeTemplate
in classChatBots
-
getBuildCommand
- Specified by:
getBuildCommand
in classChatBots
-
addConfigurations
- Specified by:
addConfigurations
in classChatBots
-
getChatBotType
- Specified by:
getChatBotType
in classChatBots
-