java.lang.Object
io.micronaut.function.executor.AbstractExecutor
io.micronaut.function.executor.FunctionInitializer
io.micronaut.chatbots.telegram.googlecloud.Handler
All Implemented Interfaces:
com.google.cloud.functions.HttpFunction, io.micronaut.context.ApplicationContextProvider, Closeable, AutoCloseable

public class Handler extends io.micronaut.function.executor.FunctionInitializer implements com.google.cloud.functions.HttpFunction
HttpFunction for Telegram Bot webhook.
Since:
1.0.0
Author:
Sergio del Amo
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.micronaut.function.executor.FunctionInitializer

    io.micronaut.function.executor.FunctionInitializer.ParseContext
  • Field Summary

    Fields inherited from class io.micronaut.function.executor.FunctionInitializer

    closeContext

    Fields inherited from class io.micronaut.function.executor.AbstractExecutor

    applicationContext
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    service(com.google.cloud.functions.HttpRequest request, com.google.cloud.functions.HttpResponse response)
     

    Methods inherited from class io.micronaut.function.executor.FunctionInitializer

    close, injectThis, run, startThis

    Methods inherited from class io.micronaut.function.executor.AbstractExecutor

    buildApplicationContext, getApplicationContext, newApplicationContextBuilder, resolveFunction, resolveFunctionName, startEnvironment

    Methods inherited from class java.lang.Object

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

    • Handler

      public Handler()
  • Method Details

    • service

      public void service(com.google.cloud.functions.HttpRequest request, com.google.cloud.functions.HttpResponse response) throws Exception
      Specified by:
      service in interface com.google.cloud.functions.HttpFunction
      Throws:
      Exception