java.lang.Object
org.telegram.telegrambots.updatesreceivers.RestApi

@Path("callback") public class RestApi extends Object
Version:
1.0 Rest api to for webhook callback function
Author:
Ruben Bermudez
  • Constructor Details

    • RestApi

      public RestApi()
  • Method Details

    • registerCallback

      public void registerCallback(WebhookBot callback)
    • updateReceived

      @POST @Path("/{botPath}") @Consumes("application/json") @Produces("application/json") public javax.ws.rs.core.Response updateReceived(@PathParam("botPath") String botPath, Update update)
    • testReceived

      @GET @Path("/{botPath}") @Produces("application/json") public String testReceived(@PathParam("botPath") String botPath)