Class Handler

  • All Implemented Interfaces:
    io.micronaut.context.ApplicationContextProvider, java.io.Closeable, java.lang.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

      Constructors 
      Constructor Description
      Handler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.microsoft.azure.functions.HttpResponseMessage handle​(com.microsoft.azure.functions.HttpRequestMessage<Query> request, com.microsoft.azure.functions.ExecutionContext context)  
      • Methods inherited from class io.micronaut.azure.function.AzureFunction

        close, getApplicationContext, newApplicationContextBuilder
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Handler

        public Handler()
    • Method Detail

      • handle

        public com.microsoft.azure.functions.HttpResponseMessage handle​(com.microsoft.azure.functions.HttpRequestMessage<Query> request,
                                                                        com.microsoft.azure.functions.ExecutionContext context)
        Parameters:
        request - Request
        context - Context
        Returns:
        Webhook response