public class TelegramServiceRestBotAPIAdapter extends Object implements TelegramService
RestBotAPI to the TelegramService interface.| Constructor and Description |
|---|
TelegramServiceRestBotAPIAdapter(org.asynchttpclient.AsyncHttpClient asyncHttpClient,
int bufferSize,
String telegramBaseUri,
String authorizationToken) |
| Modifier and Type | Method and Description |
|---|---|
UpdateResult |
getUpdates(Long offset,
Integer limit,
Integer timeoutSeconds) |
boolean |
removeWebhook() |
void |
sendMessage(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback,
OutgoingMessage message) |
boolean |
setWebhook(String url) |
public UpdateResult getUpdates(Long offset, Integer limit, Integer timeoutSeconds)
getUpdates in interface TelegramServicepublic boolean setWebhook(String url)
setWebhook in interface TelegramServicepublic boolean removeWebhook()
removeWebhook in interface TelegramServicepublic void sendMessage(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback,
OutgoingMessage message)
sendMessage in interface TelegramServiceApache Camel