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
@Requires(property="micronaut.starter.feature.chatbots.telegram.http.enabled",
value="true",
defaultValue="true")
@Singleton
public class TelegramHttpChatBot
extends ChatBots
Adds support for Telegram chatbots as Google Cloud Functions.
- Since:
- 4.3.0
- Author:
- Tim Yates
-
Field Summary
FieldsFields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddConfigurations(GeneratorContext generatorContext) protected voidaddDependencies(GeneratorContext generatorContext) protected StringgetBuildCommand(BuildTool buildTool) @NonNull StringgetName()The name of the feature.getTitle()protected voidrenderTemplates(GeneratorContext generatorContext) rootReadMeTemplate(GeneratorContext generatorContext) booleansupports(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, processSelectedFeaturesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.starter.feature.chatbots.ChatBotsFeature
getCategoryMethods inherited from interface io.micronaut.core.naming.Described
getDescriptionMethods 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:FeatureThis 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:FeatureThe 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:
addDependenciesin classChatBots
-
rootReadMeTemplate
- Specified by:
rootReadMeTemplatein classChatBots
-
getBuildCommand
- Specified by:
getBuildCommandin classChatBots
-
addConfigurations
- Specified by:
addConfigurationsin classChatBots
-
getChatBotType
- Specified by:
getChatBotTypein classChatBots
-