Class Handler
java.lang.Object
io.micronaut.azure.function.AzureFunction
io.micronaut.chatbots.telegram.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
-
Field Summary
Fields inherited from class io.micronaut.azure.function.AzureFunction
applicationContext, LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.microsoft.azure.functions.HttpResponseMessagehandle(com.microsoft.azure.functions.HttpRequestMessage<io.micronaut.chatbots.telegram.api.Update> request, com.microsoft.azure.functions.ExecutionContext context) 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<io.micronaut.chatbots.telegram.api.Update> request, com.microsoft.azure.functions.ExecutionContext context) - Parameters:
request- Requestcontext- Context- Returns:
- Webhook response
-