@Path(value="callback") public class RestApi extends Object
| Constructor and Description |
|---|
RestApi() |
| Modifier and Type | Method and Description |
|---|---|
void |
registerCallback(WebhookBot callback) |
String |
testReceived(String botPath) |
javax.ws.rs.core.Response |
updateReceived(String botPath,
Update update) |
public void registerCallback(WebhookBot callback)
@POST
@Path(value="/{botPath}")
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response updateReceived(@PathParam(value="botPath")
String botPath,
Update update)
Copyright © 2016. All rights reserved.