Class Handler
java.lang.Object
io.micronaut.azure.function.AzureFunction
io.micronaut.chatbots.basecamp.azurefunction.Handler
- All Implemented Interfaces:
io.micronaut.context.ApplicationContextProvider
,Closeable
,AutoCloseable
public class Handler
extends io.micronaut.azure.function.AzureFunction
Azure function to handle Telegram Webhook.
- Since:
- 1.0.0
- Author:
- Sergio del Amo
-
Field Summary
Fields inherited from class io.micronaut.azure.function.AzureFunction
applicationContext, LOG
-
Constructor Summary
-
Method Summary
Methods inherited from class io.micronaut.azure.function.AzureFunction
close, defaultApplicationContextBuilder, getApplicationContext, registerApplicationContextShutDownHook, startApplicationContext
-
Constructor Details
-
Handler
public Handler()
-
-
Method Details
-
handle
public com.microsoft.azure.functions.HttpResponseMessage handle(com.microsoft.azure.functions.HttpRequestMessage<Query> request, com.microsoft.azure.functions.ExecutionContext context) - Parameters:
request
- Requestcontext
- Context- Returns:
- Webhook response
-