Class RestApi
- 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 Summary
Constructors Constructor Description RestApi()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
registerCallback(WebhookBot callback)
String
testReceived(String botPath)
javax.ws.rs.core.Response
updateReceived(String botPath, Update update)
-
-
-
Method Detail
-
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)
-
-